From 42c920baf4dbb9fe8775843a6d4c9f70fa29f064 Mon Sep 17 00:00:00 2001 From: amitjai Date: Fri, 27 Apr 2018 13:28:57 +0530 Subject: Rename packages from openecomp to onap. This task is all about package name space change also make changes to pom for common module Change-Id: Ie9bda0f958a9a05826c0374830cc9cb7d6d196b6 Issue-ID: SDC-1272 Signed-off-by: amitjai --- .../onap-configuration-management-api/pom.xml | 15 + .../src/main/java/org/onap/config/api/Config.java | 21 + .../java/org/onap/config/api/Configuration.java | 831 +++ .../config/api/ConfigurationChangeListener.java | 14 + .../org/onap/config/api/ConfigurationManager.java | 98 + .../org/onap/config/api/DynamicConfiguration.java | 146 + .../src/main/java/org/onap/config/api/Hint.java | 18 + .../onap-configuration-management-cli/pom.xml | 55 + .../org/onap/config/cli/app/Configuration.java | 119 + .../org/onap/config/gui/app/Configuration.java | 623 ++ .../onap-configuration-management-core/pom.xml | 128 + .../java/org/onap/config/ConfigurationUtils.java | 1144 ++++ .../src/main/java/org/onap/config/Constants.java | 14 + .../java/org/onap/config/NonConfigResource.java | 95 + .../onap/config/impl/AgglomerateConfiguration.java | 33 + .../onap/config/impl/AggregateConfiguration.java | 172 + .../org/onap/config/impl/CliConfigurationImpl.java | 354 + .../config/impl/ConfigurationChangeNotifier.java | 474 ++ .../onap/config/impl/ConfigurationDataSource.java | 105 + .../org/onap/config/impl/ConfigurationFilter.java | 39 + .../org/onap/config/impl/ConfigurationImpl.java | 679 ++ .../onap/config/impl/ConfigurationRepository.java | 415 ++ .../java/org/onap/config/impl/ContextListener.java | 28 + .../org/onap/config/impl/YamlConfiguration.java | 18 + .../org/onap/config/type/ConfigurationMode.java | 5 + .../org/onap/config/type/ConfigurationQuery.java | 94 + .../org/onap/config/type/ConfigurationType.java | 5 + .../org/onap/config/type/ConfigurationUpdate.java | 33 + .../org.onap.config.api.ConfigurationManager | 1 + .../src/main/resources/config-system.properties | 22 + .../src/main/resources/management.properties | 7 + .../org/onap/config/ConfigurationUtilsTest.java | 32 + .../onap-configuration-management-test/pom.xml | 84 + .../src/test/java/org/onap/config/TestCMSuite.java | 76 + .../onap/config/test/CLIFallbackAndLookupTest.java | 83 + .../test/java/org/onap/config/test/CLITest.java | 108 + .../onap/config/test/ConfigSourceLocationTest.java | 53 + .../onap/config/test/DynamicConfigurationTest.java | 66 + .../org/onap/config/test/FallbackConfigTest.java | 38 + .../onap/config/test/FallbackToGlobalNSTest.java | 42 + .../onap/config/test/GlobalAndNSConfigTest.java | 43 + .../onap/config/test/JAVAPropertiesConfigTest.java | 40 + .../java/org/onap/config/test/JSONConfigTest.java | 40 + .../config/test/LoadOrderMergeAndOverrideTest.java | 46 + .../org/onap/config/test/ModeAsConfigPropTest.java | 87 + .../onap/config/test/MultiTenancyConfigTest.java | 46 + .../org/onap/config/test/NodeSpecificCLITest.java | 117 + .../config/test/NotificationForNodeConfigTest.java | 85 + .../config/test/NotificationOnPropValTest.java | 76 + .../test/ResourceChangeNotificationTest.java | 88 + .../config/test/UnregisterNotificationTest.java | 94 + .../onap/config/test/ValidateDefaultModeTest.java | 58 + .../onap/config/test/ValidateNodeConfigTest.java | 80 + .../java/org/onap/config/test/XMLConfigTest.java | 40 + .../java/org/onap/config/test/YAMLConfigTest.java | 40 + .../org/onap/config/util/ConfigTestConstant.java | 23 + .../test/java/org/onap/config/util/TestUtil.java | 91 + .../src/test/resources/CLI/config-NS.properties | 12 + .../src/test/resources/CLI/config.json | 8 + .../src/test/resources/CLI/config.properties | 3 + .../src/test/resources/CLI/config.xml | 18 + .../src/test/resources/CLI/config.yaml | 8 + .../resources/CLIFallback/config-NS.properties | 12 + .../src/test/resources/CLIFallback/config.json | 8 + .../test/resources/CLIFallback/config.properties | 3 + .../src/test/resources/CLIFallback/config.xml | 18 + .../src/test/resources/CLIFallback/config.yaml | 8 + .../resources/DynamicConfiguration/config.json | 8 + .../DynamicConfiguration/config.properties | 13 + .../test/resources/DynamicConfiguration/config.xml | 18 + .../resources/DynamicConfiguration/config.yaml | 8 + .../FallbackToGlobalNS/config-NS.properties | 13 + .../test/resources/FallbackToGlobalNS/config.json | 9 + .../resources/FallbackToGlobalNS/config.properties | 3 + .../test/resources/FallbackToGlobalNS/config.xml | 19 + .../test/resources/FallbackToGlobalNS/config.yaml | 8 + .../test/resources/GlobalAndNSConfig/config.json | 10 + .../resources/GlobalAndNSConfig/config.properties | 10 + .../test/resources/GlobalAndNSConfig/config.xml | 16 + .../test/resources/GlobalAndNSConfig/config.yaml | 7 + .../test/resources/JSONConfiguration/config-M.json | 16 + .../test/resources/JSONConfiguration/config-O.json | 11 + .../test/resources/JSONConfiguration/config-U.json | 11 + .../test/resources/JSONConfiguration/config.json | 30 + .../LoadOrderConfiguration/config-M.properties | 9 + .../LoadOrderConfiguration/config-O.properties | 7 + .../LoadOrderConfiguration/config-U.properties | 5 + .../config-loadorder-M.properties | 9 + .../config-loadorder-O.properties | 7 + .../LoadOrderConfiguration/config.properties | 14 + .../MergeStrategyAsConfigProp/config.json | 8 + .../MergeStrategyAsConfigProp/config.properties | 10 + .../resources/MergeStrategyAsConfigProp/config.xml | 16 + .../MergeStrategyAsConfigProp/config.yaml | 8 + .../src/test/resources/NodeCLI/config.properties | 9 + .../test/resources/Notification/config.properties | 15 + .../test/resources/NotificationForNodeConfig.zip | Bin 0 -> 1705 bytes .../NotificationForNodeConfig/config.json | 12 + .../NotificationForNodeConfig/config.properties | 14 + .../resources/NotificationForNodeConfig/config.xml | 18 + .../NotificationForNodeConfig/config.yaml | 8 + .../NotificationOnPropVal/config-NS.properties | 13 + .../resources/NotificationOnPropVal/config.json | 9 + .../NotificationOnPropVal/config.properties | 3 + .../resources/NotificationOnPropVal/config.xml | 18 + .../resources/NotificationOnPropVal/config.yaml | 9 + .../resources/SourceLocation/appjarconfig.json | 10 + .../SourceLocation/appjarconfig.properties | 14 + .../test/resources/SourceLocation/appjarconfig.xml | 19 + .../resources/SourceLocation/appjarconfig.yaml | 8 + .../UnregisterNotification/config-NS.properties | 13 + .../resources/UnregisterNotification/config.json | 9 + .../UnregisterNotification/config.properties | 3 + .../resources/UnregisterNotification/config.xml | 18 + .../resources/UnregisterNotification/config.yaml | 9 + .../ValidateDefaultMode/config-defaultmode.json | 8 + .../config-defaultmode.properties | 2 + .../ValidateNodeConfig/config-NS.properties | 13 + .../resources/ValidateNodeConfig/config.properties | 3 + .../test/resources/XMLConfiguration/config-M.xml | 19 + .../test/resources/XMLConfiguration/config-O.xml | 14 + .../test/resources/XMLConfiguration/config-U.xml | 14 + .../src/test/resources/XMLConfiguration/config.xml | 25 + .../test/resources/YAMLConfiguration/config-M.yaml | 12 + .../test/resources/YAMLConfiguration/config-O.yaml | 8 + .../test/resources/YAMLConfiguration/config-U.yaml | 8 + .../test/resources/YAMLConfiguration/config.yaml | 27 + .../src/test/resources/config-system.properties | 22 + .../resources/fallback/config-fallback-merge.xml | 15 + .../fallback/config-fallback-override.json | 7 + .../resources/fallback/config-fallback-union.yaml | 5 + .../resources/fallback/config-fallback.properties | 13 + .../resources/java-properties/config-M.properties | 7 + .../resources/java-properties/config-O.properties | 5 + .../resources/java-properties/config-U.properties | 5 + .../resources/java-properties/config.properties | 14 + .../resources/multitenancy/config-at.properties | 11 + .../resources/multitenancy/config-tf.properties | 10 + .../resources/multitenancy/config-vf.properties | 11 + .../test/resources/multitenancy/config.properties | 11 + .../onap-common-configuration-management/pom.xml | 30 + .../onap-sdc-artifact-generator-api/pom.xml | 133 + .../onap/sdc/generator/aai/AaiModelGenerator.java | 62 + .../sdc/generator/aai/model/AllotedResource.java | 29 + .../generator/aai/model/AllotedResourceWidget.java | 33 + .../onap/sdc/generator/aai/model/FlavorWidget.java | 32 + .../onap/sdc/generator/aai/model/ImageWidget.java | 33 + .../onap/sdc/generator/aai/model/L3Network.java | 29 + .../sdc/generator/aai/model/L3NetworkWidget.java | 34 + .../onap/sdc/generator/aai/model/LIntfWidget.java | 32 + .../org/onap/sdc/generator/aai/model/Model.java | 259 + .../onap/sdc/generator/aai/model/OamNetwork.java | 32 + .../sdc/generator/aai/model/ProvidingService.java | 30 + .../org/onap/sdc/generator/aai/model/Resource.java | 52 + .../sdc/generator/aai/model/ResourceWidget.java | 26 + .../org/onap/sdc/generator/aai/model/Service.java | 43 + .../sdc/generator/aai/model/ServiceWidget.java | 30 + .../onap/sdc/generator/aai/model/TenantWidget.java | 33 + .../generator/aai/model/TunnelXconnectWidget.java | 32 + .../sdc/generator/aai/model/VServerWidget.java | 46 + .../org/onap/sdc/generator/aai/model/VfModule.java | 81 + .../sdc/generator/aai/model/VfModuleWidget.java | 34 + .../org/onap/sdc/generator/aai/model/VfWidget.java | 34 + .../onap/sdc/generator/aai/model/VfcWidget.java | 34 + .../sdc/generator/aai/model/VirtualFunction.java | 30 + .../sdc/generator/aai/model/VolumeGroupWidget.java | 34 + .../onap/sdc/generator/aai/model/VolumeWidget.java | 33 + .../org/onap/sdc/generator/aai/model/Widget.java | 196 + .../generator/aai/tosca/CapabilityAssignment.java | 45 + .../sdc/generator/aai/tosca/GroupDefinition.java | 73 + .../onap/sdc/generator/aai/tosca/NodeTemplate.java | 82 + .../generator/aai/tosca/RequirementAssignment.java | 53 + .../sdc/generator/aai/tosca/TopologyTemplate.java | 71 + .../sdc/generator/aai/tosca/ToscaTemplate.java | 82 + .../onap/sdc/generator/aai/types/Cardinality.java | 26 + .../org/onap/sdc/generator/aai/types/Model.java | 55 + .../onap/sdc/generator/aai/types/ModelType.java | 47 + .../onap/sdc/generator/aai/types/ModelWidget.java | 46 + .../onap/sdc/generator/data/AdditionalParams.java | 39 + .../java/org/onap/sdc/generator/data/Artifact.java | 96 + .../org/onap/sdc/generator/data/ArtifactType.java | 27 + .../onap/sdc/generator/data/GenerationData.java | 70 + .../sdc/generator/data/GeneratorConfiguration.java | 36 + .../sdc/generator/data/GeneratorConstants.java | 129 + .../org/onap/sdc/generator/data/GeneratorUtil.java | 104 + .../org/onap/sdc/generator/data/GroupType.java | 26 + .../generator/data/WidgetConfigurationUtil.java | 36 + .../generator/error/IllegalAccessException.java | 29 + .../onap/sdc/generator/intf/ArtifactGenerator.java | 35 + .../org/onap/sdc/generator/intf/Generator.java | 40 + .../logging/ArtifactGeneratorLogResponseCode.java | 68 + .../sdc/generator/logging/CategoryLogLevel.java | 29 + .../org/onap/sdc/generator/logging/StatusCode.java | 26 + .../sdc/generator/logging/annotations/Audit.java | 34 + .../sdc/generator/logging/annotations/Metrics.java | 35 + .../service/ArtifactGenerationService.java | 69 + .../src/main/resources/aai_schema_v10.xsd | 6311 ++++++++++++++++++ .../src/main/resources/aai_schema_v11.xsd | 6751 ++++++++++++++++++++ .../src/main/resources/aai_schema_v9.xsd | 6303 ++++++++++++++++++ .../onap-sdc-artifact-generator-core/pom.xml | 120 + .../org/onap/sdc/generator/GeneratorManager.java | 93 + .../java/org/onap/sdc/generator/GeneratorTask.java | 74 + .../onap/sdc/generator/MockArtifactGenerator.java | 81 + .../sdc/generator/aai/AaiArtifactGenerator.java | 684 ++ .../sdc/generator/aai/AaiModelGeneratorImpl.java | 278 + .../impl/ArtifactGenerationServiceImpl.java | 87 + .../sdc/generator/util/ArtifactGeneratorUtil.java | 298 + .../generator/ArtifactGenerationServiceTest.java | 1679 +++++ .../test/resources/aai/service_vmme_template_1.yml | 98 + .../src/test/resources/aai/vf_vmme_template_1.yml | 1299 ++++ .../aai2/resource-AllottedResource-template.yml | 78 + .../resources/aai2/resource-Extvl-template.yml | 61 + ...ervice-ServiceWithAllotedVfAndExvl-template.yml | 90 + .../aai3/resource-IpMuxDemux-template.yml | 80 + .../aai3/resource-ServiceAdmin-template.yml | 81 + .../aai3/resource-TunnelXconn-template.yml | 81 + .../aai3/resource-VhnfNonHeat-template.yml | 24 + .../test/resources/aai3/service-SdWan-template.yml | 233 + .../resources/config/Artifact-Generator.properties | 264 + .../src/test/resources/logback.xml | 51 + .../service_vmme_template_1.yml | 99 + .../resource-AllottedResource-template.yml | 60 + ...ervice-ServiceWithAllotedVfAndExvl-template.yml | 90 + ...rvice_vmme_template_InvalidVfModInvUuIdAttr.yml | 194 + .../service_vmme_template_InvalidVfModUuIdAttr.yml | 194 + .../resources/service_vmme_template_ModInvUUID.yml | 194 + .../resources/service_vmme_template_ModelName.yml | 194 + .../resources/service_vmme_template_ModelUUID.yml | 194 + .../service_vmme_template_ModelVersion.yml | 194 + ...-AllottedResource-template_IpMux_WithGroups.yml | 283 + ...thAllottedResourceIpmux-template_WithGroups.yml | 62 + .../service_vmme_template_1.yml | 194 + .../resource-IpMuxDemux-template.yml | 83 + .../resource-TunnelXconn-template.yml | 83 + .../service-Allottedipmux-template.yml | 126 + .../resource-AllottedResource-template_IpMux.yml | 78 + ...e-ServiceWithAllottedResourceIpmux-template.yml | 62 + ...lottedResource1SameInvariant-IpMux-template.yml | 81 + ...lottedResource2SameInvariant-IpMux-template.yml | 81 + ...llottedResourcesIpMuxSameInvariant-template.yml | 74 + ...esourceSameInvariantSameVers-IpMux-template.yml | 81 + ...esourcesIpMuxSameInvariantSameVers-template.yml | 74 + .../testArtifactGeneration2/Resource0-template.yml | 24 + .../service_vmme_template_1.yml | 194 + .../service_vmme_template_1.yml | 194 + .../testArtifactGeneration6/Resource0-template.yml | 24 + .../service_vmme_template_1.yml | 194 + .../service_vmme_template_1.yml | 194 + .../service_vmme_template_1.yml | 194 + .../resource-IpMuxDemux-template_AllRes_VF.yml | 81 + .../resource-ServiceAdmin-template_AllRes_VF.yml | 81 + .../resource-TunnelXconn-template_AllRes_VF.yml | 81 + .../resource-VhnfNonHeat-template_AllRes_VF.yml | 24 + .../service-SdWan-template_AllRes_VF.yml | 233 + ...esource-IpMuxDemux-template_WithOutDepSerId.yml | 80 + ...ource-ServiceAdmin-template_WithOutDepSerId.yml | 81 + ...source-TunnelXconn-template_WithOutDepSerId.yml | 81 + ...source-VhnfNonHeat-template_WithOutDepSerId.yml | 24 + .../service-SdWan-template_WithOutDepSerId.yml | 233 + .../service_vmme_template_1.yml | 194 + .../service_vmme_template_1.yml | 98 + .../vf_vmme_template_1.yml | 1299 ++++ .../service_vmme_template_1.yml | 98 + .../vf_vmme_template_1.yml | 1299 ++++ .../service_vmme_template_1.yml | 194 + .../service_vmme_template_1.yml | 98 + .../vf_vmme_template_1.yml | 1299 ++++ .../resource-AllottedResource-template.yml | 78 + .../resource-Extvl-template.yml | 61 + .../resource-Extvl-template_1.yml | 61 + .../service_vmme_template_1.yml | 139 + .../vf_vmme_template_1.yml | 1299 ++++ .../ServiceMock-template.yml | 74 + .../VadtranDemo-template.yml | 170 + .../vf_vmme_template_InvalidVfModInvUuIdAttr.yml | 1299 ++++ .../vf_vmme_template_InvalidVfModUuIdAttr.yml | 1299 ++++ .../test/resources/vf_vmme_template_ModInvUUID.yml | 1299 ++++ .../test/resources/vf_vmme_template_ModelName.yml | 1299 ++++ .../test/resources/vf_vmme_template_ModelUUID.yml | 1299 ++++ .../resources/vf_vmme_template_ModelVersion.yml | 1299 ++++ .../onap-sdc-artifact-generator-test/pom.xml | 67 + .../generator/ArtifactGenerationServiceTest.java | 696 ++ .../org/onap/sdc/generator/SampleJUnitTest.java | 1607 +++++ .../src/main/resources/CMAUI_VF.yaml | 92 + .../src/main/resources/CMAUI_VFInvalidFormat.yaml | 92 + .../main/resources/CMAUI_VFMissingVFModule.yaml | 92 + .../src/main/resources/ECA_OAM_VF.yaml | 217 + .../main/resources/ECA_OAM_VFInvalidFormat.yaml | 217 + .../main/resources/ECA_OAM_VFMissingVFModule.yaml | 217 + .../src/main/resources/ECA_OAM_VFOrphan.yaml | 211 + .../src/main/resources/MMSC_Sevice_07_25_16.yaml | 179 + .../MMSC_Sevice_07_25_16InvalidFormat.yaml | 177 + .../MMSC_Sevice_07_25_16MissingVFModule.yaml | 177 + .../src/main/resources/MMSC_VF.yaml | 976 +++ .../src/main/resources/MMSC_VFInvalidFormat.yaml | 975 +++ .../src/main/resources/MMSC_VFMissingVFModule.yaml | 975 +++ .../src/main/resources/Resource0-template.yml | 24 + .../src/main/resources/Resource1-template.yml | 24 + .../src/main/resources/Service0-template.yml | 28 + .../resources/Service0-templateMoreThan256.yml | 28 + .../src/main/resources/ServiceWithNodetemplate.yml | 51 + .../main/resources/aai/service_vmme_template_1.yml | 193 + .../src/main/resources/aai/vf_vmme_template_1.yml | 1219 ++++ .../resource-AllottedResource-template_IpMux.yml | 78 + ...-AllottedResource-template_IpMux_WithGroups.yml | 283 + ...rce-template_WithDiffVersionOfSameL3Network.yml | 78 + ...-AllottedResource-template_WithDupL3Network.yml | 78 + ...rce-AllottedResource-template_WithL3Network.yml | 78 + ...ottedResource-template_WithL3NetworkInVFMod.yml | 78 + ...lottedResource1SameInvariant-IpMux-template.yml | 81 + ...lottedResource2SameInvariant-IpMux-template.yml | 81 + ...esourceSameInvariantSameVers-IpMux-template.yml | 81 + ...l-template_1_WithDiffVersionOfSameL3Network.yml | 61 + ...tvl-template_WithDiffVersionOfSameL3Network.yml | 61 + .../resource-Extvl-template_WithDupL3Network.yml | 61 + .../resource-Extvl-template_WithL3Network.yml | 61 + .../resources/resource-IpMuxDemux-template.yml | 83 + .../resource-IpMuxDemux-template_AllRes_VF.yml | 81 + ...esource-IpMuxDemux-template_WithOutDepSerId.yml | 80 + .../resource-ServiceAdmin-template_AllRes_VF.yml | 81 + ...ource-ServiceAdmin-template_WithOutDepSerId.yml | 81 + .../resources/resource-TunnelXconn-template.yml | 83 + .../resource-TunnelXconn-template_AllRes_VF.yml | 81 + ...source-TunnelXconn-template_WithOutDepSerId.yml | 81 + .../resource-VhnfNonHeat-template_AllRes_VF.yml | 24 + ...source-VhnfNonHeat-template_WithOutDepSerId.yml | 24 + .../resources/service-Allottedipmux-template.yml | 126 + .../resources/service-SdWan-template_AllRes_VF.yml | 233 + .../service-SdWan-template_WithOutDepSerId.yml | 233 + ...e-ServiceWithAllottedResourceIpmux-template.yml | 62 + ...thAllottedResourceIpmux-template_WithGroups.yml | 62 + ...llottedResourcesIpMuxSameInvariant-template.yml | 74 + ...esourcesIpMuxSameInvariantSameVers-template.yml | 74 + .../service_vmme_template_DiffVerOfSameVF.yml | 112 + ...me_template_DiffVerOfSameVFModWithSameInvId.yml | 98 + .../service_vmme_template_DupVFModUUID.yml | 194 + .../resources/service_vmme_template_DupVFUUID.yml | 229 + ...rvice_vmme_template_MissingVFInServiceTOSCA.yml | 158 + .../service_vmme_template_MissingVFTemplate.yml | 193 + .../resources/service_vmme_template_MulComp.yml | 193 + .../resources/service_vmme_template_MulVFVFMod.yml | 194 + ...ervice_vmme_template_NoSystemPropConfigured.yml | 98 + .../resources/service_vmme_template_NullFields.yml | 193 + .../resources/service_vmme_template_Orphan.yml | 229 + .../service_vmme_template_SameWidget1.yml | 193 + .../service_vmme_template_SameWidget2.yml | 193 + .../service_vmme_template_SingleVFVFMod.yml | 98 + ...ate_VerifyMandatoryParameterResourceVersion.yml | 178 + ...late_VerifyMandatoryParameterServiceVersion.yml | 98 + ..._vmme_template_VerifyResourceVersionFormat1.yml | 98 + ..._vmme_template_VerifyResourceVersionFormat2.yml | 98 + .../service_vmme_template_VerifyServiceVersion.yml | 98 + ...ce_vmme_template_VerifyServiceVersionFormat.yml | 98 + ...vice_vmme_template_VerifyVFModWithInvalidNo.yml | 102 + ...ervice_vmme_template_VerifyVFModWithoutVNFC.yml | 193 + ...mme_template_WithDiffVersionOfSameL3Network.yml | 235 + .../service_vmme_template_WithDupL3Network.yml | 235 + ...template_WithInvIdGreaterThanSpecifiedLimit.yml | 98 + ..._template_WithInvIdLesserThanSpecifiedLimit.yml | 98 + .../service_vmme_template_WithL3Network.yml | 223 + .../service_vmme_template_WithL3NetworkInVFMod.yml | 211 + ...rvice_vmme_template_WithUpdatedUUIDInConfig.yml | 98 + ...me_template_DiffVerOfSameVFModWithSameInvId.yml | 1353 ++++ .../vf_vmme_template_DiffVerOfSameVF_1.yml | 1299 ++++ .../vf_vmme_template_DiffVerOfSameVF_2.yml | 1299 ++++ .../resources/vf_vmme_template_DupVFModUUID.yml | 1242 ++++ .../main/resources/vf_vmme_template_DupVFUUID.yml | 1217 ++++ .../main/resources/vf_vmme_template_MulComp.yml | 1218 ++++ .../main/resources/vf_vmme_template_MulVFVFMod.yml | 1251 ++++ .../vf_vmme_template_NoSystemPropConfigured.yml | 1299 ++++ .../main/resources/vf_vmme_template_NullFields.yml | 1218 ++++ .../src/main/resources/vf_vmme_template_Orphan.yml | 1236 ++++ .../resources/vf_vmme_template_SameWidgets1.yml | 1218 ++++ .../resources/vf_vmme_template_SameWidgets2.yml | 1218 ++++ .../resources/vf_vmme_template_SingleVFVFMod.yml | 1299 ++++ ...ate_VerifyMandatoryParameterResourceVersion.yml | 975 +++ ...late_VerifyMandatoryParameterServiceVersion.yml | 1299 ++++ ...f_vmme_template_VerifyResourceVersionFormat.yml | 1299 ++++ .../vf_vmme_template_VerifyServiceVersion.yml | 1299 ++++ ...vf_vmme_template_VerifyServiceVersionFormat.yml | 1299 ++++ .../vf_vmme_template_VerifyVFModWithInvalidNo.yml | 1208 ++++ .../vf_vmme_template_VerifyVFModWithoutVNFC.yml | 1218 ++++ ...mme_template_WithDiffVersionOfSameL3Network.yml | 1299 ++++ .../vf_vmme_template_WithDupL3Network.yml | 1299 ++++ ...template_WithInvIdGreaterThanSpecifiedLimit.yml | 1299 ++++ ..._template_WithInvIdLesserThanSpecifiedLimit.yml | 1299 ++++ .../resources/vf_vmme_template_WithL3Network.yml | 1299 ++++ .../vf_vmme_template_WithL3NetworkInVFMod.yml | 1299 ++++ .../vf_vmme_template_WithUpdatedUUIDInConfig.yml | 1299 ++++ common/onap-sdc-artifact-generator-lib/pom.xml | 24 + common/onap-tosca-datatype/pom.xml | 29 + .../tosca/datatypes/model/ActivityDefinition.java | 41 + .../tosca/datatypes/model/ArtifactDefinition.java | 71 + .../sdc/tosca/datatypes/model/ArtifactType.java | 94 + .../tosca/datatypes/model/AttributeDefinition.java | 88 + .../datatypes/model/CapabilityAssignment.java | 47 + .../datatypes/model/CapabilityDefinition.java | 112 + .../model/CapabilityFilterDefinition.java | 37 + .../sdc/tosca/datatypes/model/CapabilityType.java | 84 + .../onap/sdc/tosca/datatypes/model/Constraint.java | 179 + .../onap/sdc/tosca/datatypes/model/Credential.java | 55 + .../onap/sdc/tosca/datatypes/model/DataType.java | 132 + .../datatypes/model/DefinitionOfDataType.java | 96 + .../onap/sdc/tosca/datatypes/model/Directive.java | 42 + .../sdc/tosca/datatypes/model/EntrySchema.java | 65 + .../sdc/tosca/datatypes/model/EventFilter.java | 32 + .../sdc/tosca/datatypes/model/GroupDefinition.java | 85 + .../onap/sdc/tosca/datatypes/model/GroupType.java | 113 + .../sdc/tosca/datatypes/model/Implementation.java | 62 + .../org/onap/sdc/tosca/datatypes/model/Import.java | 63 + .../tosca/datatypes/model/InterfaceDefinition.java | 25 + .../model/InterfaceDefinitionTemplate.java | 74 + .../datatypes/model/InterfaceDefinitionType.java | 98 + .../sdc/tosca/datatypes/model/InterfaceType.java | 116 + .../onap/sdc/tosca/datatypes/model/NodeFilter.java | 49 + .../sdc/tosca/datatypes/model/NodeTemplate.java | 177 + .../onap/sdc/tosca/datatypes/model/NodeType.java | 134 + .../tosca/datatypes/model/OperationDefinition.java | 34 + .../model/OperationDefinitionTemplate.java | 61 + .../datatypes/model/OperationDefinitionType.java | 62 + .../tosca/datatypes/model/ParameterDefinition.java | 22 + .../tosca/datatypes/model/PolicyDefinition.java | 72 + .../onap/sdc/tosca/datatypes/model/PolicyType.java | 94 + .../datatypes/model/PreconditionDefinition.java | 32 + .../tosca/datatypes/model/PropertyDefinition.java | 45 + .../sdc/tosca/datatypes/model/PropertyType.java | 94 + .../datatypes/model/RelationshipTemplate.java | 110 + .../tosca/datatypes/model/RelationshipType.java | 102 + .../onap/sdc/tosca/datatypes/model/Repository.java | 32 + .../datatypes/model/RequirementAssignment.java | 71 + .../datatypes/model/RequirementDefinition.java | 83 + .../org/onap/sdc/tosca/datatypes/model/Scalar.java | 36 + .../sdc/tosca/datatypes/model/ServiceTemplate.java | 184 + .../org/onap/sdc/tosca/datatypes/model/Status.java | 42 + .../sdc/tosca/datatypes/model/StepDefinition.java | 71 + .../tosca/datatypes/model/SubstitutionMapping.java | 54 + .../onap/sdc/tosca/datatypes/model/Template.java | 24 + .../sdc/tosca/datatypes/model/TimeInterval.java | 24 + .../tosca/datatypes/model/TopologyTemplate.java | 124 + .../onap/sdc/tosca/datatypes/model/Trigger.java | 97 + .../tosca/datatypes/model/WorkflowDefinition.java | 55 + .../model/heatextend/AnnotationDefinition.java | 42 + .../datatypes/model/heatextend/AnnotationType.java | 53 + .../model/heatextend/ParameterDefinitionExt.java | 61 + .../model/heatextend/PropertyTypeExt.java | 85 + .../sdc/tosca/services/DataModelCloneUtil.java | 103 + .../sdc/tosca/services/ToscaExtensionYamlUtil.java | 86 + .../java/org/onap/sdc/tosca/services/YamlUtil.java | 272 + .../src/main/resources/globalTypes/onap/_index.yml | 35 + .../resources/globalTypes/onap/capabilities.yml | 74 + .../src/main/resources/globalTypes/onap/data.yml | 215 + .../src/main/resources/globalTypes/onap/nodes.yml | 583 ++ .../resources/globalTypes/onap/relationships.yml | 38 + .../globalTypes/openecomp-heat/_index.yml | 30 + .../resources/globalTypes/openecomp-heat/data.yml | 817 +++ .../globalTypes/openecomp-heat/groups.yml | 40 + .../resources/globalTypes/openecomp-heat/nodes.yml | 1292 ++++ .../globalTypes/openecomp-inventory/_index.yml | 31 + .../openecomp-inventory/capabilities.yml | 85 + .../globalTypes/openecomp-inventory/data.yml | 209 + .../globalTypes/openecomp-inventory/nodes.yml | 5148 +++++++++++++++ .../openecomp-inventory/relationships.yml | 57 + .../resources/globalTypes/openecomp/_index.yml | 37 + .../globalTypes/openecomp/annotations.yml | 42 + .../globalTypes/openecomp/capabilities.yml | 119 + .../main/resources/globalTypes/openecomp/data.yml | 601 ++ .../resources/globalTypes/openecomp/groups.yml | 93 + .../main/resources/globalTypes/openecomp/nodes.yml | 920 +++ .../globalTypes/openecomp/relationships.yml | 59 + .../main/resources/globalTypes/tosca/_index.yml | 37 + .../main/resources/globalTypes/tosca/artifacts.yml | 55 + .../resources/globalTypes/tosca/capabilities.yml | 230 + .../src/main/resources/globalTypes/tosca/data.yml | 191 + .../main/resources/globalTypes/tosca/groups.yml | 30 + .../resources/globalTypes/tosca/interfaces.yml | 61 + .../src/main/resources/globalTypes/tosca/nodes.yml | 371 ++ .../main/resources/globalTypes/tosca/policies.yml | 43 + .../resources/globalTypes/tosca/relationships.yml | 106 + .../openecomp-configuration-management-api/pom.xml | 15 - .../main/java/org/openecomp/config/api/Config.java | 21 - .../org/openecomp/config/api/Configuration.java | 831 --- .../config/api/ConfigurationChangeListener.java | 14 - .../openecomp/config/api/ConfigurationManager.java | 98 - .../openecomp/config/api/DynamicConfiguration.java | 146 - .../main/java/org/openecomp/config/api/Hint.java | 18 - .../openecomp-configuration-management-cli/pom.xml | 55 - .../openecomp/config/cli/app/Configuration.java | 119 - .../openecomp/config/gui/app/Configuration.java | 623 -- .../pom.xml | 128 - .../org/openecomp/config/ConfigurationUtils.java | 1143 ---- .../main/java/org/openecomp/config/Constants.java | 14 - .../org/openecomp/config/NonConfigResource.java | 95 - .../config/impl/AgglomerateConfiguration.java | 33 - .../config/impl/AggregateConfiguration.java | 172 - .../config/impl/CliConfigurationImpl.java | 354 - .../config/impl/ConfigurationChangeNotifier.java | 476 -- .../config/impl/ConfigurationDataSource.java | 105 - .../openecomp/config/impl/ConfigurationFilter.java | 39 - .../openecomp/config/impl/ConfigurationImpl.java | 684 -- .../config/impl/ConfigurationRepository.java | 415 -- .../org/openecomp/config/impl/ContextListener.java | 28 - .../openecomp/config/impl/YamlConfiguration.java | 18 - .../openecomp/config/type/ConfigurationMode.java | 5 - .../openecomp/config/type/ConfigurationQuery.java | 94 - .../openecomp/config/type/ConfigurationType.java | 5 - .../openecomp/config/type/ConfigurationUpdate.java | 33 - .../org.openecomp.config.api.ConfigurationManager | 1 - .../src/main/resources/config-system.properties | 22 - .../src/main/resources/management.properties | 7 - .../openecomp/config/ConfigurationUtilsTest.java | 32 - .../pom.xml | 84 - .../java/org/openecomp/config/TestCMSuite.java | 58 - .../config/test/CLIFallbackAndLookupTest.java | 83 - .../java/org/openecomp/config/test/CLITest.java | 107 - .../config/test/ConfigSourceLocationTest.java | 53 - .../config/test/DynamicConfigurationTest.java | 66 - .../openecomp/config/test/FallbackConfigTest.java | 39 - .../config/test/FallbackToGlobalNSTest.java | 42 - .../config/test/GlobalAndNSConfigTest.java | 45 - .../config/test/JAVAPropertiesConfigTest.java | 40 - .../org/openecomp/config/test/JSONConfigTest.java | 41 - .../config/test/LoadOrderMergeAndOverrideTest.java | 47 - .../config/test/ModeAsConfigPropTest.java | 88 - .../config/test/MultiTenancyConfigTest.java | 55 - .../openecomp/config/test/NodeSpecificCLITest.java | 117 - .../config/test/NotificationForNodeConfigTest.java | 85 - .../config/test/NotificationOnPropValTest.java | 76 - .../test/ResourceChangeNotificationTest.java | 91 - .../config/test/UnregisterNotificationTest.java | 94 - .../config/test/ValidateDefaultModeTest.java | 60 - .../config/test/ValidateNodeConfigTest.java | 80 - .../org/openecomp/config/test/XMLConfigTest.java | 41 - .../org/openecomp/config/test/YAMLConfigTest.java | 41 - .../openecomp/config/util/ConfigTestConstant.java | 23 - .../java/org/openecomp/config/util/TestUtil.java | 95 - .../src/test/resources/CLI/config-NS.properties | 12 - .../src/test/resources/CLI/config.json | 8 - .../src/test/resources/CLI/config.properties | 3 - .../src/test/resources/CLI/config.xml | 18 - .../src/test/resources/CLI/config.yaml | 8 - .../resources/CLIFallback/config-NS.properties | 12 - .../src/test/resources/CLIFallback/config.json | 8 - .../test/resources/CLIFallback/config.properties | 3 - .../src/test/resources/CLIFallback/config.xml | 18 - .../src/test/resources/CLIFallback/config.yaml | 8 - .../resources/DynamicConfiguration/config.json | 8 - .../DynamicConfiguration/config.properties | 13 - .../test/resources/DynamicConfiguration/config.xml | 18 - .../resources/DynamicConfiguration/config.yaml | 8 - .../FallbackToGlobalNS/config-NS.properties | 13 - .../test/resources/FallbackToGlobalNS/config.json | 9 - .../resources/FallbackToGlobalNS/config.properties | 3 - .../test/resources/FallbackToGlobalNS/config.xml | 19 - .../test/resources/FallbackToGlobalNS/config.yaml | 8 - .../test/resources/GlobalAndNSConfig/config.json | 10 - .../resources/GlobalAndNSConfig/config.properties | 10 - .../test/resources/GlobalAndNSConfig/config.xml | 16 - .../test/resources/GlobalAndNSConfig/config.yaml | 7 - .../test/resources/JSONConfiguration/config-M.json | 16 - .../test/resources/JSONConfiguration/config-O.json | 11 - .../test/resources/JSONConfiguration/config-U.json | 11 - .../test/resources/JSONConfiguration/config.json | 30 - .../LoadOrderConfiguration/config-M.properties | 9 - .../LoadOrderConfiguration/config-O.properties | 7 - .../LoadOrderConfiguration/config-U.properties | 5 - .../config-loadorder-M.properties | 9 - .../config-loadorder-O.properties | 7 - .../LoadOrderConfiguration/config.properties | 14 - .../MergeStrategyAsConfigProp/config.json | 8 - .../MergeStrategyAsConfigProp/config.properties | 10 - .../resources/MergeStrategyAsConfigProp/config.xml | 16 - .../MergeStrategyAsConfigProp/config.yaml | 8 - .../src/test/resources/NodeCLI/config.properties | 9 - .../test/resources/Notification/config.properties | 15 - .../test/resources/NotificationForNodeConfig.zip | Bin 1705 -> 0 bytes .../NotificationForNodeConfig/config.json | 12 - .../NotificationForNodeConfig/config.properties | 14 - .../resources/NotificationForNodeConfig/config.xml | 18 - .../NotificationForNodeConfig/config.yaml | 8 - .../NotificationOnPropVal/config-NS.properties | 13 - .../resources/NotificationOnPropVal/config.json | 9 - .../NotificationOnPropVal/config.properties | 3 - .../resources/NotificationOnPropVal/config.xml | 18 - .../resources/NotificationOnPropVal/config.yaml | 9 - .../resources/SourceLocation/appjarconfig.json | 10 - .../SourceLocation/appjarconfig.properties | 14 - .../test/resources/SourceLocation/appjarconfig.xml | 19 - .../resources/SourceLocation/appjarconfig.yaml | 8 - .../UnregisterNotification/config-NS.properties | 13 - .../resources/UnregisterNotification/config.json | 9 - .../UnregisterNotification/config.properties | 3 - .../resources/UnregisterNotification/config.xml | 18 - .../resources/UnregisterNotification/config.yaml | 9 - .../ValidateDefaultMode/config-defaultmode.json | 8 - .../config-defaultmode.properties | 2 - .../ValidateNodeConfig/config-NS.properties | 13 - .../resources/ValidateNodeConfig/config.properties | 3 - .../test/resources/XMLConfiguration/config-M.xml | 19 - .../test/resources/XMLConfiguration/config-O.xml | 14 - .../test/resources/XMLConfiguration/config-U.xml | 14 - .../src/test/resources/XMLConfiguration/config.xml | 25 - .../test/resources/YAMLConfiguration/config-M.yaml | 12 - .../test/resources/YAMLConfiguration/config-O.yaml | 8 - .../test/resources/YAMLConfiguration/config-U.yaml | 8 - .../test/resources/YAMLConfiguration/config.yaml | 27 - .../src/test/resources/config-system.properties | 22 - .../resources/fallback/config-fallback-merge.xml | 15 - .../fallback/config-fallback-override.json | 7 - .../resources/fallback/config-fallback-union.yaml | 5 - .../resources/fallback/config-fallback.properties | 13 - .../resources/java-properties/config-M.properties | 7 - .../resources/java-properties/config-O.properties | 5 - .../resources/java-properties/config-U.properties | 5 - .../resources/java-properties/config.properties | 14 - .../resources/multitenancy/config-at.properties | 11 - .../resources/multitenancy/config-tf.properties | 10 - .../resources/multitenancy/config-vf.properties | 11 - .../test/resources/multitenancy/config.properties | 11 - .../pom.xml | 30 - .../openecomp-sdc-artifact-generator-api/pom.xml | 115 - .../sdc/generator/aai/AaiModelGenerator.java | 68 - .../sdc/generator/aai/model/AllotedResource.java | 29 - .../generator/aai/model/AllotedResourceWidget.java | 32 - .../sdc/generator/aai/model/FlavorWidget.java | 32 - .../sdc/generator/aai/model/ImageWidget.java | 33 - .../sdc/generator/aai/model/L3Network.java | 29 - .../sdc/generator/aai/model/L3NetworkWidget.java | 33 - .../sdc/generator/aai/model/LIntfWidget.java | 32 - .../openecomp/sdc/generator/aai/model/Model.java | 259 - .../sdc/generator/aai/model/OamNetwork.java | 32 - .../sdc/generator/aai/model/ProvidingService.java | 29 - .../sdc/generator/aai/model/Resource.java | 52 - .../sdc/generator/aai/model/ResourceWidget.java | 26 - .../openecomp/sdc/generator/aai/model/Service.java | 43 - .../sdc/generator/aai/model/ServiceWidget.java | 30 - .../sdc/generator/aai/model/TenantWidget.java | 33 - .../generator/aai/model/TunnelXconnectWidget.java | 31 - .../sdc/generator/aai/model/VServerWidget.java | 46 - .../sdc/generator/aai/model/VfModule.java | 81 - .../sdc/generator/aai/model/VfModuleWidget.java | 33 - .../sdc/generator/aai/model/VfWidget.java | 33 - .../sdc/generator/aai/model/VfcWidget.java | 33 - .../sdc/generator/aai/model/VirtualFunction.java | 30 - .../sdc/generator/aai/model/VolumeGroupWidget.java | 33 - .../sdc/generator/aai/model/VolumeWidget.java | 33 - .../openecomp/sdc/generator/aai/model/Widget.java | 196 - .../generator/aai/tosca/CapabilityAssignment.java | 45 - .../sdc/generator/aai/tosca/GroupDefinition.java | 73 - .../sdc/generator/aai/tosca/NodeTemplate.java | 82 - .../generator/aai/tosca/RequirementAssignment.java | 53 - .../sdc/generator/aai/tosca/TopologyTemplate.java | 71 - .../sdc/generator/aai/tosca/ToscaTemplate.java | 82 - .../sdc/generator/aai/types/Cardinality.java | 26 - .../openecomp/sdc/generator/aai/types/Model.java | 55 - .../sdc/generator/aai/types/ModelType.java | 47 - .../sdc/generator/aai/types/ModelWidget.java | 46 - .../sdc/generator/data/AdditionalParams.java | 39 - .../org/openecomp/sdc/generator/data/Artifact.java | 96 - .../openecomp/sdc/generator/data/ArtifactType.java | 27 - .../sdc/generator/data/GenerationData.java | 70 - .../sdc/generator/data/GeneratorConfiguration.java | 36 - .../sdc/generator/data/GeneratorConstants.java | 129 - .../sdc/generator/data/GeneratorUtil.java | 104 - .../openecomp/sdc/generator/data/GroupType.java | 26 - .../generator/data/WidgetConfigurationUtil.java | 36 - .../generator/error/IllegalAccessException.java | 29 - .../sdc/generator/intf/ArtifactGenerator.java | 35 - .../openecomp/sdc/generator/intf/Generator.java | 40 - .../logging/ArtifactGeneratorLogResponseCode.java | 68 - .../sdc/generator/logging/CategoryLogLevel.java | 29 - .../sdc/generator/logging/StatusCode.java | 26 - .../sdc/generator/logging/annotations/Audit.java | 34 - .../sdc/generator/logging/annotations/Metrics.java | 35 - .../service/ArtifactGenerationService.java | 77 - .../src/main/resources/aai_schema_v10.xsd | 6311 ------------------ .../src/main/resources/aai_schema_v11.xsd | 6751 -------------------- .../src/main/resources/aai_schema_v9.xsd | 6303 ------------------ .../openecomp-sdc-artifact-generator-core/pom.xml | 120 - .../openecomp/sdc/generator/GeneratorManager.java | 91 - .../org/openecomp/sdc/generator/GeneratorTask.java | 74 - .../sdc/generator/MockArtifactGenerator.java | 81 - .../sdc/generator/aai/AaiArtifactGenerator.java | 688 -- .../sdc/generator/aai/AaiModelGeneratorImpl.java | 278 - .../impl/ArtifactGenerationServiceImpl.java | 86 - .../sdc/generator/util/ArtifactGeneratorUtil.java | 298 - .../generator/ArtifactGenerationServiceTest.java | 1683 ----- .../test/resources/aai/service_vmme_template_1.yml | 98 - .../src/test/resources/aai/vf_vmme_template_1.yml | 1299 ---- .../aai2/resource-AllottedResource-template.yml | 78 - .../resources/aai2/resource-Extvl-template.yml | 61 - ...ervice-ServiceWithAllotedVfAndExvl-template.yml | 90 - .../aai3/resource-IpMuxDemux-template.yml | 80 - .../aai3/resource-ServiceAdmin-template.yml | 81 - .../aai3/resource-TunnelXconn-template.yml | 81 - .../aai3/resource-VhnfNonHeat-template.yml | 24 - .../test/resources/aai3/service-SdWan-template.yml | 233 - .../resources/config/Artifact-Generator.properties | 264 - .../src/test/resources/logback.xml | 51 - .../service_vmme_template_1.yml | 99 - .../resource-AllottedResource-template.yml | 60 - ...ervice-ServiceWithAllotedVfAndExvl-template.yml | 90 - ...rvice_vmme_template_InvalidVfModInvUuIdAttr.yml | 194 - .../service_vmme_template_InvalidVfModUuIdAttr.yml | 194 - .../resources/service_vmme_template_ModInvUUID.yml | 194 - .../resources/service_vmme_template_ModelName.yml | 194 - .../resources/service_vmme_template_ModelUUID.yml | 194 - .../service_vmme_template_ModelVersion.yml | 194 - ...-AllottedResource-template_IpMux_WithGroups.yml | 283 - ...thAllottedResourceIpmux-template_WithGroups.yml | 62 - .../service_vmme_template_1.yml | 194 - .../resource-IpMuxDemux-template.yml | 83 - .../resource-TunnelXconn-template.yml | 83 - .../service-Allottedipmux-template.yml | 126 - .../resource-AllottedResource-template_IpMux.yml | 78 - ...e-ServiceWithAllottedResourceIpmux-template.yml | 62 - ...lottedResource1SameInvariant-IpMux-template.yml | 81 - ...lottedResource2SameInvariant-IpMux-template.yml | 81 - ...llottedResourcesIpMuxSameInvariant-template.yml | 74 - ...esourceSameInvariantSameVers-IpMux-template.yml | 81 - ...esourcesIpMuxSameInvariantSameVers-template.yml | 74 - .../testArtifactGeneration2/Resource0-template.yml | 24 - .../service_vmme_template_1.yml | 194 - .../service_vmme_template_1.yml | 194 - .../testArtifactGeneration6/Resource0-template.yml | 24 - .../service_vmme_template_1.yml | 194 - .../service_vmme_template_1.yml | 194 - .../service_vmme_template_1.yml | 194 - .../resource-IpMuxDemux-template_AllRes_VF.yml | 81 - .../resource-ServiceAdmin-template_AllRes_VF.yml | 81 - .../resource-TunnelXconn-template_AllRes_VF.yml | 81 - .../resource-VhnfNonHeat-template_AllRes_VF.yml | 24 - .../service-SdWan-template_AllRes_VF.yml | 233 - ...esource-IpMuxDemux-template_WithOutDepSerId.yml | 80 - ...ource-ServiceAdmin-template_WithOutDepSerId.yml | 81 - ...source-TunnelXconn-template_WithOutDepSerId.yml | 81 - ...source-VhnfNonHeat-template_WithOutDepSerId.yml | 24 - .../service-SdWan-template_WithOutDepSerId.yml | 233 - .../service_vmme_template_1.yml | 194 - .../service_vmme_template_1.yml | 98 - .../vf_vmme_template_1.yml | 1299 ---- .../service_vmme_template_1.yml | 98 - .../vf_vmme_template_1.yml | 1299 ---- .../service_vmme_template_1.yml | 194 - .../service_vmme_template_1.yml | 98 - .../vf_vmme_template_1.yml | 1299 ---- .../resource-AllottedResource-template.yml | 78 - .../resource-Extvl-template.yml | 61 - .../resource-Extvl-template_1.yml | 61 - .../service_vmme_template_1.yml | 139 - .../vf_vmme_template_1.yml | 1299 ---- .../ServiceMock-template.yml | 74 - .../VadtranDemo-template.yml | 170 - .../vf_vmme_template_InvalidVfModInvUuIdAttr.yml | 1299 ---- .../vf_vmme_template_InvalidVfModUuIdAttr.yml | 1299 ---- .../test/resources/vf_vmme_template_ModInvUUID.yml | 1299 ---- .../test/resources/vf_vmme_template_ModelName.yml | 1299 ---- .../test/resources/vf_vmme_template_ModelUUID.yml | 1299 ---- .../resources/vf_vmme_template_ModelVersion.yml | 1299 ---- .../dependency-reduced-pom.xml | 35 - .../openecomp-sdc-artifact-generator-test/pom.xml | 67 - .../generator/ArtifactGenerationServiceTest.java | 696 -- .../openecomp/sdc/generator/SampleJUnitTest.java | 1594 ----- .../src/main/resources/CMAUI_VF.yaml | 92 - .../src/main/resources/CMAUI_VFInvalidFormat.yaml | 92 - .../main/resources/CMAUI_VFMissingVFModule.yaml | 92 - .../src/main/resources/ECA_OAM_VF.yaml | 217 - .../main/resources/ECA_OAM_VFInvalidFormat.yaml | 217 - .../main/resources/ECA_OAM_VFMissingVFModule.yaml | 217 - .../src/main/resources/ECA_OAM_VFOrphan.yaml | 211 - .../src/main/resources/MMSC_Sevice_07_25_16.yaml | 179 - .../MMSC_Sevice_07_25_16InvalidFormat.yaml | 177 - .../MMSC_Sevice_07_25_16MissingVFModule.yaml | 177 - .../src/main/resources/MMSC_VF.yaml | 976 --- .../src/main/resources/MMSC_VFInvalidFormat.yaml | 975 --- .../src/main/resources/MMSC_VFMissingVFModule.yaml | 975 --- .../src/main/resources/Resource0-template.yml | 24 - .../src/main/resources/Resource1-template.yml | 24 - .../src/main/resources/Service0-template.yml | 28 - .../resources/Service0-templateMoreThan256.yml | 28 - .../src/main/resources/ServiceWithNodetemplate.yml | 51 - .../main/resources/aai/service_vmme_template_1.yml | 193 - .../src/main/resources/aai/vf_vmme_template_1.yml | 1219 ---- .../resource-AllottedResource-template_IpMux.yml | 78 - ...-AllottedResource-template_IpMux_WithGroups.yml | 283 - ...rce-template_WithDiffVersionOfSameL3Network.yml | 78 - ...-AllottedResource-template_WithDupL3Network.yml | 78 - ...rce-AllottedResource-template_WithL3Network.yml | 78 - ...ottedResource-template_WithL3NetworkInVFMod.yml | 78 - ...lottedResource1SameInvariant-IpMux-template.yml | 81 - ...lottedResource2SameInvariant-IpMux-template.yml | 81 - ...esourceSameInvariantSameVers-IpMux-template.yml | 81 - ...l-template_1_WithDiffVersionOfSameL3Network.yml | 61 - ...tvl-template_WithDiffVersionOfSameL3Network.yml | 61 - .../resource-Extvl-template_WithDupL3Network.yml | 61 - .../resource-Extvl-template_WithL3Network.yml | 61 - .../resources/resource-IpMuxDemux-template.yml | 83 - .../resource-IpMuxDemux-template_AllRes_VF.yml | 81 - ...esource-IpMuxDemux-template_WithOutDepSerId.yml | 80 - .../resource-ServiceAdmin-template_AllRes_VF.yml | 81 - ...ource-ServiceAdmin-template_WithOutDepSerId.yml | 81 - .../resources/resource-TunnelXconn-template.yml | 83 - .../resource-TunnelXconn-template_AllRes_VF.yml | 81 - ...source-TunnelXconn-template_WithOutDepSerId.yml | 81 - .../resource-VhnfNonHeat-template_AllRes_VF.yml | 24 - ...source-VhnfNonHeat-template_WithOutDepSerId.yml | 24 - .../resources/service-Allottedipmux-template.yml | 126 - .../resources/service-SdWan-template_AllRes_VF.yml | 233 - .../service-SdWan-template_WithOutDepSerId.yml | 233 - ...e-ServiceWithAllottedResourceIpmux-template.yml | 62 - ...thAllottedResourceIpmux-template_WithGroups.yml | 62 - ...llottedResourcesIpMuxSameInvariant-template.yml | 74 - ...esourcesIpMuxSameInvariantSameVers-template.yml | 74 - .../service_vmme_template_DiffVerOfSameVF.yml | 112 - ...me_template_DiffVerOfSameVFModWithSameInvId.yml | 98 - .../service_vmme_template_DupVFModUUID.yml | 194 - .../resources/service_vmme_template_DupVFUUID.yml | 229 - ...rvice_vmme_template_MissingVFInServiceTOSCA.yml | 158 - .../service_vmme_template_MissingVFTemplate.yml | 193 - .../resources/service_vmme_template_MulComp.yml | 193 - .../resources/service_vmme_template_MulVFVFMod.yml | 194 - ...ervice_vmme_template_NoSystemPropConfigured.yml | 98 - .../resources/service_vmme_template_NullFields.yml | 193 - .../resources/service_vmme_template_Orphan.yml | 229 - .../service_vmme_template_SameWidget1.yml | 193 - .../service_vmme_template_SameWidget2.yml | 193 - .../service_vmme_template_SingleVFVFMod.yml | 98 - ...ate_VerifyMandatoryParameterResourceVersion.yml | 178 - ...late_VerifyMandatoryParameterServiceVersion.yml | 98 - ..._vmme_template_VerifyResourceVersionFormat1.yml | 98 - ..._vmme_template_VerifyResourceVersionFormat2.yml | 98 - .../service_vmme_template_VerifyServiceVersion.yml | 98 - ...ce_vmme_template_VerifyServiceVersionFormat.yml | 98 - ...vice_vmme_template_VerifyVFModWithInvalidNo.yml | 102 - ...ervice_vmme_template_VerifyVFModWithoutVNFC.yml | 193 - ...mme_template_WithDiffVersionOfSameL3Network.yml | 235 - .../service_vmme_template_WithDupL3Network.yml | 235 - ...template_WithInvIdGreaterThanSpecifiedLimit.yml | 98 - ..._template_WithInvIdLesserThanSpecifiedLimit.yml | 98 - .../service_vmme_template_WithL3Network.yml | 223 - .../service_vmme_template_WithL3NetworkInVFMod.yml | 211 - ...rvice_vmme_template_WithUpdatedUUIDInConfig.yml | 98 - ...me_template_DiffVerOfSameVFModWithSameInvId.yml | 1353 ---- .../vf_vmme_template_DiffVerOfSameVF_1.yml | 1299 ---- .../vf_vmme_template_DiffVerOfSameVF_2.yml | 1299 ---- .../resources/vf_vmme_template_DupVFModUUID.yml | 1242 ---- .../main/resources/vf_vmme_template_DupVFUUID.yml | 1217 ---- .../main/resources/vf_vmme_template_MulComp.yml | 1218 ---- .../main/resources/vf_vmme_template_MulVFVFMod.yml | 1251 ---- .../vf_vmme_template_NoSystemPropConfigured.yml | 1299 ---- .../main/resources/vf_vmme_template_NullFields.yml | 1218 ---- .../src/main/resources/vf_vmme_template_Orphan.yml | 1236 ---- .../resources/vf_vmme_template_SameWidgets1.yml | 1218 ---- .../resources/vf_vmme_template_SameWidgets2.yml | 1218 ---- .../resources/vf_vmme_template_SingleVFVFMod.yml | 1299 ---- ...ate_VerifyMandatoryParameterResourceVersion.yml | 975 --- ...late_VerifyMandatoryParameterServiceVersion.yml | 1299 ---- ...f_vmme_template_VerifyResourceVersionFormat.yml | 1299 ---- .../vf_vmme_template_VerifyServiceVersion.yml | 1299 ---- ...vf_vmme_template_VerifyServiceVersionFormat.yml | 1299 ---- .../vf_vmme_template_VerifyVFModWithInvalidNo.yml | 1208 ---- .../vf_vmme_template_VerifyVFModWithoutVNFC.yml | 1218 ---- ...mme_template_WithDiffVersionOfSameL3Network.yml | 1299 ---- .../vf_vmme_template_WithDupL3Network.yml | 1299 ---- ...template_WithInvIdGreaterThanSpecifiedLimit.yml | 1299 ---- ..._template_WithInvIdLesserThanSpecifiedLimit.yml | 1299 ---- .../resources/vf_vmme_template_WithL3Network.yml | 1299 ---- .../vf_vmme_template_WithL3NetworkInVFMod.yml | 1299 ---- .../vf_vmme_template_WithUpdatedUUIDInConfig.yml | 1299 ---- .../openecomp-sdc-artifact-generator-lib/pom.xml | 24 - common/openecomp-tosca-datatype/pom.xml | 29 - .../tosca/datatypes/model/ActivityDefinition.java | 41 - .../tosca/datatypes/model/ArtifactDefinition.java | 71 - .../sdc/tosca/datatypes/model/ArtifactType.java | 94 - .../tosca/datatypes/model/AttributeDefinition.java | 88 - .../datatypes/model/CapabilityAssignment.java | 47 - .../datatypes/model/CapabilityDefinition.java | 112 - .../model/CapabilityFilterDefinition.java | 37 - .../sdc/tosca/datatypes/model/CapabilityType.java | 84 - .../sdc/tosca/datatypes/model/Constraint.java | 179 - .../sdc/tosca/datatypes/model/Credential.java | 55 - .../sdc/tosca/datatypes/model/DataType.java | 132 - .../datatypes/model/DefinitionOfDataType.java | 96 - .../sdc/tosca/datatypes/model/Directive.java | 42 - .../sdc/tosca/datatypes/model/EntrySchema.java | 65 - .../sdc/tosca/datatypes/model/EventFilter.java | 32 - .../sdc/tosca/datatypes/model/GroupDefinition.java | 85 - .../sdc/tosca/datatypes/model/GroupType.java | 113 - .../sdc/tosca/datatypes/model/Implementation.java | 62 - .../sdc/tosca/datatypes/model/Import.java | 63 - .../tosca/datatypes/model/InterfaceDefinition.java | 25 - .../model/InterfaceDefinitionTemplate.java | 74 - .../datatypes/model/InterfaceDefinitionType.java | 98 - .../sdc/tosca/datatypes/model/InterfaceType.java | 116 - .../sdc/tosca/datatypes/model/NodeFilter.java | 49 - .../sdc/tosca/datatypes/model/NodeTemplate.java | 177 - .../sdc/tosca/datatypes/model/NodeType.java | 134 - .../tosca/datatypes/model/OperationDefinition.java | 34 - .../model/OperationDefinitionTemplate.java | 61 - .../datatypes/model/OperationDefinitionType.java | 62 - .../tosca/datatypes/model/ParameterDefinition.java | 22 - .../tosca/datatypes/model/PolicyDefinition.java | 72 - .../sdc/tosca/datatypes/model/PolicyType.java | 94 - .../datatypes/model/PreconditionDefinition.java | 32 - .../tosca/datatypes/model/PropertyDefinition.java | 45 - .../sdc/tosca/datatypes/model/PropertyType.java | 94 - .../datatypes/model/RelationshipTemplate.java | 110 - .../tosca/datatypes/model/RelationshipType.java | 102 - .../sdc/tosca/datatypes/model/Repository.java | 32 - .../datatypes/model/RequirementAssignment.java | 73 - .../datatypes/model/RequirementDefinition.java | 83 - .../sdc/tosca/datatypes/model/Scalar.java | 36 - .../sdc/tosca/datatypes/model/ServiceTemplate.java | 184 - .../sdc/tosca/datatypes/model/Status.java | 42 - .../sdc/tosca/datatypes/model/StepDefinition.java | 71 - .../tosca/datatypes/model/SubstitutionMapping.java | 54 - .../sdc/tosca/datatypes/model/Template.java | 24 - .../sdc/tosca/datatypes/model/TimeInterval.java | 24 - .../tosca/datatypes/model/TopologyTemplate.java | 124 - .../sdc/tosca/datatypes/model/Trigger.java | 99 - .../tosca/datatypes/model/WorkflowDefinition.java | 55 - .../model/heatextend/AnnotationDefinition.java | 42 - .../datatypes/model/heatextend/AnnotationType.java | 53 - .../model/heatextend/ParameterDefinitionExt.java | 61 - .../model/heatextend/PropertyTypeExt.java | 85 - .../sdc/tosca/services/DataModelCloneUtil.java | 103 - .../sdc/tosca/services/ToscaExtensionYamlUtil.java | 86 - .../org/openecomp/sdc/tosca/services/YamlUtil.java | 272 - .../src/main/resources/globalTypes/onap/_index.yml | 35 - .../resources/globalTypes/onap/capabilities.yml | 74 - .../src/main/resources/globalTypes/onap/data.yml | 215 - .../src/main/resources/globalTypes/onap/nodes.yml | 583 -- .../resources/globalTypes/onap/relationships.yml | 38 - .../globalTypes/openecomp-heat/_index.yml | 30 - .../resources/globalTypes/openecomp-heat/data.yml | 817 --- .../globalTypes/openecomp-heat/groups.yml | 40 - .../resources/globalTypes/openecomp-heat/nodes.yml | 1292 ---- .../globalTypes/openecomp-inventory/_index.yml | 31 - .../openecomp-inventory/capabilities.yml | 85 - .../globalTypes/openecomp-inventory/data.yml | 209 - .../globalTypes/openecomp-inventory/nodes.yml | 5148 --------------- .../openecomp-inventory/relationships.yml | 57 - .../resources/globalTypes/openecomp/_index.yml | 37 - .../globalTypes/openecomp/annotations.yml | 42 - .../globalTypes/openecomp/capabilities.yml | 119 - .../main/resources/globalTypes/openecomp/data.yml | 601 -- .../resources/globalTypes/openecomp/groups.yml | 93 - .../main/resources/globalTypes/openecomp/nodes.yml | 920 --- .../globalTypes/openecomp/relationships.yml | 59 - .../main/resources/globalTypes/tosca/_index.yml | 37 - .../main/resources/globalTypes/tosca/artifacts.yml | 55 - .../resources/globalTypes/tosca/capabilities.yml | 230 - .../src/main/resources/globalTypes/tosca/data.yml | 191 - .../main/resources/globalTypes/tosca/groups.yml | 30 - .../resources/globalTypes/tosca/interfaces.yml | 61 - .../src/main/resources/globalTypes/tosca/nodes.yml | 371 -- .../main/resources/globalTypes/tosca/policies.yml | 43 - .../resources/globalTypes/tosca/relationships.yml | 106 - common/pom.xml | 12 +- 958 files changed, 121718 insertions(+), 121750 deletions(-) create mode 100644 common/onap-common-configuration-management/onap-configuration-management-api/pom.xml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Config.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Configuration.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/ConfigurationChangeListener.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/ConfigurationManager.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/DynamicConfiguration.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Hint.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-cli/pom.xml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-cli/src/main/java/org/onap/config/cli/app/Configuration.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-cli/src/main/java/org/onap/config/gui/app/Configuration.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/pom.xml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/ConfigurationUtils.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/Constants.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/NonConfigResource.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/AgglomerateConfiguration.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/AggregateConfiguration.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/CliConfigurationImpl.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ConfigurationChangeNotifier.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ConfigurationDataSource.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ConfigurationFilter.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ConfigurationImpl.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ConfigurationRepository.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ContextListener.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/YamlConfiguration.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/type/ConfigurationMode.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/type/ConfigurationQuery.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/type/ConfigurationType.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/type/ConfigurationUpdate.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/main/resources/META-INF/services/org.onap.config.api.ConfigurationManager create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/main/resources/config-system.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/main/resources/management.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/test/java/org/onap/config/ConfigurationUtilsTest.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/pom.xml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/TestCMSuite.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/CLIFallbackAndLookupTest.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/CLITest.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/ConfigSourceLocationTest.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/DynamicConfigurationTest.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/FallbackConfigTest.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/FallbackToGlobalNSTest.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/GlobalAndNSConfigTest.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/JAVAPropertiesConfigTest.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/JSONConfigTest.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/LoadOrderMergeAndOverrideTest.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/ModeAsConfigPropTest.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/MultiTenancyConfigTest.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/NodeSpecificCLITest.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/NotificationForNodeConfigTest.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/NotificationOnPropValTest.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/ResourceChangeNotificationTest.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/UnregisterNotificationTest.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/ValidateDefaultModeTest.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/ValidateNodeConfigTest.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/XMLConfigTest.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/YAMLConfigTest.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/util/ConfigTestConstant.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/util/TestUtil.java create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLI/config-NS.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLI/config.json create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLI/config.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLI/config.xml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLI/config.yaml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLIFallback/config-NS.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLIFallback/config.json create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLIFallback/config.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLIFallback/config.xml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLIFallback/config.yaml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/DynamicConfiguration/config.json create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/DynamicConfiguration/config.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/DynamicConfiguration/config.xml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/DynamicConfiguration/config.yaml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/FallbackToGlobalNS/config-NS.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.json create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.xml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.yaml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.json create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.xml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.yaml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/JSONConfiguration/config-M.json create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/JSONConfiguration/config-O.json create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/JSONConfiguration/config-U.json create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/JSONConfiguration/config.json create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-M.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-O.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-U.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-loadorder-M.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-loadorder-O.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.json create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.xml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.yaml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NodeCLI/config.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/Notification/config.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationForNodeConfig.zip create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.json create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.xml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.yaml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationOnPropVal/config-NS.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationOnPropVal/config.json create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationOnPropVal/config.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationOnPropVal/config.xml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationOnPropVal/config.yaml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.json create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.xml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.yaml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/UnregisterNotification/config-NS.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/UnregisterNotification/config.json create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/UnregisterNotification/config.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/UnregisterNotification/config.xml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/UnregisterNotification/config.yaml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/ValidateDefaultMode/config-defaultmode.json create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/ValidateDefaultMode/config-defaultmode.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/ValidateNodeConfig/config-NS.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/ValidateNodeConfig/config.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/XMLConfiguration/config-M.xml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/XMLConfiguration/config-O.xml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/XMLConfiguration/config-U.xml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/XMLConfiguration/config.xml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/YAMLConfiguration/config-M.yaml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/YAMLConfiguration/config-O.yaml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/YAMLConfiguration/config-U.yaml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/YAMLConfiguration/config.yaml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/config-system.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/fallback/config-fallback-merge.xml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/fallback/config-fallback-override.json create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/fallback/config-fallback-union.yaml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/fallback/config-fallback.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/java-properties/config-M.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/java-properties/config-O.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/java-properties/config-U.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/java-properties/config.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/multitenancy/config-at.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/multitenancy/config-tf.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/multitenancy/config-vf.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/multitenancy/config.properties create mode 100644 common/onap-common-configuration-management/pom.xml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/pom.xml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/AaiModelGenerator.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/AllotedResource.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/AllotedResourceWidget.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/FlavorWidget.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/ImageWidget.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/L3Network.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/L3NetworkWidget.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/LIntfWidget.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/Model.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/OamNetwork.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/ProvidingService.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/Resource.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/ResourceWidget.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/Service.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/ServiceWidget.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/TenantWidget.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/TunnelXconnectWidget.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VServerWidget.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VfModule.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VfModuleWidget.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VfWidget.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VfcWidget.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VirtualFunction.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VolumeGroupWidget.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VolumeWidget.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/Widget.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/CapabilityAssignment.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/GroupDefinition.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/NodeTemplate.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/RequirementAssignment.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/TopologyTemplate.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/ToscaTemplate.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/types/Cardinality.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/types/Model.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/types/ModelType.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/types/ModelWidget.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/AdditionalParams.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/Artifact.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/ArtifactType.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/GenerationData.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/GeneratorConfiguration.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/GeneratorConstants.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/GeneratorUtil.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/GroupType.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/WidgetConfigurationUtil.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/error/IllegalAccessException.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/intf/ArtifactGenerator.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/intf/Generator.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/logging/ArtifactGeneratorLogResponseCode.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/logging/CategoryLogLevel.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/logging/StatusCode.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/logging/annotations/Audit.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/logging/annotations/Metrics.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/service/ArtifactGenerationService.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/resources/aai_schema_v10.xsd create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/resources/aai_schema_v11.xsd create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/resources/aai_schema_v9.xsd create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/pom.xml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/GeneratorManager.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/GeneratorTask.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/MockArtifactGenerator.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/aai/AaiArtifactGenerator.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/aai/AaiModelGeneratorImpl.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/impl/ArtifactGenerationServiceImpl.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/util/ArtifactGeneratorUtil.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/java/org/onap/sdc/generator/ArtifactGenerationServiceTest.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai/service_vmme_template_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai/vf_vmme_template_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai2/resource-AllottedResource-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai2/resource-Extvl-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai2/service-ServiceWithAllotedVfAndExvl-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai3/resource-IpMuxDemux-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai3/resource-ServiceAdmin-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai3/resource-TunnelXconn-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai3/resource-VhnfNonHeat-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai3/service-SdWan-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/config/Artifact-Generator.properties create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/logback.xml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/missingResourceTosca/service_vmme_template_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/missingVLTosca/resource-AllottedResource-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/missingVLTosca/service-ServiceWithAllotedVfAndExvl-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_InvalidVfModInvUuIdAttr.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_InvalidVfModUuIdAttr.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModInvUUID.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelName.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelUUID.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelVersion.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testAllotedResourceWithDependingSerWithGroups/resource-AllottedResource-template_IpMux_WithGroups.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testAllotedResourceWithDependingSerWithGroups/service-ServiceWithAllottedResourceIpmux-template_WithGroups.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration10/service_vmme_template_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/resource-IpMuxDemux-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/resource-TunnelXconn-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/service-Allottedipmux-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration16/resource-AllottedResource-template_IpMux.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration16/service-ServiceWithAllottedResourceIpmux-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/resource-AllottedResource1SameInvariant-IpMux-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/resource-AllottedResource2SameInvariant-IpMux-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/service-ServiceWithAllottedResourcesIpMuxSameInvariant-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration18/resource-AllottedResourceSameInvariantSameVers-IpMux-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration18/service-ServiceWithAllottedResourcesIpMuxSameInvariantSameVers-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration2/Resource0-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration4/service_vmme_template_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration5/service_vmme_template_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration6/Resource0-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration6/service_vmme_template_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration8/service_vmme_template_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration9/service_vmme_template_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-IpMuxDemux-template_AllRes_VF.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-ServiceAdmin-template_AllRes_VF.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-TunnelXconn-template_AllRes_VF.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-VhnfNonHeat-template_AllRes_VF.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/service-SdWan-template_AllRes_VF.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-IpMuxDemux-template_WithOutDepSerId.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-ServiceAdmin-template_WithOutDepSerId.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-TunnelXconn-template_WithOutDepSerId.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-VhnfNonHeat-template_WithOutDepSerId.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/service-SdWan-template_WithOutDepSerId.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidInvId/service_vmme_template_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion1/service_vmme_template_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion1/vf_vmme_template_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion2/service_vmme_template_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion2/vf_vmme_template_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidUuId/service_vmme_template_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenNoResourceVersion/service_vmme_template_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenNoResourceVersion/vf_vmme_template_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-AllottedResource-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-Extvl-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-Extvl-template_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/service_vmme_template_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/vf_vmme_template_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testWidgetinServiceTosca/ServiceMock-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testWidgetinServiceTosca/VadtranDemo-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_InvalidVfModInvUuIdAttr.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_InvalidVfModUuIdAttr.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModInvUUID.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelName.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelUUID.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelVersion.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/pom.xml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/java/org/onap/sdc/generator/ArtifactGenerationServiceTest.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/java/org/onap/sdc/generator/SampleJUnitTest.java create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/CMAUI_VF.yaml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/CMAUI_VFInvalidFormat.yaml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/CMAUI_VFMissingVFModule.yaml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VF.yaml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFInvalidFormat.yaml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFMissingVFModule.yaml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFOrphan.yaml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16.yaml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16InvalidFormat.yaml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16MissingVFModule.yaml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_VF.yaml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_VFInvalidFormat.yaml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_VFMissingVFModule.yaml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/Resource0-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/Resource1-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/Service0-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/Service0-templateMoreThan256.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/ServiceWithNodetemplate.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/aai/service_vmme_template_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/aai/vf_vmme_template_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_IpMux.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_IpMux_WithGroups.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithDiffVersionOfSameL3Network.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithDupL3Network.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithL3Network.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithL3NetworkInVFMod.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource1SameInvariant-IpMux-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource2SameInvariant-IpMux-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResourceSameInvariantSameVers-IpMux-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_1_WithDiffVersionOfSameL3Network.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithDiffVersionOfSameL3Network.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithDupL3Network.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithL3Network.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template_AllRes_VF.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template_WithOutDepSerId.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-ServiceAdmin-template_AllRes_VF.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-ServiceAdmin-template_WithOutDepSerId.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template_AllRes_VF.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template_WithOutDepSerId.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-VhnfNonHeat-template_AllRes_VF.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-VhnfNonHeat-template_WithOutDepSerId.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-Allottedipmux-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-SdWan-template_AllRes_VF.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-SdWan-template_WithOutDepSerId.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourceIpmux-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourceIpmux-template_WithGroups.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourcesIpMuxSameInvariant-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourcesIpMuxSameInvariantSameVers-template.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DiffVerOfSameVF.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DiffVerOfSameVFModWithSameInvId.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DupVFModUUID.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DupVFUUID.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MissingVFInServiceTOSCA.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MissingVFTemplate.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MulComp.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MulVFVFMod.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_NoSystemPropConfigured.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_NullFields.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_Orphan.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SameWidget1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SameWidget2.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SingleVFVFMod.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyMandatoryParameterResourceVersion.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyMandatoryParameterServiceVersion.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyResourceVersionFormat1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyResourceVersionFormat2.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyServiceVersion.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyServiceVersionFormat.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyVFModWithInvalidNo.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyVFModWithoutVNFC.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithDiffVersionOfSameL3Network.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithDupL3Network.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithInvIdGreaterThanSpecifiedLimit.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithInvIdLesserThanSpecifiedLimit.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithL3Network.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithL3NetworkInVFMod.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithUpdatedUUIDInConfig.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVFModWithSameInvId.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVF_1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVF_2.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DupVFModUUID.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DupVFUUID.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_MulComp.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_MulVFVFMod.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_NoSystemPropConfigured.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_NullFields.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_Orphan.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SameWidgets1.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SameWidgets2.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SingleVFVFMod.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyMandatoryParameterResourceVersion.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyMandatoryParameterServiceVersion.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyResourceVersionFormat.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyServiceVersion.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyServiceVersionFormat.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyVFModWithInvalidNo.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyVFModWithoutVNFC.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithDiffVersionOfSameL3Network.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithDupL3Network.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithInvIdGreaterThanSpecifiedLimit.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithInvIdLesserThanSpecifiedLimit.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithL3Network.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithL3NetworkInVFMod.yml create mode 100644 common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithUpdatedUUIDInConfig.yml create mode 100644 common/onap-sdc-artifact-generator-lib/pom.xml create mode 100644 common/onap-tosca-datatype/pom.xml create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/ActivityDefinition.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/ArtifactDefinition.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/ArtifactType.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/AttributeDefinition.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/CapabilityAssignment.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/CapabilityDefinition.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/CapabilityFilterDefinition.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/CapabilityType.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Constraint.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Credential.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/DataType.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/DefinitionOfDataType.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Directive.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/EntrySchema.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/EventFilter.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/GroupDefinition.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/GroupType.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Implementation.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Import.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/InterfaceDefinition.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/InterfaceDefinitionTemplate.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/InterfaceDefinitionType.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/InterfaceType.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/NodeFilter.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/NodeTemplate.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/NodeType.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/OperationDefinition.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/OperationDefinitionTemplate.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/OperationDefinitionType.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/ParameterDefinition.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/PolicyDefinition.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/PolicyType.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/PreconditionDefinition.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/PropertyDefinition.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/PropertyType.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/RelationshipTemplate.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/RelationshipType.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Repository.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/RequirementAssignment.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/RequirementDefinition.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Scalar.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/ServiceTemplate.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Status.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/StepDefinition.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/SubstitutionMapping.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Template.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/TimeInterval.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/TopologyTemplate.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Trigger.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/WorkflowDefinition.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/heatextend/AnnotationDefinition.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/heatextend/AnnotationType.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/heatextend/ParameterDefinitionExt.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/heatextend/PropertyTypeExt.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/services/DataModelCloneUtil.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/services/ToscaExtensionYamlUtil.java create mode 100644 common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/services/YamlUtil.java create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/onap/_index.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/onap/capabilities.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/onap/data.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/onap/nodes.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/onap/relationships.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/_index.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/data.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/groups.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/nodes.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/_index.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/capabilities.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/data.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/nodes.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/relationships.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/_index.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/annotations.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/capabilities.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/data.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/groups.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/nodes.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/relationships.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/_index.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/artifacts.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/capabilities.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/data.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/groups.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/interfaces.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/nodes.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/policies.yml create mode 100644 common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/relationships.yml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-api/pom.xml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/Config.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/Configuration.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/ConfigurationChangeListener.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/ConfigurationManager.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/DynamicConfiguration.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/Hint.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-cli/pom.xml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-cli/src/main/java/org/openecomp/config/cli/app/Configuration.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-cli/src/main/java/org/openecomp/config/gui/app/Configuration.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-core/pom.xml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/ConfigurationUtils.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/Constants.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/NonConfigResource.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/AgglomerateConfiguration.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/AggregateConfiguration.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/CliConfigurationImpl.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationChangeNotifier.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationDataSource.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationFilter.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationImpl.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationRepository.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ContextListener.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/YamlConfiguration.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/type/ConfigurationMode.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/type/ConfigurationQuery.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/type/ConfigurationType.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/type/ConfigurationUpdate.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/resources/META-INF/services/org.openecomp.config.api.ConfigurationManager delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/resources/config-system.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/resources/management.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/test/java/org/openecomp/config/ConfigurationUtilsTest.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/pom.xml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/TestCMSuite.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/CLIFallbackAndLookupTest.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/CLITest.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/ConfigSourceLocationTest.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/DynamicConfigurationTest.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/FallbackConfigTest.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/FallbackToGlobalNSTest.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/GlobalAndNSConfigTest.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/JAVAPropertiesConfigTest.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/JSONConfigTest.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/LoadOrderMergeAndOverrideTest.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/ModeAsConfigPropTest.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/MultiTenancyConfigTest.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/NodeSpecificCLITest.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/NotificationForNodeConfigTest.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/NotificationOnPropValTest.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/ResourceChangeNotificationTest.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/UnregisterNotificationTest.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/ValidateDefaultModeTest.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/ValidateNodeConfigTest.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/XMLConfigTest.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/YAMLConfigTest.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/util/ConfigTestConstant.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/util/TestUtil.java delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLI/config-NS.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLI/config.json delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLI/config.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLI/config.xml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLI/config.yaml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLIFallback/config-NS.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLIFallback/config.json delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLIFallback/config.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLIFallback/config.xml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLIFallback/config.yaml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/DynamicConfiguration/config.json delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/DynamicConfiguration/config.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/DynamicConfiguration/config.xml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/DynamicConfiguration/config.yaml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/FallbackToGlobalNS/config-NS.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.json delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.xml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.yaml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.json delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.xml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.yaml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/JSONConfiguration/config-M.json delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/JSONConfiguration/config-O.json delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/JSONConfiguration/config-U.json delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/JSONConfiguration/config.json delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-M.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-O.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-U.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-loadorder-M.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-loadorder-O.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.json delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.xml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.yaml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NodeCLI/config.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/Notification/config.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationForNodeConfig.zip delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.json delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.xml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.yaml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationOnPropVal/config-NS.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationOnPropVal/config.json delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationOnPropVal/config.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationOnPropVal/config.xml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationOnPropVal/config.yaml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.json delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.xml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.yaml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/UnregisterNotification/config-NS.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/UnregisterNotification/config.json delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/UnregisterNotification/config.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/UnregisterNotification/config.xml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/UnregisterNotification/config.yaml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/ValidateDefaultMode/config-defaultmode.json delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/ValidateDefaultMode/config-defaultmode.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/ValidateNodeConfig/config-NS.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/ValidateNodeConfig/config.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/XMLConfiguration/config-M.xml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/XMLConfiguration/config-O.xml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/XMLConfiguration/config-U.xml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/XMLConfiguration/config.xml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/YAMLConfiguration/config-M.yaml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/YAMLConfiguration/config-O.yaml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/YAMLConfiguration/config-U.yaml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/YAMLConfiguration/config.yaml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/config-system.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/fallback/config-fallback-merge.xml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/fallback/config-fallback-override.json delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/fallback/config-fallback-union.yaml delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/fallback/config-fallback.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/java-properties/config-M.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/java-properties/config-O.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/java-properties/config-U.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/java-properties/config.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/multitenancy/config-at.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/multitenancy/config-tf.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/multitenancy/config-vf.properties delete mode 100644 common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/multitenancy/config.properties delete mode 100644 common/openecomp-common-configuration-management/pom.xml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/pom.xml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/AaiModelGenerator.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/AllotedResource.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/AllotedResourceWidget.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/FlavorWidget.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/ImageWidget.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/L3Network.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/L3NetworkWidget.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/LIntfWidget.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Model.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/OamNetwork.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/ProvidingService.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Resource.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/ResourceWidget.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Service.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/ServiceWidget.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/TenantWidget.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/TunnelXconnectWidget.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VServerWidget.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VfModule.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VfModuleWidget.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VfWidget.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VfcWidget.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VirtualFunction.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VolumeGroupWidget.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VolumeWidget.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Widget.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/CapabilityAssignment.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/GroupDefinition.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/NodeTemplate.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/RequirementAssignment.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/TopologyTemplate.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/ToscaTemplate.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/types/Cardinality.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/types/Model.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/types/ModelType.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/types/ModelWidget.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/AdditionalParams.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/Artifact.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/ArtifactType.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/GenerationData.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/GeneratorConfiguration.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/GeneratorConstants.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/GeneratorUtil.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/GroupType.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/WidgetConfigurationUtil.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/error/IllegalAccessException.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/intf/ArtifactGenerator.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/intf/Generator.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/logging/ArtifactGeneratorLogResponseCode.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/logging/CategoryLogLevel.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/logging/StatusCode.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/logging/annotations/Audit.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/logging/annotations/Metrics.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/service/ArtifactGenerationService.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/resources/aai_schema_v10.xsd delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/resources/aai_schema_v11.xsd delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/resources/aai_schema_v9.xsd delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/pom.xml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/GeneratorManager.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/GeneratorTask.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/MockArtifactGenerator.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/aai/AaiArtifactGenerator.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/aai/AaiModelGeneratorImpl.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/impl/ArtifactGenerationServiceImpl.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/util/ArtifactGeneratorUtil.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/java/org/openecomp/sdc/generator/ArtifactGenerationServiceTest.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai/service_vmme_template_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai/vf_vmme_template_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai2/resource-AllottedResource-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai2/resource-Extvl-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai2/service-ServiceWithAllotedVfAndExvl-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai3/resource-IpMuxDemux-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai3/resource-ServiceAdmin-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai3/resource-TunnelXconn-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai3/resource-VhnfNonHeat-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai3/service-SdWan-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/config/Artifact-Generator.properties delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/logback.xml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/missingResourceTosca/service_vmme_template_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/missingVLTosca/resource-AllottedResource-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/missingVLTosca/service-ServiceWithAllotedVfAndExvl-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_InvalidVfModInvUuIdAttr.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_InvalidVfModUuIdAttr.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModInvUUID.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelName.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelUUID.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelVersion.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testAllotedResourceWithDependingSerWithGroups/resource-AllottedResource-template_IpMux_WithGroups.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testAllotedResourceWithDependingSerWithGroups/service-ServiceWithAllottedResourceIpmux-template_WithGroups.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration10/service_vmme_template_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/resource-IpMuxDemux-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/resource-TunnelXconn-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/service-Allottedipmux-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration16/resource-AllottedResource-template_IpMux.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration16/service-ServiceWithAllottedResourceIpmux-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/resource-AllottedResource1SameInvariant-IpMux-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/resource-AllottedResource2SameInvariant-IpMux-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/service-ServiceWithAllottedResourcesIpMuxSameInvariant-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration18/resource-AllottedResourceSameInvariantSameVers-IpMux-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration18/service-ServiceWithAllottedResourcesIpMuxSameInvariantSameVers-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration2/Resource0-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration4/service_vmme_template_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration5/service_vmme_template_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration6/Resource0-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration6/service_vmme_template_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration8/service_vmme_template_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration9/service_vmme_template_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-IpMuxDemux-template_AllRes_VF.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-ServiceAdmin-template_AllRes_VF.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-TunnelXconn-template_AllRes_VF.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-VhnfNonHeat-template_AllRes_VF.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/service-SdWan-template_AllRes_VF.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-IpMuxDemux-template_WithOutDepSerId.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-ServiceAdmin-template_WithOutDepSerId.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-TunnelXconn-template_WithOutDepSerId.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-VhnfNonHeat-template_WithOutDepSerId.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/service-SdWan-template_WithOutDepSerId.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidInvId/service_vmme_template_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion1/service_vmme_template_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion1/vf_vmme_template_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion2/service_vmme_template_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion2/vf_vmme_template_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidUuId/service_vmme_template_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenNoResourceVersion/service_vmme_template_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenNoResourceVersion/vf_vmme_template_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-AllottedResource-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-Extvl-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-Extvl-template_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/service_vmme_template_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/vf_vmme_template_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testWidgetinServiceTosca/ServiceMock-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testWidgetinServiceTosca/VadtranDemo-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_InvalidVfModInvUuIdAttr.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_InvalidVfModUuIdAttr.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModInvUUID.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelName.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelUUID.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelVersion.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/dependency-reduced-pom.xml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/pom.xml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/java/org/openecomp/sdc/generator/ArtifactGenerationServiceTest.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/java/org/openecomp/sdc/generator/SampleJUnitTest.java delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/CMAUI_VF.yaml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/CMAUI_VFInvalidFormat.yaml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/CMAUI_VFMissingVFModule.yaml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VF.yaml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFInvalidFormat.yaml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFMissingVFModule.yaml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFOrphan.yaml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16.yaml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16InvalidFormat.yaml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16MissingVFModule.yaml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_VF.yaml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_VFInvalidFormat.yaml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_VFMissingVFModule.yaml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/Resource0-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/Resource1-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/Service0-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/Service0-templateMoreThan256.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/ServiceWithNodetemplate.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/aai/service_vmme_template_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/aai/vf_vmme_template_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_IpMux.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_IpMux_WithGroups.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithDiffVersionOfSameL3Network.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithDupL3Network.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithL3Network.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithL3NetworkInVFMod.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource1SameInvariant-IpMux-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource2SameInvariant-IpMux-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResourceSameInvariantSameVers-IpMux-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_1_WithDiffVersionOfSameL3Network.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithDiffVersionOfSameL3Network.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithDupL3Network.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithL3Network.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template_AllRes_VF.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template_WithOutDepSerId.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-ServiceAdmin-template_AllRes_VF.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-ServiceAdmin-template_WithOutDepSerId.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template_AllRes_VF.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template_WithOutDepSerId.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-VhnfNonHeat-template_AllRes_VF.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-VhnfNonHeat-template_WithOutDepSerId.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-Allottedipmux-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-SdWan-template_AllRes_VF.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-SdWan-template_WithOutDepSerId.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourceIpmux-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourceIpmux-template_WithGroups.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourcesIpMuxSameInvariant-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourcesIpMuxSameInvariantSameVers-template.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DiffVerOfSameVF.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DiffVerOfSameVFModWithSameInvId.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DupVFModUUID.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DupVFUUID.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MissingVFInServiceTOSCA.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MissingVFTemplate.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MulComp.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MulVFVFMod.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_NoSystemPropConfigured.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_NullFields.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_Orphan.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SameWidget1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SameWidget2.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SingleVFVFMod.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyMandatoryParameterResourceVersion.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyMandatoryParameterServiceVersion.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyResourceVersionFormat1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyResourceVersionFormat2.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyServiceVersion.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyServiceVersionFormat.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyVFModWithInvalidNo.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyVFModWithoutVNFC.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithDiffVersionOfSameL3Network.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithDupL3Network.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithInvIdGreaterThanSpecifiedLimit.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithInvIdLesserThanSpecifiedLimit.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithL3Network.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithL3NetworkInVFMod.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithUpdatedUUIDInConfig.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVFModWithSameInvId.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVF_1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVF_2.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DupVFModUUID.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DupVFUUID.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_MulComp.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_MulVFVFMod.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_NoSystemPropConfigured.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_NullFields.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_Orphan.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SameWidgets1.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SameWidgets2.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SingleVFVFMod.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyMandatoryParameterResourceVersion.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyMandatoryParameterServiceVersion.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyResourceVersionFormat.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyServiceVersion.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyServiceVersionFormat.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyVFModWithInvalidNo.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyVFModWithoutVNFC.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithDiffVersionOfSameL3Network.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithDupL3Network.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithInvIdGreaterThanSpecifiedLimit.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithInvIdLesserThanSpecifiedLimit.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithL3Network.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithL3NetworkInVFMod.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithUpdatedUUIDInConfig.yml delete mode 100644 common/openecomp-sdc-artifact-generator-lib/pom.xml delete mode 100644 common/openecomp-tosca-datatype/pom.xml delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/ActivityDefinition.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/ArtifactDefinition.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/ArtifactType.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/AttributeDefinition.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/CapabilityAssignment.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/CapabilityDefinition.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/CapabilityFilterDefinition.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/CapabilityType.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Constraint.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Credential.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/DataType.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/DefinitionOfDataType.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Directive.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/EntrySchema.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/EventFilter.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/GroupDefinition.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/GroupType.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Implementation.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Import.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/InterfaceDefinition.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/InterfaceDefinitionTemplate.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/InterfaceDefinitionType.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/InterfaceType.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/NodeFilter.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/NodeTemplate.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/NodeType.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/OperationDefinition.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/OperationDefinitionTemplate.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/OperationDefinitionType.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/ParameterDefinition.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/PolicyDefinition.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/PolicyType.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/PreconditionDefinition.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/PropertyDefinition.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/PropertyType.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/RelationshipTemplate.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/RelationshipType.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Repository.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/RequirementAssignment.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/RequirementDefinition.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Scalar.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/ServiceTemplate.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Status.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/StepDefinition.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/SubstitutionMapping.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Template.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/TimeInterval.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/TopologyTemplate.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Trigger.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/WorkflowDefinition.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/heatextend/AnnotationDefinition.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/heatextend/AnnotationType.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/heatextend/ParameterDefinitionExt.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/heatextend/PropertyTypeExt.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/services/DataModelCloneUtil.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/services/ToscaExtensionYamlUtil.java delete mode 100644 common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/services/YamlUtil.java delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/onap/_index.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/onap/capabilities.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/onap/data.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/onap/nodes.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/onap/relationships.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/_index.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/data.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/groups.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/nodes.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/_index.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/capabilities.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/data.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/nodes.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/relationships.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/_index.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/annotations.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/capabilities.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/data.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/groups.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/nodes.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/relationships.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/_index.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/artifacts.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/capabilities.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/data.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/groups.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/interfaces.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/nodes.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/policies.yml delete mode 100644 common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/relationships.yml (limited to 'common') diff --git a/common/onap-common-configuration-management/onap-configuration-management-api/pom.xml b/common/onap-common-configuration-management/onap-configuration-management-api/pom.xml new file mode 100644 index 0000000000..df2b77ba14 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-api/pom.xml @@ -0,0 +1,15 @@ + + 4.0.0 + + onap-configuration-management-api + onap-configuration-management-api + + + onap-common-configuration-management + org.onap.sdc.common + 1.2.0-SNAPSHOT + .. + + + diff --git a/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Config.java b/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Config.java new file mode 100644 index 0000000000..b4cd68df5d --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Config.java @@ -0,0 +1,21 @@ +package org.onap.config.api; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * The interface Config. + */ +@Target({ElementType.TYPE, ElementType.FIELD}) +@Retention(RetentionPolicy.RUNTIME) +public @interface Config { + + /** + * Key string. + * + * @return the string + */ + String key() default ""; +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Configuration.java b/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Configuration.java new file mode 100644 index 0000000000..58eedd7575 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Configuration.java @@ -0,0 +1,831 @@ +package org.onap.config.api; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * The interface Configuration. + */ +public interface Configuration { + /** + * The constant tenant. + */ + public static ThreadLocal tenant = new ThreadLocal<>(); + + /** + * Sets tenant id. + * + * @param id the id + */ + public static void setTenantId(String id) { + if (id != null && id.trim().length() > 0) { + tenant.set(id); + } + } + + /** + * Gets as string. + * + * @param key the key + * @return the as string + */ + public default String getAsString(String key) { + return getAsString(null, key); + } + + /** + * Gets as string. + * + * @param namespace the namespace + * @param key the key + * @return the as string + */ + public default String getAsString(String namespace, String key) { + return getAsString(tenant.get(), namespace, key); + } + + /** + * Gets as string. + * + * @param tenantId the tenant id + * @param namespace the namespace + * @param key the key + * @return the as string + */ + public default String getAsString(String tenantId, String namespace, String key) { + return get(tenantId, namespace, key, String.class); + } + + /** + * Gets as byte value. + * + * @param key the key + * @return the as byte value + */ + public default Byte getAsByteValue(String key) { + return getAsByteValue(null, key); + } + + /** + * Gets as byte value. + * + * @param namespace the namespace + * @param key the key + * @return the as byte value + */ + public default Byte getAsByteValue(String namespace, String key) { + return getAsByteValue(tenant.get(), namespace, key); + } + + /** + * Gets as byte value. + * + * @param tenantId the tenant id + * @param namespace the namespace + * @param key the key + * @return the as byte value + */ + public default Byte getAsByteValue(String tenantId, String namespace, String key) { + return get(tenantId, namespace, key, Byte.class); + } + + /** + * Gets as short value. + * + * @param key the key + * @return the as short value + */ + public default Short getAsShortValue(String key) { + return getAsShortValue(null, key); + } + + /** + * Gets as short value. + * + * @param namespace the namespace + * @param key the key + * @return the as short value + */ + public default Short getAsShortValue(String namespace, String key) { + return getAsShortValue(tenant.get(), namespace, key); + } + + /** + * Gets as short value. + * + * @param tenantId the tenant id + * @param namespace the namespace + * @param key the key + * @return the as short value + */ + public default Short getAsShortValue(String tenantId, String namespace, String key) { + return get(tenantId, namespace, key, Short.class); + } + + /** + * Gets as integer value. + * + * @param key the key + * @return the as integer value + */ + public default Integer getAsIntegerValue(String key) { + return getAsIntegerValue(null, key); + } + + /** + * Gets as integer value. + * + * @param namespace the namespace + * @param key the key + * @return the as integer value + */ + public default Integer getAsIntegerValue(String namespace, String key) { + return getAsIntegerValue(tenant.get(), namespace, key); + } + + /** + * Gets as integer value. + * + * @param tenantId the tenant id + * @param namespace the namespace + * @param key the key + * @return the as integer value + */ + public default Integer getAsIntegerValue(String tenantId, String namespace, String key) { + return get(tenantId, namespace, key, Integer.class); + } + + /** + * Gets as long value. + * + * @param key the key + * @return the as long value + */ + public default Long getAsLongValue(String key) { + return getAsLongValue(null, key); + } + + /** + * Gets as long value. + * + * @param namespace the namespace + * @param key the key + * @return the as long value + */ + public default Long getAsLongValue(String namespace, String key) { + return getAsLongValue(tenant.get(), namespace, key); + } + + /** + * Gets as long value. + * + * @param tenantId the tenant id + * @param namespace the namespace + * @param key the key + * @return the as long value + */ + public default Long getAsLongValue(String tenantId, String namespace, String key) { + return get(tenantId, namespace, key, Long.class); + } + + /** + * Gets as float value. + * + * @param key the key + * @return the as float value + */ + public default Float getAsFloatValue(String key) { + return getAsFloatValue(null, key); + } + + /** + * Gets as float value. + * + * @param namespace the namespace + * @param key the key + * @return the as float value + */ + public default Float getAsFloatValue(String namespace, String key) { + return getAsFloatValue(tenant.get(), namespace, key); + } + + /** + * Gets as float value. + * + * @param tenantId the tenant id + * @param namespace the namespace + * @param key the key + * @return the as float value + */ + public default Float getAsFloatValue(String tenantId, String namespace, String key) { + return get(tenantId, namespace, key, Float.class); + } + + /** + * Gets as double value. + * + * @param key the key + * @return the as double value + */ + public default Double getAsDoubleValue(String key) { + return getAsDoubleValue(null, key); + } + + /** + * Gets as double value. + * + * @param namespace the namespace + * @param key the key + * @return the as double value + */ + public default Double getAsDoubleValue(String namespace, String key) { + return getAsDoubleValue(tenant.get(), namespace, key); + } + + /** + * Gets as double value. + * + * @param tenantId the tenant id + * @param namespace the namespace + * @param key the key + * @return the as double value + */ + public default Double getAsDoubleValue(String tenantId, String namespace, String key) { + return get(tenantId, namespace, key, Double.class); + } + + /** + * Gets as boolean value. + * + * @param key the key + * @return the as boolean value + */ + public default Boolean getAsBooleanValue(String key) { + return getAsBooleanValue(null, key); + } + + /** + * Gets as boolean value. + * + * @param namespace the namespace + * @param key the key + * @return the as boolean value + */ + public default Boolean getAsBooleanValue(String namespace, String key) { + return getAsBooleanValue(tenant.get(), namespace, key); + } + + /** + * Gets as boolean value. + * + * @param tenantId the tenant id + * @param namespace the namespace + * @param key the key + * @return the as boolean value + */ + public default Boolean getAsBooleanValue(String tenantId, String namespace, String key) { + return get(tenantId, namespace, key, Boolean.class); + } + + /** + * Gets as char value. + * + * @param key the key + * @return the as char value + */ + public default Character getAsCharValue(String key) { + return getAsCharValue(null, key); + } + + /** + * Gets as char value. + * + * @param namespace the namespace + * @param key the key + * @return the as char value + */ + public default Character getAsCharValue(String namespace, String key) { + return getAsCharValue(tenant.get(), namespace, key); + } + + /** + * Gets as char value. + * + * @param tenantId the tenant id + * @param namespace the namespace + * @param key the key + * @return the as char value + */ + public default Character getAsCharValue(String tenantId, String namespace, String key) { + return get(tenantId, namespace, key, Character.class); + } + + /** + * Populate configuration t. + * + * @param the type parameter + * @param clazz the clazz + * @return the t + */ + public default T populateConfiguration(Class clazz) { + return populateConfiguration(null, clazz); + } + + /** + * Populate configuration t. + * + * @param the type parameter + * @param namespace the namespace + * @param clazz the clazz + * @return the t + */ + public default T populateConfiguration(String namespace, Class clazz) { + return populateConfiguration(tenant.get(), namespace, clazz); + } + + /** + * Populate configuration t. + * + * @param the type parameter + * @param tenantId the tenant id + * @param namespace the namespace + * @param clazz the clazz + * @return the t + */ + public default T populateConfiguration(String tenantId, String namespace, Class clazz) { + return get(tenantId, namespace, null, clazz, Hint.EXTERNAL_LOOKUP); + } + + /** + * Gets dynamic configuration. + * + * @param the type parameter + * @param key the key + * @param clazz the clazz + * @param defaultValue the default value + * @return the dynamic configuration + */ + public default DynamicConfiguration getDynamicConfiguration(String key, Class clazz, + T defaultValue) { + return getDynamicConfiguration(null, key, clazz, defaultValue); + } + + /** + * Gets dynamic configuration. + * + * @param the type parameter + * @param namespace the namespace + * @param key the key + * @param clazz the clazz + * @param defaultValue the default value + * @return the dynamic configuration + */ + public default DynamicConfiguration getDynamicConfiguration(String namespace, String key, + Class clazz, + T defaultValue) { + return getDynamicConfiguration(tenant.get(), namespace, key, clazz, defaultValue); + } + + /** + * Gets dynamic configuration. + * + * @param the type parameter + * @param tenant the tenant + * @param namespace the namespace + * @param key the key + * @param clazz the clazz + * @param defaultValue the default value + * @return the dynamic configuration + */ + public default DynamicConfiguration getDynamicConfiguration(String tenant, + String namespace, String key, + Class clazz, + T defaultValue) { + return DynamicConfiguration + .getDynamicConfiguration(tenant, namespace, key, clazz, defaultValue, this); + } + + /** + * Gets dynamic configuration values. + * + * @param the type parameter + * @param key the key + * @param clazz the clazz + * @param defaultValue the default value + * @return the dynamic configuration values + */ + public default DynamicConfiguration> getDynamicConfigurationValues(String key, + Class clazz, + T defaultValue) { + return getDynamicConfigurationValues(null, key, clazz, defaultValue); + } + + /** + * Gets dynamic configuration values. + * + * @param the type parameter + * @param namespace the namespace + * @param key the key + * @param clazz the clazz + * @param defaultValue the default value + * @return the dynamic configuration values + */ + public default DynamicConfiguration> getDynamicConfigurationValues(String namespace, + String key, + Class clazz, + T defaultValue) { + return getDynamicConfigurationValues(tenant.get(), namespace, key, clazz, defaultValue); + } + + /** + * Gets dynamic configuration values. + * + * @param the type parameter + * @param tenant the tenant + * @param namespace the namespace + * @param key the key + * @param clazz the clazz + * @param defaultValue the default value + * @return the dynamic configuration values + */ + public default DynamicConfiguration> getDynamicConfigurationValues(String tenant, + String namespace, + String key, + Class clazz, + T defaultValue) { + return DynamicConfiguration + .getDynConfiguration(tenant, namespace, key, clazz, defaultValue, this); + } + + /** + * Gets as string values. + * + * @param key the key + * @return the as string values + */ + public default List getAsStringValues(String key) { + return getAsStringValues(null, key); + } + + /** + * Gets as string values. + * + * @param namespace the namespace + * @param key the key + * @return the as string values + */ + public default List getAsStringValues(String namespace, String key) { + return getAsStringValues(tenant.get(), namespace, key); + } + + /** + * Gets as string values. + * + * @param tenantId the tenant id + * @param namespace the namespace + * @param key the key + * @return the as string values + */ + public default List getAsStringValues(String tenantId, String namespace, String key) { + String[] tempArray = get(tenantId, namespace, key, String[].class); + return tempArray == null ? Arrays.asList() : Arrays.asList(tempArray); + } + + /** + * Gets as byte values. + * + * @param key the key + * @return the as byte values + */ + public default List getAsByteValues(String key) { + return getAsByteValues(null, key); + } + + /** + * Gets as byte values. + * + * @param namespace the namespace + * @param key the key + * @return the as byte values + */ + public default List getAsByteValues(String namespace, String key) { + return getAsByteValues(tenant.get(), namespace, key); + } + + /** + * Gets as byte values. + * + * @param tenantId the tenant id + * @param namespace the namespace + * @param key the key + * @return the as byte values + */ + public default List getAsByteValues(String tenantId, String namespace, String key) { + Byte[] tempArray = get(tenantId, namespace, key, Byte[].class); + return tempArray == null ? Arrays.asList() : Arrays.asList(tempArray); + } + + /** + * Gets as short values. + * + * @param key the key + * @return the as short values + */ + public default List getAsShortValues(String key) { + return getAsShortValues(null, key); + } + + /** + * Gets as short values. + * + * @param namespace the namespace + * @param key the key + * @return the as short values + */ + public default List getAsShortValues(String namespace, String key) { + return getAsShortValues(tenant.get(), namespace, key); + } + + /** + * Gets as short values. + * + * @param tenantId the tenant id + * @param namespace the namespace + * @param key the key + * @return the as short values + */ + public default List getAsShortValues(String tenantId, String namespace, String key) { + Short[] tempArray = get(tenantId, namespace, key, Short[].class); + return tempArray == null ? Arrays.asList() : Arrays.asList(tempArray); + } + + /** + * Gets as integer values. + * + * @param key the key + * @return the as integer values + */ + public default List getAsIntegerValues(String key) { + return getAsIntegerValues(null, key); + } + + /** + * Gets as integer values. + * + * @param namespace the namespace + * @param key the key + * @return the as integer values + */ + public default List getAsIntegerValues(String namespace, String key) { + return getAsIntegerValues(tenant.get(), namespace, key); + } + + /** + * Gets as integer values. + * + * @param tenantId the tenant id + * @param namespace the namespace + * @param key the key + * @return the as integer values + */ + public default List getAsIntegerValues(String tenantId, String namespace, String key) { + Integer[] tempArray = get(tenantId, namespace, key, Integer[].class); + return tempArray == null ? Arrays.asList() : Arrays.asList(tempArray); + } + + /** + * Gets as double values. + * + * @param key the key + * @return the as double values + */ + public default List getAsDoubleValues(String key) { + return getAsDoubleValues(null, key); + } + + /** + * Gets as double values. + * + * @param namespace the namespace + * @param key the key + * @return the as double values + */ + public default List getAsDoubleValues(String namespace, String key) { + return getAsDoubleValues(tenant.get(), namespace, key); + } + + /** + * Gets as double values. + * + * @param tenantId the tenant id + * @param namespace the namespace + * @param key the key + * @return the as double values + */ + public default List getAsDoubleValues(String tenantId, String namespace, String key) { + Double[] tempArray = get(tenantId, namespace, key, Double[].class); + return tempArray == null ? Arrays.asList() : Arrays.asList(tempArray); + } + + /** + * Gets as float values. + * + * @param key the key + * @return the as float values + */ + public default List getAsFloatValues(String key) { + return getAsFloatValues(null, key); + } + + /** + * Gets as float values. + * + * @param namespace the namespace + * @param key the key + * @return the as float values + */ + public default List getAsFloatValues(String namespace, String key) { + return getAsFloatValues(tenant.get(), namespace, key); + } + + /** + * Gets as float values. + * + * @param tenantId the tenant id + * @param namespace the namespace + * @param key the key + * @return the as float values + */ + public default List getAsFloatValues(String tenantId, String namespace, String key) { + Float[] tempArray = get(tenantId, namespace, key, Float[].class); + return tempArray == null ? Arrays.asList() : Arrays.asList(tempArray); + } + + /** + * Gets as boolean values. + * + * @param key the key + * @return the as boolean values + */ + public default List getAsBooleanValues(String key) { + return getAsBooleanValues(null, key); + } + + /** + * Gets as boolean values. + * + * @param namespace the namespace + * @param key the key + * @return the as boolean values + */ + public default List getAsBooleanValues(String namespace, String key) { + return getAsBooleanValues(tenant.get(), namespace, key); + } + + /** + * Gets as boolean values. + * + * @param tenantId the tenant id + * @param namespace the namespace + * @param key the key + * @return the as boolean values + */ + public default List getAsBooleanValues(String tenantId, String namespace, String key) { + Boolean[] tempArray = get(tenantId, namespace, key, Boolean[].class); + return tempArray == null ? Arrays.asList() : Arrays.asList(tempArray); + } + + /** + * Gets as character values. + * + * @param key the key + * @return the as character values + */ + public default List getAsCharacterValues(String key) { + return getAsCharacterValues(null, key); + } + + /** + * Gets as character values. + * + * @param namespace the namespace + * @param key the key + * @return the as character values + */ + public default List getAsCharacterValues(String namespace, String key) { + return getAsCharacterValues(tenant.get(), namespace, key); + } + + /** + * Gets as character values. + * + * @param tenantId the tenant id + * @param namespace the namespace + * @param key the key + * @return the as character values + */ + public default List getAsCharacterValues(String tenantId, String namespace, + String key) { + Character[] tempArray = get(tenantId, namespace, key, Character[].class); + return tempArray == null ? Arrays.asList() : Arrays.asList(tempArray); + } + + /** + * Get t. + * + * @param the type parameter + * @param tenant the tenant + * @param namespace the namespace + * @param key the key + * @param clazz the clazz + * @param hints the hints + * @return the t + */ + public T get(String tenant, String namespace, String key, Class clazz, Hint... hints); + + /** + * Add configuration change listener. + * + * @param key the key + * @param myself the myself + */ + public default void addConfigurationChangeListener(String key, + ConfigurationChangeListener myself) { + addConfigurationChangeListener(null, key, myself); + } + + /** + * Add configuration change listener. + * + * @param namespace the namespace + * @param key the key + * @param myself the myself + */ + public default void addConfigurationChangeListener(String namespace, String key, + ConfigurationChangeListener myself) { + addConfigurationChangeListener(tenant.get(), namespace, key, myself); + } + + /** + * Add configuration change listener. + * + * @param tenant the tenant + * @param namespace the namespace + * @param key the key + * @param myself the myself + */ + public void addConfigurationChangeListener(String tenant, String namespace, String key, + ConfigurationChangeListener myself); + + /** + * Remove configuration change listener. + * + * @param key the key + * @param myself the myself + */ + public default void removeConfigurationChangeListener(String key, + ConfigurationChangeListener myself) { + removeConfigurationChangeListener(null, key, myself); + } + + /** + * Remove configuration change listener. + * + * @param namespace the namespace + * @param key the key + * @param myself the myself + */ + public default void removeConfigurationChangeListener(String namespace, String key, + ConfigurationChangeListener myself) { + removeConfigurationChangeListener(tenant.get(), namespace, key, myself); + } + + /** + * Remove configuration change listener. + * + * @param tenant the tenant + * @param namespace the namespace + * @param key the key + * @param myself the myself + */ + public void removeConfigurationChangeListener(String tenant, String namespace, String key, + ConfigurationChangeListener myself); + + public default Map populateMap(String key, Class clazz){ + return populateMap(null, key, clazz); + } + public default Map populateMap(String namespace, String key, Class clazz){ + return populateMap(tenant.get(), namespace, key, clazz); + } + public Map populateMap(String tenantId, String namespace, String key, Class clazz); + + public default Map generateMap(String key){ + return generateMap(null, key); + } + public default Map generateMap(String namespace, String key){ + return generateMap(tenant.get(), namespace, key); + } + public Map generateMap(String tenantId, String namespace, String key); + +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/ConfigurationChangeListener.java b/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/ConfigurationChangeListener.java new file mode 100644 index 0000000000..451a75f3ae --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/ConfigurationChangeListener.java @@ -0,0 +1,14 @@ +package org.onap.config.api; + +public interface ConfigurationChangeListener { + + public default void notify(String tenantId, String component, String key, Object oldValue, + Object newValue) { + } + + public default void notify(String component, String key, Object oldValue, Object newValue) { + } + + public default void notify(String key, Object oldValue, Object newValue) { + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/ConfigurationManager.java b/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/ConfigurationManager.java new file mode 100644 index 0000000000..0e8f1409a0 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/ConfigurationManager.java @@ -0,0 +1,98 @@ +package org.onap.config.api; + + +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Proxy; +import java.util.Collection; +import java.util.Map; +import java.util.ServiceLoader; + +/** + * The interface Configuration manager. + */ +public interface ConfigurationManager extends Configuration { + + /** + * The constant config. + */ + public static final Configuration config = lookup(); + + /** + * Lookup configuration. + * + * @return the configuration + */ + public static Configuration lookup() { + if (config == null) { + ServiceLoader loader = ServiceLoader.load(ConfigurationManager.class); + for (ConfigurationManager configuration : loader) { + return (Configuration) Proxy.newProxyInstance(ConfigurationManager.class.getClassLoader(), + new Class[]{Configuration.class}, (object, method, args) -> { + try { + return method.invoke(configuration, args); + } catch (InvocationTargetException ite) { + throw ite.getTargetException(); + } + }); + } + } + return config; + } + + /** + * Gets configuration value. + * + * @param queryData the query data + * @return the configuration value + */ + public String getConfigurationValue(Map queryData); + + /** + * Update configuration value. + * + * @param updateData the update data + */ + public void updateConfigurationValue(Map updateData); + + /** + * List configuration map. + * + * @param query the query + * @return the map + */ + public Map listConfiguration(Map query); + + /** + * Update configuration values boolean. + * + * @param tenant the tenant + * @param namespace the namespace + * @param configKeyValueStore the config key value store + * @return the boolean + */ + public boolean updateConfigurationValues(String tenant, String namespace, + Map configKeyValueStore); + + /** + * Gets tenants. + * + * @return the tenants + */ + public Collection getTenants(); + + /** + * Gets namespaces. + * + * @return the namespaces + */ + public Collection getNamespaces(); + + /** + * Gets keys. + * + * @param tenant the tenant + * @param namespace the namespace + * @return the keys + */ + public Collection getKeys(String tenant, String namespace); +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/DynamicConfiguration.java b/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/DynamicConfiguration.java new file mode 100644 index 0000000000..969749b260 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/DynamicConfiguration.java @@ -0,0 +1,146 @@ +package org.onap.config.api; + +import java.util.Arrays; +import java.util.List; + +/** + * The type Dynamic configuration. + * + * @param the type parameter + */ +public class DynamicConfiguration { + + /** + * The Tenant. + */ + String tenant; + /** + * The Namespace. + */ + String namespace; + /** + * The Key. + */ + String key; + /** + * The Configuration. + */ + Configuration configuration; + /** + * The Clazz. + */ + Class clazz; + /** + * The Default value. + */ + T defaultValue; + + /** + * Gets dynamic configuration. + * + * @param the type parameter + * @param tenant the tenant + * @param namespace the namespace + * @param key the key + * @param clazz the clazz + * @param defaultValue the default value + * @param configuration the configuration + * @return the dynamic configuration + */ + public static DynamicConfiguration getDynamicConfiguration(String tenant, String namespace, + String key, Class clazz, + T defaultValue, + Configuration configuration) { + DynamicConfiguration dynamicConfiguration = new DynamicConfiguration<>(); + dynamicConfiguration.tenant = tenant; + dynamicConfiguration.namespace = namespace; + dynamicConfiguration.key = key; + dynamicConfiguration.clazz = clazz; + dynamicConfiguration.defaultValue = defaultValue; + dynamicConfiguration.configuration = configuration; + return dynamicConfiguration; + } + + /** + * Gets dyn configuration. + * + * @param the type parameter + * @param tenant the tenant + * @param namespace the namespace + * @param key the key + * @param clazz the clazz + * @param defaultValue the default value + * @param configuration the configuration + * @return the dyn configuration + */ + public static DynamicConfiguration> getDynConfiguration(String tenant, + String namespace, String key, + Class clazz, + K defaultValue, + Configuration configuration) { + if (clazz.isPrimitive()) { + throw new RuntimeException( + "Only Wrapper classes like Integer, Long, Double, " + + "Boolean etc including String are supported."); + } + return getDynamicConfiguration(tenant, namespace, key, getArrayClass(clazz), + Arrays.asList(defaultValue), configuration); + } + + /** + * Gets array class. + * + * @param clazz the clazz + * @return the array class + */ + public static Class getArrayClass(Class clazz) { + Class arrayClass = null; + switch (clazz.getName()) { + case "java.lang.Byte": + arrayClass = Byte[].class; + break; + case "java.lang.Short": + arrayClass = Short[].class; + break; + case "java.lang.Integer": + arrayClass = Integer[].class; + break; + case "java.lang.Long": + arrayClass = Long[].class; + break; + case "java.lang.Float": + arrayClass = Float[].class; + break; + case "java.lang.Double": + arrayClass = Double[].class; + break; + case "java.lang.Boolean": + arrayClass = Boolean[].class; + break; + case "java.lang.Character": + arrayClass = Character[].class; + break; + case "java.lang.String": + arrayClass = String[].class; + break; + default: + } + return arrayClass; + } + + /** + * Get t. + * + * @return the t + */ + public T get() { + Object toReturn = configuration + .get(tenant, namespace, key, clazz, Hint.LATEST_LOOKUP, Hint.EXTERNAL_LOOKUP, + Hint.NODE_SPECIFIC); + if (toReturn != null && toReturn.getClass().isArray()) { + toReturn = Arrays.asList((Object[]) toReturn); + } + return toReturn == null ? defaultValue : (T) toReturn; + } + +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Hint.java b/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Hint.java new file mode 100644 index 0000000000..17b58f6b0e --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Hint.java @@ -0,0 +1,18 @@ +package org.onap.config.api; + +public enum Hint { + + DEFAULT(0b0), LATEST_LOOKUP(0b1), EXTERNAL_LOOKUP(0b10), NODE_SPECIFIC(0b100); + + private final int lookupHint; + + private Hint(int hnt) { + lookupHint = hnt; + } + + public int value() { + return lookupHint; + } + + +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-cli/pom.xml b/common/onap-common-configuration-management/onap-configuration-management-cli/pom.xml new file mode 100644 index 0000000000..f242fcc5d9 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-cli/pom.xml @@ -0,0 +1,55 @@ + + 4.0.0 + + org.onap.sdc.common + onap-configuration-management-cli + onap-configuration-management-cli + + + onap-common-configuration-management + org.onap.sdc.common + 1.2.0-SNAPSHOT + .. + + + + + org.onap.sdc.common + onap-configuration-management-api + ${project.version} + + + tools + tools + 1.8 + true + + + + + + + org.apache.maven.plugins + maven-shade-plugin + 1.5 + + + package + + shade + + + + + org.onap.config.gui.app.Configuration + + + + + + + + + + diff --git a/common/onap-common-configuration-management/onap-configuration-management-cli/src/main/java/org/onap/config/cli/app/Configuration.java b/common/onap-common-configuration-management/onap-configuration-management-cli/src/main/java/org/onap/config/cli/app/Configuration.java new file mode 100644 index 0000000000..d1a93f0041 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-cli/src/main/java/org/onap/config/cli/app/Configuration.java @@ -0,0 +1,119 @@ +package org.onap.config.cli.app; + +import org.onap.config.api.ConfigurationChangeListener; +import org.onap.config.api.ConfigurationManager; + +import java.util.HashMap; +import java.util.Map; + +import javax.management.JMX; +import javax.management.MBeanServerConnection; +import javax.management.ObjectName; +import javax.management.remote.JMXConnector; +import javax.management.remote.JMXConnectorFactory; +import javax.management.remote.JMXServiceURL; + +/** + * The type Configuration. + */ +public class Configuration { + + /** + * The entry point of application. + * + * @param args the input arguments + * @throws Exception the exception + */ + public static void main(String[] args) throws Exception { + + String host = getValueFor("host", args); + String port = getValueFor("port", args); + + if (host == null) { + host = "127.0.0.1"; + } + if (port == null) { + port = "9999"; + } + JMXServiceURL url = + new JMXServiceURL("service:jmx:rmi:///jndi/rmi://" + host + ":" + port + "/jmxrmi"); + Map env = new HashMap<>(); + //populate dummy value. need to be changed as per impl. + String[] credentials = {"principal", "password"}; + env.put(JMXConnector.CREDENTIALS, credentials); + + try (JMXConnector jmxc = JMXConnectorFactory.connect(url, env)) { + + boolean isUpdate = isKeyPresent("update", args); + + Map input = new HashMap<>(); + input.put("ImplClass", isUpdate ? "org.onap.config.type.ConfigurationUpdate" + : "org.onap.config.type.ConfigurationQuery"); + input.put("externalLookup", isKeyPresent("lookup", args)); + input.put("nodeOverride", isKeyPresent("nodeOverride", args)); + input.put("nodeSpecific", isKeyPresent("nodeSpecific", args)); + input.put("fallback", isKeyPresent("fallback", args)); + input.put("latest", isKeyPresent("latest", args)); + input.put("tenant", getValueFor("tenant", args)); + input.put("namespace", getValueFor("namespace", args)); + input.put("key", getValueFor("key", args)); + input.put("value", getValueFor("value", args)); + + + if (!isKeyPresent("list", args) && getValueFor("key", args) == null) { + throw new RuntimeException("Key is missing."); + } + if (isKeyPresent("update", args) && getValueFor("value", args) == null) { + throw new RuntimeException("Value is missing."); + } + + + MBeanServerConnection mbsc = jmxc.getMBeanServerConnection(); + ObjectName mbeanName = new ObjectName("org.openecomp.jmx:name=SystemConfig"); + org.onap.config.api.ConfigurationManager conf = + JMX.newMBeanProxy(mbsc, mbeanName, org.onap.config.api.ConfigurationManager.class, + true); + + boolean isGet = isKeyPresent("get", args); + boolean isList = isKeyPresent("list", args); + if (isGet) { + System.out.println(conf.getConfigurationValue(input)); + } else if (isList) { + Map map = conf.listConfiguration(input); + for (Map.Entry entry : map.entrySet()) { + System.out.println(entry.getKey() + " : " + entry.getValue()); + } + } else if (isUpdate) { + conf.updateConfigurationValue(input); + } + } + } + + private static boolean isSwitch(String key) { + return key.startsWith("-"); + } + + private static String getValueFor(String key, String[] args) { + for (int i = 0; i < args.length; i++) { + if (isSwitch(args[i])) { + String node = args[i].substring(1); + if (node.equalsIgnoreCase(key) && i < args.length - 1) { + return args[i + 1].trim().length() == 0 ? null : args[i + 1].trim(); + } + } + } + return null; + } + + private static boolean isKeyPresent(String key, String[] args) { + for (int i = 0; i < args.length; i++) { + if (isSwitch(args[i])) { + String node = args[i].substring(1); + if (node.equalsIgnoreCase(key)) { + return true; + } + } + } + return false; + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-cli/src/main/java/org/onap/config/gui/app/Configuration.java b/common/onap-common-configuration-management/onap-configuration-management-cli/src/main/java/org/onap/config/gui/app/Configuration.java new file mode 100644 index 0000000000..fa7cf5b77a --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-cli/src/main/java/org/onap/config/gui/app/Configuration.java @@ -0,0 +1,623 @@ +package org.onap.config.gui.app; + + +import com.sun.tools.attach.VirtualMachine; +import com.sun.tools.attach.VirtualMachineDescriptor; +import org.onap.config.api.ConfigurationManager; + +import java.awt.BorderLayout; +import java.awt.Button; +import java.awt.CardLayout; +import java.awt.Checkbox; +import java.awt.CheckboxGroup; +import java.awt.Choice; +import java.awt.Dialog; +import java.awt.Dimension; +import java.awt.Frame; +import java.awt.GraphicsDevice; +import java.awt.GraphicsEnvironment; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.GridLayout; +import java.awt.Label; +import java.awt.Panel; +import java.awt.ScrollPane; +import java.awt.TextArea; +import java.awt.TextField; +import java.awt.Toolkit; +import java.awt.event.ItemEvent; +import java.awt.event.WindowAdapter; +import java.awt.event.WindowEvent; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Set; +import java.util.concurrent.Executors; +import java.util.concurrent.TimeUnit; +import javax.management.JMX; +import javax.management.MBeanServerConnection; +import javax.management.ObjectName; +import javax.management.remote.JMXConnector; +import javax.management.remote.JMXConnectorFactory; +import javax.management.remote.JMXServiceURL; + + +/** + * The type Configuration. + */ +public class Configuration extends Frame { + + /** + * The Vm. + */ + VirtualMachine vm = null; + private TextField host; + private TextField port; + private TextField user; + private Choice pid; + private TextField password; + private CheckboxGroup getUpdateList; + private CheckboxGroup localRemote; + private Choice tenantChoice; + private Choice namespaceChoice; + private Choice keyChoice; + private Checkbox latest; + private Checkbox lookup; + private Checkbox fallback; + private Checkbox nodeSpecific; + private Checkbox nodeSpecificForList; + private Checkbox latestForList; + private Checkbox lookupForList; + private Checkbox fallbackForList; + private Checkbox nodeOverride; + private TextArea getValue = new TextArea(1, 50); + private TextArea updateValue = new TextArea(1, 50); + private Panel table; + private CardLayout cards; + private Panel cardPanel; + private JMXConnector connector; + private ConfigurationManager manager; + private Frame container; + private Button getKeysButton; + + /** + * Instantiates a new Configuration. + * + * @param title the title + */ + public Configuration(String title) { + super(title); + setSize(300, 300); + setLayout(new GridLayout(2, 1)); + Panel firstRowPanel = new Panel(); + firstRowPanel.setLayout(new GridLayout(0, 1)); + firstRowPanel.add( + buildHostPortPanel(host = new TextField("127.0.0.1"), port = new TextField("9999"), + pid = new Choice(), localRemote = new CheckboxGroup())); + firstRowPanel + .add(buildUserPasswordPanel(user = new TextField(""), password = new TextField(""))); + firstRowPanel.add(buildGetUpdatelistPanel(getUpdateList = new CheckboxGroup())); + firstRowPanel.add( + buildTenantNamespacePanel(tenantChoice = new Choice(), namespaceChoice = new Choice())); + firstRowPanel.add(buildKeyPanel(keyChoice = new Choice())); + add(firstRowPanel); + add(cardPanel = buildCards(cards = new CardLayout())); + addWindowListener(new WindowAdapter() { + public void windowClosing(WindowEvent windowEvent) { + close(); + System.exit(0); + } + }); + pack(); + setVisible(true); + container = this; + centreWindow(this); + Executors.newSingleThreadScheduledExecutor().scheduleWithFixedDelay(() -> { + this.populateAvailablePids(); + validate(); + }, 30, 30, TimeUnit.SECONDS); + } + + /** + * The entry point of application. + * + * @param args the input arguments + */ + public static void main(String[] args) { + Configuration configuration = new Configuration("Configuration Management App"); + + } + + private void toggleLocalRemote(ItemEvent ie) { + if (ie.getStateChange() == ItemEvent.SELECTED) { + String usecase = (ie.getSource() instanceof Checkbox) ? ((Checkbox) ie.getSource()).getLabel() + : ((Checkbox) ie.getItem()).getLabel(); + pid.setEnabled(usecase.equals("Local")); + host.setEnabled(!usecase.equals("Local")); + port.setEnabled(!usecase.equals("Local")); + } + } + + private Panel buildHostPortPanel(TextField host, TextField port, Choice pid, + CheckboxGroup group) { + populateAvailablePids(); + Panel panel = new Panel(); + panel.setLayout(new GridBagLayout()); + GridBagConstraints gbc = new GridBagConstraints(); + gbc.fill = gbc.HORIZONTAL; + gbc.weightx = 0; + Checkbox checkbox = null; + panel.add(checkbox = new Checkbox("Local", group, pid.getItemCount() > 0), gbc); + checkbox.addItemListener(this::toggleLocalRemote); + gbc.weightx = 0; + panel.add(checkbox = new Checkbox("Remote", group, pid.getItemCount() == 0), gbc); + checkbox.addItemListener(this::toggleLocalRemote); + gbc.weightx = 0; + panel.add(new Label("PID:"), gbc); + gbc.weightx = 1; + panel.add(pid, gbc); + gbc.weightx = 0; + panel.add(new Label("Host:"), gbc); + gbc.weightx = 1; + panel.add(host, gbc); + gbc.weightx = 0; + panel.add(new Label("Port:"), gbc); + gbc.weightx = 1; + panel.add(port, gbc); + host.setEnabled(pid.getItemCount() == 0); + port.setEnabled(pid.getItemCount() == 0); + pid.setEnabled(pid.getItemCount() > 0); + return panel; + } + + private Panel buildUserPasswordPanel(TextField user, TextField password) { + Panel panel = new Panel(); + password.setEchoChar('*'); + panel.setLayout(new GridBagLayout()); + GridBagConstraints gbc = new GridBagConstraints(); + gbc.fill = gbc.HORIZONTAL; + gbc.weightx = 0; + panel.add(new Label("User : "), gbc); + gbc.weightx = 1; + panel.add(user, gbc); + gbc.weightx = 0; + panel.add(new Label("Password : "), gbc); + gbc.weightx = 1; + panel.add(password, gbc); + gbc.weightx = 0; + Button button = null; + panel.add(button = new Button("Connect"), gbc); + button.addActionListener((actionListener) -> connect()); + return panel; + } + + /** + * Build get updatelist panel panel. + * + * @param getUpdtaeList the get updtae list + * @return the panel + */ + public Panel buildGetUpdatelistPanel(CheckboxGroup getUpdtaeList) { + Panel panel = new Panel(); + Checkbox checkbox = null; + panel.setLayout(new GridLayout(1, 3)); + panel.add(checkbox = new Checkbox("Get", getUpdtaeList, true)); + checkbox.addItemListener(this::showCard); + panel.add(checkbox = new Checkbox("List", getUpdtaeList, false)); + checkbox.addItemListener(this::showCard); + panel.add(checkbox = new Checkbox("Update", getUpdtaeList, false)); + checkbox.addItemListener(this::showCard); + return panel; + } + + /** + * Build tenant namespace panel panel. + * + * @param tenant the tenant + * @param namespace the namespace + * @return the panel + */ + public Panel buildTenantNamespacePanel(Choice tenant, Choice namespace) { + Panel panel = new Panel(); + panel.setLayout(new GridBagLayout()); + GridBagConstraints gbc = new GridBagConstraints(); + gbc.fill = gbc.HORIZONTAL; + gbc.weightx = 0; + panel.add(new Label("Tenant"), gbc); + gbc.weightx = 1; + panel.add(tenant, gbc); + gbc.weightx = 0; + panel.add(new Label("Namespace"), gbc); + gbc.weightx = 1; + panel.add(namespace, gbc); + gbc.weightx = 0; + panel.add(getKeysButton = new Button("Get Keys"), gbc); + getKeysButton.addActionListener((actionListener) -> populateKeys( + manager.getKeys(tenantChoice.getSelectedItem(), namespaceChoice.getSelectedItem()))); + tenantChoice.addItemListener((itemListener) -> keyChoice.removeAll()); + namespaceChoice.addItemListener((itemListener) -> keyChoice.removeAll()); + return panel; + } + + private Panel buildConnectPanel() { + Button button = null; + Panel panel = new Panel(); + panel.setLayout(new GridLayout(1, 3)); + panel.add(new Label()); + panel.add(button = new Button("Connect")); + panel.add(new Label()); + button.addActionListener((actionListener) -> connect()); + return panel; + } + + /** + * Build key panel panel. + * + * @param keyChoice the key choice + * @return the panel + */ + public Panel buildKeyPanel(Choice keyChoice) { + Panel panel = new Panel(); + panel.setLayout(new GridBagLayout()); + GridBagConstraints gbc = new GridBagConstraints(); + gbc.fill = gbc.HORIZONTAL; + gbc.weightx = 0; + panel.add(new Label("Keys : "), gbc); + gbc.weightx = 1; + panel.add(keyChoice, gbc); + return panel; + } + + /** + * Build cards panel. + * + * @param cards the cards + * @return the panel + */ + public Panel buildCards(CardLayout cards) { + Panel panel = new Panel(); + panel.setLayout(cards); + panel.add(buildCardGetPanel(latest = new Checkbox("Latest"), + fallback = new Checkbox("Fallback"), + lookup = new Checkbox("External Lookup"), nodeSpecific = new Checkbox("Node Specific"), + getValue), "Get"); + panel.add(buildCardUpdatePanel(nodeOverride = new Checkbox("NodeOverride"), + updateValue), "Update"); + panel.add(buildCardListPanel(table = new Panel(), latestForList = new Checkbox("Latest"), + fallbackForList = new Checkbox("Fallback"), lookupForList = new Checkbox("External Lookup"), + nodeSpecificForList = new Checkbox("Node Specific")), "List"); + return panel; + } + + /** + * Build card get panel panel. + * + * @param latest the latest + * @param fallback the fallback + * @param lookup the lookup + * @param nodeSpecific the node specific + * @param value the value + * @return the panel + */ + public Panel buildCardGetPanel(Checkbox latest, Checkbox fallback, Checkbox lookup, + Checkbox nodeSpecific, TextArea value) { + Panel panel = new Panel(); + + panel.setLayout(new BorderLayout()); + Panel p1 = new Panel(); + p1.setLayout(new GridLayout(1, 4)); + p1.add(latest); + p1.add(fallback); + p1.add(nodeSpecific); + p1.add(lookup); + panel.add(p1, BorderLayout.NORTH); + panel.add(value, BorderLayout.CENTER); + Panel bottom = new Panel(); + bottom.setLayout(new GridLayout(1, 5)); + bottom.add(new Label()); + Button button = null; + bottom.add(button = new Button("GET")); + button.addActionListener((actionListener) -> value.setText(manager + .getConfigurationValue(buildMap("org.onap.config.type.ConfigurationQuery", value)))); + bottom.add(new Label()); + bottom.add(button = new Button("CLOSE")); + bottom.add(new Label()); + panel.add(bottom, BorderLayout.SOUTH); + button.addActionListener((actionListener) -> { + close(); + System.exit(0); + }); + return panel; + } + + private Map buildMap(String implClass, TextArea value) { + Map input = new HashMap<>(); + input.put("ImplClass", implClass);//:); + input.put("externalLookup", value != null ? lookup.getState() : lookupForList.getState()); + input.put("nodeOverride", nodeOverride.getState()); + input.put("latest", value != null ? latest.getState() : latestForList.getState()); + input.put("fallback", value != null ? fallback.getState() : fallbackForList.getState()); + input.put("nodeSpecific", + value != null ? nodeSpecific.getState() : nodeSpecificForList.getState()); + input.put("tenant", tenantChoice.getSelectedItem()); + input.put("namespace", namespaceChoice.getSelectedItem()); + if (keyChoice.getItemCount() == 0) { + message("Error", "Key is missing."); + throw new RuntimeException("Error"); + } + input.put("key", keyChoice.getSelectedItem()); + input.put("value", value == null ? "" : value.getText()); + return input; + } + + /** + * Build card update panel panel. + * + * @param nodeOverride the node override + * @param value the value + * @return the panel + */ + public Panel buildCardUpdatePanel(Checkbox nodeOverride, TextArea value) { + Panel panel = new Panel(); + panel.setLayout(new BorderLayout()); + Panel p1 = new Panel(); + p1.setLayout(new GridLayout(1, 1)); + p1.add(nodeOverride); + panel.add(p1, BorderLayout.NORTH); + panel.add(value, BorderLayout.CENTER); + Panel bottom = new Panel(); + bottom.setLayout(new GridLayout(1, 5)); + bottom.add(new Label()); + Button button = null; + bottom.add(button = new Button("UPDATE")); + button.addActionListener((actionListener) -> { + manager + .updateConfigurationValue(buildMap("org.onap.config.type.ConfigurationUpdate", value)); + message("Info", "Success"); + }); + bottom.add(new Label()); + bottom.add(button = new Button("CLOSE")); + bottom.add(new Label()); + panel.add(bottom, BorderLayout.SOUTH); + button.addActionListener((actionListener) -> { + close(); + System.exit(0); + }); + return panel; + } + + /** + * Build card list panel panel. + * + * @param table the table + * @param latest the latest + * @param fallback the fallback + * @param nodeSpecific the node specific + * @param lookup the lookup + * @return the panel + */ + public Panel buildCardListPanel(Panel table, Checkbox latest, Checkbox fallback, + Checkbox nodeSpecific, Checkbox lookup) { + Panel panel = new Panel(); + panel.setLayout(new BorderLayout()); + table.setLayout(new GridLayout(0, 2)); + ScrollPane sp = new ScrollPane(); + sp.add(table); + panel.add(sp, BorderLayout.CENTER); + Panel p1 = new Panel(); + p1.setLayout(new GridLayout(1, 4)); + p1.add(latest); + p1.add(fallback); + p1.add(lookup); + p1.add(nodeSpecific); + panel.add(p1, BorderLayout.NORTH); + Panel bottom = new Panel(); + bottom.setLayout(new GridLayout(1, 5)); + bottom.add(new Label()); + Button button = null; + bottom.add(button = new Button("List")); + button.addActionListener((actionListener) -> populateKeyValue( + manager.listConfiguration(buildMap("org.onap.config.type.ConfigurationQuery", null)))); + bottom.add(new Label()); + bottom.add(button = new Button("CLOSE")); + bottom.add(new Label()); + panel.add(bottom, BorderLayout.SOUTH); + button.addActionListener((actionListener) -> { + close(); + System.exit(0); + }); + return panel; + } + + private void populateKeyValue(Map collection) { + table.removeAll(); + Set keys = collection.keySet(); + for (String key : keys) { + table.add(new Label(key)); + table.add(new Label(collection.get(key))); + } + table.validate(); + } + + private void showCard(ItemEvent ie) { + if (ie.getStateChange() == ItemEvent.SELECTED) { + String usecase = (ie.getSource() instanceof Checkbox) ? ((Checkbox) ie.getSource()).getLabel() + : ((Checkbox) ie.getItem()).getLabel(); + cards.show(cardPanel, usecase); + if (usecase.equals("List")) { + keyChoice.removeAll(); + } + keyChoice.setEnabled(!usecase.equals("List")); + getKeysButton.setEnabled(!usecase.equals("List")); + } + } + + private void close() { + try { + if (connector != null) { + connector.close(); + connector = null; + vm.detach(); + } + } catch (Exception exception) { + //Do nothing + } + } + + private void connect() { + try { + close(); + if (!validateHostPort()) { + return; + } + JMXServiceURL url = null; + if (localRemote.getSelectedCheckbox().getLabel().equals("Local")) { + url = new JMXServiceURL( + (vm = VirtualMachine.attach(pid.getSelectedItem())).getAgentProperties() + .getProperty("com.sun.management.jmxremote.localConnectorAddress")); + } else { + url = new JMXServiceURL( + "service:jmx:rmi:///jndi/rmi://" + host.getText() + ":" + port.getText() + "/jmxrmi"); + } + Map env = new HashMap<>(); + String[] credentials = {user.getText(), password.getText()}; + env.put(JMXConnector.CREDENTIALS, credentials); + connector = JMXConnectorFactory.connect(url, env); + MBeanServerConnection mbsc = connector.getMBeanServerConnection(); + ObjectName mbeanName = new ObjectName("org.openecomp.jmx:name=SystemConfig"); + manager = JMX.newMBeanProxy(mbsc, mbeanName, ConfigurationManager.class, true); + message("Message", "Success!!!"); + populateTenants(manager.getTenants()); + populateNamespaces(manager.getNamespaces()); + } catch (Exception exception) { + message("Error", exception.getMessage()); + } + } + + private boolean validateHostPort() { + if (localRemote.getSelectedCheckbox().getLabel().equals("Local")) { + if (pid.getSelectedItem() == null || pid.getSelectedItem().trim().length() == 0 + || !pid.getSelectedItem().matches("^[1-9][0-9]*$")) { + message("Error", "pid is mandatory numeric value greater than 0."); + return false; + } + } else { + if (host.getText() == null || host.getText().trim().length() == 0) { + message("Error", "Host is mandatory."); + return false; + } + if (port.getText() == null || port.getText().trim().length() == 0 + || !port.getText().matches("^[1-9][0-9]*$")) { + message("Error", "Port is mandatory numeric value greater than 0."); + return false; + } + } + return true; + } + + private void populateTenants(Collection collection) { + tenantChoice.removeAll(); + for (String item : collection) { + tenantChoice.add(item); + } + } + + private void populateNamespaces(Collection collection) { + namespaceChoice.removeAll(); + keyChoice.removeAll(); + for (String item : collection) { + namespaceChoice.add(item); + } + } + + private void populateKeys(Collection collection) { + keyChoice.removeAll(); + for (String item : collection) { + keyChoice.add(item); + } + } + + private void message(String title, String text) { + Dialog dialog = new Dialog(container, title, true); + dialog.setLayout(new BorderLayout()); + dialog.add(new Label(text), BorderLayout.CENTER); + Button ok = new Button("OK"); + Panel panel = new Panel(); + panel.setLayout(new GridLayout(1, 3)); + panel.add(new Label()); + panel.add(ok); + panel.add(new Label()); + ok.addActionListener((actionListener) -> dialog.setVisible(false)); + dialog.add(panel, BorderLayout.SOUTH); + dialog.pack(); + centerDialog(dialog); + dialog.setVisible(true); + } + + private void centreWindow(Frame frame) { + Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize(); + int x1 = (int) ((dimension.getWidth() - frame.getWidth()) / 2); + int y1 = (int) ((dimension.getHeight() - frame.getHeight()) / 2); + frame.setLocation(x1, y1); + } + + private void centerDialog(Dialog dialog) { + Dimension dimension = container.getSize(); + container.getLocationOnScreen(); + int x1 = + container.getLocationOnScreen().x + (int) ((dimension.getWidth() - dialog.getWidth()) / 2); + int y1 = container.getLocationOnScreen().y + + (int) ((dimension.getHeight() - dialog.getHeight()) / 2); + dialog.setLocation(x1, y1); + } + + private void setWindowPosition(Frame window, int screen) { + GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment(); + GraphicsDevice[] allDevices = env.getScreenDevices(); + int topLeftX; + int topLeftY; + int screenX; + int screenY; + int windowPosX; + int windowPosY; + + if (screen < allDevices.length && screen > -1) { + topLeftX = allDevices[screen].getDefaultConfiguration().getBounds().x; + topLeftY = allDevices[screen].getDefaultConfiguration().getBounds().y; + + screenX = allDevices[screen].getDefaultConfiguration().getBounds().width; + screenY = allDevices[screen].getDefaultConfiguration().getBounds().height; + } else { + topLeftX = allDevices[0].getDefaultConfiguration().getBounds().x; + topLeftY = allDevices[0].getDefaultConfiguration().getBounds().y; + + screenX = allDevices[0].getDefaultConfiguration().getBounds().width; + screenY = allDevices[0].getDefaultConfiguration().getBounds().height; + } + + windowPosX = ((screenX - window.getWidth()) / 2) + topLeftX; + windowPosY = ((screenY - window.getHeight()) / 2) + topLeftY; + + window.setLocation(windowPosX, windowPosY); + } + + private void populateAvailablePids() { + pid.removeAll(); + for (VirtualMachineDescriptor desc : VirtualMachine.list()) { + try { + VirtualMachine vm = null; + JMXServiceURL url = new JMXServiceURL( + (vm = VirtualMachine.attach(desc.id())).getAgentProperties() + .getProperty("com.sun.management.jmxremote.localConnectorAddress")); + Set set = JMXConnectorFactory.connect(url, null).getMBeanServerConnection() + .queryMBeans(new ObjectName("org.openecomp.jmx:name=SystemConfig"), null); + if (!set.isEmpty()) { + pid.add(desc.id()); + } + vm.detach(); + } catch (Exception exception) { + //do nothing + } + } + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/pom.xml b/common/onap-common-configuration-management/onap-configuration-management-core/pom.xml new file mode 100644 index 0000000000..70459a63a5 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/pom.xml @@ -0,0 +1,128 @@ + + 4.0.0 + + onap-configuration-management-core + org.onap.sdc.common + onap-configuration-management-core + + + onap-common-configuration-management + org.onap.sdc.common + 1.2.0-SNAPSHOT + .. + + + + + com.fasterxml.jackson.core + jackson-databind + 2.5.4 + + + com.fasterxml.jackson.dataformat + jackson-dataformat-yaml + ${jackson.version} + + + org.apache.commons + commons-configuration2 + 2.1 + + + commons-logging + commons-logging + 1.2 + + + commons-beanutils + commons-beanutils + ${commons.beanutils.version} + + + org.apache.commons + commons-lang3 + 3.3.2 + + + com.github.adejanovski + cassandra-jdbc-wrapper + ${cassandra.version} + + + org.apache.commons + commons-dbcp2 + 2.0 + + + org.apache.commons + commons-pool2 + 2.4.2 + + + commons-io + commons-io + ${commons.io.version} + + + net.sf.corn + corn-cps + 1.1.7 + + + com.sun + tools + + + + + com.virtlink.commons + commons-configuration2-jackson + 0.6.1 + + + org.apache.logging.log4j + log4j-core + 2.7 + + + org.slf4j + slf4j-api + ${slf4j.version} + + + org.slf4j + slf4j-log4j12 + ${slf4j.version} + + + org.slf4j + slf4j-ext + ${slf4j.version} + + + org.onap.sdc.common + onap-configuration-management-api + 1.2.0-SNAPSHOT + + + javax.servlet + javax.servlet-api + 3.1.0 + true + + + com.fasterxml.jackson.core + jackson-annotations + 2.8.1 + + + junit + junit + test + ${junit.version} + + + + + diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/ConfigurationUtils.java b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/ConfigurationUtils.java new file mode 100644 index 0000000000..7f22461cda --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/ConfigurationUtils.java @@ -0,0 +1,1144 @@ +package org.onap.config; + +import com.google.common.collect.ImmutableMap; +import com.virtlink.commons.configuration2.jackson.JsonConfiguration; +import net.sf.corn.cps.CPScanner; +import net.sf.corn.cps.ResourceFilter; +import org.apache.commons.configuration2.CompositeConfiguration; +import org.apache.commons.configuration2.Configuration; +import org.apache.commons.configuration2.FileBasedConfiguration; +import org.apache.commons.configuration2.PropertiesConfiguration; +import org.apache.commons.configuration2.XMLConfiguration; +import org.apache.commons.configuration2.builder.BasicConfigurationBuilder; +import org.apache.commons.configuration2.builder.ReloadingFileBasedConfigurationBuilder; +import org.apache.commons.configuration2.builder.fluent.Configurations; +import org.apache.commons.configuration2.builder.fluent.Parameters; +import org.apache.commons.configuration2.convert.DefaultListDelimiterHandler; +import org.apache.commons.configuration2.ex.ConfigurationException; +import org.apache.commons.io.IOUtils; +import org.onap.config.api.Config; +import org.onap.config.api.ConfigurationManager; +import org.onap.config.impl.ConfigurationRepository; +import org.onap.config.impl.YamlConfiguration; +import org.onap.config.impl.AgglomerateConfiguration; +import org.onap.config.impl.ConfigurationDataSource; +import org.onap.config.type.ConfigurationMode; +import org.onap.config.type.ConfigurationType; + +import javax.sql.DataSource; +import java.io.File; +import java.lang.reflect.Field; +import java.lang.reflect.ParameterizedType; +import java.lang.reflect.Type; +import java.net.URL; +import java.nio.file.Files; +import java.nio.file.Path; +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.Statement; +import java.util.ArrayDeque; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Deque; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Queue; +import java.util.Set; +import java.util.SortedSet; +import java.util.TreeSet; +import java.util.concurrent.BlockingQueue; +import java.util.concurrent.ConcurrentLinkedQueue; +import java.util.concurrent.Executors; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.LinkedTransferQueue; +import java.util.concurrent.ThreadFactory; +import java.util.concurrent.TransferQueue; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +import java.util.stream.Collectors; +import java.util.stream.Stream; + +import static com.google.common.collect.ImmutableMap.builder; +import static org.onap.config.api.Hint.EXTERNAL_LOOKUP; +import static org.onap.config.api.Hint.LATEST_LOOKUP; +import static org.onap.config.api.Hint.NODE_SPECIFIC; + +/** + * The type Configuration utils. + */ +public class ConfigurationUtils { + + private ConfigurationUtils() { + } + + private static ImmutableMap arrayClassMap; + + static { + ImmutableMap.Builder builder = builder(); + builder.put(Byte.class,Byte[].class).put(Short.class, Short[].class) + .put(Integer.class,Integer[].class).put(Long.class,Long[].class) + .put(Float.class,Float[].class).put(Double.class,Double[].class) + .put(Boolean.class,Boolean[].class).put(Character.class,Character[].class) + .put(String.class,String[].class); + arrayClassMap = builder.build(); + } + + /** + * Gets thread factory. + * + * @return the thread factory + */ + public static ThreadFactory getThreadFactory() { + return (r1) -> { + Thread thread = Executors.privilegedThreadFactory().newThread(r1); + thread.setDaemon(true); + return thread; + }; + } + + /** + * Gets all files. + * + * @param file the file + * @param recursive the recursive + * @param onlyDirectory the only directory + * @return the all files + */ + public static Collection getAllFiles(File file, boolean recursive, boolean onlyDirectory) { + ArrayList collection = new ArrayList<>(); + if (file.isDirectory() && file.exists()) { + File[] files = file.listFiles(); + for (File innerFile : files) { + if (innerFile.isFile() && !onlyDirectory) { + collection.add(innerFile); + } else if (innerFile.isDirectory()) { + collection.add(innerFile); + if (recursive) { + collection.addAll(getAllFiles(innerFile, recursive, onlyDirectory)); + } + } + } + } + return collection; + } + + /** + * Gets comma saperated list. + * + * @param list the list + * @return the comma separated list + */ + public static String getCommaSeparatedList(List list) { + return ((Stream) list.stream().filter(o -> o != null && !o.toString().trim().isEmpty()).map(o -> o.toString().trim())).collect(Collectors.joining(",")); + } + + /** + * Gets comma saperated list. + * + * @param list the list + * @return the comma saperated list + */ + public static String getCommaSeparatedList(String[] list) { + return getCommaSeparatedList(list == null ? Arrays.asList() : Arrays.asList(list)); + } + + /** + * Gets config type. + * + * @param url the url + * @return the config type + */ + public static ConfigurationType getConfigType(URL url) { + return Enum.valueOf(ConfigurationType.class, + url.getFile().substring(url.getFile().lastIndexOf('.') + 1).toUpperCase()); + } + + /** + * Gets config type. + * + * @param file the file + * @return the config type + */ + public static ConfigurationType getConfigType(File file) { + return Enum.valueOf(ConfigurationType.class, + file.getAbsolutePath().substring(file.getAbsolutePath().lastIndexOf('.') + 1) + .toUpperCase()); + } + + /** + * Is config boolean. + * + * @param url the url + * @return the boolean + */ + public static boolean isConfig(URL url) { + return isConfig(url.getFile()); + } + + /** + * Is config boolean. + * + * @param file the file + * @return the boolean + */ + public static boolean isConfig(File file) { + return file != null && file.exists() && isConfig(file.getName()); + } + + /** + * Is config boolean. + * + * @param file the file + * @return the boolean + */ + public static boolean isConfig(String file) { + file = file.toUpperCase().substring(file.lastIndexOf('!') + 1); + file = file.substring(file.lastIndexOf('/') + 1); + return file.matches( + "CONFIG(-\\w*){0,1}(-" + "(" + ConfigurationMode.OVERRIDE + "|" + ConfigurationMode.MERGE + + "|" + ConfigurationMode.UNION + ")){0,1}" + "\\.(" + + ConfigurationType.PROPERTIES.name() + "|" + ConfigurationType.XML.name() + "|" + + ConfigurationType.JSON.name() + "|" + ConfigurationType.YAML.name() + ")$") + || file.matches("CONFIG(.)*\\.(" + ConfigurationType.PROPERTIES.name() + "|" + + ConfigurationType.XML.name() + "|" + ConfigurationType.JSON.name() + "|" + + ConfigurationType.YAML.name() + ")$"); + } + + /** + * Gets namespace. + * + * @param url the url + * @return the namespace + */ + public static String getNamespace(URL url) { + String namespace = getNamespace(getConfiguration(url)); + if (namespace != null) { + return namespace.toUpperCase(); + } + return getNamespace(url.getFile().toUpperCase()); + } + + /** + * Gets namespace. + * + * @param file the file + * @return the namespace + */ + public static String getNamespace(File file) { + String namespace = getNamespace(getConfiguration(file)); + if (namespace != null) { + return namespace.toUpperCase(); + } + return getNamespace(file.getName().toUpperCase()); + } + + private static String getNamespace(Configuration config) { + return config.getString(Constants.NAMESPACE_KEY) == null ? null + : config.getString(Constants.NAMESPACE_KEY).toUpperCase(); + } + + /** + * Gets namespace. + * + * @param file the file + * @return the namespace + */ + public static String getNamespace(String file) { + file = file.toUpperCase().substring(file.lastIndexOf('!') + 1); + file = file.substring(file.lastIndexOf('/') + 1); + Pattern pattern = Pattern.compile( + "CONFIG(-\\w*){0,1}(-" + "(" + ConfigurationMode.OVERRIDE + "|" + ConfigurationMode.MERGE + + "|" + ConfigurationMode.UNION + ")){0,1}" + "\\.(" + + ConfigurationType.PROPERTIES.name() + "|" + ConfigurationType.XML.name() + "|" + + ConfigurationType.JSON.name() + "|" + ConfigurationType.YAML.name() + ")$"); + Matcher matcher = pattern.matcher(file); + boolean b1 = matcher.matches(); + if (b1) { + if (matcher.group(1) != null) { + String moduleName = matcher.group(1).substring(1); + return moduleName.equalsIgnoreCase(ConfigurationMode.OVERRIDE.name()) + || moduleName.equalsIgnoreCase(ConfigurationMode.UNION.name()) + || moduleName.equalsIgnoreCase(ConfigurationMode.MERGE.name()) + ? Constants.DEFAULT_NAMESPACE : moduleName; + } else { + return Constants.DEFAULT_NAMESPACE; + } + } else if (isConfig(file)) { + return Constants.DEFAULT_NAMESPACE; + } + + return null; + } + + /** + * Gets merge strategy. + * + * @param url the url + * @return the merge strategy + */ + public static ConfigurationMode getMergeStrategy(URL url) { + String configMode = getMergeStrategy(getConfiguration(url)); + if (configMode != null) { + try { + return Enum.valueOf(ConfigurationMode.class, configMode); + } catch (Exception exception) { + //do nothing + } + } + return getMergeStrategy(url.getFile().toUpperCase()); + } + + private static String getMergeStrategy(Configuration config) { + return config.getString(Constants.MODE_KEY) == null ? null + : config.getString(Constants.MODE_KEY).toUpperCase(); + } + + /** + * Gets merge strategy. + * + * @param file the file + * @return the merge strategy + */ + public static ConfigurationMode getMergeStrategy(File file) { + String configMode = getMergeStrategy(getConfiguration(file)); + if (configMode != null) { + try { + return Enum.valueOf(ConfigurationMode.class, configMode); + } catch (Exception exception) { + //do nothing + } + } + return getMergeStrategy(file.getName().toUpperCase()); + } + + /** + * Gets merge strategy. + * + * @param file the file + * @return the merge strategy + */ + public static ConfigurationMode getMergeStrategy(String file) { + file = file.toUpperCase().substring(file.lastIndexOf('!') + 1); + file = file.substring(file.lastIndexOf('/') + 1); + Pattern pattern = Pattern.compile( + "CONFIG(-\\w*){0,1}(-" + "(" + ConfigurationMode.OVERRIDE + "|" + ConfigurationMode.MERGE + + "|" + ConfigurationMode.UNION + ")){0,1}" + "\\.(" + + ConfigurationType.PROPERTIES.name() + "|" + ConfigurationType.XML.name() + "|" + + ConfigurationType.JSON.name() + "|" + ConfigurationType.YAML.name() + ")$"); + Matcher matcher = pattern.matcher(file); + boolean b1 = matcher.matches(); + if (b1) { + for (int i = 1; i <= matcher.groupCount(); i++) { + String modeName = matcher.group(i); + if (modeName != null) { + modeName = modeName.substring(1); + } + try { + return Enum.valueOf(ConfigurationMode.class, modeName); + } catch (Exception exception) { + //do nothing + } + } + } + + return null; + } + + /** + * Gets configuration. + * + * @param url the url + * @return the configuration + */ + public static FileBasedConfiguration getConfiguration(URL url) { + FileBasedConfiguration builder = null; + try { + ConfigurationType configType = ConfigurationUtils.getConfigType(url); + switch (configType) { + case PROPERTIES: + builder = new Configurations().fileBased(PropertiesConfiguration.class, url); + break; + case XML: + builder = new Configurations().fileBased(XMLConfiguration.class, url); + break; + case JSON: + builder = new Configurations().fileBased(JsonConfiguration.class, url); + break; + case YAML: + builder = new Configurations().fileBased(YamlConfiguration.class, url); + break; + default: + throw new ConfigurationException("Configuration type not supported:"+ configType); + } + } catch (ConfigurationException exception) { + exception.printStackTrace(); + } + return builder; + } + + /** + * Gets configuration. + * + * @param file the file + * @return the configuration + */ + public static FileBasedConfiguration getConfiguration(File file) { + FileBasedConfiguration builder = null; + try { + ConfigurationType configType = ConfigurationUtils.getConfigType(file); + switch (configType) { + case PROPERTIES: + builder = new Configurations().fileBased(PropertiesConfiguration.class, file); + break; + case XML: + builder = new Configurations().fileBased(XMLConfiguration.class, file); + break; + case JSON: + builder = new Configurations().fileBased(JsonConfiguration.class, file); + break; + case YAML: + builder = new Configurations().fileBased(YamlConfiguration.class, file); + break; + default: + throw new ConfigurationException("Configuration type not supported:"+ configType); + } + } catch (ConfigurationException exception) { + exception.printStackTrace(); + } + return builder; + } + + /** + * Gets collection generic type. + * + * @param field the field + * @return the collection generic type + */ + public static Class getCollectionGenericType(Field field) { + Type type = field.getGenericType(); + + if (type instanceof ParameterizedType) { + + ParameterizedType paramType = (ParameterizedType) type; + Type[] arr = paramType.getActualTypeArguments(); + + for (Type tp : arr) { + Class clzz = (Class) tp; + if (isWrapperClass(clzz)) { + return clzz; + } else { + throw new RuntimeException("Collection of type " + clzz.getName() + " not supported."); + } + } + } + return String[].class; + } + + + + /** + * Gets array class. + * + * @param clazz the clazz + * @return the array class + */ + public static Class getArrayClass(Class clazz) { + return arrayClassMap.getOrDefault(clazz, null); + } + + /** + * Gets all class path resources. + * + * @return the all class path resources + */ + public static List getAllClassPathResources() { + return CPScanner.scanResources(new ResourceFilter()); + } + + /** + * Execute ddlsql boolean. + * + * @param sql the sql + * @return the boolean + * @throws Exception the exception + */ + public static boolean executeDdlSql(String sql) throws Exception { + DataSource datasource = ConfigurationDataSource.lookup(); + if (datasource == null) { + System.err.println("DB configuration not found. Configuration management will be using " + + "in-memory persistence."); + return false; + } + try (Connection con = datasource.getConnection(); Statement stmt = con.createStatement()) { + stmt.executeQuery(sql); + } catch (Exception exception) { + System.err.println("Datasource initialization error. Configuration management will be using in-memory persistence."); + return false; + } + return true; + } + + /** + * Gets configuration builder. + * + * @param url the url + * @return the configuration builder + */ + public static BasicConfigurationBuilder getConfigurationBuilder(URL url) { + ReloadingFileBasedConfigurationBuilder builder = null; + ConfigurationType configType = ConfigurationUtils.getConfigType(url); + switch (configType) { + case PROPERTIES: + builder = new ReloadingFileBasedConfigurationBuilder( + PropertiesConfiguration.class); + break; + case XML: + builder = new ReloadingFileBasedConfigurationBuilder( + XMLConfiguration.class); + break; + case JSON: + builder = new ReloadingFileBasedConfigurationBuilder( + JsonConfiguration.class); + break; + case YAML: + builder = new ReloadingFileBasedConfigurationBuilder( + YamlConfiguration.class); + break; + default: + throw new IllegalArgumentException("Configuration type not supported:"+ configType); + } + builder.configure(new Parameters().fileBased().setURL(url) + .setListDelimiterHandler(new DefaultListDelimiterHandler(','))); + return builder; + } + + /** + * Gets configuration builder. + * + * @param file the file + * @param autoSave the auto save + * @return the configuration builder + */ + public static BasicConfigurationBuilder getConfigurationBuilder(File file, + boolean autoSave) { + ReloadingFileBasedConfigurationBuilder builder = null; + ConfigurationType configType = ConfigurationUtils.getConfigType(file); + switch (configType) { + case PROPERTIES: + builder = new ReloadingFileBasedConfigurationBuilder( + PropertiesConfiguration.class); + break; + case XML: + builder = new ReloadingFileBasedConfigurationBuilder( + XMLConfiguration.class); + break; + case JSON: + builder = new ReloadingFileBasedConfigurationBuilder( + JsonConfiguration.class); + break; + case YAML: + builder = new ReloadingFileBasedConfigurationBuilder( + YamlConfiguration.class); + break; + default: + throw new IllegalArgumentException("Configuration type not supported:"+ configType); + } + builder.configure(new Parameters().fileBased().setFile(file) + .setListDelimiterHandler(new DefaultListDelimiterHandler(','))); + builder.setAutoSave(autoSave); + return builder; + } + + + /** + * Execute select sql collection. + * + * @param sql the sql + * @param params the params + * @return the collection + * @throws Exception the exception + */ + public static Collection executeSelectSql(String sql, String[] params) throws Exception { + Collection coll = new ArrayList<>(); + DataSource datasource = ConfigurationDataSource.lookup(); + try (Connection con = datasource.getConnection(); + PreparedStatement stmt = con.prepareStatement(sql)) { + if (params != null) { + for (int i = 0; i < params.length; i++) { + stmt.setString(i + 1, params[i]); + } + } + + try (ResultSet rs = stmt.executeQuery()) { + + while (rs.next()) { + coll.add(rs.getString(1)); + } + } + + } catch (Exception exception) { + //exception.printStackTrace(); + return null; + } + + return coll; + } + + /** + * Execute insert sql boolean. + * + * @param sql the sql + * @param params the params + * @return the boolean + * @throws Exception the exception + */ + public static boolean executeInsertSql(String sql, Object[] params) throws Exception { + Collection coll = new ArrayList<>(); + DataSource datasource = ConfigurationDataSource.lookup(); + try (Connection con = datasource.getConnection(); + PreparedStatement stmt = con.prepareStatement(sql)) { + if (params != null) { + int counter = 0; + for (Object obj : params) { + if (obj == null) { + obj = ""; + } + switch (obj.getClass().getName()) { + case "java.lang.String": + stmt.setString(++counter, obj.toString()); + break; + case "java.lang.Integer": + stmt.setInt(++counter, ((Integer) obj).intValue()); + break; + case "java.lang.Long": + stmt.setLong(++counter, ((Long) obj).longValue()); + break; + default: + stmt.setString(++counter, obj.toString()); + break; + } + } + } + stmt.executeUpdate(); + return true; + } catch (Exception exception) { + exception.printStackTrace(); + } + return false; + } + + /** + * Read t. + * + * @param the type parameter + * @param config the config + * @param clazz the clazz + * @param keyPrefix the key prefix + * @return the t + * @throws Exception the exception + */ + public static T read(Configuration config, Class clazz, String keyPrefix) + throws Exception { + Config confAnnot = + clazz.getAnnotation(Config.class); + if (confAnnot != null) { + keyPrefix += (confAnnot.key() + "."); + } + T objToReturn = clazz.newInstance(); + for (Field field : clazz.getDeclaredFields()) { + Config fieldConfAnnot = + field.getAnnotation(Config.class); + if (fieldConfAnnot != null) { + field.setAccessible(true); + field.set(objToReturn, config.getProperty(keyPrefix + fieldConfAnnot.key())); + } else if (field.getType().getAnnotation(Config.class) != null) { + field.set(objToReturn, read(config, field.getType(), keyPrefix)); + } + } + return objToReturn; + } + + /** + * Gets db configuration builder. + * + * @param configName the config name + * @return the db configuration builder + * @throws Exception the exception + */ + public static BasicConfigurationBuilder getDbConfigurationBuilder( + String configName) throws Exception { + Configuration dbConfig = ConfigurationRepository.lookup() + .getConfigurationFor(Constants.DEFAULT_TENANT, Constants.DB_NAMESPACE); + BasicConfigurationBuilder builder = + new BasicConfigurationBuilder(AgglomerateConfiguration.class); + builder.configure( + new Parameters().database() + .setDataSource(ConfigurationDataSource.lookup()) + .setTable(dbConfig.getString("config.Table")) + .setKeyColumn(dbConfig.getString("configKey")) + .setValueColumn(dbConfig.getString("configValue")) + .setConfigurationNameColumn(dbConfig.getString("configNameColumn")) + .setConfigurationName(configName) + .setAutoCommit(true) + ); + return builder; + } + + /** + * Gets property. + * + * @param config the config + * @param key the key + * @param processingHints the processing hints + * @return the property + */ + public static Object getProperty(Configuration config, String key, int processingHints) { + if (!isDirectLookup(processingHints)) { + if (config instanceof AgglomerateConfiguration) { + return ((AgglomerateConfiguration) config).getPropertyValue(key); + } else if (config instanceof CompositeConfiguration) { + CompositeConfiguration conf = (CompositeConfiguration) config; + for (int i = 0; i < conf.getNumberOfConfigurations(); i++) { + if (conf.getConfiguration(i) instanceof AgglomerateConfiguration) { + return ((AgglomerateConfiguration) conf.getConfiguration(i)).getPropertyValue(key); + } else if (isNodeSpecific(processingHints)) { + Object obj = conf.getConfiguration(i).getProperty(key); + if (obj != null) { + return obj; + } + } + } + } + } + return config.getProperty(key); + } + + /** + * Gets primitive array. + * + * @param collection the collection + * @param clazz the clazz + * @return the primitive array + */ + public static Object getPrimitiveArray(Collection collection, Class clazz) { + if (clazz == int.class) { + int[] array = new int[collection.size()]; + Object[] objArray = collection.toArray(); + for (int i = 0; i < collection.size(); i++) { + array[i] = (int) objArray[i]; + } + return array; + } + if (clazz == byte.class) { + byte[] array = new byte[collection.size()]; + Object[] objArray = collection.toArray(); + for (int i = 0; i < collection.size(); i++) { + array[i] = (byte) objArray[i]; + } + return array; + } + if (clazz == short.class) { + short[] array = new short[collection.size()]; + Object[] objArray = collection.toArray(); + for (int i = 0; i < collection.size(); i++) { + array[i] = (short) objArray[i]; + } + return array; + } + if (clazz == long.class) { + long[] array = new long[collection.size()]; + Object[] objArray = collection.toArray(); + for (int i = 0; i < collection.size(); i++) { + array[i] = (long) objArray[i]; + } + return array; + } + if (clazz == float.class) { + float[] array = new float[collection.size()]; + Object[] objArray = collection.toArray(); + for (int i = 0; i < collection.size(); i++) { + array[i] = (float) objArray[i]; + } + return array; + } + if (clazz == double.class) { + double[] array = new double[collection.size()]; + Object[] objArray = collection.toArray(); + for (int i = 0; i < collection.size(); i++) { + array[i] = (double) objArray[i]; + } + return array; + } + if (clazz == boolean.class) { + boolean[] array = new boolean[collection.size()]; + Object[] objArray = collection.toArray(); + for (int i = 0; i < collection.size(); i++) { + array[i] = (boolean) objArray[i]; + } + return array; + } + Object obj = null; + return obj; + } + + /** + * Is wrapper class boolean. + * + * @param clazz the clazz + * @return the boolean + */ + public static boolean isWrapperClass(Class clazz) { + return clazz == String.class || clazz == Boolean.class || clazz == Character.class + || Number.class.isAssignableFrom(clazz); + } + + /** + * Gets collection string. + * + * @param input the input + * @return the collection string + */ + public static String getCollectionString(String input) { + Pattern pattern = Pattern.compile("^\\[(.*)\\]$"); + Matcher matcher = pattern.matcher(input); + if (matcher.matches()) { + input = matcher.group(1); + } + return input; + } + + /** + * Is collection boolean. + * + * @param input the input + * @return the boolean + */ + public static boolean isCollection(String input) { + Pattern pattern = Pattern.compile("^\\[(.*)\\]$"); + Matcher matcher = pattern.matcher(input); + return matcher.matches(); + } + + /** + * Process variables if present string. + * + * @param tenant the tenant + * @param namespace the namespace + * @param data the data + * @return the string + */ + public static String processVariablesIfPresent(String tenant, String namespace, String data) { + Pattern pattern = Pattern.compile("^.*\\$\\{(.*)\\}.*"); + Matcher matcher = pattern.matcher(data); + if (matcher.matches()) { + String key = matcher.group(1); + if (key.toUpperCase().startsWith("ENV:")) { + String envValue = System.getenv(key.substring(4)); + return processVariablesIfPresent(tenant, namespace, data.replaceAll("\\$\\{" + key + "\\}", + envValue == null ? "" : envValue.replace("\\", "\\\\"))); + } else if (key.toUpperCase().startsWith("SYS:")) { + String sysValue = System.getProperty(key.substring(4)); + return processVariablesIfPresent(tenant, namespace, data.replaceAll("\\$\\{" + key + "\\}", + sysValue == null ? "" : sysValue.replace("\\", "\\\\"))); + } else { + String propertyValue = ConfigurationUtils.getCollectionString( + ConfigurationManager.lookup().getAsStringValues(tenant, namespace, key).toString()); + return processVariablesIfPresent(tenant, namespace, data.replaceAll("\\$\\{" + key + "\\}", + propertyValue == null ? "" : propertyValue.replace("\\", "\\\\"))); + } + } else { + return data; + } + } + + /** + * Gets file contents. + * + * @param path the path + * @return the file contents + */ + public static String getFileContents(String path) { + try { + if (path != null) { + return IOUtils.toString(new URL(path)); + } + } catch (Exception exception) { + exception.printStackTrace(); + } + return null; + } + + /** + * Gets file contents. + * + * @param path the path + * @return the file contents + */ + public static String getFileContents(Path path) { + try { + if (path != null) { + return new String(Files.readAllBytes(path)); + } + } catch (Exception exception) { + exception.printStackTrace(); + } + return null; + } + + /** + * Gets concrete collection. + * + * @param clazz the clazz + * @return the concrete collection + */ + public static Collection getConcreteCollection(Class clazz) { + switch (clazz.getName()) { + case "java.util.Collection": + case "java.util.List": + return new ArrayList<>(); + case "java.util.Set": + return new HashSet<>(); + case "java.util.SortedSet": + return new TreeSet<>(); + case "java.util.Queue": + return new ConcurrentLinkedQueue<>(); + case "java.util.Deque": + return new ArrayDeque<>(); + case "java.util.concurrent.TransferQueue": + return new LinkedTransferQueue<>(); + case "java.util.concurrent.BlockingQueue": + return new LinkedBlockingQueue<>(); + default: + return null; + } + } + + /** + * Gets default for. + * + * @param clazz the clazz + * @return the default for + */ + public static Object getDefaultFor(Class clazz) { + if (byte.class == clazz) { + return new Byte("0"); + } else if (short.class == clazz) { + return new Short("0"); + } else if (int.class == clazz) { + return new Integer("0"); + } else if (float.class == clazz) { + return new Float("0"); + } else if (long.class == clazz) { + return new Long("0"); + } else if (double.class == clazz) { + return new Double("0"); + } else if (boolean.class == clazz) { + return Boolean.FALSE; + } + return new Character((char) 0); + } + + /** + * Gets compatible collection for abstract def. + * + * @param clazz the clazz + * @return the compatible collection for abstract def + */ + public static Collection getCompatibleCollectionForAbstractDef(Class clazz) { + if (BlockingQueue.class.isAssignableFrom(clazz)) { + return getConcreteCollection(BlockingQueue.class); + } + if (TransferQueue.class.isAssignableFrom(clazz)) { + return getConcreteCollection(TransferQueue.class); + } + if (Deque.class.isAssignableFrom(clazz)) { + return getConcreteCollection(Deque.class); + } + if (Queue.class.isAssignableFrom(clazz)) { + return getConcreteCollection(Queue.class); + } + if (SortedSet.class.isAssignableFrom(clazz)) { + return getConcreteCollection(SortedSet.class); + } + if (Set.class.isAssignableFrom(clazz)) { + return getConcreteCollection(Set.class); + } + if (List.class.isAssignableFrom(clazz)) { + return getConcreteCollection(List.class); + } + return null; + } + + /** + * Gets configuration repository key. + * + * @param array the array + * @return the configuration repository key + */ + public static String getConfigurationRepositoryKey(String[] array) { + Deque stack = new ArrayDeque<>(); + stack.push(Constants.DEFAULT_TENANT); + for (String element : array) { + stack.push(element); + } + String toReturn = stack.pop(); + return stack.pop() + Constants.KEY_ELEMENTS_DELEMETER + toReturn; + } + + /** + * Gets configuration repository key. + * + * @param file the file + * @return the configuration repository key + */ + public static String getConfigurationRepositoryKey(File file) { + return getConfigurationRepositoryKey( + ConfigurationUtils.getNamespace(file).split(Constants.TENANT_NAMESPACE_SAPERATOR)); + } + + /** + * Gets configuration repository key. + * + * @param url the url + * @return the configuration repository key + */ + public static String getConfigurationRepositoryKey(URL url) { + return getConfigurationRepositoryKey( + ConfigurationUtils.getNamespace(url).split(Constants.TENANT_NAMESPACE_SAPERATOR)); + } + + /** + * To map linked hash map. + * + * @param config the config + * @return the linked hash map + */ + public static LinkedHashMap toMap(Configuration config) { + Iterator iterator = config.getKeys(); + LinkedHashMap map = new LinkedHashMap<>(); + while (iterator.hasNext()) { + String key = iterator.next(); + if (!(key.equals(Constants.MODE_KEY) || key.equals(Constants.NAMESPACE_KEY) + || key.equals(Constants.LOAD_ORDER_KEY))) { + map.put(key, config.getProperty(key).toString()); + } + } + + return map; + } + + /** + * Diff map. + * + * @param orig the orig + * @param latest the latest + * @return the map + */ + public static Map diff(LinkedHashMap orig, LinkedHashMap latest) { + orig = new LinkedHashMap<>(orig); + latest = new LinkedHashMap<>(latest); + List set = new ArrayList(orig.keySet()); + for (String key : set) { + if (latest.remove(key, orig.get(key))) { + orig.remove(key); + } + } + Set keys = latest.keySet(); + for (String key : keys) { + orig.remove(key); + } + set = new ArrayList(orig.keySet()); + for (String key : set) { + latest.put(key, ""); + } + return new HashMap<>(latest); + } + + /** + * Is array boolean. + * + * @param tenant the tenant + * @param namespace the namespace + * @param key the key + * @param processingHints the processing hints + * @return the boolean + * @throws Exception the exception + */ + public static boolean isArray(String tenant, String namespace, String key, int processingHints) + throws Exception { + Object obj = ConfigurationUtils + .getProperty(ConfigurationRepository.lookup().getConfigurationFor(tenant, namespace), key, + processingHints); + return (obj == null) ? false : ConfigurationUtils.isCollection(obj.toString()); + } + + /** + * Is direct lookup boolean. + * + * @param hints the hints + * @return the boolean + */ + public static boolean isDirectLookup(int hints) { + return (hints & LATEST_LOOKUP.value()) == LATEST_LOOKUP.value(); + } + + /** + * Is external lookup boolean. + * + * @param hints the hints + * @return the boolean + */ + public static boolean isExternalLookup(int hints) { + return (hints & EXTERNAL_LOOKUP.value()) == EXTERNAL_LOOKUP.value(); + } + + /** + * Is node specific boolean. + * + * @param hints the hints + * @return the boolean + */ + public static boolean isNodeSpecific(int hints) { + return (hints & NODE_SPECIFIC.value()) == NODE_SPECIFIC.value(); + } + + public static boolean isZeroLengthArray(Class clazz, Object obj) { + if (clazz.isArray() && clazz.getComponentType().isPrimitive()) { + if (clazz.getComponentType() == int.class) { + return ((int[]) obj).length == 0; + } else if (clazz.getComponentType() == byte.class) { + return ((byte[]) obj).length == 0; + } else if (clazz.getComponentType() == short.class) { + return ((short[]) obj).length == 0; + } else if (clazz.getComponentType() == float.class) { + return ((float[]) obj).length == 0; + } else if (clazz.getComponentType() == boolean.class) { + return ((boolean[]) obj).length == 0; + } else if (clazz.getComponentType() == double.class) { + return ((double[]) obj).length == 0; + } else if (clazz.getComponentType() == long.class) { + return ((long[]) obj).length == 0; + } else { + return ((Object[]) obj).length == 0; + } + } + + return false; + } + + /** + * Checks if value is blank + * + * @param value + * @return + */ + public static boolean isBlank(String value) { + return value == null || value.trim().length() == 0; + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/Constants.java b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/Constants.java new file mode 100644 index 0000000000..a16607cbc0 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/Constants.java @@ -0,0 +1,14 @@ +package org.onap.config; + +public class Constants { + + public static final String DEFAULT_TENANT = "GLOBAL"; + public static final String DEFAULT_NAMESPACE = "COMMON"; + public static final String DB_NAMESPACE = "SYSTEM"; + public static final String KEY_ELEMENTS_DELEMETER = "-"; + public static final String TENANT_NAMESPACE_SAPERATOR = ":"; + public static final String NAMESPACE_KEY = "_config.namespace"; + public static final String MODE_KEY = "_config.mergeStrategy"; + public static final String MBEAN_NAME = "org.openecomp.jmx:name=SystemConfig"; + public final static String LOAD_ORDER_KEY="_config.loadOrder"; +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/NonConfigResource.java b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/NonConfigResource.java new file mode 100644 index 0000000000..830cdfef5a --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/NonConfigResource.java @@ -0,0 +1,95 @@ +package org.onap.config; + +import java.io.File; +import java.net.URL; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.Collection; +import java.util.HashSet; +import java.util.Set; +import java.util.function.Predicate; + +/** + * The type Non config resource. + */ +public class NonConfigResource { + + private static Set urls = new HashSet<>(); + private static Set files = new HashSet<>(); + + /** + * Add. + * + * @param url the url + */ + public static void add(URL url) { + urls.add(url); + } + + /** + * Add. + * + * @param file the file + */ + public static void add(File file) { + files.add(file); + } + + /** + * Locate path. + * + * @param resource the resource + * @return the path + */ + public static Path locate(String resource) { + try { + if (resource != null) { + File file = new File(resource); + if (file.exists()) { + return Paths.get(resource); + } + for (File availableFile : files) { + if (availableFile.getAbsolutePath().endsWith(resource) && availableFile.exists()) { + return Paths.get(availableFile.getAbsolutePath()); + } + } + if (System.getProperty("node.config.location") != null) { + Path path = locate(new File(System.getProperty("node.config.location")), resource); + if (path != null) { + return path; + } + } + if (System.getProperty("config.location") != null) { + Path path = locate(new File(System.getProperty("config.location")), resource); + if (path != null) { + return path; + } + } + for (URL url : urls) { + if (url.getFile().endsWith(resource)) { + return Paths.get(url.toURI()); + } + } + } + } catch (Exception exception) { + exception.printStackTrace(); + } + return null; + } + + private static Path locate(File root, String resource) { + if (root.exists()) { + Collection filesystemResources = ConfigurationUtils.getAllFiles(root, true, false); + Predicate f1 = ConfigurationUtils::isConfig; + for (File file : filesystemResources) { + if (!f1.test(file)) { + add(file); + if (file.getAbsolutePath().endsWith(resource)) { + return Paths.get(file.getAbsolutePath()); + } + } + } + } + return null; + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/AgglomerateConfiguration.java b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/AgglomerateConfiguration.java new file mode 100644 index 0000000000..0934608c93 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/AgglomerateConfiguration.java @@ -0,0 +1,33 @@ +package org.onap.config.impl; + +import org.apache.commons.configuration2.DatabaseConfiguration; + +import java.util.Collections; +import java.util.Map; +import java.util.WeakHashMap; + +/** + * The type Agglomerate configuration. + */ +public class AgglomerateConfiguration extends DatabaseConfiguration { + + private final Map store = + Collections.synchronizedMap(new WeakHashMap()); + + /** + * Gets property value. + * + * @param key the key + * @return the property value + */ + public Object getPropertyValue(String key) { + Object objToReturn; + objToReturn = store.get(key); + if (objToReturn == null && !store.containsKey(key)) { + objToReturn = super.getProperty(key); + store.put(key, objToReturn); + } + return objToReturn; + } + +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/AggregateConfiguration.java b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/AggregateConfiguration.java new file mode 100644 index 0000000000..c8d76d9bd9 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/AggregateConfiguration.java @@ -0,0 +1,172 @@ +package org.onap.config.impl; + +import org.apache.commons.configuration2.CombinedConfiguration; +import org.apache.commons.configuration2.Configuration; +import org.apache.commons.configuration2.tree.MergeCombiner; +import org.apache.commons.configuration2.tree.OverrideCombiner; +import org.apache.commons.configuration2.tree.UnionCombiner; +import static org.onap.config.Constants.LOAD_ORDER_KEY; +import org.onap.config.ConfigurationUtils; +import org.onap.config.type.ConfigurationMode; + +import java.io.File; +import java.net.URL; +import java.util.HashMap; +import java.util.*; + +/** + * The type Aggregate configuration. + */ +public final class AggregateConfiguration { + + private Map rootConfig = new HashMap<>(); + private Map unionConfig = new HashMap<>(); + private Map mergeConfig = new HashMap<>(); + private Map overrideConfig = new LinkedHashMap<>(); + + /** + * Instantiates a new Aggregate configuration. + */ + public AggregateConfiguration() { + try { + Class clazz = Class.forName(Thread.currentThread().getStackTrace()[2].getClassName()); + if (!clazz.getCanonicalName() + .equals(ConfigurationImpl.class.getCanonicalName())) { + throw new RuntimeException("Illegal access."); + } + } catch (ClassNotFoundException cfe) { + throw new RuntimeException("Class not found while loading change notifier"); + } + } + + private void addConfig(String path, ConfigurationMode configMode, Configuration config) { + if (configMode != null) { + switch (configMode) { + case MERGE: + mergeConfig.put(path, config); + break; + case OVERRIDE: + overrideConfig.put(path, config); + break; + case UNION: + unionConfig.put(path, config); + break; + default: + } + } else { + rootConfig.put(path, config); + } + } + + /** + * Add config. + * + * @param file the file + * @throws Exception the exception + */ + public void addConfig(File file) throws Exception { + addConfig(file.getAbsolutePath().toUpperCase(), ConfigurationUtils.getMergeStrategy(file), + ConfigurationUtils.getConfigurationBuilder(file, false).getConfiguration()); + } + + /** + * Add config. + * + * @param url the url + * @throws Exception the exception + */ + public void addConfig(URL url) throws Exception { + addConfig(url.getFile().toUpperCase(), ConfigurationUtils.getMergeStrategy(url), + ConfigurationUtils.getConfigurationBuilder(url).getConfiguration()); + } + + /** + * Remove config. + * + * @param file the file + */ + public void removeConfig(File file) { + String key = file.getAbsolutePath().toUpperCase(); + if (rootConfig.containsKey(key)) { + rootConfig.remove(key); + } else if (mergeConfig.containsKey(key)) { + mergeConfig.remove(key); + } else if (unionConfig.containsKey(key)) { + unionConfig.remove(key); + } else if (overrideConfig.containsKey(key)) { + overrideConfig.remove(key); + } + } + + /** + * Contains config boolean. + * + * @param file the file + * @return the boolean + */ + public boolean containsConfig(File file) { + String key = file.getAbsolutePath().toUpperCase(); + return rootConfig.containsKey(key) || mergeConfig.containsKey(key) + || unionConfig.containsKey(key) || overrideConfig.containsKey(key); + } + + /** + * Gets final configuration. + * + * @return the final configuration + */ + public Configuration getFinalConfiguration() { + CombinedConfiguration ccRoot = new CombinedConfiguration(new MergeCombiner()); + ArrayList tempList = new ArrayList<>(rootConfig.values()); + Collections.sort(tempList, this::sortForMerge); + for (Configuration conf : tempList) { + ccRoot.addConfiguration(conf); + } + CombinedConfiguration ccMergeRoot = new CombinedConfiguration(new MergeCombiner()); + ccMergeRoot.addConfiguration(ccRoot); + tempList = new ArrayList<>(mergeConfig.values()); + Collections.sort(tempList, this::sortForMerge); + for (Configuration conf : tempList) { + ccMergeRoot.addConfiguration(conf); + } + CombinedConfiguration ccUnionRoot = new CombinedConfiguration(new UnionCombiner()); + ccUnionRoot.addConfiguration(ccMergeRoot); + for (Configuration conf : unionConfig.values()) { + ccUnionRoot.addConfiguration(conf); + } + ArrayList tempOverrideConfigs = new ArrayList<>(overrideConfig.values()); + Collections.reverse(tempOverrideConfigs); + Collections.sort(tempOverrideConfigs, this::sortForOverride); + CombinedConfiguration ccOverrideRoot = new CombinedConfiguration(new OverrideCombiner()); + for (Configuration conf : tempOverrideConfigs) { + ccOverrideRoot.addConfiguration(conf); + } + ccOverrideRoot.addConfiguration(ccUnionRoot); + return ccOverrideRoot; + } + + private int sortForOverride(Configuration conf1, Configuration conf2){ + String order1 = conf1.getString(LOAD_ORDER_KEY); + String order2 = conf2.getString(LOAD_ORDER_KEY); + if (ConfigurationUtils.isBlank(order1) || !order1.trim().matches("\\d+")){ + order1 = "0"; + } + if (ConfigurationUtils.isBlank(order2) || !order2.trim().matches("\\d+")){ + order2 = "0"; + } + return Integer.parseInt(order2.trim())-Integer.parseInt(order1.trim()); + } + + private int sortForMerge(Configuration conf1, Configuration conf2){ + String order1 = conf1.getString(LOAD_ORDER_KEY); + String order2 = conf2.getString(LOAD_ORDER_KEY); + if (ConfigurationUtils.isBlank(order1) || !order1.trim().matches("\\d+")){ + order1 = "0"; + } + if (ConfigurationUtils.isBlank(order2) || !order2.trim().matches("\\d+")){ + order2 = "0"; + } + return Integer.parseInt(order1.trim())-Integer.parseInt(order2.trim()); + } + +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/CliConfigurationImpl.java b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/CliConfigurationImpl.java new file mode 100644 index 0000000000..3bdebffb48 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/CliConfigurationImpl.java @@ -0,0 +1,354 @@ +package org.onap.config.impl; + +import static org.onap.config.Constants.DB_NAMESPACE; +import static org.onap.config.Constants.DEFAULT_NAMESPACE; +import static org.onap.config.Constants.DEFAULT_TENANT; +import static org.onap.config.Constants.KEY_ELEMENTS_DELEMETER; +import static org.onap.config.Constants.LOAD_ORDER_KEY; +import static org.onap.config.Constants.MBEAN_NAME; +import static org.onap.config.Constants.MODE_KEY; +import static org.onap.config.Constants.NAMESPACE_KEY; + +import org.apache.commons.configuration2.CombinedConfiguration; +import org.apache.commons.configuration2.CompositeConfiguration; +import org.apache.commons.configuration2.Configuration; +import org.apache.commons.configuration2.FileBasedConfiguration; +import org.apache.commons.configuration2.PropertiesConfiguration; +import org.onap.config.type.ConfigurationQuery; +import org.onap.config.ConfigurationUtils; +import org.onap.config.Constants; +import org.onap.config.api.ConfigurationManager; +import org.onap.config.api.Hint; +import org.onap.config.type.ConfigurationUpdate; + +import java.io.File; +import java.io.PrintWriter; +import java.lang.management.ManagementFactory; +import java.lang.reflect.Method; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.Map; +import java.util.Set; +import javax.management.MBeanServer; +import javax.management.MBeanServerDelegate; +import javax.management.MBeanServerNotification; +import javax.management.Notification; +import javax.management.ObjectName; +import javax.management.StandardMBean; + +/** + * The type Cli configuration. + */ +public final class CliConfigurationImpl extends ConfigurationImpl implements ConfigurationManager { + + /** + * Instantiates a new Cli configuration. + * + * @throws Exception the exception + */ + public CliConfigurationImpl() throws Exception { + MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); + ObjectName name = new ObjectName(MBEAN_NAME); + if (mbs.isRegistered(name)) { + mbs.unregisterMBean(name); + } + mbs.registerMBean(new StandardMBean(this, ConfigurationManager.class), name); + //mbs.registerMBean(getMBean(), name); + mbs.addNotificationListener(MBeanServerDelegate.DELEGATE_NAME, this::handleNotification, null, + null); + //mbs.addNotificationListener(name, this::handleNotification, null, null); + } + + + /** + * Handle notification. + * + * @param notification the notification + * @param handback the handback + */ + public void handleNotification(Notification notification, Object handback) { + if (notification instanceof MBeanServerNotification) { + MBeanServerNotification mbs = (MBeanServerNotification) notification; + if (MBeanServerNotification.UNREGISTRATION_NOTIFICATION.equals(mbs.getType())) { + try { + String mbean = + ConfigurationRepository.lookup().getConfigurationFor(DEFAULT_TENANT, DB_NAMESPACE) + .getString("shutdown.mbean"); + if (mbs.getMBeanName() + .equals(mbean == null ? new ObjectName(MBEAN_NAME) : new ObjectName(mbean))) { + changeNotifier.shutdown(); + ConfigurationDataSource.lookup().close(); + } + } catch (Exception exception) { + //do nothing. + } + } else if (MBeanServerNotification.REGISTRATION_NOTIFICATION.equals(mbs.getType())) { + mbs.getMBeanName(); + } + } + } + + public String getConfigurationValue(Map input) { + return getConfigurationValue((ConfigurationQuery) getInput(input)); + } + + private String getConfigurationValue(ConfigurationQuery queryData) { + try { + if (queryData.isFallback()) { + return ConfigurationUtils.getCommaSeparatedList( + get(queryData.getTenant(), queryData.getNamespace(), queryData.getKey(), String[].class, + queryData.isLatest() ? Hint.LATEST_LOOKUP : Hint.DEFAULT, + queryData.isExternalLookup() ? Hint.EXTERNAL_LOOKUP : Hint.DEFAULT, + queryData.isNodeSpecific() ? Hint.NODE_SPECIFIC : Hint.DEFAULT)); + } else { + String[] list = + getInternal(queryData.getTenant(), queryData.getNamespace(), queryData.getKey(), + String[].class, queryData.isLatest() ? Hint.LATEST_LOOKUP : Hint.DEFAULT, + queryData.isExternalLookup() ? Hint.EXTERNAL_LOOKUP : Hint.DEFAULT, + queryData.isNodeSpecific() ? Hint.NODE_SPECIFIC : Hint.DEFAULT); + return ConfigurationUtils + .getCommaSeparatedList(list == null ? Arrays.asList() : Arrays.asList(list)); + } + } catch (Exception exception) { + exception.printStackTrace(); + } + return null; + } + + public void updateConfigurationValue(Map input) { + updateConfigurationValue((ConfigurationUpdate) getInput(input)); + } + + private void updateConfigurationValue(ConfigurationUpdate updateData) { + + try { + if (!ConfigurationRepository.lookup().isValidTenant(updateData.getTenant())) { + throw new RuntimeException("Invalid tenantId."); + } + if (!ConfigurationRepository.lookup().isValidNamespace(updateData.getNamespace())) { + throw new RuntimeException("Invalid Namespace."); + } + } catch (NullPointerException e1) { + // TODO Auto-generated catch block + e1.printStackTrace(); + } + + try { + boolean keyPresent = + isKeyExists(updateData.getTenant(), updateData.getNamespace(), updateData.getKey()); + if (keyPresent) { + boolean isUpdated = false; + Object[] paramArray = new Object[]{ + updateData.getTenant() + KEY_ELEMENTS_DELEMETER + updateData.getNamespace(), + new Long(System.currentTimeMillis()), updateData.getKey(), + getConfigurationValue(updateData), updateData.getValue()}; + Configuration config = ConfigurationRepository.lookup() + .getConfigurationFor(updateData.getTenant(), updateData.getNamespace()); + if (config instanceof AgglomerateConfiguration || config instanceof CombinedConfiguration) { + CompositeConfiguration cc = new CompositeConfiguration(); + cc.addConfiguration(config); + config = cc; + } + CompositeConfiguration configuration = (CompositeConfiguration) config; + int overrideIndex = -1; + for (int i = 0; i < configuration.getNumberOfConfigurations(); i++) { + if (!updateData.isNodeOverride() + && (configuration.getConfiguration(i) instanceof AgglomerateConfiguration + || configuration.getConfiguration(i) instanceof CombinedConfiguration)) { + configuration.getConfiguration(i) + .setProperty(updateData.getKey(), updateData.getValue()); + isUpdated = true; + break; + } else if (updateData.isNodeOverride() + && configuration.getConfiguration(i) instanceof FileBasedConfiguration) { + configuration.getConfiguration(i) + .setProperty(updateData.getKey(), updateData.getValue()); + isUpdated = true; + overrideIndex = i; + break; + } + } + if (!isUpdated) { + if (updateData.isNodeOverride()) { + PropertiesConfiguration pc = new PropertiesConfiguration(); + pc.setProperty(NAMESPACE_KEY, + updateData.getTenant() + Constants.TENANT_NAMESPACE_SAPERATOR + + updateData.getNamespace()); + pc.setProperty(MODE_KEY, "OVERRIDE"); + pc.setProperty(updateData.getKey(), updateData.getValue()); + if (System.getProperty("node.config.location") != null + && System.getProperty("node.config.location").trim().length() > 0) { + File file = new File(System.getProperty("node.config.location"), + updateData.getTenant() + File.separator + updateData.getNamespace() + + File.separator + "config.properties"); + file.getParentFile().mkdirs(); + PrintWriter out = new PrintWriter(file); + pc.write(out); + out.close(); + ConfigurationRepository.lookup().populateOverrideConfigurtaion( + updateData.getTenant() + KEY_ELEMENTS_DELEMETER + updateData.getNamespace(), + file); + } + } else { + configuration.getConfiguration(0) + .setProperty(updateData.getKey(), updateData.getValue()); + } + } + if (!updateData.isNodeOverride()) { + ConfigurationUtils.executeInsertSql( + ConfigurationRepository.lookup().getConfigurationFor(DEFAULT_TENANT, DB_NAMESPACE) + .getString("insertconfigurationchangecql"), paramArray); + } else { + ConfigurationRepository.lookup().refreshOverrideConfigurtaionFor( + updateData.getTenant() + KEY_ELEMENTS_DELEMETER + updateData.getNamespace(), + overrideIndex); + } + } + } catch (Exception exception) { + exception.printStackTrace(); + } + } + + private boolean isKeyExists(String tenant, String namespace, String key) { + boolean keyExist = false; + try { + keyExist = + ConfigurationRepository.lookup().getConfigurationFor(tenant, namespace).containsKey(key); + if (!keyExist && !DEFAULT_TENANT.equals(tenant)) { + keyExist = ConfigurationRepository.lookup().getConfigurationFor(DEFAULT_TENANT, namespace) + .containsKey(key); + } + if (!keyExist && !DEFAULT_NAMESPACE.equals(namespace)) { + keyExist = ConfigurationRepository.lookup().getConfigurationFor(tenant, DEFAULT_NAMESPACE) + .containsKey(key); + } + if (!keyExist && !DEFAULT_TENANT.equals(tenant) && !DEFAULT_NAMESPACE.equals(namespace)) { + keyExist = + ConfigurationRepository.lookup().getConfigurationFor(DEFAULT_TENANT, DEFAULT_NAMESPACE) + .containsKey(key); + } + } catch (Exception exception) { + exception.printStackTrace(); + } + return keyExist; + } + + public Map listConfiguration(Map input) { + return listConfiguration((ConfigurationQuery) getInput(input)); + } + + private Map listConfiguration(ConfigurationQuery query) { + Map map = new HashMap<>(); + try { + Collection keys = getKeys(query.getTenant(), query.getNamespace()); + for (String key : keys) { + map.put(key, getConfigurationValue(query.key(key))); + } + } catch (Exception exception) { + exception.printStackTrace(); + return null; + } + return map; + } + + @Override + public boolean updateConfigurationValues(String tenant, String namespace, + Map configKeyValueStore) { + boolean valueToReturn = true; + Iterator keys = configKeyValueStore.keySet().iterator(); + while (keys.hasNext()) { + try { + String key = keys.next(); + ConfigurationUpdate updateData = new ConfigurationUpdate(); + updateData.tenant(tenant).namespace(namespace).key(key); + updateData.value(configKeyValueStore.get(key).toString()); + updateConfigurationValue(updateData); + } catch (Exception exception) { + exception.printStackTrace(); + valueToReturn = false; + } + } + return valueToReturn; + } + + private Object getInput(Map input) { + Object toReturn = null; + try { + toReturn = Class.forName(input.get("ImplClass").toString()).newInstance(); + Method[] methods = toReturn.getClass().getMethods(); + for (Method method : methods) { + if (input.containsKey(method.getName())) { + method.invoke(toReturn, input.get(method.getName())); + } + } + } catch (Exception exception) { + exception.printStackTrace(); + } + + return toReturn; + } + + @Override + public Collection getTenants() { + return ConfigurationRepository.lookup().getTenants(); + } + + @Override + public Collection getNamespaces() { + return ConfigurationRepository.lookup().getNamespaces(); + } + + private ArrayList getInMemoryKeys(String tenant, String namespace) { + ArrayList keys = new ArrayList<>(); + + try { + Iterator iter = + ConfigurationRepository.lookup().getConfigurationFor(tenant, namespace).getKeys(); + while (iter.hasNext()) { + String key = iter.next(); + if (!(key.equals(NAMESPACE_KEY) || key.equals(MODE_KEY) + || key.equals(LOAD_ORDER_KEY))) { + keys.add(key); + } + } + } catch (Exception exception) { + //do nothing + } + + return keys; + } + + @Override + public Collection getKeys(String tenant, String namespace) { + Set keyCollection = new HashSet<>(); + try { + keyCollection.addAll(ConfigurationUtils.executeSelectSql( + ConfigurationRepository.lookup().getConfigurationFor(DEFAULT_TENANT, DB_NAMESPACE) + .getString("fetchkeysql"), + new String[]{tenant + KEY_ELEMENTS_DELEMETER + DEFAULT_NAMESPACE})); + keyCollection.addAll(ConfigurationUtils.executeSelectSql( + ConfigurationRepository.lookup().getConfigurationFor(DEFAULT_TENANT, DB_NAMESPACE) + .getString("fetchkeysql"), + new String[]{tenant + KEY_ELEMENTS_DELEMETER + namespace})); + keyCollection.addAll(ConfigurationUtils.executeSelectSql( + ConfigurationRepository.lookup().getConfigurationFor(DEFAULT_TENANT, DB_NAMESPACE) + .getString("fetchkeysql"), + new String[]{DEFAULT_TENANT + KEY_ELEMENTS_DELEMETER + namespace})); + keyCollection.addAll(ConfigurationUtils.executeSelectSql( + ConfigurationRepository.lookup().getConfigurationFor(DEFAULT_TENANT, DB_NAMESPACE) + .getString("fetchkeysql"), + new String[]{DEFAULT_TENANT + KEY_ELEMENTS_DELEMETER + DEFAULT_NAMESPACE})); + } catch (Exception exception) { + exception.printStackTrace(); + keyCollection.addAll(getInMemoryKeys(tenant, DEFAULT_NAMESPACE)); + keyCollection.addAll(getInMemoryKeys(tenant, namespace)); + keyCollection.addAll(getInMemoryKeys(DEFAULT_TENANT, namespace)); + keyCollection.addAll(getInMemoryKeys(DEFAULT_TENANT, DEFAULT_NAMESPACE)); + } + return keyCollection; + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ConfigurationChangeNotifier.java b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ConfigurationChangeNotifier.java new file mode 100644 index 0000000000..a7c10caae9 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ConfigurationChangeNotifier.java @@ -0,0 +1,474 @@ +package org.onap.config.impl; + +import org.onap.config.ConfigurationUtils; +import org.onap.config.Constants; +import org.onap.config.api.ConfigurationChangeListener; +import org.onap.config.api.ConfigurationManager; +import org.onap.config.api.Hint; + +import java.io.File; +import java.io.IOException; +import java.lang.management.ManagementFactory; +import java.lang.reflect.Method; +import java.nio.file.ClosedWatchServiceException; +import java.nio.file.FileSystems; +import java.nio.file.Path; +import java.nio.file.StandardWatchEventKinds; +import java.nio.file.WatchEvent; +import java.nio.file.WatchKey; +import java.nio.file.WatchService; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import java.util.Vector; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.TimeUnit; +import javax.management.JMX; +import javax.management.MBeanServerConnection; +import javax.management.ObjectName; + + +/** + * The type Configuration change notifier. + */ +public final class ConfigurationChangeNotifier { + + private final HashMap> store = new HashMap<>(); + private final ScheduledExecutorService executor = + Executors.newScheduledThreadPool(5, ConfigurationUtils.getThreadFactory()); + private final ExecutorService notificationExecutor = + Executors.newCachedThreadPool(ConfigurationUtils.getThreadFactory()); + private final Map watchServiceCollection = + Collections.synchronizedMap(new HashMap<>()); + + static { + if (!Thread.currentThread().getStackTrace()[2].getClassName() + .equals(ConfigurationImpl.class.getName())) { + throw new RuntimeException("Illegal access."); + } + } + + /** + * Instantiates a new Configuration change notifier. + * + * @param inMemoryConfig the in memory config + */ + public ConfigurationChangeNotifier(Map inMemoryConfig) { + executor.scheduleWithFixedDelay(() -> this + .pollFilesystemAndUpdateConfigurationIfRequired(inMemoryConfig, + System.getProperty("config.location"), false), 1, 1, TimeUnit.MILLISECONDS); + executor.scheduleWithFixedDelay(() -> this + .pollFilesystemAndUpdateConfigurationIfRequired(inMemoryConfig, + System.getProperty("tenant.config.location"), true), 1, 1, TimeUnit.MILLISECONDS); + executor.scheduleWithFixedDelay(() -> this + .pollFilesystemAndUpdateNodeSpecificConfigurationIfRequired( + System.getProperty("node.config.location")), 1, 1, TimeUnit.MILLISECONDS); + } + + /** + * Shutdown. + */ + public void shutdown() { + for (WatchService watch : watchServiceCollection.values()) { + try { + watch.close(); + } catch (IOException exception) { + //do nothing + } + } + executor.shutdownNow(); + } + + /** + * Poll filesystem and update configuration if required. + * + * @param inMemoryConfig the in memory config + * @param location the location + * @param isTenantLocation the is tenant location + */ + public void pollFilesystemAndUpdateConfigurationIfRequired( + Map inMemoryConfig, String location, + boolean isTenantLocation) { + try { + Set paths = watchForChange(location); + if (paths != null) { + for (Path path : paths) { + File file = path.toAbsolutePath().toFile(); + String repositoryKey = null; + if (ConfigurationUtils.isConfig(file) && file.isFile()) { + if (isTenantLocation) { + Collection tenantsRoot = + ConfigurationUtils.getAllFiles(new File(location), false, true); + for (File tenantRoot : tenantsRoot) { + if (file.getAbsolutePath().startsWith(tenantRoot.getAbsolutePath())) { + repositoryKey = ConfigurationUtils.getConfigurationRepositoryKey( + (tenantRoot.getName() + Constants.TENANT_NAMESPACE_SAPERATOR + + ConfigurationUtils.getNamespace(file)) + .split(Constants.TENANT_NAMESPACE_SAPERATOR)); + } + } + } else { + repositoryKey = ConfigurationUtils.getConfigurationRepositoryKey(file); + } + AggregateConfiguration config = inMemoryConfig.get(repositoryKey); + if (config != null) { + LinkedHashMap origConfig = ConfigurationUtils.toMap(config.getFinalConfiguration()); + config.addConfig(file); + LinkedHashMap latestConfig = ConfigurationUtils.toMap(config.getFinalConfiguration()); + Map map = ConfigurationUtils.diff(origConfig, latestConfig); + String[] tenantNamespaceArray = + repositoryKey.split(Constants.KEY_ELEMENTS_DELEMETER); + updateConfigurationValues(tenantNamespaceArray[0], tenantNamespaceArray[1], map); + } + } else { + for (String configKey : inMemoryConfig.keySet()) { + repositoryKey = configKey; + AggregateConfiguration config = inMemoryConfig.get(repositoryKey); + if (config.containsConfig(file)) { + LinkedHashMap origConfig = ConfigurationUtils.toMap(config.getFinalConfiguration()); + config.removeConfig(file); + LinkedHashMap latestConfig = + ConfigurationUtils.toMap(config.getFinalConfiguration()); + Map map = ConfigurationUtils.diff(origConfig, latestConfig); + String[] tenantNamespaceArray = + repositoryKey.split(Constants.KEY_ELEMENTS_DELEMETER); + updateConfigurationValues(tenantNamespaceArray[0], tenantNamespaceArray[1], + map); + } + } + } + } + } + } catch (ClosedWatchServiceException exception) { + // do nothing. + } catch (Exception exception) { + exception.printStackTrace(); + } + } + + private void updateConfigurationValues(String tenant, String namespace, Map map) + throws Exception { + MBeanServerConnection mbsc = ManagementFactory.getPlatformMBeanServer(); + ObjectName mbeanName = new ObjectName(Constants.MBEAN_NAME); + ConfigurationManager conf = + JMX.newMBeanProxy(mbsc, mbeanName, ConfigurationManager.class, + true); + conf.updateConfigurationValues(tenant, namespace, map); + } + + /** + * Poll filesystem and update node specific configuration if required. + * + * @param location the location + */ + public void pollFilesystemAndUpdateNodeSpecificConfigurationIfRequired(String location) { + try { + Set paths = watchForChange(location); + if (paths != null) { + for (Path path : paths) { + File file = path.toAbsolutePath().toFile(); + + if (ConfigurationUtils.isConfig(file)) { + String repositoryKey = ConfigurationUtils.getConfigurationRepositoryKey(file); + ConfigurationRepository.lookup().populateOverrideConfigurtaion(repositoryKey, file); + } else { + ConfigurationRepository.lookup().removeOverrideConfigurtaion(file); + } + } + } + } catch (Exception exception) { + exception.printStackTrace(); + } + } + + /** + * Notify changes towards. + * + * @param tenant the tenant + * @param component the component + * @param key the key + * @param myself the myself + * @throws Exception the exception + */ + public void notifyChangesTowards(String tenant, String component, String key, + ConfigurationChangeListener myself) throws Exception { + List notificationList = + store.get(tenant + Constants.KEY_ELEMENTS_DELEMETER + component); + if (notificationList == null) { + notificationList = Collections.synchronizedList(new ArrayList()); + store.put(tenant + Constants.KEY_ELEMENTS_DELEMETER + component, notificationList); + executor.scheduleWithFixedDelay( + () -> triggerScanning(tenant + Constants.KEY_ELEMENTS_DELEMETER + component), 1, 30000, + TimeUnit.MILLISECONDS); + } + notificationList.add(new NotificationData(tenant, component, key, myself)); + } + + /** + * Stop notification towards. + * + * @param tenant the tenant + * @param component the component + * @param key the key + * @param myself the myself + * @throws Exception the exception + */ + public void stopNotificationTowards(String tenant, String component, String key, + ConfigurationChangeListener myself) throws Exception { + List notificationList = + store.get(tenant + Constants.KEY_ELEMENTS_DELEMETER + component); + if (notificationList != null) { + boolean removed = + notificationList.remove(new NotificationData(tenant, component, key, myself)); + if (removed && notificationList.isEmpty()) { + store.remove(tenant + Constants.KEY_ELEMENTS_DELEMETER + component); + } + } + + } + + private void triggerScanning(String key) { + if (store.get(key) != null) { + notificationExecutor.submit(() -> scanForChanges(key)); + } else { + throw new IllegalArgumentException("Notification service for " + key + " is suspended."); + } + } + + private void scanForChanges(String key) { + List list = store.get(key); + if (list != null) { + list.stream() + .filter(NotificationData::isChanged) + .forEach(notificationData -> notificationExecutor.submit(() -> sendNotification(notificationData))); + } + } + + private void sendNotification(NotificationData notificationData) { + try { + notificationData.dispatchNotification(); + } catch (Exception exception) { + exception.printStackTrace(); + } + } + + private Set watchForChange(String location) throws Exception { + if (location == null || location.trim().length() == 0) { + return null; + } + File file = new File(location); + if (!file.exists()) { + return null; + } + Path path = file.toPath(); + Set toReturn = new HashSet<>(); + try (final WatchService watchService = FileSystems.getDefault().newWatchService()) { + watchServiceCollection.put(location, watchService); + path.register(watchService, StandardWatchEventKinds.ENTRY_MODIFY, + StandardWatchEventKinds.ENTRY_CREATE, StandardWatchEventKinds.ENTRY_DELETE); + for (File dir : ConfigurationUtils.getAllFiles(file, true, true)) { + dir.toPath().register(watchService, StandardWatchEventKinds.ENTRY_MODIFY, + StandardWatchEventKinds.ENTRY_CREATE, StandardWatchEventKinds.ENTRY_DELETE); + } + while (true) { + final WatchKey wk = watchService.take(); + Thread.sleep(ConfigurationRepository.lookup() + .getConfigurationFor(Constants.DEFAULT_TENANT, Constants.DB_NAMESPACE) + .getLong("event.fetch.delay")); + for (WatchEvent event : wk.pollEvents()) { + Object context = event.context(); + if (context instanceof Path) { + File newFile = new File(((Path) wk.watchable()).toFile(), context.toString()); + if (event.kind() == StandardWatchEventKinds.ENTRY_CREATE) { + if (newFile.isDirectory()) { + newFile.toPath().register(watchService, StandardWatchEventKinds.ENTRY_MODIFY, + StandardWatchEventKinds.ENTRY_CREATE, StandardWatchEventKinds.ENTRY_DELETE); + continue; + } + } else if (event.kind() == StandardWatchEventKinds.ENTRY_MODIFY) { + if (newFile.isDirectory()) { + continue; + } + } + toReturn.add(newFile.toPath()); + } + } + if (toReturn.isEmpty()) { + continue; + } + break; + } + } + return toReturn; + } + + /** + * The type Notification data. + */ + static class NotificationData { + + /** + * The Tenant. + */ + final String tenant; + /** + * The Namespace. + */ + final String namespace; + /** + * The Key. + */ + final String key; + /** + * The Myself. + */ + final ConfigurationChangeListener myself; + /** + * The Current value. + */ + Object currentValue; + /** + * The Is array. + */ + boolean isArray; + + /** + * Instantiates a new Notification data. + * + * @param tenant the tenant + * @param component the component + * @param key the key + * @param myself the myself + * @throws Exception the exception + */ + public NotificationData(String tenant, String component, String key, + ConfigurationChangeListener myself) throws Exception { + this.tenant = tenant; + this.namespace = component; + this.key = key; + this.myself = myself; + if (!ConfigurationRepository.lookup().getConfigurationFor(tenant, component) + .containsKey(key)) { + throw new RuntimeException("Key[" + key + "] not found."); + } + isArray = ConfigurationUtils.isArray(tenant, component, key, Hint.DEFAULT.value()); + if (isArray) { + currentValue = ConfigurationManager.lookup().getAsStringValues(tenant, component, key); + } else { + currentValue = ConfigurationManager.lookup().getAsString(tenant, component, key); + } + } + + @Override + public boolean equals(Object obj) { + if (!(obj instanceof NotificationData)) { + return false; + } + NotificationData nd = (NotificationData) obj; + return Objects.equals(tenant, nd.tenant) + && Objects.equals(namespace, nd.namespace) + && Objects.equals(key, nd.key) + && Objects.equals(myself, nd.myself) + && Objects.equals(currentValue, nd.currentValue) // it's either String or List + && isArray == nd.isArray; + } + + @Override + public int hashCode() { + return Objects.hash(tenant, namespace, key, myself, currentValue, isArray); + } + + /** + * Is changed boolean. + * + * @return the boolean + */ + public boolean isChanged() { + Object latestValue; + try { + if (isArray) { + latestValue = ConfigurationManager.lookup().getAsStringValues(tenant, namespace, key); + } else { + latestValue = ConfigurationManager.lookup().getAsString(tenant, namespace, key); + } + if (!isArray) { + return !currentValue.equals(latestValue); + } else { + Collection oldCollection = (Collection) currentValue; + Collection newCollection = (Collection) latestValue; + for (String val : oldCollection) { + if (!newCollection.remove(val)) { + return true; + } + } + return !newCollection.isEmpty(); + } + } catch (Exception exception) { + return false; + } + } + + /** + * Dispatch notification. + * + * @throws Exception the exception + */ + public void dispatchNotification() throws Exception { + Method method = null; + Vector parameters = null; + try { + Object latestValue; + if (isArray) { + latestValue = ConfigurationManager.lookup().getAsStringValues(tenant, namespace, key); + } else { + latestValue = ConfigurationManager.lookup().getAsString(tenant, namespace, key); + } + Method[] methods = myself.getClass().getDeclaredMethods(); + if (methods != null && methods.length > 0) { + method = methods[0]; + int paramCount = method.getParameterCount(); + parameters = new Vector<>(); + if (paramCount > 4) { + if (tenant.equals(Constants.DEFAULT_TENANT)) { + parameters.add(null); + } else { + parameters.add(tenant); + } + } + if (paramCount > 3) { + if (namespace.equals(Constants.DEFAULT_NAMESPACE)) { + parameters.add(null); + } else { + parameters.add(namespace); + } + } + parameters.add(key); + parameters.add(currentValue); + parameters.add(latestValue); + method.setAccessible(true); + } + } catch (Exception exception) { + exception.printStackTrace(); + } finally { + isArray = ConfigurationUtils.isArray(tenant, namespace, key, Hint.DEFAULT.value()); + if (isArray) { + currentValue = ConfigurationManager.lookup().getAsStringValues(tenant, namespace, key); + } else { + currentValue = ConfigurationManager.lookup().getAsString(tenant, namespace, key); + } + if (method != null && parameters != null) { + method.invoke(myself, parameters.toArray()); + } + } + } + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ConfigurationDataSource.java b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ConfigurationDataSource.java new file mode 100644 index 0000000000..ea9c61f635 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ConfigurationDataSource.java @@ -0,0 +1,105 @@ +package org.onap.config.impl; + +import org.apache.commons.configuration2.ImmutableConfiguration; +import org.apache.commons.dbcp2.BasicDataSource; +import org.apache.commons.lang3.StringUtils; +import org.onap.config.ConfigurationUtils; +import org.onap.config.Constants; + +import java.sql.Driver; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.ServiceLoader; +import java.util.Set; + +/** + * The type Configuration data source. + */ +public final class ConfigurationDataSource { + + private static BasicDataSource configDBDatasource = null; + private static Set validCallers = Collections.unmodifiableSet(new HashSet<>( + Arrays.asList(ConfigurationUtils.class.getName(), CliConfigurationImpl.class.getName()))); + + private ConfigurationDataSource() { + //Hide constructor to prevent instantiation using the default implicit constructor + } + + static { + try { + configDBDatasource = initDataSource(); + } catch (Exception exception) { + System.err.println("Datasource initialization error. Configuration management will be using" + + "in-memory persistence."); + } + } + + /** + * Lookup basic data source. + * + * @return the basic data source + * @throws Exception the exception + */ + public static BasicDataSource lookup() throws Exception { + if (validCallers.contains(Thread.currentThread().getStackTrace()[2].getClassName())) { + return configDBDatasource; + } else { + return null; + } + } + + /** + * Init data source basic data source. + * + * @return the basic data source + * @throws Exception the exception + */ + public static BasicDataSource initDataSource() throws Exception { + ImmutableConfiguration dbConfig = ConfigurationRepository.lookup() + .getConfigurationFor(Constants.DEFAULT_TENANT, Constants.DB_NAMESPACE); + if (StringUtils.isEmpty(dbConfig.getString("dbhost"))) { + return null; + } + BasicDataSource datasource = new BasicDataSource(); + String driverClassName = dbConfig.getString("driverClassName"); + String jdbcUrl = dbConfig.getString("jdbcURL"); + if (!isDriverSuitable(driverClassName, jdbcUrl)) { + driverClassName = getDriverFor(jdbcUrl); + } + datasource.setDriverClassName(driverClassName); + datasource.setUrl(jdbcUrl); + String dbuser = dbConfig.getString("dbuser"); + String dbpassword = dbConfig.getString("dbpassword"); + if (dbuser != null && dbuser.trim().length() > 0) { + datasource.setUsername(dbuser); + } + if (dbpassword != null && dbpassword.trim().length() > 0) { + datasource.setPassword(dbpassword); + } + return datasource; + } + + private static boolean isDriverSuitable(String driverClassName, String url) { + if (driverClassName == null || driverClassName.trim().length() == 0) { + return false; + } + try { + Driver driver = Driver.class.cast(Class.forName(driverClassName).newInstance()); + return driver.acceptsURL(url); + } catch (Exception exception) { + return false; + } + } + + private static String getDriverFor(String url) throws Exception { + ServiceLoader loader = ServiceLoader.load(Driver.class); + for (Driver driver : loader) { + if (driver.acceptsURL(url)) { + return driver.getClass().getName(); + } + } + throw new RuntimeException("No Suitable driver found for " + url); + } + +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ConfigurationFilter.java b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ConfigurationFilter.java new file mode 100644 index 0000000000..9df69ed1d7 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ConfigurationFilter.java @@ -0,0 +1,39 @@ +package org.onap.config.impl; + +import org.onap.config.Constants; +import org.onap.config.api.Configuration; + +import java.io.IOException; +import javax.servlet.Filter; +import javax.servlet.FilterChain; +import javax.servlet.FilterConfig; +import javax.servlet.ServletException; +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; +import javax.servlet.annotation.WebFilter; + +@WebFilter("/") +public class ConfigurationFilter implements Filter { + + @Override + public void init(FilterConfig paramFilterConfig) throws ServletException { + //Use the default behavior + } + + @Override + public void doFilter(ServletRequest paramServletRequest, ServletResponse paramServletResponse, + FilterChain paramFilterChain) throws IOException, ServletException { + Configuration.tenant.set(Constants.DEFAULT_TENANT); + try { + paramFilterChain.doFilter(paramServletRequest, paramServletResponse); + } finally { + Configuration.tenant.remove(); + } + } + + @Override + public void destroy() { + //Use the default behavior + } + +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ConfigurationImpl.java b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ConfigurationImpl.java new file mode 100644 index 0000000000..43b1b96fc5 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ConfigurationImpl.java @@ -0,0 +1,679 @@ +package org.onap.config.impl; + +import static org.onap.config.ConfigurationUtils.getConfigurationRepositoryKey; + +import org.apache.commons.configuration2.Configuration; +import org.apache.commons.configuration2.DatabaseConfiguration; +import org.onap.config.ConfigurationUtils; +import org.onap.config.Constants; +import org.onap.config.NonConfigResource; +import org.onap.config.api.Config; +import org.onap.config.api.ConfigurationChangeListener; +import org.onap.config.api.Hint; + +import java.io.File; +import java.lang.reflect.Constructor; +import java.lang.reflect.Field; +import java.lang.reflect.Modifier; +import java.net.URL; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.function.Predicate; + +/** + * The type Configuration. + */ +public class ConfigurationImpl implements org.onap.config.api.Configuration { + + private static ThreadLocal tenant = new ThreadLocal() { + protected String initialValue() { + return Constants.DEFAULT_TENANT; + } + + ; + }; + private static boolean instantiated = false; + /** + * The Change notifier. + */ + ConfigurationChangeNotifier changeNotifier; + + /** + * Instantiates a new Configuration. + * + * @throws Exception the exception + */ + public ConfigurationImpl() throws Exception { + if (instantiated || !CliConfigurationImpl.class.isAssignableFrom(this.getClass())) { + throw new RuntimeException("Illegal access to configuration."); + } + Map moduleConfigStore = new HashMap<>(); + List classpathResources = ConfigurationUtils.getAllClassPathResources(); + Predicate predicate = ConfigurationUtils::isConfig; + for (URL url : classpathResources) { + if (predicate.test(url)) { + String moduleName = ConfigurationUtils.getConfigurationRepositoryKey(url); + AggregateConfiguration moduleConfig = moduleConfigStore.get(moduleName); + if (moduleConfig == null) { + moduleConfig = new AggregateConfiguration(); + moduleConfigStore.put(moduleName, moduleConfig); + } + moduleConfig.addConfig(url); + } else { + NonConfigResource.add(url); + } + } + String configLocation = System.getProperty("config.location"); + if (configLocation != null && configLocation.trim().length() > 0) { + File root = new File(configLocation); + Collection filesystemResources = ConfigurationUtils.getAllFiles(root, true, false); + Predicate filePredicate = ConfigurationUtils::isConfig; + for (File file : filesystemResources) { + if (filePredicate.test(file)) { + String moduleName = ConfigurationUtils.getConfigurationRepositoryKey(file); + AggregateConfiguration moduleConfig = moduleConfigStore.get(moduleName); + if (moduleConfig == null) { + moduleConfig = new AggregateConfiguration(); + moduleConfigStore.put(moduleName, moduleConfig); + } + moduleConfig.addConfig(file); + } else { + NonConfigResource.add(file); + } + } + } + String tenantConfigLocation = System.getProperty("tenant.config.location"); + if (tenantConfigLocation != null && tenantConfigLocation.trim().length() > 0) { + File root = new File(tenantConfigLocation); + Collection tenantsRoot = ConfigurationUtils.getAllFiles(root, false, true); + Collection filesystemResources = ConfigurationUtils.getAllFiles(root, true, false); + Predicate filePredicate = ConfigurationUtils::isConfig; + for (File file : filesystemResources) { + if (filePredicate.test(file)) { + String moduleName = ConfigurationUtils.getNamespace(file); + for (File tenanatFileRoot : tenantsRoot) { + if (file.getAbsolutePath().startsWith(tenanatFileRoot.getAbsolutePath())) { + moduleName = ConfigurationUtils.getConfigurationRepositoryKey( + (tenanatFileRoot.getName().toUpperCase() + Constants.TENANT_NAMESPACE_SAPERATOR + + moduleName).split(Constants.TENANT_NAMESPACE_SAPERATOR)); + } + } + AggregateConfiguration moduleConfig = moduleConfigStore.get(moduleName); + if (moduleConfig == null) { + moduleConfig = new AggregateConfiguration(); + moduleConfigStore.put(moduleName, moduleConfig); + } + moduleConfig.addConfig(file); + } + } + } + populateFinalConfigurationIncrementally(moduleConfigStore); + ConfigurationRepository.lookup().initTenantsAndNamespaces(); + String nodeConfigLocation = System.getProperty("node.config.location"); + if (nodeConfigLocation != null && nodeConfigLocation.trim().length() > 0) { + File root = new File(nodeConfigLocation); + Collection filesystemResources = ConfigurationUtils.getAllFiles(root, true, false); + Predicate filePredicate = ConfigurationUtils::isConfig; + for (File file : filesystemResources) { + if (filePredicate.test(file)) { + ConfigurationRepository.lookup().populateOverrideConfigurtaion( + ConfigurationUtils.getConfigurationRepositoryKey(ConfigurationUtils.getNamespace(file) + .split(Constants.TENANT_NAMESPACE_SAPERATOR)), file); + } + } + } + instantiated = true; + changeNotifier = new ConfigurationChangeNotifier(moduleConfigStore); + } + + @Override + public void addConfigurationChangeListener(String tenant, String namespace, String key, + ConfigurationChangeListener myself) { + tenant = ConfigurationRepository.lookup().isValidTenant(tenant) ? tenant.toUpperCase() + : Constants.DEFAULT_TENANT; + namespace = + ConfigurationRepository.lookup().isValidNamespace(namespace) ? namespace.toUpperCase() + : Constants.DEFAULT_NAMESPACE; + if (key == null || key.trim().length() == 0) { + throw new IllegalArgumentException("Key can't be null."); + } + if (myself == null) { + throw new IllegalArgumentException("ConfigurationChangeListener instance is null."); + } + try { + changeNotifier.notifyChangesTowards(tenant, namespace, key, myself); + } catch (Exception exception) { + exception.printStackTrace(); + } + } + + private void populateFinalConfigurationIncrementally(Map configs) + throws Exception { + boolean isDbAccessible = false; + if (configs.get( + Constants.DEFAULT_TENANT + Constants.KEY_ELEMENTS_DELEMETER + Constants.DB_NAMESPACE) + != null) { + ConfigurationRepository.lookup().populateConfigurtaion( + Constants.DEFAULT_TENANT + Constants.KEY_ELEMENTS_DELEMETER + Constants.DB_NAMESPACE, + configs.remove( + Constants.DEFAULT_TENANT + Constants.KEY_ELEMENTS_DELEMETER + Constants.DB_NAMESPACE) + .getFinalConfiguration()); + isDbAccessible = ConfigurationUtils.executeDdlSql(ConfigurationRepository.lookup() + .getConfigurationFor(Constants.DEFAULT_TENANT, Constants.DB_NAMESPACE) + .getString("createtablecql")); + if (isDbAccessible) { + ConfigurationUtils.executeDdlSql(ConfigurationRepository.lookup() + .getConfigurationFor(Constants.DEFAULT_TENANT, Constants.DB_NAMESPACE) + .getString("createmonitoringtablecql")); + } + } + + Set modules = configs.keySet(); + for (String module : modules) { + if (isDbAccessible) { + DatabaseConfiguration config = + ConfigurationUtils.getDbConfigurationBuilder(module).getConfiguration(); + Configuration currentConfig = configs.get(module).getFinalConfiguration(); + Iterator keys = currentConfig.getKeys(); + while (keys.hasNext()) { + String currentKey = keys.next(); + if (!(Constants.MODE_KEY.equals(currentKey) + || Constants.NAMESPACE_KEY.equals(currentKey) + || Constants.LOAD_ORDER_KEY.equals(currentKey))) { + if (!config.containsKey(currentKey)) { + Object propValue = currentConfig.getProperty(currentKey); + if (propValue instanceof Collection) { + config.addProperty(currentKey, propValue.toString()); + } else { + config.addProperty(currentKey, propValue); + } + } + } + } + } else { + ConfigurationRepository.lookup() + .populateConfigurtaion(module, configs.get(module).getFinalConfiguration()); + } + } + } + + @Override + public T get(String tenant, String namespace, String key, Class clazz, Hint... hints) { + + String[] tenantNamespaceArrayy = null; + if (tenant == null && namespace != null + && (tenantNamespaceArrayy = namespace.split(Constants.TENANT_NAMESPACE_SAPERATOR)).length + > 1) { + tenant = tenantNamespaceArrayy[0]; + namespace = tenantNamespaceArrayy[1]; + } + + tenant = ConfigurationRepository.lookup().isValidTenant(tenant) ? tenant.toUpperCase() + : Constants.DEFAULT_TENANT; + namespace = + ConfigurationRepository.lookup().isValidNamespace(namespace) ? namespace.toUpperCase() + : Constants.DEFAULT_NAMESPACE; + T returnValue = null; + returnValue = (T) getInternal(tenant, namespace, key, + clazz.isPrimitive() ? getWrapperClass(clazz) : clazz, + hints == null || hints.length == 0 ? new Hint[]{Hint.EXTERNAL_LOOKUP, Hint.NODE_SPECIFIC} + : hints); + if ((returnValue == null || ConfigurationUtils.isZeroLengthArray(clazz, returnValue)) + && !Constants.DEFAULT_TENANT.equals(tenant)) { + returnValue = (T) getInternal(Constants.DEFAULT_TENANT, namespace, key, + clazz.isPrimitive() ? getWrapperClass(clazz) : clazz, + hints == null || hints.length == 0 ? new Hint[]{Hint.EXTERNAL_LOOKUP, Hint.NODE_SPECIFIC} + : hints); + } + if ((returnValue == null || ConfigurationUtils.isZeroLengthArray(clazz, returnValue)) + && !Constants.DEFAULT_NAMESPACE.equals(namespace)) { + returnValue = (T) getInternal(tenant, Constants.DEFAULT_NAMESPACE, key, + clazz.isPrimitive() ? getWrapperClass(clazz) : clazz, + hints == null || hints.length == 0 ? new Hint[]{Hint.EXTERNAL_LOOKUP, Hint.NODE_SPECIFIC} + : hints); + } + if ((returnValue == null || ConfigurationUtils.isZeroLengthArray(clazz, returnValue)) + && !Constants.DEFAULT_NAMESPACE.equals(namespace) + && !Constants.DEFAULT_TENANT.equals(tenant)) { + returnValue = (T) getInternal(Constants.DEFAULT_TENANT, Constants.DEFAULT_NAMESPACE, key, + clazz.isPrimitive() ? getWrapperClass(clazz) : clazz, + hints == null || hints.length == 0 ? new Hint[]{Hint.EXTERNAL_LOOKUP, Hint.NODE_SPECIFIC} + : hints); + } + if (returnValue == null && clazz.isPrimitive()) { + return (T) ConfigurationUtils.getDefaultFor(clazz); + } else { + return returnValue; + } + } + + + /** + * Gets internal. + * + * @param the type parameter + * @param tenant the tenant + * @param namespace the namespace + * @param key the key + * @param clazz the clazz + * @param hints the hints + * @return the internal + */ + protected T getInternal(String tenant, String namespace, String key, Class clazz, + Hint... hints) { + int processingHints = Hint.DEFAULT.value(); + if (hints != null) { + for (Hint hint : hints) { + processingHints = processingHints | hint.value(); + } + } + + if (tenant == null || tenant.trim().length() == 0) { + tenant = this.tenant.get(); + } else { + tenant = tenant.toUpperCase(); + } + if (namespace == null || namespace.trim().length() == 0) { + namespace = Constants.DEFAULT_NAMESPACE; + } else { + namespace = namespace.toUpperCase(); + } + if (key == null || key.trim().length() == 0) { + if (!clazz.isAnnotationPresent(Config.class)) { + throw new IllegalArgumentException("Key can't be null."); + } + } + if (clazz == null) { + throw new IllegalArgumentException("clazz is null."); + } + if (clazz.isPrimitive()) { + clazz = getWrapperClass(clazz); + } + try { + if (ConfigurationUtils.isWrapperClass(clazz) || clazz.isPrimitive()) { + Object obj = + ConfigurationUtils + .getProperty(ConfigurationRepository.lookup().getConfigurationFor(tenant, namespace), + key, processingHints); + if (obj != null) { + if (ConfigurationUtils.isCollection(obj.toString())) { + obj = ConfigurationUtils.getCollectionString(obj.toString()); + } + String value = obj.toString().split(",")[0]; + value = ConfigurationUtils.processVariablesIfPresent(tenant, namespace, value); + return (T) getValue(value, clazz.isPrimitive() ? getWrapperClass(clazz) : clazz, + processingHints); + } else { + return null; + } + } else if (clazz.isArray() + && (clazz.getComponentType().isPrimitive() || ConfigurationUtils.isWrapperClass(clazz.getComponentType()))) { + Object obj = + ConfigurationUtils + .getProperty(ConfigurationRepository.lookup().getConfigurationFor(tenant, namespace), + key, processingHints); + if (obj != null) { + Class componentClass = clazz.getComponentType(); + if (clazz.getComponentType().isPrimitive()) { + componentClass = getWrapperClass(clazz.getComponentType()); + } + String collString = ConfigurationUtils.getCollectionString(obj.toString()); + ArrayList tempCollection = new ArrayList<>(); + for (String itemValue : collString.split(",")) { + tempCollection + .add(ConfigurationUtils.processVariablesIfPresent(tenant, namespace, itemValue)); + } + Collection collection = convert( + ConfigurationUtils.getCollectionString(Arrays.toString(tempCollection.toArray())), + componentClass, processingHints); + if (clazz.getComponentType().isPrimitive()) { + return (T) ConfigurationUtils.getPrimitiveArray(collection, clazz.getComponentType()); + } else { + return (T) collection + .toArray(getZeroLengthArrayFor(getWrapperClass(clazz.getComponentType()))); + } + } else { + return null; + } + } else if (clazz.isAnnotationPresent(Config.class)) { + return read(tenant, namespace, clazz, + (key == null || key.trim().length() == 0) ? "" : (key + "."), hints); + } else { + throw new IllegalArgumentException( + "Only pimitive classes, wrapper classes, corresponding array classes and any " + + "class decorated with @org.openecomp.config.api.Config are allowed as argument."); + } + } catch (Exception exception) { + exception.printStackTrace(); + } + return null; + } + + + private T read(String tenant, String namespace, Class clazz, String keyPrefix, + Hint... hints) throws Exception { + Config confAnnot = + clazz.getAnnotation(Config.class); + if (confAnnot != null && confAnnot.key().length()>0 && !keyPrefix.endsWith(".")) { + keyPrefix += (confAnnot.key() + "."); + } + Constructor constructor = clazz.getDeclaredConstructor(); + constructor.setAccessible(true); + T objToReturn = constructor.newInstance(); + for (Field field : clazz.getDeclaredFields()) { + field.setAccessible(true); + Config fieldConfAnnot = + field.getAnnotation(Config.class); + if (fieldConfAnnot != null) { + if (field.getType().isPrimitive() || ConfigurationUtils.isWrapperClass(field.getType()) + || (field.getType().isArray() && (field.getType().getComponentType().isPrimitive() + || ConfigurationUtils.isWrapperClass(field.getType().getComponentType()))) + || field.getType().getAnnotation(Config.class) != null) { + field.set(objToReturn, + get(tenant, namespace, keyPrefix + fieldConfAnnot.key(), field.getType(), hints)); + } else if (Collection.class.isAssignableFrom(field.getType())) { + Object obj = get(tenant, namespace, keyPrefix + fieldConfAnnot.key(), + ConfigurationUtils.getArrayClass(ConfigurationUtils.getCollectionGenericType(field)), + hints); + if (obj != null) { + List list = Arrays.asList((Object[]) obj); + Class clazzToInstantiate = null; + if (field.getType().isInterface()) { + clazzToInstantiate = + ConfigurationUtils.getConcreteCollection(field.getType()).getClass(); + } else if (Modifier.isAbstract(field.getType().getModifiers())) { + clazzToInstantiate = + ConfigurationUtils.getCompatibleCollectionForAbstractDef(field.getType()) + .getClass(); + } else { + clazzToInstantiate = field.getType(); + } + Constructor construct = + getConstructorWithArguments(clazzToInstantiate, Collection.class); + if (construct != null) { + construct.setAccessible(true); + field.set(objToReturn, construct.newInstance(list)); + } else if ((construct = + getConstructorWithArguments(clazzToInstantiate, Integer.class, Boolean.class, + Collection.class)) != null) { + construct.setAccessible(true); + field.set(objToReturn, construct.newInstance(list.size(), true, list)); + } + } + }else if (Map.class.isAssignableFrom(field.getType())){ + field.set(objToReturn, generateMap(tenant, namespace, keyPrefix+fieldConfAnnot.key())); + } + } + } + return objToReturn; + } + + private Constructor getConstructorWithArguments(Class clazz, Class... classes) { + try { + return clazz.getDeclaredConstructor(classes); + } catch (Exception exception) { + return null; + } + } + + private Class getWrapperClass(Class clazz) { + if (byte.class == clazz) { + return Byte.class; + } else if (short.class == clazz) { + return Short.class; + } else if (int.class == clazz) { + return Integer.class; + } else if (long.class == clazz) { + return Long.class; + } else if (float.class == clazz) { + return Float.class; + } else if (double.class == clazz) { + return Double.class; + } else if (char.class == clazz) { + return Character.class; + } else if (boolean.class == clazz) { + return Boolean.class; + } + return clazz; + } + + private T getValue(Object obj, Class clazz, int processingHint) { + if (obj == null || obj.toString().trim().length() == 0) { + return null; + } else { + obj = obj.toString().trim(); + } + if (String.class.equals(clazz)) { + if (obj.toString().startsWith("@") && ConfigurationUtils.isExternalLookup(processingHint)) { + String contents = ConfigurationUtils + .getFileContents(NonConfigResource.locate(obj.toString().substring(1).trim())); + if (contents == null) { + contents = ConfigurationUtils.getFileContents(obj.toString().substring(1).trim()); + } + if (contents != null) { + obj = contents; + } + } + return (T) obj.toString(); + } else if (Number.class.isAssignableFrom(clazz)) { + Double doubleValue = Double.valueOf(obj.toString()); + switch (clazz.getName()) { + case "java.lang.Byte": + Byte byteVal = doubleValue.byteValue(); + return (T) byteVal; + case "java.lang.Short": + Short shortVal = doubleValue.shortValue(); + return (T) shortVal; + case "java.lang.Integer": + Integer intVal = doubleValue.intValue(); + return (T) intVal; + case "java.lang.Long": + Long longVal = doubleValue.longValue(); + return (T) longVal; + case "java.lang.Float": + Float floatVal = doubleValue.floatValue(); + return (T) floatVal; + case "java.lang.Double": + Double doubleVal = doubleValue.doubleValue(); + return (T) doubleVal; + default: + } + } else if (Boolean.class.equals(clazz)) { + return (T) Boolean.valueOf(obj.toString()); + } else if (Character.class.equals(clazz)) { + return (T) Character.valueOf(obj.toString().charAt(0)); + } + return null; + } + + private T[] getZeroLengthArrayFor(Class clazz) { + Object obj = null; + if (clazz == int.class) { + obj = new int[]{}; + } else if (clazz == byte.class) { + obj = new byte[]{}; + } else if (clazz == short.class) { + obj = new short[]{}; + } else if (clazz == long.class) { + obj = new long[]{}; + } else if (clazz == float.class) { + obj = new float[]{}; + } else if (clazz == double.class) { + obj = new double[]{}; + } else if (clazz == boolean.class) { + obj = new boolean[]{}; + } else if (clazz == char.class) { + obj = new char[]{}; + } else if (clazz == Byte.class) { + obj = new Byte[]{}; + } else if (clazz == Short.class) { + obj = new Short[]{}; + } else if (clazz == Integer.class) { + obj = new Integer[]{}; + } else if (clazz == Long.class) { + obj = new Long[]{}; + } else if (clazz == Float.class) { + obj = new Float[]{}; + } else if (clazz == Double.class) { + obj = new Double[]{}; + } else if (clazz == Boolean.class) { + obj = new Boolean[]{}; + } else if (clazz == Character.class) { + obj = new Character[]{}; + } else if (clazz == String.class) { + obj = new String[]{}; + } + return (T[]) obj; + } + + private Collection convert(String commaSaperatedValues, Class clazz, + int processingHints) { + ArrayList collection = new ArrayList<>(); + for (String value : commaSaperatedValues.split(",")) { + try { + T type1 = getValue(value, clazz, processingHints); + if (type1 != null) { + collection.add(type1); + } + } catch (RuntimeException re) { + // do nothing + } + } + return collection; + } + + /** + * Shutdown. + */ + public void shutdown() { + if (changeNotifier != null) { + try { + changeNotifier.shutdown(); + ConfigurationDataSource.lookup().close(); + } catch (Exception exception) { + exception.printStackTrace(); + } + } + } + + @Override + public void removeConfigurationChangeListener(String tenant, String namespace, String key, + ConfigurationChangeListener myself) { + tenant = ConfigurationRepository.lookup().isValidTenant(tenant) ? tenant.toUpperCase() + : Constants.DEFAULT_TENANT; + namespace = + ConfigurationRepository.lookup().isValidNamespace(namespace) ? namespace.toUpperCase() + : Constants.DEFAULT_NAMESPACE; + if (key == null || key.trim().length() == 0) { + throw new IllegalArgumentException("Key can't be null."); + } + try { + changeNotifier.stopNotificationTowards(tenant, namespace, key, myself); + } catch (Exception exception) { + exception.printStackTrace(); + } + } + + @Override + public Map populateMap(String tenantId, String namespace, String key, Class clazz){ + if (tenantId==null || tenantId.trim().length()==0){ + tenantId = this.tenant.get(); + }else{ + tenantId = tenantId.toUpperCase(); + } + if (namespace==null || namespace.trim().length()==0){ + namespace = Constants.DEFAULT_NAMESPACE; + }else{ + namespace = namespace.toUpperCase(); + } + Map map = new HashMap<>(); + Iterator keys ; + try { + if (ConfigurationRepository.lookup().isDBAccessible()){ + keys = ConfigurationUtils.executeSelectSql(ConfigurationRepository.lookup().getConfigurationFor( + Constants.DEFAULT_TENANT, Constants.DB_NAMESPACE).getString("fetchkeysql"), new String[]{tenantId+ Constants.KEY_ELEMENTS_DELEMETER+namespace}).iterator(); + }else{ + keys = ConfigurationRepository.lookup().getConfigurationFor(tenantId, namespace).getKeys(key); + } + while(keys.hasNext()){ + String k = keys.next(); + if (k.startsWith(key+".")){ + k = k.substring(key.length()+1); + String subkey = k.substring(0, k.indexOf(".")); + if (!map.containsKey(subkey)){ + map.put(subkey, get(tenantId, namespace, key+"."+subkey, clazz)); + } + } + } + }catch (Exception e){ + e.printStackTrace(); + } + return map; + } + + @Override + public Map generateMap(String tenantId, String namespace, String key){ + if (tenantId==null || tenantId.trim().length()==0){ + tenantId = this.tenant.get(); + }else{ + tenantId = tenantId.toUpperCase(); + } + if (namespace==null || namespace.trim().length()==0){ + namespace = Constants.DEFAULT_NAMESPACE; + }else{ + namespace = namespace.toUpperCase(); + } + Map map, parentMap = new HashMap<>(); + Iterator keys ; + try { + if (ConfigurationRepository.lookup().isDBAccessible()){ + keys = ConfigurationUtils.executeSelectSql(ConfigurationRepository.lookup().getConfigurationFor( + Constants.DEFAULT_TENANT, Constants.DB_NAMESPACE).getString("fetchkeysql"), new String[]{tenantId+ Constants.KEY_ELEMENTS_DELEMETER+namespace}).iterator(); + }else{ + if (key==null || key.trim().length()==0){ + keys = ConfigurationRepository.lookup().getConfigurationFor(tenantId, namespace).getKeys(); + }else{ + keys = ConfigurationRepository.lookup().getConfigurationFor(tenantId, namespace).getKeys(key); + } + } + while(keys.hasNext()){ + map = parentMap; + String k = keys.next(); + + if (key!=null && key.trim().length()!=0 && !k.startsWith(key+".")){ + continue; + } + String value = getAsString(tenantId, namespace, k); + if (key!=null && key.trim().length()!=0 && k.startsWith(key+".")){ + k = k.substring(key.trim().length()+1); + } + + while(k.contains(".")){ + if (k.contains(".")){ + String subkey = k.substring(0, k.indexOf(".")); + k = k.substring(k.indexOf(".")+1); + if (!map.containsKey(subkey)){ + map.put(subkey, map=new HashMap<>()); + }else{ + map = (Map)map.get(subkey); + } + } + } + map.put(k, value); + } + }catch (Exception e){ + e.printStackTrace(); + } + return parentMap; + } + + + + +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ConfigurationRepository.java b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ConfigurationRepository.java new file mode 100644 index 0000000000..1c3bc1313f --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ConfigurationRepository.java @@ -0,0 +1,415 @@ +package org.onap.config.impl; + +import org.apache.commons.configuration2.CombinedConfiguration; +import org.apache.commons.configuration2.CompositeConfiguration; +import org.apache.commons.configuration2.Configuration; +import org.apache.commons.configuration2.FileBasedConfiguration; +import org.apache.commons.configuration2.builder.BasicConfigurationBuilder; +import org.apache.commons.configuration2.builder.FileBasedConfigurationBuilder; +import org.apache.commons.configuration2.ex.ConfigurationException; +import org.onap.config.ConfigurationUtils; +import org.onap.config.Constants; + +import java.io.File; +import java.sql.Timestamp; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.HashSet; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Set; + +/** + * The type Configuration repository. + */ +public final class ConfigurationRepository { + + /** + * The Repo. + */ + static ConfigurationRepository repo; + private static Set validCallers = Collections.unmodifiableSet(new HashSet<>(Arrays + .asList(ConfigurationChangeNotifier.NotificationData.class.getName(), + ConfigurationUtils.class.getName(), CliConfigurationImpl.class.getName(), + ConfigurationChangeNotifier.class.getName(), ConfigurationDataSource.class.getName(), + ConfigurationImpl.class.getName()))); + + static { + repo = new ConfigurationRepository(); + } + + private boolean dbAccessible = true; + private Set tenants = new HashSet<>(); + private Set namespaces = new HashSet<>(); + private LinkedHashMap store = + new LinkedHashMap(16, 0.75f, true) { + @Override + protected boolean removeEldestEntry(Map.Entry eldest) { + try { + return size() > getConfigurationFor(Constants.DEFAULT_TENANT, Constants.DB_NAMESPACE) + .getInt("config.size.max"); + } catch (Exception exception) { + return false; + } + } + }; + + private ConfigurationRepository() { + if (repo != null) { + throw new RuntimeException("Illegal access to configuration."); + } + tenants.add(Constants.DEFAULT_TENANT); + namespaces.add(Constants.DEFAULT_NAMESPACE); + } + + /** + * Lookup configuration repository. + * + * @return the configuration repository + */ + public static ConfigurationRepository lookup() { + if (validCallers.contains(Thread.currentThread().getStackTrace()[2].getClassName())) { + return repo; + } + return null; + } + + /** + * Gets tenants. + * + * @return the tenants + */ + public Set getTenants() { + return tenants; + } + + /** + * Gets namespaces. + * + * @return the namespaces + */ + public Set getNamespaces() { + return namespaces; + } + + private void populateTenantsNamespace(String key, boolean sourcedFromDb) { + String[] array = key.split(Constants.KEY_ELEMENTS_DELEMETER); + if (!array[1].equalsIgnoreCase(Constants.DB_NAMESPACE)) { + if (!sourcedFromDb) { + dbAccessible = false; + } + tenants.add(array[0]); + namespaces.add(array[1]); + } + } + + /** + * Init tenants and namespaces. + */ + public void initTenantsAndNamespaces() { + try { + Collection collection = ConfigurationUtils.executeSelectSql( + getConfigurationFor(Constants.DEFAULT_TENANT, Constants.DB_NAMESPACE) + .getString("fetchnamescql"), new String[]{}); + Iterator iterator = collection.iterator(); + while (iterator.hasNext()) { + populateTenantsNamespace(iterator.next(), true); + } + } catch (Exception exception) { + //Log this later + } + } + + /** + * Is valid tenant boolean. + * + * @param tenant the tenant + * @return the boolean + */ + public boolean isValidTenant(String tenant) { + return tenant == null ? false : tenants.contains(tenant.toUpperCase()); + } + + /** + * Is valid namespace boolean. + * + * @param namespace the namespace + * @return the boolean + */ + public boolean isValidNamespace(String namespace) { + return namespace == null ? false : namespaces.contains(namespace.toUpperCase()); + } + + /** + * Gets configuration for. + * + * @param tenant the tenant + * @param namespace the namespace + * @return the configuration for + * @throws Exception the exception + */ + public Configuration getConfigurationFor(String tenant, String namespace) throws Exception { + ConfigurationHolder config; + String module = tenant + Constants.KEY_ELEMENTS_DELEMETER + namespace; + config = store.get(module); + if (config == null) { + config = new ConfigurationHolder(ConfigurationUtils + .getDbConfigurationBuilder(tenant + Constants.KEY_ELEMENTS_DELEMETER + namespace)); + store.put(module, config); + } + return config.getConfiguration(tenant + Constants.KEY_ELEMENTS_DELEMETER + namespace); + } + + /** + * Populate configurtaion. + * + * @param key the key + * @param builder the builder + */ + public void populateConfigurtaion(String key, Configuration builder) { + store.put(key, new ConfigurationHolder(builder)); + populateTenantsNamespace(key, false); + } + + /** + * Populate configurtaion. + * + * @param key the key + * @param builder the builder + * @throws Exception the exception + */ + public void populateConfigurtaion(String key, BasicConfigurationBuilder builder) + throws Exception { + store.put(key, new ConfigurationHolder(builder)); + } + + /** + * Populate override configurtaion. + * + * @param key the key + * @param file the file + * @throws Exception the exception + */ + public void populateOverrideConfigurtaion(String key, File file) throws Exception { + ConfigurationHolder holder = store.get(key); + if (holder == null) { + if (dbAccessible) { + holder = new ConfigurationHolder(ConfigurationUtils.getDbConfigurationBuilder(key)); + } else { + holder = new ConfigurationHolder(new CombinedConfiguration()); + } + store.put(key, holder); + } + holder.addOverrideConfiguration(file.getAbsolutePath(), + ConfigurationUtils.getConfigurationBuilder(file, true)); + populateTenantsNamespace(key, true); + } + + /** + * Refresh override configurtaion for. + * + * @param key the key + * @param index the index + * @throws Exception the exception + */ + public void refreshOverrideConfigurtaionFor(String key, int index) throws Exception { + ConfigurationHolder holder = store.get(key); + if (holder != null) { + holder.refreshOverrideConfiguration(index); + } + } + + /** + * Remove override configurtaion. + * + * @param file the file + * @throws Exception the exception + */ + public void removeOverrideConfigurtaion(File file) throws Exception { + Iterator iterator = new ArrayList(store.keySet()).iterator(); + while (iterator.hasNext()) { + ConfigurationHolder holder = store.get(iterator.next()); + if (holder.containsOverrideConfiguration(file.getAbsolutePath())) { + holder.removeOverrideConfiguration(file.getAbsolutePath()); + } + } + + } + + private class ConfigurationHolder { + + /** + * The Builder. + */ + BasicConfigurationBuilder builder; + /** + * The Last configuration build time. + */ + Timestamp lastConfigurationBuildTime; + /** + * The Config. + */ + Configuration config; + /** + * The Composite. + */ + Configuration composite; + /** + * The Last config change timestamp. + */ + Timestamp lastConfigChangeTimestamp; + private Map> + overrideConfiguration = new LinkedHashMap<>(); + + + /** + * Instantiates a new Configuration holder. + * + * @param builder the builder + */ + public ConfigurationHolder(BasicConfigurationBuilder builder) { + this.builder = builder; + } + + /** + * Instantiates a new Configuration holder. + * + * @param builder the builder + */ + public ConfigurationHolder(Configuration builder) { + this.config = builder; + } + + /** + * Refresh override configuration. + * + * @param index the index + */ + public void refreshOverrideConfiguration(int index) { + int count = -1; + for (FileBasedConfigurationBuilder overrides : overrideConfiguration.values()) { + try { + if (++count == index) { + overrides.save(); + overrides.resetResult(); + } + } catch (ConfigurationException exception) { + //do nothing + } + } + } + + /** + * Add override configuration. + * + * @param path the path + * @param builder the builder + */ + public void addOverrideConfiguration(String path, + BasicConfigurationBuilder builder) { + overrideConfiguration.put(path.toUpperCase(), (FileBasedConfigurationBuilder) builder); + getEffectiveConfiguration(config, overrideConfiguration.values()); + } + + /** + * Remove override configuration. + * + * @param path the path + */ + public void removeOverrideConfiguration(String path) { + overrideConfiguration.remove(path.toUpperCase()); + getEffectiveConfiguration(config, overrideConfiguration.values()); + } + + /** + * Contains override configuration boolean. + * + * @param path the path + * @return the boolean + */ + public boolean containsOverrideConfiguration(String path) { + return overrideConfiguration.containsKey(path.toUpperCase()); + } + + /** + * Gets configuration. + * + * @param namespace the namespace + * @return the configuration + * @throws Exception the exception + */ + public Configuration getConfiguration(String namespace) throws Exception { + if (config == null) { + config = builder.getConfiguration(); + lastConfigurationBuildTime = new Timestamp(System.currentTimeMillis()); + } else if (lastConfigurationBuildTime != null + && System.currentTimeMillis() - lastConfigurationBuildTime.getTime() + > getConfigurationFor(Constants.DEFAULT_TENANT, Constants.DB_NAMESPACE) + .getInt("config.refresh.interval")) { + Timestamp temp = getLastUpdateTimestampFor(namespace); + if ((temp != null) + && (lastConfigChangeTimestamp == null + || temp.getTime() > lastConfigChangeTimestamp.getTime())) { + builder.resetResult(); + config = builder.getConfiguration(); + lastConfigChangeTimestamp = temp; + getEffectiveConfiguration(config, overrideConfiguration.values()); + } + lastConfigurationBuildTime = new Timestamp(System.currentTimeMillis()); + } + if (composite == null && overrideConfiguration.size() != 0) { + composite = getEffectiveConfiguration(config, overrideConfiguration.values()); + } + return overrideConfiguration.size() == 0 ? config : composite; + } + + private Configuration getEffectiveConfiguration(Configuration configuration, + Collection> list) { + try { + CompositeConfiguration cc = new CompositeConfiguration(); + for (FileBasedConfigurationBuilder b : list) { + cc.addConfiguration(b.getConfiguration()); + } + cc.addConfiguration(configuration); + composite = cc; + return composite; + } catch (Exception exception) { + return null; + } + } + + /** + * Gets last update timestamp for. + * + * @param namespace the namespace + * @return the last update timestamp for + */ + public Timestamp getLastUpdateTimestampFor(String namespace) { + Timestamp timestamp = null; + + try { + Collection collection = ConfigurationUtils.executeSelectSql( + getConfigurationFor(Constants.DEFAULT_TENANT, Constants.DB_NAMESPACE) + .getString("fetchlastchangecql"), new String[]{namespace}); + if (!collection.isEmpty()) { + timestamp = new Timestamp(Long.valueOf(((ArrayList) collection).get(0).toString())); + } + } catch (Exception exception) { + //Log this later + } + + return timestamp; + } + + + } + + public boolean isDBAccessible(){ + return dbAccessible; + } + + +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ContextListener.java b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ContextListener.java new file mode 100644 index 0000000000..cf87db936d --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ContextListener.java @@ -0,0 +1,28 @@ +package org.onap.config.impl; + +import static org.onap.config.Constants.MBEAN_NAME; + +import java.lang.management.ManagementFactory; +import javax.management.ObjectName; +import javax.servlet.ServletContextEvent; +import javax.servlet.ServletContextListener; +import javax.servlet.annotation.WebListener; +import org.onap.config.api.ConfigurationManager; + +@WebListener +public class ContextListener implements ServletContextListener { + + @Override + public void contextDestroyed(ServletContextEvent arg0) { + try { + ManagementFactory.getPlatformMBeanServer().unregisterMBean(new ObjectName(MBEAN_NAME)); + } catch (Exception exception) { + exception.printStackTrace(); + } + } + + @Override + public void contextInitialized(ServletContextEvent arg0) { + ConfigurationManager.lookup(); + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/YamlConfiguration.java b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/YamlConfiguration.java new file mode 100644 index 0000000000..dc6785fd73 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/YamlConfiguration.java @@ -0,0 +1,18 @@ +package org.onap.config.impl; + +import com.fasterxml.jackson.dataformat.yaml.YAMLFactory; +import com.virtlink.commons.configuration2.jackson.JacksonConfiguration; +import org.apache.commons.configuration2.HierarchicalConfiguration; +import org.apache.commons.configuration2.tree.ImmutableNode; + +public class YamlConfiguration extends JacksonConfiguration { + + protected YamlConfiguration(HierarchicalConfiguration config) { + super(new YAMLFactory(), config); + } + + public YamlConfiguration() { + super(new YAMLFactory()); + } + +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/type/ConfigurationMode.java b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/type/ConfigurationMode.java new file mode 100644 index 0000000000..826d53e6bc --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/type/ConfigurationMode.java @@ -0,0 +1,5 @@ +package org.onap.config.type; + +public enum ConfigurationMode { + OVERRIDE, UNION, MERGE +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/type/ConfigurationQuery.java b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/type/ConfigurationQuery.java new file mode 100644 index 0000000000..6aec7c27da --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/type/ConfigurationQuery.java @@ -0,0 +1,94 @@ +package org.onap.config.type; + +import org.onap.config.Constants; + +public class ConfigurationQuery { + + String tenant = Constants.DEFAULT_TENANT; + String namespace = Constants.DEFAULT_NAMESPACE; + String key; + boolean fallback; + boolean externalLookup; + boolean latest; + private boolean nodeSpecific; + + public ConfigurationQuery fallback(boolean fallback) { + this.fallback = fallback; + return this; + } + + public ConfigurationQuery latest(boolean val) { + this.latest = val; + return this; + } + + public ConfigurationQuery nodeSpecific(boolean val) { + this.nodeSpecific = val; + return this; + } + + public ConfigurationQuery externalLookup(boolean val) { + this.externalLookup = val; + return this; + } + + /** + * Tenant configuration query. + * + * @param id the id + * @return the configuration query + */ + public ConfigurationQuery tenant(String id) { + if (id != null) { + tenant = id; + } + return this; + } + + + /** + * Namespace configuration query. + * + * @param id the id + * @return the configuration query + */ + public ConfigurationQuery namespace(String id) { + if (id != null) { + namespace = id; + } + return this; + } + + public ConfigurationQuery key(String id) { + key = id; + return this; + } + + public String getTenant() { + return tenant.toUpperCase(); + } + + public String getNamespace() { + return namespace.toUpperCase(); + } + + public String getKey() { + return key; + } + + public boolean isFallback() { + return fallback; + } + + public boolean isNodeSpecific() { + return nodeSpecific; + } + + public boolean isExternalLookup() { + return externalLookup; + } + + public boolean isLatest() { + return latest; + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/type/ConfigurationType.java b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/type/ConfigurationType.java new file mode 100644 index 0000000000..54253fa754 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/type/ConfigurationType.java @@ -0,0 +1,5 @@ +package org.onap.config.type; + +public enum ConfigurationType { + PROPERTIES, XML, JSON, YAML +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/type/ConfigurationUpdate.java b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/type/ConfigurationUpdate.java new file mode 100644 index 0000000000..739dd776bf --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/type/ConfigurationUpdate.java @@ -0,0 +1,33 @@ +package org.onap.config.type; + +public class ConfigurationUpdate extends ConfigurationQuery { + private String value; + private boolean nodeOverride; + + public ConfigurationUpdate value(String val) { + value = val; + return this; + } + + public ConfigurationUpdate nodeOverride(boolean val) { + nodeOverride = val; + return this; + } + + /** + * Gets value. + * + * @return the value + */ + public String getValue() { + if (value != null && value.split(",").length > 1 && !value.matches("^\\[.*\\]$")) { + return "[" + value + "]"; + } + return value; + } + + public boolean isNodeOverride() { + return nodeOverride; + } + +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/resources/META-INF/services/org.onap.config.api.ConfigurationManager b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/resources/META-INF/services/org.onap.config.api.ConfigurationManager new file mode 100644 index 0000000000..173484f1a7 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/resources/META-INF/services/org.onap.config.api.ConfigurationManager @@ -0,0 +1 @@ +org.onap.config.impl.CliConfigurationImpl \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/resources/config-system.properties b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/resources/config-system.properties new file mode 100644 index 0000000000..cfe91e6c7d --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/resources/config-system.properties @@ -0,0 +1,22 @@ +driverClassName=com.github.adejanovski.cassandra.jdbc.CassandraDriver +jdbcURL=jdbc:${dbname}://${dbhost}:${dbport}/${configdb} +dbuser= +dbpassword= +config.Table=configuration +config.monitor.Table=configuration_change +configKey=key +configValue=value +configNameColumn=name +configdb=dox +dbhost= +dbport=9042 +dbname=cassandra +createtablecql=create table if not exists ${configdb}.${config.Table} (name text\, key text\, value text\, PRIMARY KEY (name\, key)) with clustering order by (key asc) +createmonitoringtablecql=create table if not exists ${configdb}.${config.monitor.Table} (name text\, changed_when bigint\, key text\, old_value text\, new_value text\, PRIMARY KEY (name\, changed_when)) with clustering order by (changed_when desc) +insertconfigurationchangecql=insert into ${configdb}.${config.monitor.Table} (name\, changed_when\, key\, old_value\, new_value) values(?\, ?\, ?\, ?\, ?) +fetchkeysql=select ${configKey} from ${config.Table} where ${configNameColumn}=? +fetchlastchangecql=select changed_when from ${configdb}.${config.monitor.Table} where name=? limit 1 +fetchnamescql=select distinct name from ${configdb}.${config.Table} +config.size.max=100 +config.refresh.interval=30000 +event.fetch.delay=5000 \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/resources/management.properties b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/resources/management.properties new file mode 100644 index 0000000000..9874394726 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/resources/management.properties @@ -0,0 +1,7 @@ +com.sun.management.jmxremote=true +#com.sun.management.jmxremote.port=9999 +#com.sun.management.jmxremote.local.only=false +#com.sun.management.jmxremote.authenticate=false +#com.sun.management.jmxremote.password.file=resources/jmxremote.password +#com.sun.management.jmxremote.access.file=resources/jmxremote.access +#com.sun.management.jmxremote.ssl=false \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/test/java/org/onap/config/ConfigurationUtilsTest.java b/common/onap-common-configuration-management/onap-configuration-management-core/src/test/java/org/onap/config/ConfigurationUtilsTest.java new file mode 100644 index 0000000000..90966fccf6 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/test/java/org/onap/config/ConfigurationUtilsTest.java @@ -0,0 +1,32 @@ +package org.onap.config; + +import org.junit.Test; + +import java.util.Arrays; +import java.util.List; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertTrue; + +public class ConfigurationUtilsTest { + @Test + public void testCommaList() { + List list = Arrays.asList("1", "2", 3); + String commaSeparatedList = ConfigurationUtils.getCommaSeparatedList(list); + list.forEach(o -> assertTrue(commaSeparatedList.contains(o.toString()))); + } + + @Test + public void testCommaListWithNullAndEmptyStrings() { + List list = Arrays.asList(null, "", " "); + String commaSeparatedList = ConfigurationUtils.getCommaSeparatedList(list); + assertTrue(commaSeparatedList.isEmpty()); + } + + @Test + public void testGetArrayClassFunction() { + assertEquals(String[].class , ConfigurationUtils.getArrayClass(String.class)); + assertNull(ConfigurationUtils.getArrayClass(ConfigurationUtilsTest.class)); + } +} \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/pom.xml b/common/onap-common-configuration-management/onap-configuration-management-test/pom.xml new file mode 100644 index 0000000000..b9ce6a8cbc --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/pom.xml @@ -0,0 +1,84 @@ + + 4.0.0 + + onap-configuration-management-test + org.onap.sdc.common + onap-configuration-management-test + + + onap-common-configuration-management + org.onap.sdc.common + 1.2.0-SNAPSHOT + .. + + + + + org.onap.sdc.common + onap-configuration-management-core + ${project.version} + + + + junit + junit + 4.11 + + + + + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${mvn.surefire.version} + + true + + ${project.basedir}/src/test/resources + ${user.home}/TestResources + + + **/TestCMSuite.java + + + + + + diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/TestCMSuite.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/TestCMSuite.java new file mode 100644 index 0000000000..de265c7281 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/TestCMSuite.java @@ -0,0 +1,76 @@ +package org.onap.config; + +import org.onap.config.test.CLIFallbackAndLookupTest; +import org.onap.config.test.CLITest; +import org.onap.config.test.ConfigSourceLocationTest; +import org.onap.config.test.DynamicConfigurationTest; +import org.onap.config.test.FallbackConfigTest; +import org.onap.config.test.FallbackToGlobalNSTest; +import org.onap.config.test.GlobalAndNSConfigTest; +import org.onap.config.test.JAVAPropertiesConfigTest; +import org.onap.config.test.JSONConfigTest; +import org.onap.config.test.LoadOrderMergeAndOverrideTest; +import org.onap.config.test.ModeAsConfigPropTest; +import org.onap.config.test.MultiTenancyConfigTest; +import org.onap.config.test.NodeSpecificCLITest; +import org.onap.config.test.NotificationForNodeConfigTest; +import org.onap.config.test.NotificationOnPropValTest; +import org.onap.config.test.ResourceChangeNotificationTest; +import org.onap.config.test.UnregisterNotificationTest; +import org.onap.config.test.ValidateDefaultModeTest; +import org.onap.config.test.ValidateNodeConfigTest; +import org.onap.config.test.XMLConfigTest; +import org.onap.config.test.YAMLConfigTest; +import org.onap.config.test.*; +import org.junit.AfterClass; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; + +/** + * Created by sheetalm on 10/25/2016. + */ + +@RunWith(Suite.class) +@Suite.SuiteClasses({ + JAVAPropertiesConfigTest.class, + JSONConfigTest.class, + XMLConfigTest.class, + YAMLConfigTest.class, + CLIFallbackAndLookupTest.class, + CLITest.class, + ConfigSourceLocationTest.class, + DynamicConfigurationTest.class, + FallbackConfigTest.class, + FallbackToGlobalNSTest.class, + GlobalAndNSConfigTest.class, + ModeAsConfigPropTest.class, + MultiTenancyConfigTest.class, + NodeSpecificCLITest.class, + NotificationForNodeConfigTest.class, + NotificationOnPropValTest.class, + ResourceChangeNotificationTest.class, + UnregisterNotificationTest.class, + ValidateDefaultModeTest.class, + ValidateNodeConfigTest.class, + LoadOrderMergeAndOverrideTest.class + + +}) + +public class TestCMSuite extends junit.framework.TestSuite { + + private TestCMSuite() { + + } + + @AfterClass + public static void tearDown(){ + try { + ConfigurationUtils.executeDdlSql("truncate dox.configuration_change"); + ConfigurationUtils.executeDdlSql("truncate dox.configuration"); + } + catch(Exception e){ + e.printStackTrace(); + } + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/CLIFallbackAndLookupTest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/CLIFallbackAndLookupTest.java new file mode 100644 index 0000000000..f4598be0d0 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/CLIFallbackAndLookupTest.java @@ -0,0 +1,83 @@ +package org.onap.config.test; + +import org.onap.config.util.ConfigTestConstant; +import org.onap.config.Constants; +import org.onap.config.api.ConfigurationManager; +import org.onap.config.util.TestUtil; +import org.junit.Assert; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +import javax.management.JMX; +import javax.management.MBeanServerConnection; +import javax.management.ObjectName; +import java.io.IOException; +import java.lang.management.ManagementFactory; +import java.util.HashMap; +import java.util.Map; + + + +/** + * Created by sheetalm on 10/18/2016. + * Scenario 21, Scenario 23 + * 21 - Verify the CLI fetches only the current value unless the fallback option is specified + * 23 - Fetch value using CLI for a key with underlying resource + */ +public class CLIFallbackAndLookupTest { + + public final static String NAMESPACE = "CLIFallback"; + public final static String TENANT = "OPENECOMP"; + + @Before + public void setUp() throws IOException { + String data = "{name:\"SCM\"}"; + TestUtil.writeFile(data); + } + + @Test + public void testCLIFallbackAndLookup() throws Exception{ + + //Verify without fallback + Map input = new HashMap<>(); + input.put("ImplClass", "org.openecomp.config.type.ConfigurationQuery"); + input.put("tenant", TENANT); + input.put("namespace", NAMESPACE); + input.put("key", ConfigTestConstant.ARTIFACT_MAXSIZE); + + MBeanServerConnection mbsc = ManagementFactory.getPlatformMBeanServer(); + ObjectName mbeanName = new ObjectName(Constants.MBEAN_NAME); + ConfigurationManager conf = JMX.newMBeanProxy(mbsc, mbeanName, ConfigurationManager.class, true); + String maxSizeWithNoFallback = conf.getConfigurationValue(input); + Assert.assertEquals("",maxSizeWithNoFallback); + + //Verify underlying resource without lookup switch + input.put("key", ConfigTestConstant.ARTIFACT_JSON_SCHEMA); + String jsonSchema = conf.getConfigurationValue(input); + System.out.println("jsonSchema=="+jsonSchema); + Assert.assertEquals("@"+System.getProperty("user.home")+"/TestResources/GeneratorsList.json" , jsonSchema); + + //Verify underlying resource with lookup switch + input.put("externalLookup", true); + jsonSchema = conf.getConfigurationValue(input); + System.out.println("jsonSchema=="+jsonSchema); + Assert.assertEquals("{name:\"SCM\"}" , jsonSchema); + + //Verify with fallback + Map fallbackInput = new HashMap<>(); + fallbackInput.put("ImplClass", "org.openecomp.config.type.ConfigurationQuery"); + fallbackInput.put("fallback", true); + fallbackInput.put("tenant", TENANT); + fallbackInput.put("namespace", NAMESPACE); + fallbackInput.put("key", ConfigTestConstant.ARTIFACT_MAXSIZE); + + String maxSizeWithFallback = conf.getConfigurationValue(fallbackInput); + Assert.assertEquals("1024",maxSizeWithFallback); + } + + @After + public void tearDown() throws Exception { + TestUtil.cleanUp(); + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/CLITest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/CLITest.java new file mode 100644 index 0000000000..5a3f39fd16 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/CLITest.java @@ -0,0 +1,108 @@ +package org.onap.config.test; + +import org.onap.config.util.ConfigTestConstant; +import org.onap.config.Constants; +import org.onap.config.api.ConfigurationChangeListener; +import org.onap.config.api.ConfigurationManager; +import org.onap.config.util.TestUtil; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; + +import javax.management.JMX; +import javax.management.MBeanServerConnection; +import javax.management.ObjectName; +import java.io.IOException; +import java.lang.management.ManagementFactory; +import java.util.HashMap; +import java.util.Map; + +/** + * Created by sheetalm on 10/18/2016. + * Scenario 17 + * Verify Configuration Management System - Command Line Interface for query, update and list operations + */ +public class CLITest { + + public final static String NAMESPACE = "CLI"; + public final static String TENANT = "OPENECOMP"; + private String updatedValue = ""; + + @Before + public void setUp() throws IOException { + String data = "{name:\"SCM\"}"; + TestUtil.writeFile(data); + } + + @Test + public void testCLIApi() throws Exception{ + //Verify without fallback + Map input = new HashMap<>(); + input.put("ImplClass", "org.openecomp.config.type.ConfigurationQuery"); + input.put("tenant", TENANT); + input.put("namespace", NAMESPACE); + input.put("key", ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH); + + MBeanServerConnection mbsc = ManagementFactory.getPlatformMBeanServer(); + ObjectName mbeanName = new ObjectName(Constants.MBEAN_NAME); + ConfigurationManager conf = JMX.newMBeanProxy(mbsc, mbeanName, ConfigurationManager.class, true); + String maxLength = conf.getConfigurationValue(input); + Assert.assertEquals("14",maxLength); + + conf.addConfigurationChangeListener(TENANT,NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, new CLIListener()); + + + //Update maxlength + input.put("ImplClass", "org.openecomp.config.type.ConfigurationUpdate"); + input.put("value", "24"); + conf.updateConfigurationValue(input); + + Thread.sleep(35000); + + Assert.assertEquals("24",updatedValue); + + //Reset value and fetch updated value again + input.put("value", ""); + input.put("ImplClass", "org.openecomp.config.type.ConfigurationQuery"); + String updatedMaxLength = conf.getConfigurationValue(input); + Assert.assertEquals("24",updatedMaxLength); + + Map outputMap = conf.listConfiguration(input); + for(Map.Entry entry : outputMap.entrySet()){ + System.out.println(entry.getKey()+" : "+entry.getValue()); + validateCLIListConfig(outputMap); + } + } + + private class CLIListener implements ConfigurationChangeListener { + @Override + public void notify(String key, Object oldValue, Object newValue) { + System.out.println("received notification::oldValue=="+oldValue+" newValue=="+newValue); + updatedValue = newValue.toString(); + } + } + + private void validateCLIListConfig(Map outputMap ) { + + Assert.assertEquals("@"+System.getProperty("user.home")+"/TestResources/GeneratorsList.json" , outputMap.get( + ConfigTestConstant.ARTIFACT_JSON_SCHEMA)); + Assert.assertEquals("appc,catalog", outputMap.get(ConfigTestConstant.ARTIFACT_CONSUMER)); + Assert.assertEquals("6", outputMap.get(ConfigTestConstant.ARTIFACT_NAME_MINLENGTH)); + Assert.assertEquals("true", outputMap.get(ConfigTestConstant.ARTIFACT_ENCODED)); + Assert.assertEquals("24", outputMap.get(ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); + Assert.assertEquals("pdf,zip,xml,pdf,tgz,xls", outputMap.get(ConfigTestConstant.ARTIFACT_EXT)); + Assert.assertEquals("Base64,MD5", outputMap.get(ConfigTestConstant.ARTIFACT_ENC)); + Assert.assertEquals("@"+System.getenv("Path")+"/myschema.json", outputMap.get( + ConfigTestConstant.ARTIFACT_XML_SCHEMA)); + Assert.assertEquals("a-zA-Z_0-9", outputMap.get(ConfigTestConstant.ARTIFACT_NAME_UPPER)); + Assert.assertEquals("/opt/spool,"+System.getProperty("user.home")+"/asdc", outputMap.get( + ConfigTestConstant.ARTIFACT_LOC)); + Assert.assertEquals("deleted,Deleted", outputMap.get(ConfigTestConstant.ARTIFACT_STATUS)); + } + + @After + public void tearDown() throws Exception { + TestUtil.cleanUp(); + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/ConfigSourceLocationTest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/ConfigSourceLocationTest.java new file mode 100644 index 0000000000..6751a5cc31 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/ConfigSourceLocationTest.java @@ -0,0 +1,53 @@ +package org.onap.config.test; + +import org.onap.config.api.Configuration; +import org.onap.config.api.ConfigurationManager; +import org.onap.config.util.ConfigTestConstant; +import org.onap.config.util.TestUtil; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; +import org.junit.Assert; + +import java.io.File; +import java.io.IOException; +import java.util.Properties; +import java.io.OutputStream; +import java.io.FileOutputStream; + +/** + * Created by sheetalm on 10/14/2016. + * Scenario 11 + * Validate conventional and configurational source location + * + * Pre-requisite - set -Dconfig.location=${"user.home"}/TestResources/ while running test + */ +public class ConfigSourceLocationTest { + public final static String NAMESPACE = "SourceLocation"; + + @Before + public void setUp() throws IOException { + String data = "{name:\"SCM\"}"; + TestUtil.writeFile(data); + + Properties props = new Properties(); + props.setProperty("maxCachedBufferSize", "1024"); + props.setProperty("artifact.maxsize", "1024"); + File f = new File(TestUtil.jsonSchemaLoc + "config.properties"); + try (OutputStream out = new FileOutputStream(f)) { + props.store(out, "Config Property at Conventional Resource"); + } + } + + @Test + public void testMergeStrategyInConfig() throws IOException, InterruptedException { + Configuration config = ConfigurationManager.lookup(); + Assert.assertEquals("a-zA-Z_0-9", config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_UPPER)); + Assert.assertEquals("1024", config.getAsString(ConfigTestConstant.ARTIFACT_MAXSIZE)); + } + + @After + public void tearDown() throws Exception { + TestUtil.cleanUp(); + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/DynamicConfigurationTest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/DynamicConfigurationTest.java new file mode 100644 index 0000000000..86422d2361 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/DynamicConfigurationTest.java @@ -0,0 +1,66 @@ +package org.onap.config.test; + +import org.onap.config.api.Configuration; +import org.onap.config.api.ConfigurationManager; +import org.onap.config.api.DynamicConfiguration; +import org.onap.config.util.ConfigTestConstant; +import org.onap.config.util.TestUtil; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; + +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.OutputStream; +import java.util.Properties; + +/** + * Created by sheetalm on 10/17/2016. + * Pre-requisite - set -Dconfig.location=${"user.home"}/TestResources/ while running test + * Scenario 20 + * Update the central configuration and fetch the Dynamic Configuration + */ +public class DynamicConfigurationTest { + + public final static String NAMESPACE = "DynamicConfiguration"; + + @Before + public void setUp() throws IOException { + String data = "{name:\"SCM\"}"; + TestUtil.writeFile(data); + } + + @Test + public void testDynamicConfig() throws IOException, InterruptedException { + Configuration config = ConfigurationManager.lookup(); + Properties props = new Properties(); + props.setProperty(ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, "20"); + props.setProperty("_config.namespace",NAMESPACE); + props.setProperty("_config.mergeStrategy","override"); + File f = new File(TestUtil.jsonSchemaLoc + "config.properties"); + try (OutputStream out = new FileOutputStream(f)) { + props.store(out, "Override Config Property at Conventional Resource"); + } + + //Verify configuration with Configuration without wait. This should fetch cached value + Assert.assertEquals("14" , config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); + + Thread.sleep(10000); + + DynamicConfiguration dynaConfig = config.getDynamicConfiguration(NAMESPACE,ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH,String.class,"14"); + //Verify configuration with DynamicConfiguration This should fetch values from DB + Assert.assertEquals("20" , dynaConfig.get()); + + } + + @After + public void tearDown() throws Exception { + TestUtil.cleanUp(); + File f = new File(TestUtil.jsonSchemaLoc+"config.properties"); + if(f.exists()) { + f.delete(); + } + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/FallbackConfigTest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/FallbackConfigTest.java new file mode 100644 index 0000000000..17b4aee8b0 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/FallbackConfigTest.java @@ -0,0 +1,38 @@ +package org.onap.config.test; + +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +import java.io.IOException; + +import static org.onap.config.util.TestUtil.validateConfiguraton; +import static org.onap.config.util.TestUtil.writeFile; + +/** + * Created by ARR on 10/14/2016. + * + * Validate configuration with properties,xml,json,yaml file format with mode + */ +public class FallbackConfigTest { + + public static final String NAMESPACE = "fallback"; + + @Before + public void setUp() throws IOException { + String data = "{name:\"SCM\"}"; + writeFile(data); + } + + @Test + public void testConfigurationWithFallbackFileFormat(){ + validateConfiguraton(NAMESPACE); + } + + @After + public void tearDown() throws Exception { + String data = "{name:\"SCM\"}"; + writeFile(data); + //ConfigurationUtils.executeDDLSQL("truncate dox.configuration"); + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/FallbackToGlobalNSTest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/FallbackToGlobalNSTest.java new file mode 100644 index 0000000000..14d74fb040 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/FallbackToGlobalNSTest.java @@ -0,0 +1,42 @@ +package org.onap.config.test; + +import org.onap.config.api.Configuration; +import org.onap.config.api.ConfigurationManager; +import org.onap.config.util.ConfigTestConstant; +import org.onap.config.util.TestUtil; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; +import org.junit.Assert; + +import java.io.IOException; + +/** + * Scenario 12 + * Verify configuration value fallback to the global namespace if the configuraton property doesnot exist in the namespace configuration + * Created by sheetalm on 10/14/2016. + */ +public class FallbackToGlobalNSTest { + + public final static String NAMESPACE = "FallbackToGlobalNS"; + + @Before + public void setUp() throws IOException { + String data = "{name:\"SCM\"}"; + TestUtil.writeFile(data); + } + + @Test + public void testFallbackToGlobalNS() throws IOException, InterruptedException { + Configuration config = ConfigurationManager.lookup(); + Assert.assertEquals("14",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); + Assert.assertEquals("1024",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_MAXSIZE)); + } + + @After + public void tearDown() throws Exception { + TestUtil.cleanUp(); + } + + +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/GlobalAndNSConfigTest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/GlobalAndNSConfigTest.java new file mode 100644 index 0000000000..a0bb51a73f --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/GlobalAndNSConfigTest.java @@ -0,0 +1,43 @@ +package org.onap.config.test; + +import org.onap.config.api.Configuration; +import org.onap.config.api.ConfigurationManager; +import org.onap.config.util.ConfigTestConstant; +import org.onap.config.util.TestUtil; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; + +import java.io.IOException; + +/** + * Created by sheetalm on 10/13/2016. + * Scenario 10 Verify configuration present in both global and defined namespace + */ +public class GlobalAndNSConfigTest { + + public final static String NAMESPACE = "GlobalAndNSConfig"; + + @Before + public void setUp() throws IOException { + String data = "{name:\"SCM\"}"; + TestUtil.writeFile(data); + } + + @Test + public void testNamespaceInConfig() throws IOException, InterruptedException { + Configuration config = ConfigurationManager.lookup(); + Assert.assertEquals("a-zA-Z",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_UPPER )); + Assert.assertEquals("a-zA-Z_0-9",config.getAsString(ConfigTestConstant.ARTIFACT_NAME_UPPER )); + } + + @After + public void tearDown() throws Exception { + TestUtil.cleanUp(); + } + + + + +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/JAVAPropertiesConfigTest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/JAVAPropertiesConfigTest.java new file mode 100644 index 0000000000..ab47765a1c --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/JAVAPropertiesConfigTest.java @@ -0,0 +1,40 @@ +package org.onap.config.test; + +import org.onap.config.util.TestUtil; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +import java.io.IOException; + +import static org.onap.config.util.TestUtil.validateConfiguraton; +import static org.onap.config.util.TestUtil.writeFile; + +/** + * Created by ARR on 10/13/2016. + * + * Scenario 1 + * Validate configuration with Java Properties file format with mode + */ +public class JAVAPropertiesConfigTest { + + public static final String NAMESPACE = "javaProperties"; + + @Before + public void setUp() throws IOException { + String data = "{name:\"SCM\"}"; + writeFile(data); + } + + @Test + public void testConfigurationWithPropertiesFileFormat(){ + validateConfiguraton(NAMESPACE); + } + + + + @After + public void tearDown() throws Exception { + TestUtil.cleanUp(); + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/JSONConfigTest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/JSONConfigTest.java new file mode 100644 index 0000000000..b3fcb730fb --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/JSONConfigTest.java @@ -0,0 +1,40 @@ +package org.onap.config.test; + +import org.onap.config.util.TestUtil; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +import java.io.IOException; + +import static org.onap.config.util.TestUtil.validateConfiguraton; +import static org.onap.config.util.TestUtil.writeFile; + +/** + * Created by ARR on 10/14/2016. + * + * Scenario 3 + * Validate configuration with JSON file format with mode + */ +public class JSONConfigTest { + + public static final String NAMESPACE = "JSONConfig"; + + @Before + public void setUp() throws IOException { + String data = "{name:\"SCM\"}"; + writeFile(data); + } + + @Test + public void testConfigurationWithJSONFileFormat(){ + validateConfiguraton(NAMESPACE); + } + + + + @After + public void tearDown() throws Exception { + TestUtil.cleanUp(); + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/LoadOrderMergeAndOverrideTest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/LoadOrderMergeAndOverrideTest.java new file mode 100644 index 0000000000..244511cbf0 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/LoadOrderMergeAndOverrideTest.java @@ -0,0 +1,46 @@ +package org.onap.config.test; + +import static org.onap.config.util.TestUtil.writeFile; + +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; +import org.onap.config.api.Configuration; +import org.onap.config.api.ConfigurationManager; +import org.onap.config.util.ConfigTestConstant; +import org.onap.config.util.TestUtil; + +import java.io.IOException; + +/** + * Scenario + * Check loadorder for merge and overide. Higher loadorder takes precedence for override + * LoWer loadorder takes precedence for merge. + */ +public class LoadOrderMergeAndOverrideTest { + + public static final String NAMESPACE = "LoadOrderConfiguration"; + + @Before + public void setUp() throws IOException { + String data = "{name:\"SCM\"}"; + writeFile(data); + } + + @Test + public void testConfigurationWithPropertiesFileFormat(){ + Configuration config = ConfigurationManager.lookup(); + + Assert.assertEquals(config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH ), "14"); + Assert.assertEquals("5", config.getAsString(NAMESPACE, "artifact.length")); + Assert.assertEquals("56", config.getAsString(NAMESPACE, "artifact.size")); + } + + + + @After + public void tearDown() throws Exception { + TestUtil.cleanUp(); + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/ModeAsConfigPropTest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/ModeAsConfigPropTest.java new file mode 100644 index 0000000000..17130d37c1 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/ModeAsConfigPropTest.java @@ -0,0 +1,87 @@ +package org.onap.config.test; + +import org.onap.config.api.Configuration; +import org.onap.config.api.ConfigurationManager; +import org.onap.config.util.ConfigTestConstant; +import org.onap.config.util.TestUtil; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Scenario 8 + * Validate configuration with mode specified as a configuration property + */ + +public class ModeAsConfigPropTest { + + String newValue = null; + + public final static String NAMESPACE = "ModeAsConfigProp"; + + @Before + public void setUp() throws IOException { + String data = "{name:\"SCM\"}"; + TestUtil.writeFile(data); + } + + @Test + public void testMergeStrategyInConfig() throws IOException, InterruptedException { + Configuration config = ConfigurationManager.lookup(); + + Assert.assertEquals("14",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); + + Assert.assertEquals("1048",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_MAXSIZE)); + + List expectedExtList = new ArrayList(); + expectedExtList.add("pdf"); + expectedExtList.add("zip"); + expectedExtList.add("xml"); + expectedExtList.add("pdf"); + expectedExtList.add("tgz"); + expectedExtList.add("xls"); + List extList = config.getAsStringValues(NAMESPACE, ConfigTestConstant.ARTIFACT_EXT); + Assert.assertEquals(expectedExtList, extList); + + List expectedEncList = new ArrayList(); + expectedEncList.add("Base64"); + expectedEncList.add("MD5"); + List encList = config.getAsStringValues(NAMESPACE, ConfigTestConstant.ARTIFACT_ENC); + Assert.assertEquals(expectedEncList, encList); + + String newValue = config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_JSON_SCHEMA); + Assert.assertEquals("{name:\"SCM\"}",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_JSON_SCHEMA)); + + Assert.assertEquals("a-zA-Z_0-9",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_UPPER )); + + Assert.assertEquals("Deleted",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_STATUS) ); + + List expectedLocList = new ArrayList(); + expectedLocList.add("/opt/spool"); + expectedLocList.add(System.getProperty("user.home")+"/asdc"); + List locList = config.getAsStringValues(NAMESPACE, ConfigTestConstant.ARTIFACT_LOC); + Assert.assertEquals(expectedLocList, locList); + + Assert.assertEquals("@"+System.getenv("Path")+"/myschema.json",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_XML_SCHEMA)); + + List artifactConsumer = config.getAsStringValues(NAMESPACE, ConfigTestConstant.ARTIFACT_CONSUMER ); + Assert.assertEquals(config.getAsStringValues(NAMESPACE, ConfigTestConstant.ARTIFACT_CONSUMER_APPC ), artifactConsumer); + + Assert.assertEquals(config.getAsBooleanValue(NAMESPACE, ConfigTestConstant.ARTIFACT_MANDATORY_NAME ), true); + + Assert.assertEquals(config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MINLENGTH ), "6"); + + Assert.assertEquals(config.getAsBooleanValue(NAMESPACE, ConfigTestConstant.ARTIFACT_ENCODED ), true); + } + + @After + public void tearDown() throws Exception { + TestUtil.cleanUp(); + } + +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/MultiTenancyConfigTest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/MultiTenancyConfigTest.java new file mode 100644 index 0000000000..8cdd634794 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/MultiTenancyConfigTest.java @@ -0,0 +1,46 @@ +package org.onap.config.test; + +import org.onap.config.api.Configuration; +import org.onap.config.api.ConfigurationManager; +import org.onap.config.util.ConfigTestConstant; +import org.onap.config.util.TestUtil; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; + +import java.io.IOException; + +/** + * Created by ARR on 10/14/2016. + * + * Scenario 17 + * Verify Configuration management System - Support for Multi-Tenancy + */ +public class MultiTenancyConfigTest { + + public static final String NAMESPACE = "tenancy"; + + @Before + public void setUp() throws IOException { + String data = "{name:\"SCM\"}"; + TestUtil.writeFile(data); + } + + @Test + public void testConfigurationWithMultiTenancyFileFormat(){ + Configuration config = ConfigurationManager.lookup(); + + Assert.assertEquals(config.getAsString("OPENECOMP",NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH ), "20"); + + Assert.assertEquals(config.getAsString("Telefonica",NAMESPACE, ConfigTestConstant.ARTIFACT_STATUS ), "Deleted"); + + Assert.assertEquals(config.getAsString("TID",NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH ), "14"); + + } + + @After + public void tearDown() throws Exception { + TestUtil.cleanUp(); + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/NodeSpecificCLITest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/NodeSpecificCLITest.java new file mode 100644 index 0000000000..59848f1dba --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/NodeSpecificCLITest.java @@ -0,0 +1,117 @@ +package org.onap.config.test; + +import org.onap.config.util.ConfigTestConstant; +import org.onap.config.Constants; +import org.onap.config.api.ConfigurationChangeListener; +import org.onap.config.api.ConfigurationManager; +import org.onap.config.util.TestUtil; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Test; + +import javax.management.JMX; +import javax.management.MBeanServerConnection; +import javax.management.ObjectName; +import java.io.File; +import java.io.FileOutputStream; +import java.io.OutputStream; +import java.lang.management.ManagementFactory; +import java.util.HashMap; +import java.util.Map; +import java.util.Properties; + +/** + * Created by sheetalm on 10/19/2016. + * Scenario 19 + * Pre-requisite - set -Dnode.config.location=${"user.home"}/TestResources/ while running test + * Verify node specific override using CLI + */ +public class NodeSpecificCLITest { + + public final static String NAMESPACE = "NodeCLI"; + private String updatedValue = ""; + + @Test + public void testCLIApi() throws Exception{ + //Verify without fallback + Map input = new HashMap<>(); + input.put("ImplClass", "org.openecomp.config.type.ConfigurationQuery"); + input.put("namespace", NAMESPACE); + input.put("key", ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH); + + MBeanServerConnection mbsc = ManagementFactory.getPlatformMBeanServer(); + ObjectName mbeanName = new ObjectName(Constants.MBEAN_NAME); + ConfigurationManager conf = JMX.newMBeanProxy(mbsc, mbeanName, ConfigurationManager.class, true); + String maxLength = conf.getConfigurationValue(input); + + //Verify Property from Namespace configurations + Assert.assertEquals("30",maxLength); + + //Add node specific configurations + Properties props = new Properties(); + props.setProperty(ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, "50"); + props.setProperty("_config.namespace",NAMESPACE); + File f = new File(TestUtil.jsonSchemaLoc + "config.properties"); + try (OutputStream out = new FileOutputStream(f)) { + props.store(out, "Node Config Property"); + } + + Thread.sleep(35000); + + //Verify property from node specific configuration + input.put("nodeSpecific", true); + String nodeVal = conf.getConfigurationValue(input); + Assert.assertEquals("50", nodeVal); + + //Add Change Listener + conf.addConfigurationChangeListener(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, new CLINodeListener()); + + //Update maxlength + input.put("ImplClass", "org.openecomp.config.type.ConfigurationUpdate"); + input.put("nodeOverride", true); + input.put("nodeSpecific", false); + input.put("value", "60"); + conf.updateConfigurationValue(input); + + Thread.sleep(35000); + + Assert.assertEquals("60",updatedValue); + + //Fetch the updated nodespecific value + input.put("nodeOverride", false); + input.put("nodeSpecific", true); + input.put("ImplClass", "org.openecomp.config.type.ConfigurationQuery"); + String updatedMaxLength = conf.getConfigurationValue(input); + Assert.assertEquals("60",updatedMaxLength); + + //Verify maxlength on other nodes by deleting node specific configuration + if(f.exists()) { + f.delete(); + } + + Thread.sleep(35000); + + input.put("ImplClass", "org.openecomp.config.type.ConfigurationQuery"); + input.put("nodeOverride", false); + input.put("nodeSpecific", false); + System.out.println("val on other node is::"+conf.getConfigurationValue(input)); + Assert.assertEquals("30",conf.getConfigurationValue(input)); + } + + @AfterClass + public static void tearDown() throws Exception { + TestUtil.cleanUp(); + File f = new File(TestUtil.jsonSchemaLoc+"config.properties"); + if(f.exists()) { + f.delete(); + } + } + + private class CLINodeListener implements ConfigurationChangeListener { + @Override + public void notify(String key, Object oldValue, Object newValue) { + System.out.println("received notification::oldValue=="+oldValue+" newValue=="+newValue); + updatedValue = newValue.toString(); + } + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/NotificationForNodeConfigTest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/NotificationForNodeConfigTest.java new file mode 100644 index 0000000000..55af6900a6 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/NotificationForNodeConfigTest.java @@ -0,0 +1,85 @@ +package org.onap.config.test; + +import org.onap.config.api.Configuration; +import org.onap.config.api.ConfigurationChangeListener; +import org.onap.config.api.ConfigurationManager; +import org.onap.config.util.ConfigTestConstant; +import org.onap.config.util.TestUtil; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; + +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.OutputStream; +import java.util.Properties; + +/** + * Scenario 15 + * Update and Verify Change Notifications for any change in the registered key for node specific configuration + * Pre-requisite - set -Dnode.config.location=${"user.home"}/TestResources/ while running test + * Created by sheetalm on 10/17/2016. + */ +public class NotificationForNodeConfigTest { + public final static String NAMESPACE = "NotificationForNodeConfig"; + + private String updatedValue = null; + + @Before + public void setUp() throws IOException { + String data = "{name:\"SCM\"}"; + TestUtil.writeFile(data); + } + + @Test + public void testNotificationForNode() throws IOException, InterruptedException { + Configuration config = ConfigurationManager.lookup(); + + System.out.println(config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); + + Properties props = new Properties(); + props.setProperty(ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, "30"); + props.setProperty("_config.namespace",NAMESPACE); + File f = new File(TestUtil.jsonSchemaLoc + "config.properties"); + try (OutputStream out = new FileOutputStream(f)) { + props.store(out, "Node Config Property"); + } + + Thread.sleep(35000); + + //Verify property from node specific configuration + Assert.assertEquals("30", config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); + + config.addConfigurationChangeListener(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, new NodePropValListener()); + + props.setProperty(ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, "80"); + try (OutputStream out = new FileOutputStream(f)) { + props.store(out, "Updated Node Config Property"); + } + + Thread.sleep(35000); + + //Verify change listenere is invoked when node specific configuration is changed. + Assert.assertEquals("80", updatedValue); + + } + + private class NodePropValListener implements ConfigurationChangeListener { + @Override + public void notify(String key, Object oldValue, Object newValue) { + System.out.println("received notification::oldValue=="+oldValue+" newValue=="+newValue); + updatedValue = newValue.toString(); + } + } + + @After + public void tearDown() throws Exception { + TestUtil.cleanUp(); + File f = new File(TestUtil.jsonSchemaLoc+"config.properties"); + if(f.exists()) { + f.delete(); + } + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/NotificationOnPropValTest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/NotificationOnPropValTest.java new file mode 100644 index 0000000000..c7b93b019a --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/NotificationOnPropValTest.java @@ -0,0 +1,76 @@ +package org.onap.config.test; + +import org.onap.config.api.Configuration; +import org.onap.config.api.ConfigurationChangeListener; +import org.onap.config.api.ConfigurationManager; +import org.onap.config.util.ConfigTestConstant; +import org.onap.config.util.TestUtil; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; +import org.junit.Assert; + +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.OutputStream; +import java.util.Properties; + +/** + * Pre-requisite - set -Dconfig.location=${"user.home"}/TestResources/ while running test + * Scenario 14 - Verify Change Notifications for any change in the registered key + * Created by sheetalm on 10/14/2016. + */ +public class NotificationOnPropValTest { + + public final static String NAMESPACE = "NotificationOnPropVal"; + + private String updatedValue = null; + + @Before + public void setUp() throws IOException { + String data = "{name:\"SCM\"}"; + TestUtil.writeFile(data); + } + + @Test + public void testNotification() throws IOException, InterruptedException { + Configuration config = ConfigurationManager.lookup(); + + System.out.println(config.getAsString(NAMESPACE,ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); + + config.addConfigurationChangeListener(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, new PropValListener()); + + Properties props = new Properties(); + props.setProperty(ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, "20"); + props.setProperty("_config.namespace",NAMESPACE); + props.setProperty("_config.mergeStrategy","override"); + File f = new File(TestUtil.jsonSchemaLoc + "config.properties"); + try (OutputStream out = new FileOutputStream(f)) { + props.store(out, "Override Config Property at Conventional Resource"); + } + + Thread.sleep(35000); + + System.out.println(config.getAsString(NAMESPACE,ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); + + Assert.assertEquals("20" , updatedValue); + } + + private class PropValListener implements ConfigurationChangeListener { + @Override + public void notify(String key, Object oldValue, Object newValue) { + System.out.println("received notification::oldValue=="+oldValue+" newValue=="+newValue); + updatedValue = newValue.toString(); + } + } + + @After + public void tearDown() throws Exception { + TestUtil.cleanUp(); + File f = new File(TestUtil.jsonSchemaLoc+"config.properties"); + if(f.exists()) { + f.delete(); + } + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/ResourceChangeNotificationTest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/ResourceChangeNotificationTest.java new file mode 100644 index 0000000000..54bd339f29 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/ResourceChangeNotificationTest.java @@ -0,0 +1,88 @@ +package org.onap.config.test; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import org.onap.config.util.ConfigTestConstant; + +import org.onap.config.util.TestUtil; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; + +import org.onap.config.api.Configuration; +import org.onap.config.api.ConfigurationChangeListener; +import org.onap.config.api.ConfigurationManager; + +/** + * Scenario 7 + * Test to Validate notification on changes to the underlying source + * Resource here is GeneratorsList.json ehich is created in test itself + */ + +public class ResourceChangeNotificationTest { + + String newValue = null; + + public final static String NAMESPACE = "Notification"; + + @Before + public void setUp() throws IOException { + String data = "{name:\"SCM\"}"; + TestUtil.writeFile(data); + } + + @Test + public void testNotification() throws IOException, InterruptedException { + Configuration config = ConfigurationManager.lookup(); + config.addConfigurationChangeListener(NAMESPACE,ConfigTestConstant.ARTIFACT_JSON_SCHEMA, new MyListener()); + updateJsonInFile(); + Thread.sleep(35000); + String newValue = config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_JSON_SCHEMA); + + Assert.assertEquals("{name:\"updated SCM\"}",newValue); + + Assert.assertEquals( "14",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH )); + + Assert.assertEquals( "a-zA-Z", config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_UPPER )); + + String artifactConsumer = config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_CONSUMER ); + Assert.assertEquals(artifactConsumer,config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_CONSUMER_APPC )); + + List expectedExtList = new ArrayList(); + expectedExtList.add("pdf"); expectedExtList.add("zip"); expectedExtList.add("xml"); + List extList = config.getAsStringValues(NAMESPACE, ConfigTestConstant.ARTIFACT_EXT); + Assert.assertEquals(expectedExtList, extList); + + List expectedEncList = new ArrayList(); + expectedEncList.add("Base64"); expectedEncList.add("MD5"); + List encList = config.getAsStringValues(NAMESPACE, ConfigTestConstant.ARTIFACT_ENC); + Assert.assertEquals(expectedEncList, encList); + + List expectedLocList = new ArrayList(); + expectedLocList.add("/opt/spool"); expectedLocList.add(System.getProperty("user.home")+"/asdc"); + List locList = config.getAsStringValues(NAMESPACE, ConfigTestConstant.ARTIFACT_LOC); + Assert.assertEquals(expectedLocList, locList); + + Assert.assertEquals("@"+System.getenv("Path")+"/myschema.json",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_XML_SCHEMA)); + } + + class MyListener implements ConfigurationChangeListener{ + @Override + public void notify(String key, Object oldValue, Object newValue) { + System.out.println("received notification::oldValue=="+oldValue+" newValue=="+newValue); + } + } + + private void updateJsonInFile() throws IOException{ + String data = "{name:\"updated SCM\"}"; + TestUtil.writeFile(data); + } + + @After + public void tearDown() throws Exception { + TestUtil.cleanUp(); + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/UnregisterNotificationTest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/UnregisterNotificationTest.java new file mode 100644 index 0000000000..cdfcfdf22d --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/UnregisterNotificationTest.java @@ -0,0 +1,94 @@ +package org.onap.config.test; + +import org.onap.config.api.Configuration; +import org.onap.config.api.ConfigurationChangeListener; +import org.onap.config.api.ConfigurationManager; +import org.onap.config.util.ConfigTestConstant; +import org.onap.config.util.TestUtil; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; + +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.OutputStream; +import java.util.Properties; + +/** + * Pre-requisite - set -Dconfig.location=${"user.home"}/TestResources/ while running test + * Created by sheetalm on 10/19/2016. + * Scenario 24 + * Unregister notification and verify listener + */ +public class UnregisterNotificationTest { + public final static String NAMESPACE = "UnregisterNotification"; + + private String updatedValue = null; + + @Before + public void setUp() throws IOException { + String data = "{name:\"SCM\"}"; + TestUtil.writeFile(data); + } + + @Test + public void testNotification() throws IOException, InterruptedException { + Configuration config = ConfigurationManager.lookup(); + + System.out.println(config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); + + PropertyListener propListener = new PropertyListener(); + config.addConfigurationChangeListener(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH,propListener); + + updateValue("20"); + + Thread.sleep(35000); + + System.out.println(config.getAsString(NAMESPACE,ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); + + //Verify listener is invoked and updated value to 20 + Assert.assertEquals("20" , updatedValue); + + config.removeConfigurationChangeListener(NAMESPACE,ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH,propListener); + + updateValue("22"); + + Thread.sleep(35000); + + //When listener is unregistered updating value does not invoke any listener and value from listener should remain unchanged + Assert.assertEquals("20" , updatedValue); + + //Verify value is updated even if listener is unregistered + Assert.assertEquals("22" , config.getAsString(NAMESPACE,ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); + } + + private void updateValue(String newValue) throws IOException { + Properties props = new Properties(); + props.setProperty(ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, newValue); + props.setProperty("_config.namespace",NAMESPACE); + props.setProperty("_config.mergeStrategy","override"); + File f = new File(TestUtil.jsonSchemaLoc+"config.properties"); + try (OutputStream out = new FileOutputStream(f)) { + props.store(out, "Override Config Property at Conventional Resource"); + } + } + + private class PropertyListener implements ConfigurationChangeListener { + @Override + public void notify(String key, Object oldValue, Object newValue) { + System.out.println("received notification::oldValue=="+oldValue+" newValue=="+newValue); + updatedValue = newValue.toString(); + } + } + + @After + public void tearDown() throws Exception { + TestUtil.cleanUp(); + File f = new File(TestUtil.jsonSchemaLoc+"config.properties"); + if(f.exists()) { + f.delete(); + } + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/ValidateDefaultModeTest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/ValidateDefaultModeTest.java new file mode 100644 index 0000000000..f9ce9a37ed --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/ValidateDefaultModeTest.java @@ -0,0 +1,58 @@ +package org.onap.config.test; + +import org.onap.config.api.Configuration; +import org.onap.config.api.ConfigurationManager; +import org.onap.config.util.ConfigTestConstant; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import static org.onap.config.util.TestUtil.writeFile; + +/** + * Created by ARR on 10/17/2016. + * + * Scenario 22 + * Validate the default mode if the mode is not set + */ +public class ValidateDefaultModeTest { + + public static final String NAMESPACE = "defaultmode"; + + @Before + public void setUp() throws IOException { + String data = "{name:\"SCM\"}"; + writeFile(data); + } + + @Test + public void testConfigurationWithValidateDefaultMode(){ + Configuration config = ConfigurationManager.lookup(); + + Assert.assertEquals(config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH ), "14"); + + Assert.assertEquals(config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_MAXSIZE ), "1048"); + + List expectedExtList = new ArrayList(); + expectedExtList.add("pdf"); + expectedExtList.add("tgz"); + expectedExtList.add("xls"); + List extList = config.getAsStringValues(NAMESPACE, ConfigTestConstant.ARTIFACT_EXT); + Assert.assertEquals(expectedExtList, extList); + + Assert.assertEquals(config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MINLENGTH ), "6"); + + } + + @After + public void tearDown() throws Exception { + String data = "{name:\"SCM\"}"; + writeFile(data); + // ConfigurationUtils.executeDDLSQL("truncate dox.configuration"); + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/ValidateNodeConfigTest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/ValidateNodeConfigTest.java new file mode 100644 index 0000000000..e4f3a84b05 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/ValidateNodeConfigTest.java @@ -0,0 +1,80 @@ +package org.onap.config.test; + +import org.onap.config.api.Configuration; +import org.onap.config.api.ConfigurationManager; +import org.onap.config.util.ConfigTestConstant; +import org.onap.config.util.TestUtil; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; +import org.junit.Assert; + +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.OutputStream; +import java.util.Properties; + +/** + * Scenario 13 + * Validate node specific configuration + * Pre-requisite - set -Dnode.config.location=${"user.home"}/TestResources/ while running test + * + * Created by sheetalm on 10/14/2016. + */ +public class ValidateNodeConfigTest { + + public final static String NAMESPACE = "ValidateNodeConfig"; + + @Before + public void setUp() throws IOException { + String data = "{name:\"SCM\"}"; + TestUtil.writeFile(data); + } + + @Test + public void testValidateNodeConfig() throws IOException, InterruptedException { + Configuration config = ConfigurationManager.lookup(); + + Properties props = new Properties(); + props.setProperty(ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, "56"); + props.setProperty("_config.namespace","ValidateNodeConfig"); + File f = new File(TestUtil.jsonSchemaLoc+"config.properties"); + try (OutputStream out = new FileOutputStream(f)) { + props.store(out, "Node Config Property"); + } + + System.out.println(System.getProperty("node.config.location")); + + Thread.sleep(35000); + + //Verify property from node specific configuration + Assert.assertEquals("56", config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); + + //Verify if property is not in node specific then fetch from namespace + //Assert.assertEquals("a-zA-Z",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_UPPER)); + + //Verify if property is not in node specific and namespace then fetch from global + Assert.assertEquals("1024", config.getAsString(NAMESPACE, "maxCachedBufferSize")); + + //Deleting node configurations to test property is fetched from namespace configuration when node configuration is not present + if(f.exists()) { + boolean isDeleted = f.delete(); + System.out.println(isDeleted); + } + + Thread.sleep(35000); + + Assert.assertEquals(config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH), "14"); + } + + @After + public void tearDown() throws Exception { + TestUtil.cleanUp(); + File f = new File(TestUtil.jsonSchemaLoc+"config.properties"); + if(f.exists()) { + f.delete(); + } + } + +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/XMLConfigTest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/XMLConfigTest.java new file mode 100644 index 0000000000..ae6fc3e7b1 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/XMLConfigTest.java @@ -0,0 +1,40 @@ +package org.onap.config.test; + +import org.onap.config.util.TestUtil; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +import java.io.IOException; + +import static org.onap.config.util.TestUtil.validateConfiguraton; +import static org.onap.config.util.TestUtil.writeFile; + +/** + * Created by ARR on 10/14/2016. + * + * Scenario 2 + * Validate configuration with XML file format with mode + */ +public class XMLConfigTest { + + public static final String NAMESPACE = "XMLConfig"; + + @Before + public void setUp() throws IOException { + String data = "{name:\"SCM\"}"; + writeFile(data); + } + + @Test + public void testConfigurationWithXMLFileFormat(){ + validateConfiguraton(NAMESPACE); + } + + + + @After + public void tearDown() throws Exception { + TestUtil.cleanUp(); + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/YAMLConfigTest.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/YAMLConfigTest.java new file mode 100644 index 0000000000..46240402f4 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/test/YAMLConfigTest.java @@ -0,0 +1,40 @@ +package org.onap.config.test; + +import org.onap.config.util.TestUtil; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +import java.io.IOException; + +import static org.onap.config.util.TestUtil.validateConfiguraton; +import static org.onap.config.util.TestUtil.writeFile; + +/** + * Created by ARR on 10/14/2016. + * + * Scenario 4 + * Validate configuration with YAML file format with mode + */ +public class YAMLConfigTest { + + public static final String NAMESPACE = "YAMLConfig"; + + @Before + public void setUp() throws IOException { + String data = "{name:\"SCM\"}"; + writeFile(data); + } + + @Test + public void testConfigurationWithYAMLFileFormat(){ + validateConfiguraton(NAMESPACE); + } + + + + @After + public void tearDown() throws Exception { + TestUtil.cleanUp(); + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/util/ConfigTestConstant.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/util/ConfigTestConstant.java new file mode 100644 index 0000000000..1d4dead7d2 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/util/ConfigTestConstant.java @@ -0,0 +1,23 @@ +package org.onap.config.util; + +public class ConfigTestConstant { + + public static final String ARTIFACT_NAME_MAXLENGTH = "artifact.name.maxlength"; + public static final String ARTIFACT_MAXSIZE = "artifact.maxsize"; + public static final String ARTIFACT_EXT = "artifact.extension"; + public static final String ARTIFACT_ENC = "artifact.supportedEncryption"; + public static final String ARTIFACT_NAME_UPPER = "artifact.name.allowedChar"; + public static final String ARTIFACT_NAME_LOWER = "artifact.name.allowedchar"; + public static final String ARTIFACT_STATUS = "artifact.status"; + public static final String ARTIFACT_LOC = "artifact.persistLocation"; + public static final String ARTIFACT_JSON_SCHEMA = "artifact.jsonSchema"; + public static final String ARTIFACT_XML_SCHEMA = "artifact.xmlSchema"; + public static final String ARTIFACT_CONSUMER_APPC = "artifact.consumerAPPC"; + public static final String ARTIFACT_CONSUMER = "artifact.consumer"; + public static final String ARTIFACT_MANDATORY_NAME = "artifact.mandatory.name"; + public static final String ARTIFACT_NAME_MINLENGTH = "artifact.name.minlength"; + public static final String ARTIFACT_ENCODED = "artifact.encoded"; + + public static final String ONBOARDING_NAMESPACE = "onboarding"; + +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/util/TestUtil.java b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/util/TestUtil.java new file mode 100644 index 0000000000..83f0371c33 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/java/org/onap/config/util/TestUtil.java @@ -0,0 +1,91 @@ +package org.onap.config.util; + +import org.onap.config.ConfigurationUtils; +import org.onap.config.api.Configuration; +import org.onap.config.api.ConfigurationManager; +import org.junit.Assert; + +import java.io.File; +import java.io.FileWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Created by sheetalm on 10/13/2016. + */ +public class TestUtil { + + public final static String jsonSchemaLoc = System.getProperty("user.home")+"/TestResources/"; + public static FileWriter fileWriter ; + + public static void writeFile(String data) throws IOException { + File dir = new File(jsonSchemaLoc); + File file = null; + dir.mkdirs(); + file = new File(jsonSchemaLoc+"/GeneratorsList.json"); + file.createNewFile(); + fileWriter = new FileWriter(file); + fileWriter.write(data); + fileWriter.close(); + } + + public static void cleanUp() throws Exception { + String data = "{name:\"SCM\"}"; + TestUtil.writeFile(data); + //ConfigurationUtils.executeDdlSql("truncate dox.configuration"); + try{ + ConfigurationUtils.executeDdlSql("truncate dox.configuration_change"); + } + catch(Exception e){ + e.printStackTrace(); + } + + } + + public static void validateConfiguraton(String nameSpace) { + Configuration config = ConfigurationManager.lookup(); + + Assert.assertEquals(config.getAsString(nameSpace, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH ), "14"); + + // First value from list is picked from Merge properties + Assert.assertEquals(config.getAsString(nameSpace, ConfigTestConstant.ARTIFACT_MAXSIZE ), "1048576"); + + List expectedExtList = new ArrayList(); + expectedExtList.add("pdf"); + expectedExtList.add("zip"); + expectedExtList.add("xml"); + expectedExtList.add("pdf"); + expectedExtList.add("tgz"); + expectedExtList.add("xls"); + List extList = config.getAsStringValues(nameSpace, ConfigTestConstant.ARTIFACT_EXT); + Assert.assertEquals(expectedExtList, extList); + + List expectedEncList = new ArrayList(); + expectedEncList.add("Base64"); + expectedEncList.add("MD5"); + List encList = config.getAsStringValues(nameSpace, ConfigTestConstant.ARTIFACT_ENC); + Assert.assertEquals(expectedEncList, encList); + + Assert.assertEquals(config.getAsString(nameSpace, ConfigTestConstant.ARTIFACT_NAME_UPPER ), "a-zA-Z_0-9"); + Assert.assertEquals(config.getAsString(nameSpace, ConfigTestConstant.ARTIFACT_NAME_LOWER ), "a-zA-Z"); + Assert.assertEquals(config.getAsString(nameSpace, ConfigTestConstant.ARTIFACT_STATUS ), "deleted"); + + List expectedLocList = new ArrayList(); + expectedLocList.add("/opt/spool"); + expectedLocList.add(System.getProperty("user.home")+"/asdc"); + List locList = config.getAsStringValues(nameSpace, ConfigTestConstant.ARTIFACT_LOC); + Assert.assertEquals(expectedLocList, locList); + + Assert.assertEquals(config.getAsString(nameSpace, ConfigTestConstant.ARTIFACT_JSON_SCHEMA ), "@GeneratorList.json"); + + Assert.assertEquals("@"+System.getenv("Path")+"/myschema.json",config.getAsString(nameSpace, ConfigTestConstant.ARTIFACT_XML_SCHEMA)); + + List artifactConsumer = config.getAsStringValues(nameSpace, ConfigTestConstant.ARTIFACT_CONSUMER ); + Assert.assertEquals(config.getAsStringValues(nameSpace, ConfigTestConstant.ARTIFACT_CONSUMER_APPC ), artifactConsumer); + + Assert.assertEquals(config.getAsString(nameSpace, ConfigTestConstant.ARTIFACT_NAME_MINLENGTH ), "6"); + Assert.assertEquals(config.getAsString(nameSpace, ConfigTestConstant.ARTIFACT_MANDATORY_NAME ), "true"); + Assert.assertEquals(config.getAsString(nameSpace, ConfigTestConstant.ARTIFACT_ENCODED ), "true"); + } +} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLI/config-NS.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLI/config-NS.properties new file mode 100644 index 0000000000..a50cabc151 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLI/config-NS.properties @@ -0,0 +1,12 @@ +artifact.name.maxlength=14 +artifact.extension=pdf, zip, xml +artifact.supportedEncryption=Base64 +artifact.supportedEncryption=MD5 +artifact.name.allowedChar=a-zA-Z +artifact.status=deleted +artifact.status=Deleted +artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc +artifact.jsonSchema=@${sys:user.home}/TestResources/GeneratorsList.json +artifact.xmlSchema=@${env:path}/myschema.json +artifact.consumerAPPC=${artifact.consumer} +_config.namespace=OPENECOMP:CLI \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLI/config.json b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLI/config.json new file mode 100644 index 0000000000..5d98a327db --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLI/config.json @@ -0,0 +1,8 @@ +{ + "artifact": { + "name": { "minlength": "6" }, + "extension": "pdf,tgz,xls" + }, + "_config":{"namespace": "OPENECOMP:CLI", "mergeStrategy": "union"} + +} \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLI/config.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLI/config.properties new file mode 100644 index 0000000000..4daad19dcc --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLI/config.properties @@ -0,0 +1,3 @@ +maxCachedBufferSize=1024 +artifact.maxsize=1024 +artifact.name.maxlength=28 \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLI/config.xml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLI/config.xml new file mode 100644 index 0000000000..2f09871bd5 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLI/config.xml @@ -0,0 +1,18 @@ + + + + + 28 + + gz,tgz + Base64 + deleted + + true + + <_config> + OPENECOMP:CLI + merge + + + \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLI/config.yaml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLI/config.yaml new file mode 100644 index 0000000000..4333f3e83e --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLI/config.yaml @@ -0,0 +1,8 @@ +artifact: + name: + allowedChar: "a-zA-Z_0-9" + encoded: true + consumer: "appc,catalog" +_config: + namespace: "OPENECOMP:CLI" + mergeStrategy: "override" \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLIFallback/config-NS.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLIFallback/config-NS.properties new file mode 100644 index 0000000000..32da54ffbc --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLIFallback/config-NS.properties @@ -0,0 +1,12 @@ +artifact.name.maxlength=14 +artifact.extension=pdf, zip, xml +artifact.supportedEncryption=Base64 +artifact.supportedEncryption=MD5 +artifact.name.allowedChar=a-zA-Z +artifact.status=deleted +artifact.status=Deleted +artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc +artifact.jsonSchema=@${sys:user.home}/TestResources/GeneratorsList.json +artifact.xmlSchema=@${env:path}/myschema.json +artifact.consumerAPPC=${artifact.consumer} +_config.namespace=OPENECOMP:CLIFallback \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLIFallback/config.json b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLIFallback/config.json new file mode 100644 index 0000000000..a1db251671 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLIFallback/config.json @@ -0,0 +1,8 @@ +{ + "artifact": { + "name": { "minlength": "6" }, + "extension": "pdf,tgz,xls" + }, + "_config":{"namespace": "OPENECOMP:CLIFallback", "mergeStrategy": "union"} + +} \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLIFallback/config.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLIFallback/config.properties new file mode 100644 index 0000000000..4daad19dcc --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLIFallback/config.properties @@ -0,0 +1,3 @@ +maxCachedBufferSize=1024 +artifact.maxsize=1024 +artifact.name.maxlength=28 \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLIFallback/config.xml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLIFallback/config.xml new file mode 100644 index 0000000000..4c46762cdd --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLIFallback/config.xml @@ -0,0 +1,18 @@ + + + + + 28 + + gz,tgz + Base64 + deleted + + true + + <_config> + OPENECOMP:CLIFallback + merge + + + \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLIFallback/config.yaml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLIFallback/config.yaml new file mode 100644 index 0000000000..b0b195f354 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/CLIFallback/config.yaml @@ -0,0 +1,8 @@ +artifact: + name: + allowedChar: "a-zA-Z_0-9" + encoded: true + consumer: "appc,catalog" +_config: + namespace: "OPENECOMP:CLIFallback" + mergeStrategy: "override" \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/DynamicConfiguration/config.json b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/DynamicConfiguration/config.json new file mode 100644 index 0000000000..c909fe8466 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/DynamicConfiguration/config.json @@ -0,0 +1,8 @@ +{ + + "artifact": { + "name": { "minlength": "6" }, + "extension": "pdf,tgz,xls" + }, + "_config": {"namespace": "DynamicConfiguration", "mergeStrategy": "union"} +} \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/DynamicConfiguration/config.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/DynamicConfiguration/config.properties new file mode 100644 index 0000000000..c3825487a9 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/DynamicConfiguration/config.properties @@ -0,0 +1,13 @@ +artifact.name.maxlength=14 +artifact.extension=pdf, zip, xml +artifact.supportedEncryption=Base64 +artifact.supportedEncryption=MD5 +artifact.name.allowedChar=a-zA-Z +artifact.name.allowedchar=a-zA-Z +artifact.status=deleted +artifact.status=Deleted +artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc +artifact.jsonSchema=@GeneratorsList.json +artifact.xmlSchema=@${env:path}/myschema.json +artifact.consumerAPPC=${artifact.consumer} +_config.namespace=DynamicConfiguration \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/DynamicConfiguration/config.xml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/DynamicConfiguration/config.xml new file mode 100644 index 0000000000..3f046e232b --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/DynamicConfiguration/config.xml @@ -0,0 +1,18 @@ + + + + + 28 + + gz,tgz + Base64 + deleted + + true + + <_config> + DynamicConfiguration + merge + + + \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/DynamicConfiguration/config.yaml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/DynamicConfiguration/config.yaml new file mode 100644 index 0000000000..12ba1f093e --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/DynamicConfiguration/config.yaml @@ -0,0 +1,8 @@ +artifact: + name: + allowedChar: "a-zA-Z_0-9" +encoded: true +consumer: "appc,catalog" +_config: + namespace: "DynamicConfiguration" + mergeStrategy: "override" diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/FallbackToGlobalNS/config-NS.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/FallbackToGlobalNS/config-NS.properties new file mode 100644 index 0000000000..b7e985b90a --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/FallbackToGlobalNS/config-NS.properties @@ -0,0 +1,13 @@ +artifact.name.maxlength=14 +artifact.extension=pdf, zip, xml +artifact.supportedEncryption=Base64 +artifact.supportedEncryption=MD5 +artifact.name.allowedChar=a-zA-Z +artifact.name.allowedchar=a-zA-Z +artifact.status=deleted +artifact.status=Deleted +artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc +artifact.jsonSchema=@GeneratorsList.json +artifact.xmlSchema=@${env:path}/myschema.json +artifact.consumerAPPC=${artifact.consumer} +_config.namespace=FallbackToGlobalNS \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.json b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.json new file mode 100644 index 0000000000..6f3d68ab75 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.json @@ -0,0 +1,9 @@ +{ + + "artifact": { + "name": { "minlength": "6" }, + "extension": "pdf,tgz,xls" + }, + "_config":{"namespace": "FallbackToGlobalNS" , "mergeStrategy": "union"} + +} \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.properties new file mode 100644 index 0000000000..4daad19dcc --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.properties @@ -0,0 +1,3 @@ +maxCachedBufferSize=1024 +artifact.maxsize=1024 +artifact.name.maxlength=28 \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.xml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.xml new file mode 100644 index 0000000000..9a881ab4a7 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.xml @@ -0,0 +1,19 @@ + + + + + 28 + + gz,tgz + Base64 + deleted + + true + + + <_config> + FallbackToGlobalNS + merge + + + \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.yaml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.yaml new file mode 100644 index 0000000000..46f50b6087 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.yaml @@ -0,0 +1,8 @@ +artifact: + name: + allowedChar: "a-zA-Z_0-9" + encoded: true + consumer: "appc,catalog" + _config: + namespace: "FallbackToGlobalNS" + mergeStrategy: "override" diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.json b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.json new file mode 100644 index 0000000000..e59e65855c --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.json @@ -0,0 +1,10 @@ +{ + + "artifact": { + "name": { "minlength": "6" }, + "maxsize": "1048", + "extension": "pdf,tgz,xls" + }, + "_config": { "mergeStrategy": "union","namespace":"GlobalAndNSConfig" } + +} \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.properties new file mode 100644 index 0000000000..1a86f68a65 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.properties @@ -0,0 +1,10 @@ +artifact.name.maxlength=14 +artifact.extension=pdf, zip, xml +artifact.supportedEncryption=Base64, MD5 +artifact.name.allowedChar=a-zA-Z +artifact.status=Deleted +artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc +artifact.jsonSchema=@GeneratorsList.json +artifact.xmlSchema=@${env:path}/myschema.json +artifact.consumerAPPC=${artifact.consumer} +_config.namespace=GlobalAndNSConfig \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.xml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.xml new file mode 100644 index 0000000000..d8292c167e --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.xml @@ -0,0 +1,16 @@ + + + + + 28 + + gz,tgz + + true + + + <_config> + GlobalAndNSConfig + merge + + \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.yaml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.yaml new file mode 100644 index 0000000000..bbbdde22a4 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.yaml @@ -0,0 +1,7 @@ + artifact: + name: + allowedChar: "a-zA-Z_0-9" + encoded: true + consumer: "appc,catalog" + _config: + mergeStrategy: "override" \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/JSONConfiguration/config-M.json b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/JSONConfiguration/config-M.json new file mode 100644 index 0000000000..9c335724bc --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/JSONConfiguration/config-M.json @@ -0,0 +1,16 @@ +{ + + "artifact": { + "name": { "maxlength": "28" }, + "maxsize": "1048576", + "extension": "gz,tgz", + "supportedencryption": "Base64", + "status": "deleted", + "mandatory": { "name": "true" } + }, + "_config": { + "namespace": "JSONConfig", + "mergeStrategy": "merge" + } + +} \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/JSONConfiguration/config-O.json b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/JSONConfiguration/config-O.json new file mode 100644 index 0000000000..c324fc777c --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/JSONConfiguration/config-O.json @@ -0,0 +1,11 @@ +{ + "artifact": { + "name": { "allowedChar": "a-zA-Z_0-9" }, + "encoded": "true", + "consumer": "appc,catalog" + }, + "_config": { + "namespace": "JSONConfig", + "mergeStrategy": "override" + } +} \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/JSONConfiguration/config-U.json b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/JSONConfiguration/config-U.json new file mode 100644 index 0000000000..05a7e2d7ff --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/JSONConfiguration/config-U.json @@ -0,0 +1,11 @@ +{ + "artifact": { + "name": { "minlength": "6" }, + "maxsize": "1048", + "extension": "pdf,tgz,xls" + }, + "_config": { + "namespace": "JSONConfig", + "mergeStrategy": "union" + } +} \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/JSONConfiguration/config.json b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/JSONConfiguration/config.json new file mode 100644 index 0000000000..0538ba1717 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/JSONConfiguration/config.json @@ -0,0 +1,30 @@ +{ + "artifact": { + "name": { + "maxlength": "14", + "allowedChar": "a-zA-Z", + "allowedchar": "a-zA-Z" + }, + "extension": [ + "pdf", + "zip,xml" + + ], + "supportedEncryption": [ + "Base64", + "MD5" + ], + "status": [ + "deleted", + "Deleted" + ], + "persistLocation": "/opt/spool,${sys:user.home}/asdc", + "jsonSchema": "@GeneratorList.json", + "xmlSchema": "@${env:path}/myschema.json", + "consumerAPPC": "${artifact.consumer}" + + }, + "_config": { + "namespace": "JSONConfig" + } +} \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-M.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-M.properties new file mode 100644 index 0000000000..5082081102 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-M.properties @@ -0,0 +1,9 @@ +artifact.name.maxlength=28 +artifact.maxsize=1048576 +artifact.extension=gz, tgz +artifact.supportedencryption=Base64 +artifact.mandatory.name=true +artifact.length=2 +_config.namespace=LoadOrderConfiguration +_config.mergeStrategy=merge +_config.loadOrder=2 \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-O.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-O.properties new file mode 100644 index 0000000000..45018269dd --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-O.properties @@ -0,0 +1,7 @@ +artifact.name.allowedChar=a-zA-Z_0-9 +artifact.encoded=true +artifact.consumer=appc, catalog +artifact.size=75 +_config.namespace=LoadOrderConfiguration +_config.mergeStrategy=override +_config.loadOrder=1 \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-U.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-U.properties new file mode 100644 index 0000000000..cb5d5968f5 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-U.properties @@ -0,0 +1,5 @@ +artifact.maxsize=1048 +artifact.extension=pdf,tgz, xls +artifact.name.minlength=6 +_config.namespace=LoadOrderConfiguration +_config.mergeStrategy=union \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-loadorder-M.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-loadorder-M.properties new file mode 100644 index 0000000000..79d0815a39 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-loadorder-M.properties @@ -0,0 +1,9 @@ +artifact.name.maxlength=28 +artifact.maxsize=1048576 +artifact.extension=gz, tgz +artifact.supportedencryption=Base64 +artifact.mandatory.name=true +artifact.length=5 +_config.namespace=LoadOrderConfiguration +_config.mergeStrategy=merge +_config.loadOrder=1 \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-loadorder-O.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-loadorder-O.properties new file mode 100644 index 0000000000..164706dba7 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-loadorder-O.properties @@ -0,0 +1,7 @@ +artifact.name.allowedChar=a-zA-Z_0-9 +artifact.encoded=true +artifact.consumer=appc, catalog +artifact.size=56 +_config.namespace=LoadOrderConfiguration +_config.mergeStrategy=override +_config.loadOrder=2 \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config.properties new file mode 100644 index 0000000000..ae1f445efd --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/LoadOrderConfiguration/config.properties @@ -0,0 +1,14 @@ +artifact.name.maxlength=14 +#artifact.maxsize= +artifact.extension=pdf, zip, xml +artifact.supportedEncryption=Base64 +artifact.supportedEncryption=MD5 +artifact.name.allowedChar=a-zA-Z +artifact.name.allowedchar=a-zA-Z +artifact.status=deleted +artifact.status=Deleted +artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc +artifact.jsonSchema=@GeneratorList.json +artifact.xmlSchema=@${env:path}/myschema.json +artifact.consumerAPPC=${artifact.consumer} +_config.namespace=LoadOrderConfiguration diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.json b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.json new file mode 100644 index 0000000000..7c6d552b82 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.json @@ -0,0 +1,8 @@ +{ + "artifact": { + "name": { "minlength": "6" }, + "maxsize": "1048", + "extension": "pdf,tgz,xls" + }, + "_config": { "mergeStrategy": "union" , "namespace":"ModeAsConfigProp" } +} \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.properties new file mode 100644 index 0000000000..a82e6b23fe --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.properties @@ -0,0 +1,10 @@ +artifact.name.maxlength=14 +artifact.extension=pdf,zip,xml +artifact.supportedEncryption=Base64,MD5 +artifact.name.allowedChar=a-zA-Z +artifact.status=Deleted +artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc +artifact.jsonSchema=@${sys:user.home}/TestResources/GeneratorsList.json +artifact.xmlSchema=@${env:path}/myschema.json +artifact.consumerAPPC=${artifact.consumer} +_config.namespace=ModeAsConfigProp \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.xml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.xml new file mode 100644 index 0000000000..2d05d2724c --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.xml @@ -0,0 +1,16 @@ + + + + + 28 + + gz,tgz + + true + + + <_config> + ModeAsConfigProp + merge + + \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.yaml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.yaml new file mode 100644 index 0000000000..ef08bba6ce --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.yaml @@ -0,0 +1,8 @@ +artifact: + name: + allowedChar: "a-zA-Z_0-9" + encoded: true + consumer: "appc,catalog" +_config: + mergeStrategy: "override" + namespace: "ModeAsConfigProp" \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NodeCLI/config.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NodeCLI/config.properties new file mode 100644 index 0000000000..435f98ab39 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NodeCLI/config.properties @@ -0,0 +1,9 @@ +artifact.name.maxlength=30 +artifact.extension=pdf, zip, xml +artifact.supportedEncryption=Base64 +artifact.name.allowedChar=a-zA-Z +artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc +artifact.jsonSchema=@GeneratorsList.json +artifact.xmlSchema=@${env:path}/myschema.json +artifact.consumerAPPC=${artifact.consumer} +_config.namespace=NodeCLI \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/Notification/config.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/Notification/config.properties new file mode 100644 index 0000000000..4076eefa58 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/Notification/config.properties @@ -0,0 +1,15 @@ +artifact.name.maxlength=14 +artifact.consumer=APPC +artifact.maxsize=1048 +artifact.extension=pdf,zip,xml +artifact.supportedEncryption=Base64 +artifact.supportedEncryption=MD5 +artifact.name.allowedChar=a-zA-Z +artifact.name.allowedchar=a-zA-Z +artifact.status=deleted +artifact.status=Deleted +artifact.persistLocation=/opt/spool,${sys:user.home}/asdc +artifact.jsonSchema=@${sys:user.home}/TestResources/GeneratorsList.json +artifact.xmlSchema=@${env:path}/myschema.json +artifact.consumerAPPC=${artifact.consumer} +_config.namespace=Notification \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationForNodeConfig.zip b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationForNodeConfig.zip new file mode 100644 index 0000000000..42d14a64db Binary files /dev/null and b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationForNodeConfig.zip differ diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.json b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.json new file mode 100644 index 0000000000..0d6395af4f --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.json @@ -0,0 +1,12 @@ +{ + + "artifact": { + "name": { "minlength": "6" }, + "extension": "pdf,tgz,xls" + }, + "_config":{ + "namespace": "NotificationForNodeConfig", + "mergestrategy": "union" + } + +} \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.properties new file mode 100644 index 0000000000..d2c41aa4b5 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.properties @@ -0,0 +1,14 @@ +artifact.name.maxlength=14 +artifact.extension=pdf, zip, xml +artifact.supportedEncryption=Base64 +artifact.supportedEncryption=MD5 +artifact.name.allowedChar=a-zA-Z +artifact.name.allowedchar=a-zA-Z +artifact.status=deleted +artifact.status=Deleted +artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc +artifact.jsonSchema=@GeneratorsList.json +artifact.xmlSchema=@${env:path}/myschema.json +artifact.consumerAPPC=${artifact.consumer} +_config.namespace=NotificationForNodeConfig + diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.xml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.xml new file mode 100644 index 0000000000..20768aa949 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.xml @@ -0,0 +1,18 @@ + + + + + 28 + + gz,tgz + Base64 + deleted + + true + + + <_config> + NotificationForNodeConfig + merge + + \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.yaml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.yaml new file mode 100644 index 0000000000..ee85a0c68d --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.yaml @@ -0,0 +1,8 @@ +artifact: + name: + allowedChar: "a-zA-Z_0-9" + encoded: true + consumer: "appc,catalog" +_config: + namespace: "NotificationForNodeConfig" + mergestrategy: "override" \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationOnPropVal/config-NS.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationOnPropVal/config-NS.properties new file mode 100644 index 0000000000..279d407664 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationOnPropVal/config-NS.properties @@ -0,0 +1,13 @@ +artifact.name.maxlength=14 +artifact.extension=pdf, zip, xml +artifact.supportedEncryption=Base64 +artifact.supportedEncryption=MD5 +artifact.name.allowedChar=a-zA-Z +artifact.name.allowedchar=a-zA-Z +artifact.status=deleted +artifact.status=Deleted +artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc +artifact.jsonSchema=@GeneratorsList.json +artifact.xmlSchema=@${env:path}/myschema.json +artifact.consumerAPPC=${artifact.consumer} +_config.namespace=NotificationOnPropVal \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationOnPropVal/config.json b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationOnPropVal/config.json new file mode 100644 index 0000000000..fc7f2347aa --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationOnPropVal/config.json @@ -0,0 +1,9 @@ +{ + "artifact": { + "name": { "minlength": "6" }, + "extension": "pdf,tgz,xls" + }, + + "_config": { "mergeStrategy": "union","namespace":"NotificationOnPropVal" } + +} \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationOnPropVal/config.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationOnPropVal/config.properties new file mode 100644 index 0000000000..4daad19dcc --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationOnPropVal/config.properties @@ -0,0 +1,3 @@ +maxCachedBufferSize=1024 +artifact.maxsize=1024 +artifact.name.maxlength=28 \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationOnPropVal/config.xml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationOnPropVal/config.xml new file mode 100644 index 0000000000..e3a24fbc32 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationOnPropVal/config.xml @@ -0,0 +1,18 @@ + + + + + 28 + + gz,tgz + Base64 + deleted + + true + + + <_config> + NotificationOnPropVal + merge + + \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationOnPropVal/config.yaml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationOnPropVal/config.yaml new file mode 100644 index 0000000000..7283df4ecb --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/NotificationOnPropVal/config.yaml @@ -0,0 +1,9 @@ + + artifact: + name: + allowedChar: "a-zA-Z_0-9" + encoded: true + consumer: "appc,catalog" + _config: + mergeStrategy: "override" + namespace: "NotificationOnPropVal" \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.json b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.json new file mode 100644 index 0000000000..42c6be91b9 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.json @@ -0,0 +1,10 @@ +{ + + "artifact": { + "name": { "minlength": "6" }, + "maxsize": "1048", + "extension": "pdf,tgz,xls" + }, + "_config": { "mergeStrategy": "union","namespace":"SourceLocation" } + +} \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.properties new file mode 100644 index 0000000000..22c9840fad --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.properties @@ -0,0 +1,14 @@ +artifact.name.maxlength=14 +artifact.maxsize= +artifact.extension=pdf, zip, xml +artifact.supportedEncryption=Base64 +artifact.supportedEncryption=MD5 +artifact.name.allowedChar=a-zA-Z +artifact.name.allowedchar=a-zA-Z +artifact.status=deleted +artifact.status=Deleted +artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc +artifact.jsonSchema=@GeneratorsList.json +artifact.xmlSchema=@${env:path}/myschema.json +artifact.consumerAPPC=${artifact.consumer} +_config.namespace=SourceLocation \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.xml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.xml new file mode 100644 index 0000000000..1162af576e --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.xml @@ -0,0 +1,19 @@ + + + + + 28 + + 1048576 + gz,tgz + Base64 + deleted + + true + + + <_config> + SourceLocation + merge + + \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.yaml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.yaml new file mode 100644 index 0000000000..4e073ce7f9 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.yaml @@ -0,0 +1,8 @@ +artifact: + name: + allowedChar: "a-zA-Z_0-9" + encoded: true + consumer: "appc,catalog" +_config: + mergeStrategy: "override" + namespace: "SourceLocation" \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/UnregisterNotification/config-NS.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/UnregisterNotification/config-NS.properties new file mode 100644 index 0000000000..40b4518945 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/UnregisterNotification/config-NS.properties @@ -0,0 +1,13 @@ +artifact.name.maxlength=14 +artifact.extension=pdf, zip, xml +artifact.supportedEncryption=Base64 +artifact.supportedEncryption=MD5 +artifact.name.allowedChar=a-zA-Z +artifact.name.allowedchar=a-zA-Z +artifact.status=deleted +artifact.status=Deleted +artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc +artifact.jsonSchema=@GeneratorsList.json +artifact.xmlSchema=@${env:path}/myschema.json +artifact.consumerAPPC=${artifact.consumer} +_config.namespace=UnregisterNotification \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/UnregisterNotification/config.json b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/UnregisterNotification/config.json new file mode 100644 index 0000000000..3e0464016d --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/UnregisterNotification/config.json @@ -0,0 +1,9 @@ +{ + "artifact": { + "name": { "minlength": "6" }, + "extension": "pdf,tgz,xls" + }, + + "_config": { "mergeStrategy": "union","namespace":"UnregisterNotification" } + +} \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/UnregisterNotification/config.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/UnregisterNotification/config.properties new file mode 100644 index 0000000000..4daad19dcc --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/UnregisterNotification/config.properties @@ -0,0 +1,3 @@ +maxCachedBufferSize=1024 +artifact.maxsize=1024 +artifact.name.maxlength=28 \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/UnregisterNotification/config.xml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/UnregisterNotification/config.xml new file mode 100644 index 0000000000..1153658161 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/UnregisterNotification/config.xml @@ -0,0 +1,18 @@ + + + + + 28 + + gz,tgz + Base64 + deleted + + true + + + <_config> + UnregisterNotification + merge + + \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/UnregisterNotification/config.yaml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/UnregisterNotification/config.yaml new file mode 100644 index 0000000000..1deb37ac7a --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/UnregisterNotification/config.yaml @@ -0,0 +1,9 @@ + + artifact: + name: + allowedChar: "a-zA-Z_0-9" + encoded: true + consumer: "appc,catalog" + _config: + mergeStrategy: "override" + namespace: "UnregisterNotification" \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/ValidateDefaultMode/config-defaultmode.json b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/ValidateDefaultMode/config-defaultmode.json new file mode 100644 index 0000000000..72833024c4 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/ValidateDefaultMode/config-defaultmode.json @@ -0,0 +1,8 @@ +{ + "artifact": { + "name": { + "minlength": "6" + }, + "extension": "pdf,tgz,xls" + } +} \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/ValidateDefaultMode/config-defaultmode.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/ValidateDefaultMode/config-defaultmode.properties new file mode 100644 index 0000000000..c857da38e9 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/ValidateDefaultMode/config-defaultmode.properties @@ -0,0 +1,2 @@ +artifact.name.maxlength=14 +artifact.maxsize=1048 \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/ValidateNodeConfig/config-NS.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/ValidateNodeConfig/config-NS.properties new file mode 100644 index 0000000000..a782e25835 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/ValidateNodeConfig/config-NS.properties @@ -0,0 +1,13 @@ +artifact.name.maxlength=14 +artifact.extension=pdf, zip, xml +artifact.supportedEncryption=Base64 +artifact.supportedEncryption=MD5 +artifact.name.allowedChar=a-zA-Z +artifact.name.allowedchar=a-zA-Z +artifact.status=deleted +artifact.status=Deleted +artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc +artifact.jsonSchema=@GeneratorsList.json +artifact.xmlSchema=@${env:path}/myschema.json +artifact.consumerAPPC=${artifact.consumer} +_config.namespace=ValidateNodeConfig \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/ValidateNodeConfig/config.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/ValidateNodeConfig/config.properties new file mode 100644 index 0000000000..4daad19dcc --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/ValidateNodeConfig/config.properties @@ -0,0 +1,3 @@ +maxCachedBufferSize=1024 +artifact.maxsize=1024 +artifact.name.maxlength=28 \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/XMLConfiguration/config-M.xml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/XMLConfiguration/config-M.xml new file mode 100644 index 0000000000..320e53348d --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/XMLConfiguration/config-M.xml @@ -0,0 +1,19 @@ + + + + + 28 + + 1048576 + gz,tgz + Base64 + deleted + + true + + + <_config> + XMLConfig + merge + + \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/XMLConfiguration/config-O.xml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/XMLConfiguration/config-O.xml new file mode 100644 index 0000000000..508c920b83 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/XMLConfiguration/config-O.xml @@ -0,0 +1,14 @@ + + + + + a-zA-Z_0-9 + + true + appc,catalog + + <_config> + XMLConfig + override + + \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/XMLConfiguration/config-U.xml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/XMLConfiguration/config-U.xml new file mode 100644 index 0000000000..962bd342f3 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/XMLConfiguration/config-U.xml @@ -0,0 +1,14 @@ + + + + + 6 + + 1048 + pdf,tgz,xls + + <_config> + XMLConfig + union + + \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/XMLConfiguration/config.xml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/XMLConfiguration/config.xml new file mode 100644 index 0000000000..2fff65b2e0 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/XMLConfiguration/config.xml @@ -0,0 +1,25 @@ + + + + + 14 + a-zA-Z + a-zA-Z + + + pdf + zip,xml + + Base64 + MD5 + deleted + Deleted + /opt/spool,${sys:user.home}/asdc + @GeneratorList.json + @${env:path}/myschema.json + ${artifact.consumer} + + <_config> + XMLConfig + + \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/YAMLConfiguration/config-M.yaml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/YAMLConfiguration/config-M.yaml new file mode 100644 index 0000000000..8ff08cdc43 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/YAMLConfiguration/config-M.yaml @@ -0,0 +1,12 @@ + artifact: + name: + maxlength: 28 + maxsize: 1048576 + extension: "gz,tgz" + supportedencryption: Base64 + status: deleted + mandatory: + name: true + _config: + namespace: YAMLConfig + mergeStrategy: merge \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/YAMLConfiguration/config-O.yaml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/YAMLConfiguration/config-O.yaml new file mode 100644 index 0000000000..051d41d76b --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/YAMLConfiguration/config-O.yaml @@ -0,0 +1,8 @@ + artifact: + name: + allowedChar: "a-zA-Z_0-9" + encoded: true + consumer: "appc,catalog" + _config: + namespace: YAMLConfig + mergeStrategy: override \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/YAMLConfiguration/config-U.yaml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/YAMLConfiguration/config-U.yaml new file mode 100644 index 0000000000..8a9ab0e13e --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/YAMLConfiguration/config-U.yaml @@ -0,0 +1,8 @@ + artifact: + name: + minlength: 6 + maxsize: 1048 + extension: "pdf,tgz,xls" + _config: + namespace: YAMLConfig + mergeStrategy: union \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/YAMLConfiguration/config.yaml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/YAMLConfiguration/config.yaml new file mode 100644 index 0000000000..706b22db5e --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/YAMLConfiguration/config.yaml @@ -0,0 +1,27 @@ +artifact: + name: + maxlength: 14 + allowedChar: "a-zA-Z" + allowedchar: "a-zA-Z" + #maxsize: "" + extension: + - + pdf + - + zip,xml + supportedEncryption: + - + Base64 + - + MD5 + status: + - + deleted + - + Deleted + persistLocation: "/opt/spool,${sys:user.home}/asdc" + jsonSchema: "@GeneratorList.json" + xmlSchema: "@${env:path}/myschema.json" + consumerAPPC: "${artifact.consumer}" +_config: + namespace: YAMLConfig \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/config-system.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/config-system.properties new file mode 100644 index 0000000000..cfe91e6c7d --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/config-system.properties @@ -0,0 +1,22 @@ +driverClassName=com.github.adejanovski.cassandra.jdbc.CassandraDriver +jdbcURL=jdbc:${dbname}://${dbhost}:${dbport}/${configdb} +dbuser= +dbpassword= +config.Table=configuration +config.monitor.Table=configuration_change +configKey=key +configValue=value +configNameColumn=name +configdb=dox +dbhost= +dbport=9042 +dbname=cassandra +createtablecql=create table if not exists ${configdb}.${config.Table} (name text\, key text\, value text\, PRIMARY KEY (name\, key)) with clustering order by (key asc) +createmonitoringtablecql=create table if not exists ${configdb}.${config.monitor.Table} (name text\, changed_when bigint\, key text\, old_value text\, new_value text\, PRIMARY KEY (name\, changed_when)) with clustering order by (changed_when desc) +insertconfigurationchangecql=insert into ${configdb}.${config.monitor.Table} (name\, changed_when\, key\, old_value\, new_value) values(?\, ?\, ?\, ?\, ?) +fetchkeysql=select ${configKey} from ${config.Table} where ${configNameColumn}=? +fetchlastchangecql=select changed_when from ${configdb}.${config.monitor.Table} where name=? limit 1 +fetchnamescql=select distinct name from ${configdb}.${config.Table} +config.size.max=100 +config.refresh.interval=30000 +event.fetch.delay=5000 \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/fallback/config-fallback-merge.xml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/fallback/config-fallback-merge.xml new file mode 100644 index 0000000000..3595efd87b --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/fallback/config-fallback-merge.xml @@ -0,0 +1,15 @@ + + + + + 28 + + 1048576 + gz,tgz + Base64 + deleted + + true + + + \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/fallback/config-fallback-override.json b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/fallback/config-fallback-override.json new file mode 100644 index 0000000000..dd6087b70c --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/fallback/config-fallback-override.json @@ -0,0 +1,7 @@ +{ + "artifact": { + "name": { "allowedChar": "a-zA-Z_0-9" }, + "encoded": "true", + "consumer": "appc,catalog" + } +} \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/fallback/config-fallback-union.yaml b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/fallback/config-fallback-union.yaml new file mode 100644 index 0000000000..957b75d40a --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/fallback/config-fallback-union.yaml @@ -0,0 +1,5 @@ + artifact: + name: + minlength: 6 + maxsize: 1048 + extension: "pdf,tgz,xls" \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/fallback/config-fallback.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/fallback/config-fallback.properties new file mode 100644 index 0000000000..7839839258 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/fallback/config-fallback.properties @@ -0,0 +1,13 @@ +artifact.name.maxlength=14 +#artifact.maxsize= +artifact.extension=pdf, zip, xml +artifact.supportedEncryption=Base64 +artifact.supportedEncryption=MD5 +artifact.name.allowedChar=a-zA-Z +artifact.name.allowedchar=a-zA-Z +artifact.status=deleted +artifact.status=Deleted +artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc +artifact.jsonSchema=@GeneratorList.json +artifact.xmlSchema=@${env:path}/myschema.json +artifact.consumerAPPC=${artifact.consumer} diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/java-properties/config-M.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/java-properties/config-M.properties new file mode 100644 index 0000000000..8a571ebc89 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/java-properties/config-M.properties @@ -0,0 +1,7 @@ +artifact.name.maxlength=28 +artifact.maxsize=1048576 +artifact.extension=gz, tgz +artifact.supportedencryption=Base64 +artifact.mandatory.name=true +_config.namespace=javaProperties +_config.mergeStrategy=merge \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/java-properties/config-O.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/java-properties/config-O.properties new file mode 100644 index 0000000000..b27c67a78d --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/java-properties/config-O.properties @@ -0,0 +1,5 @@ +artifact.name.allowedChar=a-zA-Z_0-9 +artifact.encoded=true +artifact.consumer=appc, catalog +_config.namespace=javaProperties +_config.mergeStrategy=override \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/java-properties/config-U.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/java-properties/config-U.properties new file mode 100644 index 0000000000..615f2a2093 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/java-properties/config-U.properties @@ -0,0 +1,5 @@ +artifact.maxsize=1048 +artifact.extension=pdf,tgz, xls +artifact.name.minlength=6 +_config.namespace=javaProperties +_config.mergeStrategy=union \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/java-properties/config.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/java-properties/config.properties new file mode 100644 index 0000000000..d9051f6ec4 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/java-properties/config.properties @@ -0,0 +1,14 @@ +artifact.name.maxlength=14 +#artifact.maxsize= +artifact.extension=pdf, zip, xml +artifact.supportedEncryption=Base64 +artifact.supportedEncryption=MD5 +artifact.name.allowedChar=a-zA-Z +artifact.name.allowedchar=a-zA-Z +artifact.status=deleted +artifact.status=Deleted +artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc +artifact.jsonSchema=@GeneratorList.json +artifact.xmlSchema=@${env:path}/myschema.json +artifact.consumerAPPC=${artifact.consumer} +_config.namespace=javaProperties diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/multitenancy/config-at.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/multitenancy/config-at.properties new file mode 100644 index 0000000000..3bc773369b --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/multitenancy/config-at.properties @@ -0,0 +1,11 @@ +artifact.name.maxlength=20 +#artifact.maxsize= +artifact.extension=pdf, zip, xml +artifact.supportedEncryption=Base64 +artifact.name.allowedChar=a-zA-Z +artifact.status=Deleted +artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc +artifact.jsonSchema=@GeneratorList.json +artifact.xmlSchema=@${env:path}/myschema.json +artifact.consumerAPPC=${artifact.consumer} +_config.namespace=OPENECOMP:tenancy diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/multitenancy/config-tf.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/multitenancy/config-tf.properties new file mode 100644 index 0000000000..196bafe4e4 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/multitenancy/config-tf.properties @@ -0,0 +1,10 @@ +artifact.name.maxlength=30 +#artifact.maxsize= +artifact.extension=pdf, zip, xml +artifact.supportedEncryption=Base64 +artifact.name.allowedChar=a-zA-Z +artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc +artifact.jsonSchema=@GeneratorList.json +artifact.xmlSchema=@${env:path}/myschema.json +artifact.consumerAPPC=${artifact.consumer} +_config.namespace=Telefonica:tenancy diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/multitenancy/config-vf.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/multitenancy/config-vf.properties new file mode 100644 index 0000000000..4c0c6ad897 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/multitenancy/config-vf.properties @@ -0,0 +1,11 @@ +artifact.name.maxlength=24 +#artifact.maxsize= +artifact.extension=pdf, zip, xml +artifact.supportedEncryption=Base64 +artifact.name.allowedChar=a-zA-Z +artifact.status=Deleted +artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc +artifact.jsonSchema=@GeneratorList.json +artifact.xmlSchema=@${env:path}/myschema.json +artifact.consumerAPPC=${artifact.consumer} +_config.namespace=Vodafone:tenancy diff --git a/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/multitenancy/config.properties b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/multitenancy/config.properties new file mode 100644 index 0000000000..8ed2485dc2 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-test/src/test/resources/multitenancy/config.properties @@ -0,0 +1,11 @@ +artifact.name.maxlength=14 +#artifact.maxsize= +artifact.extension=pdf, zip, xml +artifact.supportedEncryption=Base64 +artifact.name.allowedChar=a-zA-Z +artifact.status=Deleted +artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc +artifact.jsonSchema=@GeneratorList.json +artifact.xmlSchema=@${env:path}/myschema.json +artifact.consumerAPPC=${artifact.consumer} +_config.namespace=tenancy diff --git a/common/onap-common-configuration-management/pom.xml b/common/onap-common-configuration-management/pom.xml new file mode 100644 index 0000000000..56f4b5eea5 --- /dev/null +++ b/common/onap-common-configuration-management/pom.xml @@ -0,0 +1,30 @@ + + 4.0.0 + + onap-common-configuration-management + org.onap.sdc.common + onap-common-configuration-management + pom + + + org.onap.sdc.common + onap-common-lib + 1.2.0-SNAPSHOT + .. + + + + onap-configuration-management-api + onap-configuration-management-core + onap-configuration-management-test + + + + + java.net + http://repo1.maven.org/maven2 + + + + diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/pom.xml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/pom.xml new file mode 100644 index 0000000000..c6d022ea85 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/pom.xml @@ -0,0 +1,133 @@ + + 4.0.0 + + onap-sdc-artifact-generator-api + onap-sdc-artifact-generator-api + + + onap-common-lib + org.onap.sdc.common + 1.2.0-SNAPSHOT + ../../ + + + + + org.openecomp.sdc + openecomp-sdc-logging-api + ${project.version} + + + org.openecomp.sdc + openecomp-sdc-logging-core + ${project.version} + runtime + + + org.slf4j + slf4j-api + 1.7.10 + + + ch.qos.logback + logback-classic + ${logback.version} + provided + + + ch.qos.logback + logback-core + ${logback.version} + provided + + + com.fasterxml.jackson.core + jackson-databind + ${jackson.version} + + + com.fasterxml.jackson.dataformat + jackson-dataformat-yaml + ${jackson.version} + + + commons-codec + commons-codec + ${commons.codec.version} + + + org.reflections + reflections + ${org.reflections.version} + + + org.testng + testng + test + 6.8.5 + + + snakeyaml + org.yaml + + + + + junit + junit + test + ${junit.version} + + + + + + + org.jvnet.jaxb2.maven2 + maven-jaxb2-plugin + ${mvn.jaxb2.version} + + + generate-sources + + generate + + + + + src/main/resources + org.onap.sdc.generator.aai.xml + target/generated-sources/custom/aai/xml + false + true + false + false + false + + aai_schema_v11.xsd + + true + + -Xannotate + + + + org.jvnet.jaxb2_commons + jaxb2-basics-annotate + 0.6.4 + + + + org.jvnet.jaxb2_commons + jaxb2-annotate-plugin-test-annox-annotations + 1.0.0 + + + + + + + + + diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/AaiModelGenerator.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/AaiModelGenerator.java new file mode 100644 index 0000000000..5c81ff5dda --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/AaiModelGenerator.java @@ -0,0 +1,62 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai; + +import org.onap.sdc.generator.data.GeneratorConstants; +import org.onap.sdc.generator.aai.model.Resource; +import org.onap.sdc.generator.aai.model.Service; +import org.onap.sdc.generator.logging.CategoryLogLevel; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.slf4j.MDC; + +import java.io.StringWriter; + +public interface AaiModelGenerator { + + /** + * Gets instance. + * + * @return the instance + */ + public static AaiModelGenerator getInstance() { + Logger log = LoggerFactory.getLogger(AaiModelGenerator.class.getName()); + try { + return AaiModelGenerator.class.cast( + Class.forName("org.onap.sdc.generator.aai.AaiModelGeneratorImpl").newInstance()); + } catch (Exception exception) { + MDC.put(GeneratorConstants.PARTNER_NAME, GeneratorConstants.GENERATOR_PARTNER_NAME); + MDC.put(GeneratorConstants.ERROR_CATEGORY, CategoryLogLevel.ERROR.name()); + MDC.put(GeneratorConstants.ERROR_CODE, GeneratorConstants.GENERATOR_ERROR_CODE); + MDC.put( + GeneratorConstants.ERROR_DESCRIPTION, GeneratorConstants.GENERATOR_ERROR_SERVICE_INSTANTIATION_FAILED); + StringWriter sw = new StringWriter(); + log.error(sw.toString(), exception); + } + return null; + } + + public String generateModelFor(Service service); + + public String generateModelFor(Resource resource); + + +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/AllotedResource.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/AllotedResource.java new file mode 100644 index 0000000000..c6389392f6 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/AllotedResource.java @@ -0,0 +1,29 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.Cardinality; +import org.onap.sdc.generator.aai.types.Model; + +@Model(widget = Widget.Type.ALLOTTED_RESOURCE, cardinality = Cardinality.UNBOUNDED, + dataDeleteFlag = true) +public class AllotedResource extends Resource { +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/AllotedResourceWidget.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/AllotedResourceWidget.java new file mode 100644 index 0000000000..88cdaa6af1 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/AllotedResourceWidget.java @@ -0,0 +1,33 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.Cardinality; +import org.onap.sdc.generator.aai.types.Model; +import org.onap.sdc.generator.aai.types.ModelType; +import org.onap.sdc.generator.aai.types.ModelWidget; + + +@Model(widget = Widget.Type.ALLOTTED_RESOURCE, cardinality + = Cardinality.UNBOUNDED, dataDeleteFlag = true) +@ModelWidget(type = ModelType.WIDGET, name = "allotted-resource") +public class AllotedResourceWidget extends ResourceWidget { +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/FlavorWidget.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/FlavorWidget.java new file mode 100644 index 0000000000..a427918bff --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/FlavorWidget.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.Cardinality; +import org.onap.sdc.generator.aai.types.ModelType; +import org.onap.sdc.generator.aai.types.Model; +import org.onap.sdc.generator.aai.types.ModelWidget; + +@Model(widget = Widget.Type.FLAVOR, cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = false) +@ModelWidget(type = ModelType.WIDGET, name = "flavor") +public class FlavorWidget extends ResourceWidget { + +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/ImageWidget.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/ImageWidget.java new file mode 100644 index 0000000000..52a52fc71e --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/ImageWidget.java @@ -0,0 +1,33 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.Cardinality; +import org.onap.sdc.generator.aai.types.ModelType; +import org.onap.sdc.generator.aai.types.Model; +import org.onap.sdc.generator.aai.types.ModelWidget; + +@Model(widget = Widget.Type.IMAGE, cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = false) +@ModelWidget(type = ModelType.WIDGET, name = "image") +public class ImageWidget extends ResourceWidget { + +} + diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/L3Network.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/L3Network.java new file mode 100644 index 0000000000..98713c086b --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/L3Network.java @@ -0,0 +1,29 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.Cardinality; +import org.onap.sdc.generator.aai.types.Model; + +@Model(widget = Widget.Type.L3_NET, cardinality = Cardinality + .UNBOUNDED, dataDeleteFlag = false) +public class L3Network extends Resource{ +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/L3NetworkWidget.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/L3NetworkWidget.java new file mode 100644 index 0000000000..4b59e99bc9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/L3NetworkWidget.java @@ -0,0 +1,34 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.Cardinality; +import org.onap.sdc.generator.aai.types.Model; +import org.onap.sdc.generator.aai.types.ModelType; +import org.onap.sdc.generator.aai.types.ModelWidget; + +@Model(widget = Widget.Type.L3_NET, + cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) +@ModelWidget(type = ModelType.WIDGET, name = "l3-network") +public class L3NetworkWidget extends Widget { + +} + diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/LIntfWidget.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/LIntfWidget.java new file mode 100644 index 0000000000..de62624392 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/LIntfWidget.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.Cardinality; +import org.onap.sdc.generator.aai.types.ModelType; +import org.onap.sdc.generator.aai.types.Model; +import org.onap.sdc.generator.aai.types.ModelWidget; + +@Model(widget = Widget.Type.LINT, cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) +@ModelWidget(type = ModelType.WIDGET, name = "l-interface") +public class LIntfWidget extends ResourceWidget { + +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/Model.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/Model.java new file mode 100644 index 0000000000..ac8dffae02 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/Model.java @@ -0,0 +1,259 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.Cardinality; +import org.onap.sdc.generator.aai.types.ModelType; +import org.onap.sdc.generator.data.GeneratorConstants; +import org.onap.sdc.generator.error.IllegalAccessException; + +import java.util.HashSet; +import java.util.Iterator; +import java.util.Map; +import java.util.Set; + +public abstract class Model { + + protected Set resources = new HashSet<>(); + protected Set widgets = new HashSet<>(); + private String modelId; + private String modelName; + private ModelType modelType; + private String modelVersion; + private String modelNameVersionId; + private String modelDescription; + + /** + * Gets model for. + * + * @param toscaType the tosca type + * @return the model for + */ + public static Model getModelFor(String toscaType) { + + Model modelToBeReturned = null; + while (toscaType != null && toscaType.lastIndexOf(".") != -1 && modelToBeReturned == null) { + + switch (toscaType) { + + case "org.openecomp.resource.vf.allottedResource": + modelToBeReturned = new AllotedResource(); + break; + case "org.openecomp.resource.vfc.AllottedResource": + modelToBeReturned = new ProvidingService(); + break; + case "org.openecomp.resource.vfc": + modelToBeReturned = new VServerWidget(); + break; + case "org.openecomp.resource.cp": + case "org.openecomp.cp": + modelToBeReturned = new LIntfWidget(); + break; + case "org.openecomp.resource.vl": + modelToBeReturned = new L3Network(); + break; + case "org.openecomp.resource.vf": + modelToBeReturned = new VirtualFunction(); + break; + case "org.openecomp.groups.vfmodule": + case "org.openecomp.groups.VfModule": + modelToBeReturned = new VfModule(); + break; + case "org.openecomp.resource.vfc.nodes.heat.cinder": + modelToBeReturned = new VolumeWidget(); + break; + default: + modelToBeReturned = null; + break; + } + + toscaType = toscaType.substring(0, toscaType.lastIndexOf(".")); + } + + return modelToBeReturned; + } + + public abstract boolean addResource(Resource resource); + + public abstract boolean addWidget(Widget resource); + + /** + * Gets widget version id. + * + * @return the widget version id + */ + public String getWidgetId() { + org.onap.sdc.generator.aai.types.Model model = + this.getClass().getAnnotation(org.onap.sdc.generator.aai.types.Model.class); + return Widget.getWidget(model.widget()).getId(); + } + + /** + * Gets invariant id. + * + * @return the invariant id + */ + public String getWidgetInvariantId() { + org.onap.sdc.generator.aai.types.Model model = + this.getClass().getAnnotation(org.onap.sdc.generator.aai.types.Model.class); + return Widget.getWidget(model.widget()).getWidgetId(); + } + + /** + * Gets delete flag. + * + * @return the delete flag + */ + public boolean getDeleteFlag() { + org.onap.sdc.generator.aai.types.Model model = + this.getClass().getAnnotation(org.onap.sdc.generator.aai.types.Model.class); + return model.dataDeleteFlag(); + } + + /** + * Gets cardinality. + * + * @return the cardinality + */ + public Cardinality getCardinality() { + org.onap.sdc.generator.aai.types.Model model = + this.getClass().getAnnotation(org.onap.sdc.generator.aai.types.Model.class); + return model.cardinality(); + } + + public abstract Widget.Type getWidgetType(); + + public String getModelId() { + checkSupported(); + return modelId; + } + + /** + * Gets model type. + * + * @return the model type + */ + public ModelType getModelType() { + //checkSupported(); + if (this instanceof Service) { + return ModelType.SERVICE; + } else if (this instanceof Resource) { + return ModelType.RESOURCE; + } else if (this instanceof Widget) { + return ModelType.WIDGET; + } else { + return null; + } + } + + public String getModelName() { + //checkSupported(); + return modelName; + } + + public String getModelVersion() { + //checkSupported(); + return modelVersion; + } + + public String getModelNameVersionId() { + checkSupported(); + return modelNameVersionId; + } + + public String getModelDescription() { + //checkSupported(); + return modelDescription; + } + + /** + * Populate model identification information. + * + * @param modelIdentInfo the model ident info + */ + public void populateModelIdentificationInformation(Map modelIdentInfo) { + Iterator iter = modelIdentInfo.keySet().iterator(); + String property; + while (iter.hasNext()) { + switch (property = iter.next()) { + + case "vfModuleModelInvariantUUID": + case "serviceInvariantUUID": + case "resourceInvariantUUID": + case "invariantUUID": + case "providing_service_invariant_uuid": + modelId = modelIdentInfo.get(property); + break; + case "vfModuleModelUUID": + case "resourceUUID": + case "serviceUUID": + case "UUID": + case "providing_service_uuid": + modelNameVersionId = modelIdentInfo.get(property); + break; + case "vfModuleModelVersion": + case "serviceVersion": + case "resourceversion": + case "version": + modelVersion = modelIdentInfo.get(property); + break; + case "vfModuleModelName": + case "serviceName": + case "resourceName": + case "name": + modelName = modelIdentInfo.get(property); + break; + case "serviceDescription": + case "resourceDescription": + case "vf_module_description": + case "description": + modelDescription = modelIdentInfo.get(property); + break; + case "providing_service_name": + modelName = modelIdentInfo.get(property); + modelDescription = modelIdentInfo.get(property); + break; + default: + break; + } + property = null; + } + + + + } + + public Set getResources() { + return resources; + } + + public Set getWidgets() { + return widgets; + } + + private void checkSupported() throws IllegalAccessException { + if (this instanceof Widget) { + throw new IllegalAccessException(GeneratorConstants + .GENERATOR_AAI_ERROR_UNSUPPORTED_WIDGET_OPERATION); + } + } + +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/OamNetwork.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/OamNetwork.java new file mode 100644 index 0000000000..d51bf7af96 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/OamNetwork.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.Cardinality; +import org.onap.sdc.generator.aai.types.ModelType; +import org.onap.sdc.generator.aai.types.ModelWidget; +import org.onap.sdc.generator.aai.types.Model; + +@Model(widget = Widget.Type.L3_NET, cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) +@ModelWidget(type = ModelType.WIDGET, name = "oam-network") +public class OamNetwork extends Widget { +} + diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/ProvidingService.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/ProvidingService.java new file mode 100644 index 0000000000..3f44fe9b54 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/ProvidingService.java @@ -0,0 +1,30 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.Cardinality; +import org.onap.sdc.generator.aai.types.Model; + +@Model(widget = Widget.Type.ALLOTTED_RESOURCE, cardinality = Cardinality + .UNBOUNDED, + dataDeleteFlag = false) +public class ProvidingService extends Resource { +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/Resource.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/Resource.java new file mode 100644 index 0000000000..6c7cbc7548 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/Resource.java @@ -0,0 +1,52 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +public class Resource extends Model { + + @Override + public int hashCode() { + return getModelNameVersionId().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof Resource) { + return getModelNameVersionId().equals(((Resource) obj).getModelNameVersionId()); + } + return false; + } + + public boolean addResource(Resource resource) { + return resources.add(resource); + } + + public boolean addWidget(Widget widget) { + return widgets.add(widget); + } + + @Override + public Widget.Type getWidgetType() { + org.onap.sdc.generator.aai.types.Model model = + this.getClass().getAnnotation(org.onap.sdc.generator.aai.types.Model.class); + return model.widget(); + } +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/ResourceWidget.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/ResourceWidget.java new file mode 100644 index 0000000000..24975a2a9f --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/ResourceWidget.java @@ -0,0 +1,26 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +public class ResourceWidget extends Widget { + +} + diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/Service.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/Service.java new file mode 100644 index 0000000000..f71ff91f3e --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/Service.java @@ -0,0 +1,43 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.Cardinality; + +@org.onap.sdc.generator.aai.types.Model(widget = Widget.Type.SERVICE, + cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) +public class Service extends Model { + + public boolean addResource(Resource resource) { + return resources.add(resource); + } + + public boolean addWidget(Widget widget) { + return widgets.add(widget); + } + + @Override + public Widget.Type getWidgetType() { + return null; + } + +} + diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/ServiceWidget.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/ServiceWidget.java new file mode 100644 index 0000000000..f6eb5fab53 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/ServiceWidget.java @@ -0,0 +1,30 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.ModelType; +import org.onap.sdc.generator.aai.types.ModelWidget; + +@ModelWidget(type = ModelType.WIDGET, name = "service-instance") +public class ServiceWidget extends Widget { + +} + diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/TenantWidget.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/TenantWidget.java new file mode 100644 index 0000000000..23e57be12f --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/TenantWidget.java @@ -0,0 +1,33 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.Cardinality; +import org.onap.sdc.generator.aai.types.ModelType; +import org.onap.sdc.generator.aai.types.Model; +import org.onap.sdc.generator.aai.types.ModelWidget; + +@Model(widget = Widget.Type.TENANT, cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = false) +@ModelWidget(type = ModelType.WIDGET, name = "tenant") +public class TenantWidget extends Widget { + +} + diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/TunnelXconnectWidget.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/TunnelXconnectWidget.java new file mode 100644 index 0000000000..1a8a9fea27 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/TunnelXconnectWidget.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.Cardinality; +import org.onap.sdc.generator.aai.types.Model; +import org.onap.sdc.generator.aai.types.ModelType; +import org.onap.sdc.generator.aai.types.ModelWidget; + +@Model(widget = Widget.Type.TUNNEL_XCONNECT, + cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) +@ModelWidget(type = ModelType.WIDGET, name = "tunnel-xconnect") +public class TunnelXconnectWidget extends Widget { +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VServerWidget.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VServerWidget.java new file mode 100644 index 0000000000..6df5bb1407 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VServerWidget.java @@ -0,0 +1,46 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.Cardinality; +import org.onap.sdc.generator.aai.types.ModelType; +import org.onap.sdc.generator.aai.types.Model; +import org.onap.sdc.generator.aai.types.ModelWidget; + +@Model(widget = Widget.Type.VSERVER, cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) +@ModelWidget(type = ModelType.WIDGET, name = "vserver") +public class VServerWidget extends Widget { + + /** + * Instantiates a new V server widget. + */ + public VServerWidget() { + addWidget(new FlavorWidget()); + addWidget(new ImageWidget()); + addWidget(new TenantWidget()); + addWidget(new VfcWidget()); + } + + public boolean addWidget(Widget widget) { + return widgets.add(widget); + } + +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VfModule.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VfModule.java new file mode 100644 index 0000000000..1b715630e4 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VfModule.java @@ -0,0 +1,81 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.Cardinality; +import org.onap.sdc.generator.aai.types.Model; + +import java.util.List; + +@Model(widget = Widget.Type.VFMODULE, cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) +public class VfModule extends Resource { + + Widget vserver = null; + boolean addlintf = false; + boolean addvolume = false; + + List members; + + public void setMembers(List members) { + this.members = members; + } + + /** + * Adds Widget. + * + * @param widget the widget + * @return the boolean + */ + public boolean addWidget(Widget widget) { + if (widget.memberOf(members)) { + if (vserver == null && widget.getId().equals(new VServerWidget().getId())) { + vserver = widget; + if (addlintf) { + vserver.addWidget(new LIntfWidget()); + } + if (addvolume) { + vserver.addWidget(new VolumeWidget()); + } + } else if (widget.getId().equals(new LIntfWidget().getId())) { + if (vserver != null) { + vserver.addWidget(widget); + return true; + } else { + addlintf = true; + } + return false; + } else if (widget.getId().equals(new VolumeWidget().getId())) { + if (vserver != null) { + vserver.addWidget(widget); + } else { + addvolume = true; + } + return true; + } + if (widget.getId().equals(new OamNetwork().getId())) { + return false; + } + return widgets.add(widget); + } + return false; + } + +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VfModuleWidget.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VfModuleWidget.java new file mode 100644 index 0000000000..9753db600c --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VfModuleWidget.java @@ -0,0 +1,34 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.Model; +import org.onap.sdc.generator.aai.types.ModelType; +import org.onap.sdc.generator.aai.types.Cardinality; +import org.onap.sdc.generator.aai.types.ModelWidget; + +@Model(widget = Widget.Type.VFMODULE, + cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) +@ModelWidget(type = ModelType.WIDGET, name = "vf-module") +public class VfModuleWidget extends Widget { + +} + diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VfWidget.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VfWidget.java new file mode 100644 index 0000000000..20ea9973aa --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VfWidget.java @@ -0,0 +1,34 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.Cardinality; +import org.onap.sdc.generator.aai.types.Model; +import org.onap.sdc.generator.aai.types.ModelType; +import org.onap.sdc.generator.aai.types.ModelWidget; + +@Model(widget = Widget.Type.VF, + cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) +@ModelWidget(type = ModelType.WIDGET, name = "generic-vnf") +public class VfWidget extends ResourceWidget { + +} + diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VfcWidget.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VfcWidget.java new file mode 100644 index 0000000000..2d08ef8b7d --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VfcWidget.java @@ -0,0 +1,34 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.Cardinality; +import org.onap.sdc.generator.aai.types.Model; +import org.onap.sdc.generator.aai.types.ModelType; +import org.onap.sdc.generator.aai.types.ModelWidget; + +@Model(widget = Widget.Type.VFC, + cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) +@ModelWidget(type = ModelType.WIDGET, name = "vnfc") +public class VfcWidget extends ResourceWidget { + +} + diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VirtualFunction.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VirtualFunction.java new file mode 100644 index 0000000000..3736ebacc3 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VirtualFunction.java @@ -0,0 +1,30 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.Cardinality; +import org.onap.sdc.generator.aai.types.Model; + +@Model(widget = Widget.Type.VF, cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) +public class VirtualFunction extends Resource { + +} + diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VolumeGroupWidget.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VolumeGroupWidget.java new file mode 100644 index 0000000000..918cfa897c --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VolumeGroupWidget.java @@ -0,0 +1,34 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.Cardinality; +import org.onap.sdc.generator.aai.types.Model; +import org.onap.sdc.generator.aai.types.ModelType; +import org.onap.sdc.generator.aai.types.ModelWidget; + +@Model(widget = Widget.Type.VOLUME_GROUP, + cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) +@ModelWidget(type = ModelType.WIDGET, name = "volume-group") +public class VolumeGroupWidget extends Widget { + +} + diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VolumeWidget.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VolumeWidget.java new file mode 100644 index 0000000000..e0cdac437a --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/VolumeWidget.java @@ -0,0 +1,33 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.Cardinality; +import org.onap.sdc.generator.aai.types.Model; +import org.onap.sdc.generator.aai.types.ModelType; +import org.onap.sdc.generator.aai.types.ModelWidget; + +@Model(widget = Widget.Type.VOLUME, cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) +@ModelWidget(type = ModelType.WIDGET, name = "volume") +public class VolumeWidget extends ResourceWidget { + +} + diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/Widget.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/Widget.java new file mode 100644 index 0000000000..b289b0a83c --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/model/Widget.java @@ -0,0 +1,196 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.model; + +import org.onap.sdc.generator.aai.types.ModelType; +import org.onap.sdc.generator.data.ArtifactType; +import org.onap.sdc.generator.data.GeneratorConstants; +import org.onap.sdc.generator.aai.types.ModelWidget; +import org.onap.sdc.generator.data.WidgetConfigurationUtil; +import org.onap.sdc.generator.error.IllegalAccessException; + +import java.util.Collections; +import java.util.HashSet; +import java.util.List; +import java.util.Properties; +import java.util.Set; + +public abstract class Widget extends Model { + + private Set keys = new HashSet<>(); + + /** + * Gets widget. + * + * @param type the type + * @return the widget + */ + public static Widget getWidget(Type type) { + + switch (type) { + case SERVICE: + return new ServiceWidget(); + case VF: + return new VfWidget(); + case VFC: + return new VfcWidget(); + case VSERVER: + return new VServerWidget(); + case VOLUME: + return new VolumeWidget(); + case FLAVOR: + return new FlavorWidget(); + case TENANT: + return new TenantWidget(); + case VOLUME_GROUP: + return new VolumeGroupWidget(); + case LINT: + return new LIntfWidget(); + case L3_NET: + return new L3NetworkWidget(); + case VFMODULE: + return new VfModuleWidget(); + case IMAGE: + return new ImageWidget(); + case OAM_NETWORK: + return new OamNetwork(); + case ALLOTTED_RESOURCE: + return new AllotedResourceWidget(); + case TUNNEL_XCONNECT: + return new TunnelXconnectWidget(); + default: + return null; + } + + } + + /** + * Gets id. + * + * @return the id + */ + public String getId() { + Properties properties = WidgetConfigurationUtil.getConfig(); + String id = properties.getProperty(ArtifactType.AAI.name() + ".model-version-id." + getName()); + if (id == null) { + throw new IllegalArgumentException(String.format( + GeneratorConstants.GENERATOR_AAI_CONFIGLPROP_NOT_FOUND, + ArtifactType.AAI.name() + ".model-version-id." + getName())); + } + return id; + } + + public ModelType getType() { + ModelWidget widgetModel = this.getClass().getAnnotation(ModelWidget.class); + return widgetModel.type(); + } + + public String getName() { + ModelWidget widgetModel = this.getClass().getAnnotation(ModelWidget.class); + return widgetModel.name(); + } + + /** + * Get Widget Id from properties file. + * @return - Widget Id + */ + public String getWidgetId() { + Properties properties = WidgetConfigurationUtil.getConfig(); + String id = properties.getProperty(ArtifactType.AAI.name() + ".model-invariant-id." + + getName()); + if (id == null) { + throw new IllegalArgumentException(String.format( + GeneratorConstants.GENERATOR_AAI_CONFIGLPROP_NOT_FOUND, + ArtifactType.AAI.name() + ".model-invariant-id." + getName())); + } + return id; + } + + public int hashCode() { + return getId().hashCode(); + } + + @Override + public Type getWidgetType() { + return null; + } + + /** + * Equals. + * + * @param obj Object + * @return the boolean + */ + public boolean equals(Object obj) { + if (obj instanceof Widget) { + if (getId().equals(((Widget) obj).getId())) { + ((Widget) obj).keys.addAll(this.keys); + return true; + } + return false; + } else { + return false; + } + } + + public void addKey(String key) { + this.keys.add(key); + } + + /** + * Member of boolean. + * + * @param keys the keys + * @return the boolean + */ + public boolean memberOf(List keys) { + if (keys == null) { + return false; + } + return !Collections.disjoint(this.keys, keys); + } + + /** + * All instances used boolean. + * + * @param collection the collection + * @return the boolean + */ + public boolean allInstancesUsed(Set collection) { + Set keyCopy = new HashSet<>(keys); + keyCopy.removeAll(collection); + return keyCopy.isEmpty(); + } + + public boolean addResource(Resource resource) { + throw new IllegalAccessException(GeneratorConstants + .GENERATOR_AAI_ERROR_UNSUPPORTED_WIDGET_OPERATION); + } + + public boolean addWidget(Widget widget) { + return true; + } + + public enum Type { + SERVICE, VF, VFC, VSERVER, VOLUME, FLAVOR, TENANT, VOLUME_GROUP, LINT, L3_NET, VFMODULE, IMAGE, + OAM_NETWORK,ALLOTTED_RESOURCE,TUNNEL_XCONNECT + } +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/CapabilityAssignment.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/CapabilityAssignment.java new file mode 100644 index 0000000000..99f9771654 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/CapabilityAssignment.java @@ -0,0 +1,45 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.tosca; + +import java.util.Map; + +public class CapabilityAssignment { + + private Map properties; + private Map attributes; + + public Map getProperties() { + return properties; + } + + public void setProperties(Map properties) { + this.properties = properties; + } + + public Map getAttributes() { + return attributes; + } + + public void setAttributes(Map attributes) { + this.attributes = attributes; + } +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/GroupDefinition.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/GroupDefinition.java new file mode 100644 index 0000000000..8892eebd7e --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/GroupDefinition.java @@ -0,0 +1,73 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.tosca; + +import java.util.List; +import java.util.Map; + +public class GroupDefinition { + + private String type; + private String description; + private Map properties; + private List members; + private Map metadata; + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Map getProperties() { + return properties; + } + + public void setProperties(Map properties) { + this.properties = properties; + } + + public List getMembers() { + return members; + } + + public void setMembers(List members) { + this.members = members; + } + + public Map getMetadata() { + return metadata; + } + + public void setMetadata(Map metadata) { + this.metadata = metadata; + } +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/NodeTemplate.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/NodeTemplate.java new file mode 100644 index 0000000000..d58d9e005d --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/NodeTemplate.java @@ -0,0 +1,82 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.tosca; + +import java.util.List; +import java.util.Map; + +public class NodeTemplate { + + private String type; + private String description; + private Map metadata; + private Map properties; + private List> requirements; + private Map capabilities; + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Map getProperties() { + return properties; + } + + public void setProperties(Map properties) { + this.properties = properties; + } + + public List> getRequirements() { + return requirements; + } + + public void setRequirements(List> requirements) { + this.requirements = requirements; + } + + public Map getCapabilities() { + return capabilities; + } + + public void setCapabilities(Map capabilities) { + this.capabilities = capabilities; + } + + public Map getMetadata() { + return metadata; + } + + public void setMetadata(Map metadata) { + this.metadata = metadata; + } +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/RequirementAssignment.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/RequirementAssignment.java new file mode 100644 index 0000000000..20d36a4ea0 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/RequirementAssignment.java @@ -0,0 +1,53 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.tosca; + +public class RequirementAssignment { + + private String capability; + private String node; + private String relationship; + + public String getCapability() { + return capability; + } + + public void setCapability(String capability) { + this.capability = capability; + } + + public String getNode() { + return node; + } + + public void setNode(String node) { + this.node = node; + } + + public String getRelationship() { + return relationship; + } + + public void setRelationship(String relationship) { + this.relationship = relationship; + } + +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/TopologyTemplate.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/TopologyTemplate.java new file mode 100644 index 0000000000..124c55cc77 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/TopologyTemplate.java @@ -0,0 +1,71 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.tosca; + +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +public class TopologyTemplate { + + private String description; + private Map node_templates; + private Map groups; + + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Map getGroups() { + return groups; + } + + public void setGroups(Map groups) { + this.groups = groups; + } + + public Map getNode_templates() { + return node_templates; + } + + public void setNode_templates(Map node_templates) { + this.node_templates = node_templates; + } + + /** + * Add group. + * + * @param groupKey the group key + * @param groupDefinition the group definition + */ + public void addGroup(String groupKey, GroupDefinition groupDefinition) { + if (Objects.isNull(this.groups)) { + this.groups = new HashMap<>(); + } + this.groups.put(groupKey, groupDefinition); + } + +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/ToscaTemplate.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/ToscaTemplate.java new file mode 100644 index 0000000000..d92b826071 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/tosca/ToscaTemplate.java @@ -0,0 +1,82 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.tosca; + +import java.util.Map; + +public class ToscaTemplate { + private String toscaDefinitionsVersion; + private Map metadata; + private String description; + private TopologyTemplate topology_template; + + public String getToscaDefinitionsVersion() { + return toscaDefinitionsVersion; + } + + public void setToscaDefinitionsVersion(String toscaDefinitionsVersion) { + this.toscaDefinitionsVersion = toscaDefinitionsVersion; + } + + public Map getMetadata() { + return metadata; + } + + public void setMetadata(Map metadata) { + this.metadata = metadata; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public TopologyTemplate getTopology_template() { + return topology_template; + } + + public void setTopology_template(TopologyTemplate topology_template) { + this.topology_template = topology_template; + } + + /** + * Is Service. + * + * @return the boolean + */ + public boolean isService() { + return metadata.containsKey("serviceUUID") + || ("Service".equalsIgnoreCase(metadata.get("Type")) + || ("Service".equalsIgnoreCase(metadata.get("type")))); + } + + public String getModelId() { + return metadata.get("invariantUUID"); + } + + public String getModelVersionId() { + return metadata.get("UUID"); + } + +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/types/Cardinality.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/types/Cardinality.java new file mode 100644 index 0000000000..be7c945af9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/types/Cardinality.java @@ -0,0 +1,26 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.types; + +public enum Cardinality { + + UNBOUNDED +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/types/Model.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/types/Model.java new file mode 100644 index 0000000000..73407a5516 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/types/Model.java @@ -0,0 +1,55 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.types; + +import org.onap.sdc.generator.aai.model.Widget.Type; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target(ElementType.TYPE) +@Retention(RetentionPolicy.RUNTIME) +public @interface Model { + + /** + * Widget widget . type. + * + * @return the widget . type + */ + public Type widget(); + + /** + * Data delete flag boolean. + * + * @return the boolean + */ + public boolean dataDeleteFlag(); + + /** + * Cardinality cardinality. + * + * @return the cardinality + */ + public Cardinality cardinality(); + +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/types/ModelType.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/types/ModelType.java new file mode 100644 index 0000000000..90da359316 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/types/ModelType.java @@ -0,0 +1,47 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.types; + +public enum ModelType { + SERVICE, RESOURCE, WIDGET; + + /** + * Gets model type. + * + * @param modelType the model type + * @return the model type + */ + public static ModelType getModelType(String modelType) { + if (modelType != null) { + switch (modelType.toLowerCase()) { + case "service": + return SERVICE; + case "resource": + return RESOURCE; + case "widget": + return WIDGET; + default: + return null; + } + } + return null; + } +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/types/ModelWidget.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/types/ModelWidget.java new file mode 100644 index 0000000000..6ce16459ba --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/aai/types/ModelWidget.java @@ -0,0 +1,46 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai.types; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target(ElementType.TYPE) +@Retention(RetentionPolicy.RUNTIME) +public @interface ModelWidget { + + /** + * Type model type. + * + * @return the model type + */ + public ModelType type(); + + /** + * Name string. + * + * @return the string + */ + public String name(); + +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/AdditionalParams.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/AdditionalParams.java new file mode 100644 index 0000000000..d9cfadec9a --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/AdditionalParams.java @@ -0,0 +1,39 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.data; + + +public enum AdditionalParams { + ServiceVersion("serviceVersion"); + + private String name; + + AdditionalParams(String name) { + this.name = name; + } + + public String getName() { + return name; + } +} + + + diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/Artifact.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/Artifact.java new file mode 100644 index 0000000000..d59fbc3bb7 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/Artifact.java @@ -0,0 +1,96 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.data; + +public class Artifact { + + String name; + String type; + String groupType; + String description; + String label; + String version; + String checksum; + byte[] payload; + + /** + * Instantiates a new Artifact. + * + * @param type the type + * @param groupType the group type + * @param checksum the checksum + * @param payload the payload + */ + public Artifact(String type, String groupType, String checksum, byte[] payload) { + this.type = type; + this.groupType = groupType; + this.checksum = checksum; + this.payload = payload; + } + + public byte[] getPayload() { + return payload; + } + + public String getChecksum() { + return checksum; + } + + public String getType() { + return type; + } + + public String getGroupType() { + return groupType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getLabel() { + return label; + } + + public void setLabel(String label) { + this.label = label; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/ArtifactType.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/ArtifactType.java new file mode 100644 index 0000000000..e844f945ab --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/ArtifactType.java @@ -0,0 +1,27 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.data; + +public enum ArtifactType { + OTHER, + AAI, + MODEL_INVENTORY_PROFILE +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/GenerationData.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/GenerationData.java new file mode 100644 index 0000000000..83a8452797 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/GenerationData.java @@ -0,0 +1,70 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.data; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class GenerationData { + + List resultData = new ArrayList<>(); + Map> errorData = new HashMap<>(); + + public void add(List resultData, Map> errorData) { + this.resultData.addAll(resultData); + this.errorData.putAll(errorData); + } + + + public void add(Artifact generatedArtifact) { + resultData.add(generatedArtifact); + } + + /** + * Add. + * + * @param generatorId the generator id + * @param errorCode the error code + */ + public void add(String generatorId, String errorCode) { + List errorIds; + if ((errorIds = errorData.get(generatorId)) == null) { + errorIds = new ArrayList<>(); + errorData.put(generatorId, errorIds); + } + errorIds.add(errorCode); + } + + public void add(GenerationData generationData) { + this.resultData.addAll(generationData.resultData); + this.errorData.putAll(generationData.errorData); + } + + public List getResultData() { + return resultData; + } + + public Map> getErrorData() { + return errorData; + } +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/GeneratorConfiguration.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/GeneratorConfiguration.java new file mode 100644 index 0000000000..af26b2b531 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/GeneratorConfiguration.java @@ -0,0 +1,36 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.data; + +import java.util.List; + +public class GeneratorConfiguration { + + private List artifactTypes = null; + + public List getArtifactTypes() { + return artifactTypes; + } + + public void setArtifactTypes(List artifactTypes) { + this.artifactTypes = artifactTypes; + } +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/GeneratorConstants.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/GeneratorConstants.java new file mode 100644 index 0000000000..8f79aa1503 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/GeneratorConstants.java @@ -0,0 +1,129 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.data; + +public class GeneratorConstants { + + public static final String GENERATOR_AAI_GENERATED_ARTIFACT_EXTENSION = "xml"; + + //Error codes + public static final String GENERATOR_INVOCATION_ERROR_CODE = + "ARTIFACT_GENERATOR_INVOCATION_ERROR"; + + + //Error Constants + public static final String GENERATOR_ERROR_INVALID_CLIENT_CONFIGURATION = + "Invalid Client Configuration"; + public static final String GENERATOR_ERROR_ARTIFACT_GENERATION_FAILED = + "Unable to generate artifacts for the provided input"; + public static final String GENERATOR_ERROR_SERVICE_INSTANTIATION_FAILED = + "Artifact Generation Service Instantiation failed"; + + //AAI Generator Error Messages + public static final String GENERATOR_AAI_ERROR_CHECKSUM_MISMATCH = + "Checksum Mismatch for file : %s"; + public static final String GENERATOR_AAI_ERROR_INVALID_TOSCA = + "Invalid format for Tosca YML : %s"; + public static final String GENERATOR_AAI_ERROR_MANDATORY_METADATA_DEFINITION = + "Invalid Service/Resource definition mandatory attribute <%s> missing in Artifact: <%s>"; + public static final String GENERATOR_AAI_ERROR_INVALID_ID = + "Invalid value for mandatory attribute <%s> in Artifact: <%s>"; + public static final String GENERATOR_AAI_ERROR_UNSUPPORTED_WIDGET_OPERATION = + "Operation Not Supported for Widgets"; + public static final String GENERATOR_AAI_ERROR_MISSING_SERVICE_TOSCA = + "Service tosca missing from list of input artifacts"; + public static final String GENERATOR_AAI_ERROR_NULL_RESOURCE_VERSION_IN_SERVICE_TOSCA = + "Invalid Service definition mandatory attribute version missing for resource with UUID: <%s>"; + + public static final String GENERATOR_AAI_ERROR_INVALID_RESOURCE_VERSION_IN_SERVICE_TOSCA = + "Cannot generate artifacts. Invalid Resource version in Service tosca for resource with " + + "UUID: " + + "<%s>"; + public static final String GENERATOR_AAI_ERROR_MISSING_RESOURCE_TOSCA = + "Cannot generate artifacts. Resource Tosca missing for resource with UUID: <%s>"; + + public static final String GENERATOR_AAI_ERROR_MISSING_SERVICE_VERSION = + "Cannot generate artifacts. Service version is not specified"; + + public static final String GENERATOR_AAI_INVALID_SERVICE_VERSION = + "Cannot generate artifacts. Service version is incorrect"; + + //Logging constants + public static final String REQUEST_ID = "uuid"; + public static final String SERVICE_INSTANCE_ID = "serviceInstanceID"; + public static final String PARTNER_NAME = "userId"; + public static final String SERVICE_NAME = "ServiceName"; + public static final String INSTANCE_UUID = "InstanceUUID"; + public static final String REMOTE_HOST = "RemoteHost"; + public static final String CLIENT_IP = "ClientIP"; + public static final String CATEGORY_LOG_LEVEL = "level"; + public static final String STATUS_CODE = "StatusCode"; + public static final String RESPONSE_CODE = "ResponseCode"; + public static final String RESPONSE_DESCRIPTION = "ResponseDescription"; + public static final String ELAPSED_TIME = "ElapsedTime"; + public static final String BEGIN_TIMESTAMP = "BeginTimestamp"; + public static final String TARGET_SERVICE_NAME = "TargetServiceName"; + public static final String TARGET_ENTITY = "TargetEntity"; + public static final String END_TIMESTAMP = "EndTimestamp"; + public static final String ERROR_CATEGORY = "ErrorCategory"; + public static final String ERROR_CODE = "ErrorCode"; + public static final String ERROR_DESCRIPTION = "ErrorDescription"; + public static final String MDC_SDC_INSTANCE_UUID = "SDC_INSTANCE_UUID"; + public static final String SERVICE_METRIC_BEGIN_TIMESTAMP = "SERVICE-METRIC-BEGIN-TIMESTAMP"; + public static final String LOCAL_ADDR = "localAddr"; //map ServerIPAddress from loggingfilter + public static final String BE_FQDN = "beFqdn"; //map ServerFQDN from logging filter + public static final String ARTIFACT_MODEL_INFO = "ARTIFACT_MODEL_INFO"; + + public static final String GENERATOR_ERROR_CODE = "300F"; + public static final String GENERATOR_PARTNER_NAME = "SDC Catalog"; + public static final String GENERATOR_METRICS_TARGET_ENTITY = "SDC Catalog"; + public static final String GENERATOR_METRICS_FAILURE_RESPONSE_CODE = "300E"; + public static final String GENERATOR_METRICS_FAILURE_RESPONSE_DESC = "Artifact generation " + + "failed for artifact type %s"; + public static final String GENERATOR_METRICS_SUCCESS_RESPONSE_CODE = "010"; + public static final String GENERATOR_METRICS_SUCCESS_RESPONSE_DESC = "Artifacts for type %s " + + "were generated successfully"; + public static final String GENERATOR_AUDIT_NO_ARTIFACT_TYPE_RESPONSE_DESC = "No Artifact Type " + + "found" ; + + //AAI Generator Error Messages for Logging + public static final String GENERATOR_AAI_ERROR_INVALID_TOSCA_MSG = + "Invalid format for Tosca YML"; + public static final String GENERATOR_AAI_ERROR_MANDATORY_METADATA_DEFINITION_MSG = + "Invalid Service/Resource definition mandatory attribute"; + public static final String GENERATOR_AAI_ERROR_MISSING_SERVICE_TOSCA_MSG = + "Service tosca missing from list of input artifacts"; + public static final String GENERATOR_ERROR_INVALID_CLIENT_CONFIGURATION_MSG = + "Invalid Client Configuration"; + public static final String GENERATOR_ERROR_ARTIFACT_GENERATION_FAILED_MSG = + "Unable to generate artifacts for the provided input"; + public static final String GENERATOR_AAI_CONFIGFILE_NOT_FOUND = + "Cannot generate artifacts. Artifact Generator Configuration file not found at %s"; + public static final String GENERATOR_AAI_CONFIGLOCATION_NOT_FOUND = + "Cannot generate artifacts. artifactgenerator.config system property not configured"; + public static final String GENERATOR_AAI_CONFIGLPROP_NOT_FOUND = + "Cannot generate artifacts. Widget configuration not found for %s"; + public static final String GENERATOR_AAI_PROVIDING_SERVICE_MISSING = + "Cannot generate artifacts. Providing Service is missing for allotted resource %s"; + public static final String GENERATOR_AAI_PROVIDING_SERVICE_METADATA_MISSING = + "Cannot generate artifacts. Providing Service Metadata is missing for allotted resource %s"; + public static final int ID_LENGTH = 36; +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/GeneratorUtil.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/GeneratorUtil.java new file mode 100644 index 0000000000..918fa1e0a8 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/GeneratorUtil.java @@ -0,0 +1,104 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.data; + +import com.fasterxml.jackson.databind.DeserializationFeature; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.dataformat.yaml.YAMLFactory; +import org.apache.commons.codec.digest.DigestUtils; + +import java.io.IOException; +import java.util.Base64; + +/** + * Utility method class for artifact generation. + */ +public class GeneratorUtil { + /** + * Translate tosca yaml into the provided model class. + * + * @param tosca Tosca file content + * @param classOfT Model class for the translated object + * @param Template parameter for the return object + * @return Object model for the provided tosca yaml file + */ + public static T translateTosca(String tosca, Class classOfT) throws IOException { + T tos; + //changing file + ObjectMapper mapper = new ObjectMapper(new YAMLFactory()); // jackson data-bind + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + tos = mapper.readValue(tosca, classOfT); + return tos; + } + + /** + * Decodes Base64 encode byte array input. + * + * @param input Base64 encoded byte array + * @return Decoded byte array + */ + public static byte[] decoder(byte[] input) { + if (input != null) { + byte[] output = Base64.getDecoder().decode(input); + return output; + } + return null; + } + + /** + * Encode a byte array input using Base64 encoding. + * + * @param input Input byte array to be encoded + * @return Base64 encoded byte array + */ + public static byte[] encode(byte[] input) { + if (input != null) { + byte[] output = Base64.getEncoder().encode(input); + return output; + } + return null; + } + + /** + * Calculate the checksum for a given input. + * + * @param input Byte array for which the checksum has to be calculated + * @return Calculated checksum of the input byte array + */ + public static String checkSum(byte[] input) { + String checksum = null; + if (input != null) { + checksum = (DigestUtils.md5Hex(input)).toUpperCase(); + } + return checksum; + } + + /** + * Check if string is empty or null. + * + * @param input Input String + * @return true if string is empty/null and false otherwise + */ + public static boolean isEmpty(String input) { + return input == null || input.length() == 0; + } + +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/GroupType.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/GroupType.java new file mode 100644 index 0000000000..69a8484885 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/GroupType.java @@ -0,0 +1,26 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.data; + +public enum GroupType { + DEPLOYMENT, + OTHER +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/WidgetConfigurationUtil.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/WidgetConfigurationUtil.java new file mode 100644 index 0000000000..ab2da6caca --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/data/WidgetConfigurationUtil.java @@ -0,0 +1,36 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.data; + +import java.util.Properties; + +public class WidgetConfigurationUtil { + + private static Properties config ; + + public static Properties getConfig() { + return config; + } + + public static void setConfig(Properties config) { + WidgetConfigurationUtil.config = config; + } +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/error/IllegalAccessException.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/error/IllegalAccessException.java new file mode 100644 index 0000000000..823af87fcc --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/error/IllegalAccessException.java @@ -0,0 +1,29 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.error; + +public class IllegalAccessException extends RuntimeException { + + public IllegalAccessException(String message) { + super(message); + } + +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/intf/ArtifactGenerator.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/intf/ArtifactGenerator.java new file mode 100644 index 0000000000..4578a150e0 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/intf/ArtifactGenerator.java @@ -0,0 +1,35 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.intf; + +import org.onap.sdc.generator.data.GenerationData; +import org.onap.sdc.generator.data.Artifact; + +import java.util.List; +import java.util.Map; + + +public interface ArtifactGenerator { + + public GenerationData generateArtifact(List input, + Map additionalParams); + +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/intf/Generator.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/intf/Generator.java new file mode 100644 index 0000000000..069316a577 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/intf/Generator.java @@ -0,0 +1,40 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.intf; + +import org.onap.sdc.generator.data.ArtifactType; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target(ElementType.TYPE) +@Retention(RetentionPolicy.RUNTIME) +public @interface Generator { + + /** + * Artifact type artifact type. + * + * @return the artifact type + */ + public ArtifactType artifactType(); +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/logging/ArtifactGeneratorLogResponseCode.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/logging/ArtifactGeneratorLogResponseCode.java new file mode 100644 index 0000000000..17507f1474 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/logging/ArtifactGeneratorLogResponseCode.java @@ -0,0 +1,68 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.logging; + +import java.util.HashMap; +import java.util.Map; + +public enum ArtifactGeneratorLogResponseCode { + INTERNAL_SERVER_ERROR(201), + MISSING_CONFIG_PROPERTIES_FILE(202), + MISSING_SYSTME_PROPERY_CONFIGURATION(203), + MANDATORY_ATTRIBUTE_MISSING(313), + SERVICE_TOSCA_MISSING(314), + INVALID_TOSCA_YAML(315), + INVALID_CLIENT_CONFIGURATION(316), + UNABLE_TO_GENERATE_ARTIFACT(317), + MISSING_WIDGET_CONFIGURATION(318), + INVALID_ID_VALUE(319), + MISSING_SERVICE_VERSION(320), + INVALID_SERVICE_VERSION(321), + MISSING_RESOURCE_VERSION(322), + INVALID_RESOURCE_VERSION(323), + MISSING_PRO_SERVICE(324), + MISSING_PRO_SERVICE_METADATA(325), + RESOURCE_TOSCA_MISSING(326); + + + private static Map mapValueToEnum = new HashMap<>(); + + static { + for (ArtifactGeneratorLogResponseCode responseCode : + ArtifactGeneratorLogResponseCode.values()) { + mapValueToEnum.put(responseCode.value, responseCode); + } + } + + private int value; + + ArtifactGeneratorLogResponseCode(int value) { + this.value = value; + } + + public static ArtifactGeneratorLogResponseCode parseValue(int value) { + return mapValueToEnum.get(value); + } + + public int getValue() { + return value; + } +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/logging/CategoryLogLevel.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/logging/CategoryLogLevel.java new file mode 100644 index 0000000000..930b5c78d0 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/logging/CategoryLogLevel.java @@ -0,0 +1,29 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.logging; + +public enum CategoryLogLevel { + INFO, + WARN, + DEBUG, + ERROR, + FATAL +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/logging/StatusCode.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/logging/StatusCode.java new file mode 100644 index 0000000000..0eb3b6d3b6 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/logging/StatusCode.java @@ -0,0 +1,26 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.logging; + +public enum StatusCode { + COMPLETE, + ERROR +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/logging/annotations/Audit.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/logging/annotations/Audit.java new file mode 100644 index 0000000000..c56bd4a5f1 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/logging/annotations/Audit.java @@ -0,0 +1,34 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.logging.annotations; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * Indicates a method for auditing during artifact generation. + */ +@Target(ElementType.METHOD) +@Retention(RetentionPolicy.RUNTIME) +public @interface Audit { +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/logging/annotations/Metrics.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/logging/annotations/Metrics.java new file mode 100644 index 0000000000..468ab6412b --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/logging/annotations/Metrics.java @@ -0,0 +1,35 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.logging.annotations; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * Indicates a method for metrics recording during artifact generation. + * + */ +@Target(ElementType.METHOD) +@Retention(RetentionPolicy.RUNTIME) +public @interface Metrics { +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/service/ArtifactGenerationService.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/service/ArtifactGenerationService.java new file mode 100644 index 0000000000..2af9664481 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/java/org/onap/sdc/generator/service/ArtifactGenerationService.java @@ -0,0 +1,69 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.service; + +import org.onap.sdc.generator.data.GenerationData; +import org.onap.sdc.generator.data.GeneratorConstants; +import org.openecomp.sdc.logging.api.Logger; +import org.openecomp.sdc.logging.api.LoggerFactory; +import org.onap.sdc.generator.data.Artifact; +import org.onap.sdc.generator.logging.CategoryLogLevel; +import org.slf4j.MDC; + +import java.util.List; +import java.util.Map; + + +/** + * Artifact Generation Service interface. + */ +public interface ArtifactGenerationService { + + + /** + * Method to get artifact generation service implementation. + * + * @return Artifact generation implementation instance + */ + public static ArtifactGenerationService lookup() { + + Logger log = LoggerFactory.getLogger(ArtifactGenerationService.class.getName()); + log.debug("Instantiating Artifact Generation Service"); + try { + return ArtifactGenerationService.class.cast( + Class.forName("org.openecomp.sdc.generator.impl.ArtifactGenerationServiceImpl") + .newInstance()); + } catch (Exception exception) { + MDC.put(GeneratorConstants.PARTNER_NAME, GeneratorConstants.GENERATOR_PARTNER_NAME); + MDC.put(GeneratorConstants.ERROR_CATEGORY, CategoryLogLevel.ERROR.name()); + MDC.put(GeneratorConstants.ERROR_CODE, GeneratorConstants.GENERATOR_ERROR_CODE); + MDC.put( + GeneratorConstants.ERROR_DESCRIPTION, GeneratorConstants.GENERATOR_ERROR_SERVICE_INSTANTIATION_FAILED); + log.error(GeneratorConstants.GENERATOR_ERROR_SERVICE_INSTANTIATION_FAILED, exception); + } + log.debug(GeneratorConstants.GENERATOR_ERROR_SERVICE_INSTANTIATION_FAILED); + return null; + } + + public GenerationData generateArtifact(List input, String overridingConfiguration, + Map additionalParams); + +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/resources/aai_schema_v10.xsd b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/resources/aai_schema_v10.xsd new file mode 100644 index 0000000000..7bc3466506 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/resources/aai_schema_v10.xsd @@ -0,0 +1,6311 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The specific type of node in the A&AI graph") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The URL to the specific resource") + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="A keyword provided by A&AI to indicate an attribute.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Value of the attribute.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Key part of a key/value pair") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Value part of a key/value pair") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="A keyword provided by A&AI to indicate type of node.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to the object in A&AI.") + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="OAM network, to be deprecated shortly. Do not use for new purposes. ",nameProps="network-name",indexedProps="cvlan-tag,network-uuid,network-name",dependentOn="cloud-region",container="oam-networks") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="UUID of the network. Unique across a cloud-region") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of the network.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="cvlan-id") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for VNF firewall rule so customer cannot send customer traffic over this oam network") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for VNF firewall rule so customer cannot send customer traffic over this oam network") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of OAM networks, to be deprecated shortly. Do not use for new purposes. ") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Digital virtual switch metadata, used by SDN-C to configure VCEs. A&AI needs to receive this data from the PO deployment team and administer it using the provisioningTool.sh into A&AI. ",indexedProps="vcenter-url,switch-name",dependentOn="cloud-region",container="dvs-switches") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="DVS switch name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL used to reach the vcenter") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of digital virtual switch metadata used for vmWare VCEs and VPEs.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Availability zone, a collection of compute hosts/pservers",indexedProps="availability-zone-name",dependentOn="cloud-region",container="availability-zones") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name of the availability zone. Unique across a cloud region") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Type of hypervisor. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="State that indicates whether the availability zone should be used, etc. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Serves a PATCH like function. Does not enforce concurrency control. Clear each usage with AAI team.") + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="APIs that are more action related than REST (e.g., notify, update).") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="A collection of C tags (vlan tags) grouped for a specific purpose.",indexedProps="availability-zone-name",dependentOn="complex",container="ctag-pools") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="The Target provider edge router") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name of the availability zone") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Describes what the intended purpose of this pool is.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Comma separated list of ctags") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of physical locations that can house cloud-regions.",indexedProps="identity-url,data-center-code,complex-name,physical-location-id",searchable="physical-location-id,data-center-code,complex-name,street1,street2,postal-code",uniqueProps="physical-location-id",container="complexes",namespace="cloud-infrastructure") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier for physical location, e.g., CLLI") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Data center code which can be an alternate way to identify a complex") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Gamma complex name for LCP instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL of the keystone identity service") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Type, e.g., central office, data center.") + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of physical locations that can house cloud-regions.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Persistent block-level storage.",indexedProps="volume-group-name,vnf-type,heat-stack-id,volume-group-id",searchable="volume-group-name",dependentOn="cloud-region",container="volume-groups") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of volume-group.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of the volume group.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this volume-group") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this volume-group") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of persistent block-level storage.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Ephemeral Block storage volume.",indexedProps="volume-id",dependentOn="vserver",container="volumes") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of block storage volume relative to the vserver.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of ephemeral Block storage volumes.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPv4 Address Range",indexedProps="l3-interface-ipv4-address,vlan-id-inner,neutron-network-id,neutron-subnet-id",dependentOn="vlan,l-interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="IP address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Prefix length, 32 for single address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Inner VLAN tag") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Outer VLAN tag") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicator of fixed or floating address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron network id of the interface that address belongs to") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron id of subnet that address belongs to") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPv6 Address Range",indexedProps="l3-interface-ipv6-address,vlan-id-inner,neutron-network-id,neutron-subnet-id",dependentOn="vlan,l-interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="IP address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Prefix length, 128 for single address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Inner VLAN tag") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Outer VLAN tag") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicator of fixed or floating address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron network id of the interface that address belongs to") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron id of subnet that address belongs to") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Definition of vlan",indexedProps="vlan-interface,vlan-id-inner,vpn-id",uniqueProps="vpn-id",dependentOn="l-interface",container="vlans") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="String that identifies the interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Inner VLAN tag") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Outer VLAN tag") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used to describe (the service associated with) the vlan") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Whether customer is going to use this VLAN for backdoor connection to another customer premise device.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This indicates the customers VPN ID associated with this vlan") + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="SR-IOV Virtual Function (not to be confused with virtual network function)",indexedProps="pci-id,vf-vlan-filter,vf-mac-filter,vf-vlan-strip,neutron-network-id",dependentOn="l-interface",container="sriov-vfs") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="PCI ID used to identify the sriov-vf") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This metadata provides option to specify list of VLAN filters applied on VF to pass the traffic to VM.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="When MAC filters are specified, VF-agent service configures VFs to do MAC level filtering before the traffic is passed to VM.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="When this field is set to true, VF will configured to strip the outer TAG before the traffic is passed to VM.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option ensures anti VLAN spoof checks are done at the VF level to comply with security. The disable check will also be honored per the VNF needs for trusted VMs.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option ensures anti MAC spoof checks are done at the VF level to comply with security. The disable check will also be honored per the VNF needs for trusted VMs.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option defines the set of Mirror objects which essentially mirrors the traffic from source to set of collector VNF Ports.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, sets the VF in promiscuous mode and allows all broadcast traffic to reach the VM") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, sets the VF in promiscuous mode and allows unknown multicast traffic to reach the VM") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, sets the VF in promiscuous mode and allows unknown unicast traffic to reach the VM") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, instructs to insert outer tag after traffic comes out of VM.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option is used to set the link status. Valid values as of 1607 are on, off, and auto.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron network id of the interface") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of SR-IOV Virtual Functions.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Logical interfaces, e.g., a vnic.",indexedProps="macaddr,interface-id,interface-name,network-name",dependentOn="generic-vnf,newvce,vpe,p-interface,vserver,lag-interface",container="l-interfaces") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name given to the interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="E.g., CUSTOMER, UPLINK, etc.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Questionably placed - v6 ip addr of this interface (is in vr-lan-interface from Mary B.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ID of interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="MAC address for the interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of the network") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Whether A&AI should be managing this interface of not. Could have value like CUSTOMER") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Human friendly text regarding this interface.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of logical interfaces.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Virtual Servers, aka virtual machine or VM.",nameProps="vserver-name",indexedProps="is-closed-loop-disabled,prov-status,vserver-name,vserver-id,in-maint,vserver-name2",searchable="vserver-name,vserver-id,vserver-name2",dependentOn="tenant",container="vservers") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier for this vserver relative to its tenant") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of vserver") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Alternative name of vserver") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Used to indicate whether closed loop function is enabled on this node") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of virtual Servers, aka virtual machines or VMs.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Openstack tenant",nameProps="tenant-name",indexedProps="tenant-name,tenant-id",searchable="tenant-name,tenant-id",dependentOn="cloud-region",container="tenants") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id relative to the cloud-region.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Readable name of tenant") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of openstack tenants.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Openstack flavor.",nameProps="flavor-name",indexedProps="flavor-name,flavor-id",dependentOn="cloud-region",container="flavors") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Flavor id, expected to be unique across cloud-region.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Flavor name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Number of CPUs") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Amount of memory") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Disk space") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Amount of ephemeral disk space") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="amount of swap space allocation") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="whether flavor is available to all users or private to the tenant it was created in.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Boolean as to whether this flavor is no longer enabled") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of openstack flavors.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Openstack group-assignment used to store exclusivity groups (EG).",nameProps="group-name",indexedProps="group-id,group-type,group-name",dependentOn="cloud-region",container="group-assignments") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Group id, expected to be unique across cloud-region.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Group type - the type of group this instance refers to") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Group name - name assigned to the group") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Group description - description of the group") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of openstack group assignments") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Openstack snapshot",nameProps="snapshot-name",uniqueProps="snapshot-id",indexedProps="application,snapshot-name,application-vendor,snapshot-id,application-version,prev-snapshot-id",dependentOn="cloud-region",container="snapshots") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Snapshot id, this is the key UUID assoc associated in glance with the snapshots.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Snapshot name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Operating system architecture") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The common name of the operating system distribution in lowercase") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The operating system version as specified by the distributor.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The application that the image instantiates.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The vendor of the application.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The version of the application.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This field contains the UUID of the previous snapshot (if any).") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of openstack snapshots") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Key/value pairs",indexedProps="metaname",dependentOn="tenant,image,service-instance,connector,model",container="metadata") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true) + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of metadatum (key/value pairs)") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Openstack image.",nameProps="image-name",indexedProps="application,image-name,application-vendor,image-id,application-version",dependentOn="cloud-region",container="images") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Image id, expected to be unique across cloud region") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Image name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Operating system architecture.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The common name of the operating system distribution in lowercase") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The operating system version as specified by the distributor.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The application that the image instantiates.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The vendor of the application.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The version of the application.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collectio of Openstack images.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of availability zones") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="cloud-region designates an installation of a cloud cluster or region or instantiation. In AT&Ts OPENECOMP cloud, this could be an LCP or DCP. Cloud regions are uniquely identified by a composite key, cloud-owner + cloud-region-id. The format of the cloud-owner is vendor-cloudname and we will use OPENECOMP for AT&T's OPENECOMP.",indexedProps="cloud-owner,cloud-region-id,cloud-type,owner-defined-type",nameProps="owner-defined-type",container="cloud-regions",namespace="cloud-infrastructure") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Identifies the vendor and cloud name, e.g., OPENECOMP. First part of composite key should be formatted as vendor-cloudname") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Identifier used by the vendor for the region. Second part of composite key") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Type of the cloud (e.g., openstack)") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Cloud-owner defined type indicator (e.g., DCP, LCP)") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Software version employed at the site") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL of the keystone identity service") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Zone where the cloud is homed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="complex name for cloud-region instance") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(maximumDepth="0") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Network profile populated by SDN-GP for SNMP",indexedProps="nm-profile-name",container="network-profiles",namespace="cloud-infrastructure") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique name of network profile.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Encrypted SNMP community string") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of network profiles") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Physical interface (e.g., nic)",indexedProps="interface-name,prov-status",nameProps="prov-status",dependentOn="vpls-pe,pserver,pnf",container="p-interfaces") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name that identifies the physical interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Nature of the services and connectivity on this port.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="CLEI or other specification for p-interface hardware.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Role specification for p-interface hardware.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicates the physical properties of the interface.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of physical interfaces.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Link aggregate interface",indexedProps="interface-name,interface-id,interface-role",dependentOn="generic-vnf,pserver,vpe,vpls-pe,pnf",container="lag-interfaces") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name that identifies the link aggregate interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ID of interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Role + assigned to this Interface, should use values as defined in OPENECOMP Yang + models.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of link aggregate interfaces.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Compute host whose hostname must be unique and must exactly match what is sent as a relationship to a vserver.",nameProps="pserver-name2",indexedProps="hostname,in-maint,pserver-id,pserver-name2,inv-status",searchable="hostname,pserver-name2,pserver-id,ipv4-oam-address",container="pservers",namespace="cloud-infrastructure") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Value from executing hostname on the compute node.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="PTNII name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Number of cpus") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Disk size, in GBs") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="RAM size, in MBs") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Equipment type. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Equipment vendor. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Equipment model. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Fully-qualified domain name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used to configure device, also used for troubleshooting and is IP used for traps generated by device.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Serial number, may be queried") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV4 Loopback 0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV6 Loopback 0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV4 AIM address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV6 AIM address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV6 OAM address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="CANOPI's inventory status. Only set with values exactly as defined by CANOPI.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ID of Pserver") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="internet topology of Pserver") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="alternative pserver name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="purpose of pserver") + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of compute hosts.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Virtual organization of cloud infrastructure elements in a data center context",nameProps="vdc-name",indexedProps="vdc-name,vdc-id",container="virtual-data-centers",namespace="cloud-infrastructure") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of the vdc") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of the virtual data center") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Virtual organization of cloud infrastructure elements in a data center context") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Namespace for cloud infrastructure.") + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata + (nameProps="name",indexedProps="assignment-group-uuid,openecomp-uuid,name",uniqueProps="openecomp-uuid",container="license-key-resources",namespace="license-management") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true) + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of resource instances used to connect a variety of disparate inventory widgets",indexedProps="resource-instance-id,persona-model-id,persona-model-version,widget-model-id,widget-model-version",container="connectors",namespace="business") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of resource instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of resource instances used to connect a variety of disparate inventory widgets") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Represents the specifics of a tunnel cross connect piece of a resource that gets separately allotted",uniqueProps="id",indexedProps="id",dependentOn="allotted-resource",container="tunnel-xconnects") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Allotted Resource id UUID assigned to this instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The WAN uplink bandwidth for WAN1") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The WAN downlink bandwidth for WAN1") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The WAN uplink bandwidth for WAN2") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The WAN downlink bandwidth for WAN2") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Concurrency value") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This object is used to store the specific tunnel cross connect aspects of an allotted resource") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Represents a slice or partial piece of a resource that gets separately allotted",nameProps="description",uniqueProps="id",indexedProps="id,persona-model-id,persona-model-version",dependentOn="service-instance",container="allotted-resources") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Allotted Resource id UUID assigned to this instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The descriptive information assigned to this allotted resource instance") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Link back to more information in the controller") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Concurrency value") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This object is used to store slices of services being offered") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Instance of a service",indexedProps="service-instance-id,persona-model-id,persona-model-version,widget-model-id,widget-model-version,service-instance-name,service-instance-location-id",nameProps="service-instance-name",searchable="service-instance-id,service-instance-name",uniqueProps="service-instance-id",dependentOn="service-subscription",container="service-instances") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Uniquely identifies this instance of a service") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This field will store a name assigned to the service-instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicates the total bandwidth to be used for this service.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="indicates the upstream bandwidth this service will use on the WAN1 port of the physical device.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="indicates the downstream bandwidth this service will use on the WAN1 port of the physical device.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="indicates the upstream bandwidth this service will use on the WAN2 port of the physical device.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="indicates the downstream bandwidth this service will use on the WAN2 port of the physical device.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL customers will use to access the vHN Portal.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Operational status of the service-instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="An identifier that customers assign to the location where this service is being used.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of service instances") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Object that group service instances.",indexedProps="service-type",dependentOn="customer",container="service-subscriptions") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Value defined by orchestration to identify this service across OPENECOMP.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This property will be deleted from A&AI in the near future. Only stop gap solution.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of objects that group service instances.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="customer identifiers to provide linkage back to BSS information.",nameProps="subscriber-name",indexedProps="subscriber-name,global-customer-id,subscriber-type",searchable="subscriber-name,global-customer-id",uniqueProps="global-customer-id,subscriber-name",alternateKeys1="subscriber-name",container="customers",namespace="business") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Global customer id used across OPENECOMP to uniquely identify customer.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Subscriber name, an alternate way to retrieve a customer.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Subscriber type, a way to provide VID with only the INFRA customers.",defaultValue="CUST") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of customer identifiers to provide linkage back to BSS information.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Namespace for business related constructs") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Image object that pertain to a VNF that doesn't have associated vservers. This is a kludge.",indexedProps="application,openecomp-uuid,application-vendor,application-version",uniqueProps="openecomp-uuid",container="vnf-images",namespace="service-design-and-creation") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of this asset") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The application that the image instantiates.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The vendor of the application.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The version of the application.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of image objects that pertain to a VNF that doesn't have associated vservers. This is a kludge.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Stand-in for service model definitions. Likely to be deprecated in favor of models from ASDC.",indexedProps="service-description,service-id",container="services",namespace="service-design-and-creation") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="This gets defined by others to provide a unique ID for the service, we accept what is sent.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Description of the service") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="service version") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of service model definitions. Likely to be deprecated in favor of models from ASDC.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Early definition of server/resource pairings, likely to be replaced by models. No new use should be made of this.",indexedProps="service-type,vnf-type",container="service-capabilities",namespace="service-design-and-creation") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="This gets defined by others to provide a unique ID for the service, we accept what is sent.") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of service capabilities.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This is how we would capture constraints defining allowed sets of elements.",uniqueProps="element-choice-set-uuid",indexedProps="element-choice-set-uuid",allowDirectRead="true",allowDirectWrite="false",container="element-choice-sets") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This is how we would capture constraints defining allowed sets of elements.",uniqueProps="constrained-element-set-uuid",indexedProps="constrained-element-set-uuid",allowDirectRead="true",allowDirectWrite="false",container="constrained-element-sets") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This is how we would capture constraints defining allowed sets of elements.",uniqueProps="model-constraint-uuid",indexedProps="model-constraint-uuid",allowDirectRead="true",allowDirectWrite="false",container="model-constraints") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Defines how other models combine to make up a higher-level model.",uniqueProps="model-element-uuid",indexedProps="model-element-uuid",allowDirectRead="true",allowDirectWrite="false",container="model-elements") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicates whether this element was created as part of instantiation from this model") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="How many of this type of element are required/allowed") + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Defines how other models combine to make up a higher-level model.",uniqueProps="model-element-uuid",indexedProps="model-element-uuid",allowDirectRead="true",allowDirectWrite="false",container="model-elements") + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Defines how other models combine to make up a higher-level model") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Describes new constraints on this model element that are not part of that model's definition") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Subgraph definition provided by ASDC to describe a specific version of an inventory asset and its connections related to ASDC models",nameProps="model-name",indexedProps="model-version-id,model-name,model-version",uniqueProps="model-version-id",container="model-vers",namespace="service-design-and-creation") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier corresponding to one version of a model in ASDC") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of the model, which can change from version to version.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Version") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Description") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Subgraph definition provided by ASDC to describe an inventory asset and its connections related to ASDC models, independent of version",nameProps="model-type",indexedProps="model-invariant-id,model-type",uniqueProps="model-invariant-id",container="models",namespace="service-design-and-creation") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier corresponding to the main definition of a model in ASDC") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Type of the model, e.g., service, resource, widget, etc.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of subgraph definitions provided by ASDC to describe the inventory assets and their connections related to ASDC models") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="TBD",uniqueProps="related-lookup-uuid",indexedProps="related-lookup-uuid",allowDirectRead="true",allowDirectWrite="false",container="related-lookups") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="TBD",uniqueProps="property-constraint-uuid",indexedProps="property-constraint-uuid",allowDirectRead="true",allowDirectWrite="false",container="property-constraints") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="TBD",uniqueProps="named-query-element-uuid",indexedProps="named-query-element-uuid",allowDirectRead="true",allowDirectWrite="false",container="named-query-elements") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="TBD",nameProps="named-query-name",uniqueProps="named-query-uuid",indexedProps="named-query-uuid,named-query-name",container="named-queries",namespace="service-design-and-creation") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true) + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="TBD",nameProps="named-query-name",uniqueProps="named-query-uuid",indexedProps="named-query-uuid,named-query-name",container="named-queries",namespace="service-design-and-creation") + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Namespace for objects managed by ASDC") + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Logical links generally connect l-interfaces but are used to express logical connectivity between two points",indexedProps="link-name,persona-model-id,persona-model-version,widget-model-id,widget-model-version,link-id,prov-status,circuit-id,purpose",uniqueProps="link-id",nameProps="prov-status,circuit-id",container="logical-links",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="e.g., evc-name, or vnf-nameA_interface-nameA_vnf-nameZ_interface-nameZ") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Type of logical link, e.g., evc") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="v4, v6, or ds for dual stack (should be openecomp-ip-version)") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="For example, static or BGP") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indication of operational status of the logical link.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this VNF by BAU Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indication of the network use of the logical link.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Alias or alternate name (CLCI or D1 name).") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="UUID of the logical-link, SDNC generates this.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Circuit id") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Reason for this entity, role it is playing") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of logical connections") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(indexedProps="cos",dependentOn="site-pair",container="classes-of-service") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="unique identifier of probe") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="identifier of probe") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="type of probe") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="class-of-service of probe") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(indexedProps="site-pair-id",uniqueProps="site-pair-id",dependentOn="routing-instance",container="site-pairs") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="unique identifier of probe") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Prefix address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Prefix address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ip version, v4, v6") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Hostname of the destination equipment to which SLAs are measured against.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The type of destinatination equipment. Could be Router, UCPE, etc.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="probe within a set") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(indexedProps="routing-instance-id",uniqueProps="routing-instance-id",dependentOn="site-pair-set",container="routing-instances") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of routing instance") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="rpm owner") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="set of probes related to generic-vnf routing instance") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Set of instances for probes used to measure service level agreements",indexedProps="site-pair-set-id",uniqueProps="site-pair-set-id",container="site-pair-sets",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of site pair set.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of sets of instances for probes related to generic-vnf") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="VPN binding",nameProps="vpn-name,vpn-type",indexedProps="vpn-name,vpn-id,global-route-target,vpn-type",searchable="vpn-name",uniqueProps="vpn-id",container="vpn-bindings",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="VPN ID, globally unique within A&AI") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="VPN Name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Number used to identify a VPN, globally unique in the network") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the platform associated with the VPN example AVPN, Mobility") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Type of the vpn, should be taken from enumerated/valid values") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used to distinguish the distinct VPN routes of separate customers who connect to the provider in an MPLS network.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Role assigned to this route target") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="l3-networks relate to vpn-bindings") + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="VPLS Provider Edge routers.",indexedProps="prov-status,equipment-name",container="vpls-pes",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true) + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this VNF by BAU Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure vpe, also used for troubleshooting and is IP used for traps generated by VPE (v4-loopback0-ip-address).") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Client should send valid enumerated value, e.g., VPLS-PE.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Temporary location for stag to get to VCE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of VPLS Provider Edge routers") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(indexedProps="multicast-configuration-id",uniqueProps="multicast-configuration-id",container="multicast-configurations",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of multicast configuration.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="protocol of multicast configuration") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="rp type of multicast configuration") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="multicast configuration of generic-vnf ip-address") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(dependentOn="port-group",indexedProps="cvlan-tag",container="cvlan-tags") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="See mis-na-virtualization-platform.yang") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used to capture the network interfaces of this VCE",nameProps="port-group-name",indexedProps="port-group-id,heat-stack-id,interface-id,interface-name,switch-name",dependentOn="vce",container="port-groups") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of the interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron network id of this Interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron network name of this Interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Role assigned to this Interface, should use values as defined in OPENECOMP Yang models.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Unique ID for port group in vmware") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Likely to duplicate value of neutron network name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="DVS or standard switch name (should be non-null for port groups associated with DVS)") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Metadata for license group.",indexedProps="group-uuid,resource-uuid",dependentOn="generic-vnf,vce,vpe",container="licenses") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID for the license group the resource belongs to, should be uuid.") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of a license resource. ") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Concurrency value") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Licenses to be allocated across resources, keyed by group-uuid and resource-uuid, related to license management") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Metadata for entitlement group.",indexedProps="group-uuid,resource-uuid",dependentOn="generic-vnf,vce,vpe",container="entitlements") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID for the entitlement group the resource comes from, should be uuid.") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of an entitlement resource. ") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Concurrency value") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Entitlements, keyed by group-uuid and resource-uuid, related to license management") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Virtual Customer Edge Router, used specifically for Gamma. This object is deprecated.",nameProps="vnf-name",indexedProps="vnf-name,vnf-name2,vnf-type,heat-stack-id,vnf-id,interface-name,regional-resource-zone,vpe-id,prov-status,service-id",searchable="vnf-id,vnf-name,vnf-name2",uniqueProps="vnf-id",container="vces",namespace="network",extendsFrom="vnf") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF. This is unique across the graph.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of VNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Alternate name of VNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Unique identifier of service from ASDC. Expect this to change as ASDC matures.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Regional way of organizing pservers, source of truth should define values") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="License key") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Network role being played by this VNF") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Unique ID of VPE connected to this VCE.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Valid v6 IP address for the WAN Link on this router. Implied length of /64.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure vce, also used for troubleshooting and is IP used for traps generated by VCE.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Loopback0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Entitlement resource uuid") + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of Virtual Customer Edge Routers, used specifically for Gamma. This object is deprecated.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Relationship-list must include related to info for complex.",nameProps="vnf-name",indexedProps="vnf-name,vnf-name2,vnf-type,heat-stack-id,vnf-id,regional-resource-zone,prov-status,service-id",searchable="vnf-id,vnf-name,vnf-name2",uniqueProps="vnf-id",container="vpes",namespace="network",extendsFrom="vnf") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF. This is unique across the graph.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of VNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Alternate name of VNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Unique identifier of service from ASDC") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Regional way of organizing pservers, source of truth should define values") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="License key") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Client should send valid enumerated value") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure vpe, also used for troubleshooting and is IP used for traps generated by VPE (v4-loopback0-ip-address).") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Prefix length for oam-address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Gateway address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Loopback0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Temporary location for stag to get to VCE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="as-number of the VPE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="details regarding the vpe operation") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="indicates whether vpe access uses SSH") + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Virtual provider edge router. In 1504, A&AI will populate this object through an M&P and tool provided to operations.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(indexedProps="vnfc-name,prov-status,vnfc-type,vnfc-function-code,ipaddress-v4-oam-vip,in-maint,is-closed-loop-disabled,group-notation",searchable="vnfc-name",container="vnfcs",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of vnfc.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="function code") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="type") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="prov status of this vnfc") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by APP-C") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Oam V4 vip address of this vnfc") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true)") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether closed loop function is enabled on this node") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Group notation of VNFC") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="virtual network components associated with a vserver from application controller.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(indexedProps="subnet-id,subnet-name",nameProps="subnet-name",uniqueProps="subnet-id",dependentOn="l3-network",container="subnets") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Subnet ID, should be UUID.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name associated with the subnet.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron id of this subnet") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="gateway ip address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="network start address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="cidr mask") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ip version") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="dhcp enabled") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the start address reserved for use by dhcp") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the last address reserved for use by dhcp") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(indexedProps="vlan-id-inner",dependentOn="l3-network",container="ctag-assignments") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="id.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Openstack segmentation assignment.",indexedProps="segmentation-id",dependentOn="l3-network",container="segmentation-assignments") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Route Table Reference id, UUID assigned to this instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Concurrency value") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of openstack segmentation assignments") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Generic network definition",nameProps="network-name",indexedProps="heat-stack-id,network-uuid,service-id,network-id,network-name,persona-model-id,persona-model-version,widget-model-id,widget-model-version,contrail-network-fqdn,network-role",searchable="network-name",uniqueProps="network-id",container="l3-networks",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Network ID, should be uuid. Unique across A&AI.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of the network, governed by some naming convention..") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Type of the network - who defines these values?") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Role the network plans - who defines these values?") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Network technology - who defines these values?") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron network id of this Interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Set to true if bound to VPN") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Unique identifier of service from ASDC") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="network role instance") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Contrail FQDN for the network") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name associated with the physical network.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="boolean indicatating whether or not network is a provider network.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="boolean indicatating whether or not network is a shared network.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="boolean indicatating whether or not network is an external network.") + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Relates to tenant (or is it a child of tenant), complex, service, vpn-binding") + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(nameProps="network-policy-fqdn",indexedProps="network-policy-id,network-policy-fqdn",searchable="network-policy-fqdn",uniqueProps="network-policy-id",container="network-policies",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="UUID representing unique key to this instance") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Contrail FQDN for the policy") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ID for the openStack Heat instance") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="a deployment unit of VNFCs",indexedProps="vf-module-id,vf-module-name,heat-stack-id,persona-model-id,persona-model-version,widget-model-id,widget-model-version,contrail-service-instance-fqdn",searchable="vf-module-name",dependentOn="generic-vnf",container="vf-modules") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of vf-module.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of vf-module") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="orchestration status of this vf-module, mastered by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is base vf module") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the Contrail unique ID for a service-instance") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of vf-modules, a deployment unit of VNFCs") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="General purpose VNF",nameProps="vnf-name",indexedProps="is-closed-loop-disabled,vnf-name2,vnf-type,heat-stack-id,in-maint,vnf-name,vnf-id,regional-resource-zone,prov-status,service-id,persona-model-id,persona-model-version,widget-model-id,widget-model-version",searchable="vnf-id,vnf-name,vnf-name2",uniqueProps="vnf-id",container="generic-vnfs",namespace="network",extendsFrom="vnf") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF. This is unique across the graph.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of VNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Alternate name of VNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Unique identifier of service from ASDC") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Regional way of organizing pservers, source of truth should define values") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="License key") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Client should send valid enumerated value") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, used by MSO.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="identifier of managed by OPENECOMP or customer") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure generic-vnf, also used for troubleshooting and is IP used for traps generated by generic-vnf.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="v4 Loopback0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="v6 Loopback address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="v6 management address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="number of vcpus ordered for this instance of VNF, used for VNFs with no vservers/flavors") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="units associated with vcpu, used for VNFs with no vservers/flavors") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="number of GB of memory ordered for this instance of VNF, used for VNFs with no vservers/flavors") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="units associated with vmemory, used for VNFs with no vservers/flavors") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="number of vdisks ordered for this instance of VNF, used for VNFs with no vservers/flavors") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="units associated with vdisk, used for VNFs with no vservers/flavors") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether closed loop function is enabled on this node") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="details regarding the generic-vnf operation") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="indicates whether generic-vnf access uses SSH") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="UUID of the Entitlement group used for licensing VNFs") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="UUID of the specific entitlement resource") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="UUID of the license assignment group") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="UUID of the actual license resource") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="as-number of the VNF") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="represents sub zone of the rr plane") + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of VNFs") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="LAG links can connect lag-interfaces",indexedProps="link-name",container="lag-links",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Alphabetical concatenation of lag-interface names") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of link aggregation connections") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This object fills in the gaps from vce that were incorporated into generic-vnf. This object will be retired with vce.",nameProps="vnf-name",indexedProps="vnf-name,vnf-name2,vnf-type,heat-stack-id,prov-status,vnf-id2",searchable="vnf-id2,vnf-name,vnf-name2",uniqueProps="vnf-id2",container="newvces",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF, can't use same attribute name right now until we promote this new object") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of VNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Alternate name of VNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this VNF by BAU Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="License key") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure vpe, also used for troubleshooting and is IP used for traps generated by VPE (v4-loopback0-ip-address).") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Client should send valid enumerated value, e.g., VPE.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="v4 Loopback0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This object fills in the gaps from vce that were incorporated into generic-vnf. This object will be retired with vce.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="PNF represents a physical network function. typically equipment used in the D1 world. in 1607, this will be populated by SDN-C to represent a premises router that a uCPE connects to. But this can be used to represent any physical device that is not an OPENECOMP node or uCPE.",indexedProps="pnf-name,orchestration-status,inv-status",searchable="pnf-name",uniqueProps="pnf-name",container="pnfs",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="unique name of Physical Network Function.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="name of Physical Network Function.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="source of name2") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="id of pnf") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Equipment type. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Equipment vendor. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Equipment model. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="identifier of managed by OPENECOMP or customer") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ipv4-oam-address with new naming convention for IP addresses") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="sw-version is the version of SW for the hosted application on the PNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="orchestration-status is the status of orchestration on the PNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ID of the physical frame (relay rack) where pnf is installed.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Serial number of the device") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV4 Loopback 0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV6 Loopback 0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV4 AIM address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV6 AIM address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV6 OAM address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="CANOPI's inventory status. Only set with values exactly as defined by CANOPI.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of Physical Network Functions.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of physical connections, typically between p-interfaces",indexedProps="circuit-id,link-name",alternateKeys1="circuit-id",container="physical-links",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="e.g., hostnameA_p-connection_nameA_hostnameZ+p_connection-nameZ") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Circuit it") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Dual access mode (e.g., primary, secondary") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="To provide information on who manages this circuit. A&AI or 3rd party transport provider") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of the service Provider on this link.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of physical connections, typically between p-interfaces") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="vig-server contains information about a vig server used for IPSec-configuration. Populated by SDN-C from 1607",indexedProps="vig-address-type",dependentOn="ipsec-configuration",container="vig-servers") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="indicates whether the VIG is for AVPN or INTERNET") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="v4 IP of the vig server") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="v6 IP of the vig server") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPSec configuration node will contain various configuration data for the NMTE VNF. This node will have an edge to the generic-vnf (vnf type = TE). Starting 1607, this data will be populated by SDN-C",indexedProps="ipsec-configuration-id",uniqueProps="ipsec-configuration-id",container="ipsec-configurations",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="UUID of this configuration") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicate the type of VIG server like AVPN, INTERNET, BOTH") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Encryption values like 3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="OPENECOMP can offer a shared DMZ or a DMZ specific to a customer") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Network address of shared DMZ") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="If the DMZ is a custom DMZ, this field will indicate the customer information") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="can be 1 or 2") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Contains values like md5, sha1, sha256, sha384") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Encyption values like 3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Diffie-Hellman group like DH-GROUP2, DH-GROUP5, DH-GROUP14") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Group name defined in VIG for clients using aggressive mode") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="pre-shared key for the above group name ") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Lifetime for IKEv1 SA") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="md5, sha1, sha256, sha384") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Life time for IPSec SA") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="enable PFS or not") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="user ID for xAuth, sm-user,ucpeHostName,nmteHostName") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Encrypted using the Juniper $9$ algorithm") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The time between DPD probe") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Maximum number of DPD before claiming the tunnel is down") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Openstack route table reference.",nameProps="route-table-reference-fqdn",uniqueProps="route-table-reference-id",indexedProps="route-table-reference-id,route-table-reference-fqdn",container="route-table-references",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Route Table Reference id, UUID assigned to this instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="FQDN entry in the route table.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Concurrency value") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of openstack route table references") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="General mechanism for grouping instances",nameProps="description",uniqueProps="id",indexedProps="id,description,type,sub-type",container="instance-groups",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Instance Group ID, UUID assigned to this instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Descriptive text to help identify the usage of this instance-group") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Only valid value today is lower case ha for high availability") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Valid values for ha type are [geo-activeactive, geo-activestandby, local-activeactive, local-activestandby]") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Concurrency value") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of openstack route table references") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Namespace for network inventory resources.") + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Internal map to define some reserved properties of a vertex",uniqueProps="aai-unique-key",indexedProps="aai-unique-key,source-of-truth,aai-node-type") + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Internal map to define the properties of an edge and interpret the map EdgeRules",edgeInfo="edgeLabel,direction,multiplicityRule,isParent,usesResource,hasDelTarget,SVC-INFRA,SVC-INFRA-REV") + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="QueryParameters for performing a named-query or model query") + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="InstanceFilters for performing a named-query or model query") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ModelAndNamedQuerySearch holds query-parameters and instance-properties for performing a named-query or model query") + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Property holder for query properties or instance properties") + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Inventory item for response list",container="inventory-response-items") + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Container for inventory items in response list",container="response-list") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Response container for the results of a named-query or model query") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Abstract vnf class",indexedProps="vnf-id",uniqueProps="vnf-id",inheritors="vce,vpe,generic-vnf",isAbstract="true") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF. This is unique across the graph.") + + + + + + + diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/resources/aai_schema_v11.xsd b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/resources/aai_schema_v11.xsd new file mode 100644 index 0000000000..32655fd7c1 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/resources/aai_schema_v11.xsd @@ -0,0 +1,6751 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The specific type of node in the A&AI graph") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The URL to the specific resource") + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="A keyword provided by A&AI to indicate an attribute.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Value of the attribute.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Key part of a key/value pair") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Value part of a key/value pair") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="A keyword provided by A&AI to indicate type of node.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to the object in A&AI.") + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="OAM network, to be deprecated shortly. Do not use for new purposes. ",nameProps="network-name",indexedProps="cvlan-tag,network-uuid,network-name",dependentOn="cloud-region",container="oam-networks") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="UUID of the network. Unique across a cloud-region") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of the network.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="cvlan-id") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for VNF firewall rule so customer cannot send customer traffic over this oam network") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for VNF firewall rule so customer cannot send customer traffic over this oam network") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of OAM networks, to be deprecated shortly. Do not use for new purposes. ") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Digital virtual switch metadata, used by SDN-C to configure VCEs. A&AI needs to receive this data from the PO deployment team and administer it using the provisioningTool.sh into A&AI. ",indexedProps="vcenter-url,switch-name",dependentOn="cloud-region",container="dvs-switches") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="DVS switch name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL used to reach the vcenter") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of digital virtual switch metadata used for vmWare VCEs and GenericVnfs.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Availability zone, a collection of compute hosts/pservers",indexedProps="availability-zone-name",dependentOn="cloud-region",container="availability-zones") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name of the availability zone. Unique across a cloud region") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Type of hypervisor. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="State that indicates whether the availability zone should be used, etc. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Serves a PATCH like function. Does not enforce concurrency control. Clear each usage with AAI team.") + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="APIs that are more action related than REST (e.g., notify, update).") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="A collection of C tags (vlan tags) grouped for a specific purpose.",indexedProps="availability-zone-name",dependentOn="complex",container="ctag-pools") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="The Target provider edge router") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name of the availability zone") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Describes what the intended purpose of this pool is.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Comma separated list of ctags") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of physical locations that can house cloud-regions.",indexedProps="identity-url,data-center-code,complex-name,physical-location-id",searchable="physical-location-id,data-center-code,complex-name,street1,street2,postal-code",uniqueProps="physical-location-id",container="complexes",namespace="cloud-infrastructure") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier for physical location, e.g., CLLI") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Data center code which can be an alternate way to identify a complex") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Gamma complex name for LCP instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL of the keystone identity service") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Type, e.g., central office, data center.") + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of physical locations that can house cloud-regions.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Persistent block-level storage.",indexedProps="volume-group-name,vnf-type,heat-stack-id,volume-group-id",searchable="volume-group-id,volume-group-name",dependentOn="cloud-region",container="volume-groups") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of volume-group.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of the volume group.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this volume-group") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded in service-specific ways and clients should expect changes to occur in the future to this field as ECOMP matures.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this volume-group") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="helps relate the volume group to the vf-module whose components will require the volume group") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of persistent block-level storage.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Ephemeral Block storage volume.",indexedProps="volume-id",dependentOn="vserver",container="volumes") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of block storage volume relative to the vserver.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of ephemeral Block storage volumes.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPv4 Address Range",indexedProps="l3-interface-ipv4-address,vlan-id-inner,neutron-network-id,neutron-subnet-id",dependentOn="vlan,l-interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="IP address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Prefix length, 32 for single address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Inner VLAN tag") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Outer VLAN tag") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicator of fixed or floating address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron network id of the interface that address belongs to") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron id of subnet that address belongs to") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPv6 Address Range",indexedProps="l3-interface-ipv6-address,vlan-id-inner,neutron-network-id,neutron-subnet-id",dependentOn="vlan,l-interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="IP address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Prefix length, 128 for single address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Inner VLAN tag") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Outer VLAN tag") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicator of fixed or floating address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron network id of the interface that address belongs to") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron id of subnet that address belongs to") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Definition of vlan",indexedProps="vlan-interface,vlan-id-inner,vpn-key",dependentOn="l-interface",container="vlans") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="String that identifies the interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Inner VLAN tag") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Outer VLAN tag") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used to describe (the service associated with) the vlan") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Whether customer is going to use this VLAN for backdoor connection to another customer premise device.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This indicates the customers VPN ID associated with this vlan") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Status of a vnf's vlan interface, on which the customer circuit resides, mastered by SDN-C.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true)") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Prov Status of the VLAN configuration related to a logical interface. Valid values [PREPROV/NVTPROV/PROV].") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Flag indicating the interface uses the IP Unnumbered configuration.") + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="SR-IOV Virtual Function (not to be confused with virtual network function)",indexedProps="pci-id,vf-vlan-filter,vf-mac-filter,vf-vlan-strip,neutron-network-id",dependentOn="l-interface",container="sriov-vfs") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="PCI ID used to identify the sriov-vf") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This metadata provides option to specify list of VLAN filters applied on VF to pass the traffic to VM.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="When MAC filters are specified, VF-agent service configures VFs to do MAC level filtering before the traffic is passed to VM.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="When this field is set to true, VF will configured to strip the outer TAG before the traffic is passed to VM.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option ensures anti VLAN spoof checks are done at the VF level to comply with security. The disable check will also be honored per the VNF needs for trusted VMs.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option ensures anti MAC spoof checks are done at the VF level to comply with security. The disable check will also be honored per the VNF needs for trusted VMs.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option defines the set of Mirror objects which essentially mirrors the traffic from source to set of collector VNF Ports.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, sets the VF in promiscuous mode and allows all broadcast traffic to reach the VM") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, sets the VF in promiscuous mode and allows unknown multicast traffic to reach the VM") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, sets the VF in promiscuous mode and allows unknown unicast traffic to reach the VM") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, instructs to insert outer tag after traffic comes out of VM.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option is used to set the link status. Valid values as of 1607 are on, off, and auto.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron network id of the interface") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of SR-IOV Virtual Functions.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Logical interfaces, e.g., a vnic.",indexedProps="macaddr,interface-id,interface-name,network-name",dependentOn="generic-vnf,newvce,p-interface,vserver,lag-interface",container="l-interfaces") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name given to the interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="E.g., CUSTOMER, UPLINK, etc.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Questionably placed - v6 ip addr of this interface (is in vr-lan-interface from Mary B.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ID of interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="MAC address for the interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of the network") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Whether A&AI should be managing this interface of not. Could have value like CUSTOMER") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Human friendly text regarding this interface.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="boolean indicatating whether or not port is a mirrored.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true)") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Prov Status of the logical interface. Valid values [PREPROV/NVTPROV/PROV].") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Flag indicating the interface uses the IP Unnumbered configuration.") + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of logical interfaces.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Virtual Servers, aka virtual machine or VM.",nameProps="vserver-name",indexedProps="is-closed-loop-disabled,prov-status,vserver-name,vserver-id,in-maint,vserver-name2",searchable="vserver-id,vserver-name,vserver-name2",dependentOn="tenant",container="vservers") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier for this vserver relative to its tenant") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of vserver") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Alternative name of vserver") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Used to indicate whether closed loop function is enabled on this node") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of virtual Servers, aka virtual machines or VMs.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Openstack tenant",nameProps="tenant-name",indexedProps="tenant-name,tenant-id,tenant-context",searchable="tenant-id,tenant-name",dependentOn="cloud-region",container="tenants") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id relative to the cloud-region.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Readable name of tenant") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This field will store the tenant context.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of openstack tenants.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Openstack flavor.",nameProps="flavor-name",indexedProps="flavor-name,flavor-id",dependentOn="cloud-region",container="flavors") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Flavor id, expected to be unique across cloud-region.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Flavor name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Number of CPUs") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Amount of memory") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Disk space") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Amount of ephemeral disk space") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="amount of swap space allocation") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="whether flavor is available to all users or private to the tenant it was created in.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Boolean as to whether this flavor is no longer enabled") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of openstack flavors.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Openstack group-assignment used to store exclusivity groups (EG).",nameProps="group-name",indexedProps="group-id,group-type,group-name",searchable="group-id,group-name",dependentOn="cloud-region",container="group-assignments") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Group id, expected to be unique across cloud-region.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Group type - the type of group this instance refers to") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Group name - name assigned to the group") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Group description - description of the group") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of openstack group assignments") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Openstack snapshot",nameProps="snapshot-name",uniqueProps="snapshot-id",indexedProps="application,snapshot-name,application-vendor,snapshot-id,application-version,prev-snapshot-id",dependentOn="cloud-region",container="snapshots") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Snapshot id, this is the key UUID assoc associated in glance with the snapshots.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Snapshot name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Operating system architecture") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The common name of the operating system distribution in lowercase") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The operating system version as specified by the distributor.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The application that the image instantiates.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The vendor of the application.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The version of the application.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This field contains the UUID of the previous snapshot (if any).") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of openstack snapshots") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Key/value pairs",indexedProps="metaname",dependentOn="tenant,image,service-instance,connector,model",container="metadata") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true) + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of metadatum (key/value pairs)") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Openstack image.",nameProps="image-name",indexedProps="application,image-name,application-vendor,image-id,application-version",dependentOn="cloud-region",container="images") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Image id, expected to be unique across cloud region") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Image name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Operating system architecture.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The common name of the operating system distribution in lowercase") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The operating system version as specified by the distributor.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The application that the image instantiates.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The vendor of the application.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The version of the application.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collectio of Openstack images.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of availability zones") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="cloud-region designates an installation of a cloud cluster or region or instantiation. In AT&Ts AIC cloud, this could be an LCP or DCP. Cloud regions are uniquely identified by a composite key, cloud-owner + cloud-region-id. The format of the cloud-owner is vendor-cloudname and we will use att-aic for AT&T's AIC.",indexedProps="cloud-owner,cloud-region-id,cloud-type,owner-defined-type",nameProps="owner-defined-type",container="cloud-regions",namespace="cloud-infrastructure") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Identifies the vendor and cloud name, e.g., att-aic. First part of composite key should be formatted as vendor-cloudname") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Identifier used by the vendor for the region. Second part of composite key") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Type of the cloud (e.g., openstack)") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Cloud-owner defined type indicator (e.g., dcp, lcp)") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Software version employed at the site. NOTE - THIS FIELD IS NOT KEPT UP TO DATE.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL of the keystone identity service") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Zone where the cloud is homed. NOTE - THIS FIELD IS NOT CORRECTLY POPULATED.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="complex name for cloud-region instance. NOTE - THIS FIELD IS NOT CORRECTLY POPULATED.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Whether the cloud region supports (true) or does not support (false) SR-IOV automation.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(maximumDepth="0") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Network profile populated by SDN-GP for SNMP",indexedProps="nm-profile-name",container="network-profiles",namespace="cloud-infrastructure") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique name of network profile.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Encrypted SNMP community string") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of network profiles") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="SR-IOV Physical Function",indexedProps="pf-pci-id",dependentOn="p-interface",container="sriov-pfs") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Identifier for the sriov-pf") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of SR-IOV Physical Functions.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Physical interface (e.g., nic)",indexedProps="interface-name,prov-status",nameProps="prov-status",dependentOn="vpls-pe,pserver,pnf",container="p-interfaces") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name that identifies the physical interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Nature of the services and connectivity on this port.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="CLEI or other specification for p-interface hardware.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Role specification for p-interface hardware.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicates the physical properties of the interface.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true)") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="inventory status") + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of physical interfaces.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Link aggregate interface",indexedProps="interface-name,interface-id,interface-role",dependentOn="generic-vnf,pserver,vpls-pe,pnf",container="lag-interfaces") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name that identifies the link aggregate interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Human friendly text regarding this interface.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ID of interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Role assigned to this Interface, should use values as defined in ECOMP Yang models.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true)") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of link aggregate interfaces.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Compute host whose hostname must be unique and must exactly match what is sent as a relationship to a vserver.",nameProps="pserver-name2",indexedProps="hostname,in-maint,pserver-id,pserver-name2,inv-status",searchable="hostname,pserver-name2,pserver-id,ipv4-oam-address",container="pservers",namespace="cloud-infrastructure") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Value from executing hostname on the compute node.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="PTNII name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Number of cpus") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Disk size, in GBs") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="RAM size, in MBs") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Equipment type. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Equipment vendor. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Equipment model. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Fully-qualified domain name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used to configure device, also used for troubleshooting and is IP used for traps generated by device.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Serial number, may be queried") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV4 Loopback 0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV6 Loopback 0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV4 AIM address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV6 AIM address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV6 OAM address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="CANOPI's inventory status. Only set with values exactly as defined by CANOPI.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ID of Pserver") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="internet topology of Pserver") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="alternative pserver name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="purpose of pserver") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Prov Status of this device (not under canopi control) Valid values [PREPROV/NVTPROV/PROV]") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicates who owns and or manages the device.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The host profile that defines the configuration of the pserver.") + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of compute hosts.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Virtual organization of cloud infrastructure elements in a data center context",nameProps="vdc-name",indexedProps="vdc-name,vdc-id",container="virtual-data-centers",namespace="cloud-infrastructure") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of the vdc") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of the virtual data center") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Virtual organization of cloud infrastructure elements in a data center context") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Namespace for cloud infrastructure.") + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="OBSOLETE OBJECT: do not use",nameProps="name",indexedProps="assignment-group-uuid,att-uuid,name",uniqueProps="att-uuid",container="license-key-resources",namespace="license-management") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true) + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of resource instances used to connect a variety of disparate inventory widgets",indexedProps="resource-instance-id,model-invariant-id,model-version-id,widget-model-id,widget-model-version",container="connectors",namespace="business") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of resource instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.",visibility="deployment",requires="model-version-id",dbAlias="model-invariant-id-local") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="deployment",requires="model-invariant-id",dbAlias="model-version-id-local") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="internal",dataCopy="service-design-and-creation/models/model/{model-invariant-id}/model-vers/model-ver/{model-version-id}#model-version") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of resource instances used to connect a variety of disparate inventory widgets") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Represents the specifics of a tunnel cross connect piece of a resource that gets separately allotted",uniqueProps="id",indexedProps="id",dependentOn="allotted-resource",container="tunnel-xconnects") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Allotted Resource id UUID assigned to this instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The WAN uplink bandwidth for WAN1") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The WAN downlink bandwidth for WAN1") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The WAN uplink bandwidth for WAN2") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The WAN downlink bandwidth for WAN2") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Concurrency value") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This object is used to store the specific tunnel cross connect aspects of an allotted resource") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Represents a slice or partial piece of a resource that gets separately allotted",nameProps="description",uniqueProps="id",indexedProps="id,model-invariant-id,model-version-id,type,role",dependentOn="service-instance",container="allotted-resources") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Allotted Resource id UUID assigned to this instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The descriptive information assigned to this allotted resource instance") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Link back to more information in the controller") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.",visibility="deployment",requires="model-version-id",dbAlias="model-invariant-id-local") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="deployment",requires="model-invariant-id",dbAlias="model-version-id-local") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="internal",dataCopy="service-design-and-creation/models/model/{model-invariant-id}/model-vers/model-ver/{model-version-id}#model-version") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Concurrency value") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Generic description of the type of allotted resource.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="role in the network that this resource will be providing.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This object is used to store slices of services being offered") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Instance of a service",indexedProps="service-instance-id,model-invariant-id,model-version-id,widget-model-id,widget-model-version,service-instance-name,service-instance-location-id,orchestration-status,environment-context,workload-context",nameProps="service-instance-name",searchable="service-instance-id,service-instance-name",uniqueProps="service-instance-id",dependentOn="service-subscription",container="service-instances") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Uniquely identifies this instance of a service") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This field will store a name assigned to the service-instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="String capturing type of service.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="String capturing the service role.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This field will store the environment context assigned to the service-instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This field will store the workload context assigned to the service-instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.",visibility="deployment",requires="model-version-id",dbAlias="model-invariant-id-local") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="deployment",requires="model-invariant-id",dbAlias="model-version-id-local") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="internal",dataCopy="service-design-and-creation/models/model/{model-invariant-id}/model-vers/model-ver/{model-version-id}#model-version") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicates the total bandwidth to be used for this service.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="indicates the upstream bandwidth this service will use on the WAN1 port of the physical device.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="indicates the downstream bandwidth this service will use on the WAN1 port of the physical device.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="indicates the upstream bandwidth this service will use on the WAN2 port of the physical device.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="indicates the downstream bandwidth this service will use on the WAN2 port of the physical device.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL customers will use to access the vHN Portal.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="An identifier that customers assign to the location where this service is being used.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Path to the controller object.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this service.") + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of service instances") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Object that group service instances.",indexedProps="service-type",dependentOn="customer",container="service-subscriptions",crossEntityReference="service-instance,service-type") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Value defined by orchestration to identify this service across ECOMP.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This property will be deleted from A&AI in the near future. Only stop gap solution.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of objects that group service instances.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="customer identifiers to provide linkage back to BSS information.",nameProps="subscriber-name",indexedProps="subscriber-name,global-customer-id,subscriber-type",searchable="global-customer-id,subscriber-name",uniqueProps="global-customer-id",container="customers",namespace="business") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Global customer id used across ECOMP to uniquely identify customer.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Subscriber name, an alternate way to retrieve a customer.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Subscriber type, a way to provide VID with only the INFRA customers.",defaultValue="CUST") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of customer identifiers to provide linkage back to BSS information.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Namespace for business related constructs") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Image object that pertain to a VNF that doesn't have associated vservers. This is a kludge.",indexedProps="application,vnf-image-uuid,application-vendor,application-version",uniqueProps="vnf-image-uuid",container="vnf-images",namespace="service-design-and-creation") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of this asset") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The application that the image instantiates.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The vendor of the application.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The version of the application.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of image objects that pertain to a VNF that doesn't have associated vservers. This is a kludge.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Stand-in for service model definitions. Likely to be deprecated in favor of models from ASDC. Does not strictly map to ASDC services.",indexedProps="service-description,service-id",container="services",namespace="service-design-and-creation") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="This gets defined by others to provide a unique ID for the service, we accept what is sent.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Description of the service") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="service version") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of service model definitions. Likely to be deprecated in favor of models from ASDC.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Early definition of server/resource pairings, likely to be replaced by models. No new use should be made of this.",indexedProps="service-type,vnf-type",container="service-capabilities",namespace="service-design-and-creation") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="This gets defined by others to provide a unique ID for the service, we accept what is sent.") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded in service-specific ways and clients should expect changes to occur in the future to this field as ECOMP matures.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of service capabilities.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This is how we would capture constraints defining allowed sets of elements.",uniqueProps="element-choice-set-uuid",indexedProps="element-choice-set-uuid",allowDirectRead="true",allowDirectWrite="false",container="element-choice-sets") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This is how we would capture constraints defining allowed sets of elements.",uniqueProps="constrained-element-set-uuid",indexedProps="constrained-element-set-uuid",allowDirectRead="true",allowDirectWrite="false",container="constrained-element-sets") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This is how we would capture constraints defining allowed sets of elements.",uniqueProps="model-constraint-uuid",indexedProps="model-constraint-uuid",allowDirectRead="true",allowDirectWrite="false",container="model-constraints") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Defines how other models combine to make up a higher-level model.",uniqueProps="model-element-uuid",indexedProps="model-element-uuid",allowDirectRead="true",allowDirectWrite="false",container="model-elements") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicates whether this element was created as part of instantiation from this model") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="How many of this type of element are required/allowed") + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Defines how other models combine to make up a higher-level model") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Describes new constraints on this model element that are not part of that model's definition") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Subgraph definition provided by ASDC to describe a specific version of an inventory asset and its connections related to ASDC models",nameProps="model-name",indexedProps="model-version-id,model-name,model-version",uniqueProps="model-version-id",container="model-vers") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier corresponding to one version of a model in ASDC") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of the model, which can change from version to version.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Version") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Description") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Subgraph definition provided by ASDC to describe an inventory asset and its connections related to ASDC models, independent of version",nameProps="model-type",indexedProps="model-invariant-id,model-type",uniqueProps="model-invariant-id",container="models",namespace="service-design-and-creation") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier corresponding to the main definition of a model in ASDC") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Type of the model, e.g., service, resource, widget, etc.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of subgraph definitions provided by ASDC to describe the inventory assets and their connections related to ASDC models") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="TBD",uniqueProps="related-lookup-uuid",indexedProps="related-lookup-uuid",allowDirectRead="true",allowDirectWrite="false",container="related-lookups") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="TBD",uniqueProps="property-constraint-uuid",indexedProps="property-constraint-uuid",allowDirectRead="true",allowDirectWrite="false",container="property-constraints") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="TBD",uniqueProps="named-query-element-uuid",indexedProps="named-query-element-uuid",allowDirectRead="true",allowDirectWrite="false",container="named-query-elements") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="TBD",nameProps="named-query-name",uniqueProps="named-query-uuid",indexedProps="named-query-uuid,named-query-name",container="named-queries",namespace="service-design-and-creation") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true) + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="TBD",nameProps="named-query-name",uniqueProps="named-query-uuid",indexedProps="named-query-uuid,named-query-name",container="named-queries",namespace="service-design-and-creation") + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Namespace for objects managed by ASDC") + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Logical links generally connect l-interfaces but are used to express logical connectivity between two points",indexedProps="link-name,model-invariant-id,model-version-id,widget-model-id,widget-model-version,link-id,prov-status,circuit-id,purpose",uniqueProps="link-id",container="logical-links",namespace="network",searchable="link-name") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="e.g., evc-name, or vnf-nameA_interface-nameA_vnf-nameZ_interface-nameZ") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Type of logical link, e.g., evc") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="v4, v6, or ds for dual stack (should be att-ip-version)") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="For example, static or BGP") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.",visibility="deployment",requires="model-version-id",dbAlias="model-invariant-id-local") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="deployment",requires="model-invariant-id",dbAlias="model-version-id-local") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="internal",dataCopy="service-design-and-creation/models/model/{model-invariant-id}/model-vers/model-ver/{model-version-id}#model-version") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indication of operational status of the logical link.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this VNF by BAU Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indication of the network use of the logical link.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Alias or alternate name (CLCI or D1 name).") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="UUID of the logical-link, SDNC generates this.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Circuit id") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Reason for this entity, role it is playing") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of logical connections") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(indexedProps="cos",dependentOn="site-pair",container="classes-of-service") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="unique identifier of probe") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="identifier of probe") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="type of probe") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="class-of-service of probe") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(indexedProps="site-pair-id",uniqueProps="site-pair-id",dependentOn="routing-instance",container="site-pairs") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="unique identifier of probe") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Prefix address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Prefix address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ip version, v4, v6") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Hostname of the destination equipment to which SLAs are measured against.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The type of destinatination equipment. Could be Router, UCPE, etc.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="probe within a set") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(indexedProps="routing-instance-id",dependentOn="site-pair-set",container="routing-instances") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of routing instance") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="rpm owner") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="set of probes related to generic-vnf routing instance") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Set of instances for probes used to measure service level agreements",indexedProps="site-pair-set-id",uniqueProps="site-pair-set-id",container="site-pair-sets",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of site pair set.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of sets of instances for probes related to generic-vnf") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Route target information",container="route-targets",dependentOn="vpn-binding",canBeLinked="true") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Number used to identify an RT, globally unique in the network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Role assigned to this route target") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of route target information") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="VPN binding",nameProps="vpn-name,vpn-type",indexedProps="vpn-name,vpn-id,vpn-type",searchable="vpn-id,vpn-name",uniqueProps="vpn-id",container="vpn-bindings",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="VPN ID, globally unique within A&AI") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="VPN Name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the platform associated with the VPN example AVPN, Mobility") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Type of the vpn, should be taken from enumerated/valid values") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="region of customer vpn") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="id for this customer vpn") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used to distinguish the distinct VPN routes of separate customers who connect to the provider in an MPLS network.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="l3-networks relate to vpn-bindings") + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="VPLS Provider Edge routers.",indexedProps="prov-status,equipment-name",container="vpls-pes",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true) + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this VNF by BAU Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure generic-vnf, also used for troubleshooting and is IP used for traps generated by GenericVnf (v4-loopback0-ip-address).") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Client should send valid enumerated value, e.g., VPLS-PE.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Temporary location for stag to get to VCE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of VPLS Provider Edge routers") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(indexedProps="multicast-configuration-id",uniqueProps="multicast-configuration-id",container="multicast-configurations",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of multicast configuration.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="protocol of multicast configuration") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="rp type of multicast configuration") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="multicast configuration of generic-vnf ip-address") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(dependentOn="port-group",indexedProps="cvlan-tag",container="cvlan-tags") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="See mis-na-virtualization-platform.yang") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used to capture the network interfaces of this VCE",nameProps="port-group-name",indexedProps="port-group-id,heat-stack-id,interface-id,interface-name,switch-name",dependentOn="vce",container="port-groups") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of the interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron network id of this Interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron network name of this Interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Role assigned to this Interface, should use values as defined in ECOMP Yang models.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Unique ID for port group in vmware") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Likely to duplicate value of neutron network name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="DVS or standard switch name (should be non-null for port groups associated with DVS)") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Metadata for license group.",indexedProps="group-uuid,resource-uuid",dependentOn="generic-vnf,vce",container="licenses") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID for the license group the resource belongs to, should be uuid.") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of a license resource. ") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Concurrency value") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Licenses to be allocated across resources, keyed by group-uuid and resource-uuid, related to license management") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Metadata for entitlement group.",indexedProps="group-uuid,resource-uuid",dependentOn="generic-vnf,vce",container="entitlements") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID for the entitlement group the resource comes from, should be uuid.") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of an entitlement resource. ") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Concurrency value") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Entitlements, keyed by group-uuid and resource-uuid, related to license management") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Virtual Customer Edge Router, used specifically for Gamma. This object is deprecated.",nameProps="vnf-name",indexedProps="vnf-name,vnf-name2,vnf-type,heat-stack-id,vnf-id,interface-name,regional-resource-zone,vpe-id,prov-status,service-id",searchable="vnf-id,vnf-name,vnf-name2",uniqueProps="vnf-id",container="vces",namespace="network",extendsFrom="vnf") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF. This is unique across the graph.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of VNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Alternate name of VNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded in service-specific ways and clients should expect changes to occur in the future to this field as ECOMP matures.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Unique identifier of service, does not strictly map to ASDC services, SOON TO BE DEPRECATED.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Regional way of organizing pservers, source of truth should define values") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="OBSOLETE - do not use") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Network role being played by this VNF") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Unique ID of VPE connected to this VCE.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Valid v6 IP address for the WAN Link on this router. Implied length of /64.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure vce, also used for troubleshooting and is IP used for traps generated by VCE.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Loopback0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="OBSOLETE - see child relationships") + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of Virtual Customer Edge Routers, used specifically for Gamma. This object is deprecated.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(indexedProps="vnfc-name,prov-status,nfc-function,nfc-naming-code,ipaddress-v4-oam-vip,in-maint,is-closed-loop-disabled,group-notation,model-invariant-id,model-version-id",searchable="vnfc-name",container="vnfcs",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of vnfc.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Short code that is used in naming instances of the item being modeled") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="English description of function that the specific resource deployment is providing. Assigned as part of the customization of a resource in a service") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="prov status of this vnfc") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by APP-C") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Oam V4 vip address of this vnfc") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true)") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether closed loop function is enabled on this node") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Group notation of VNFC") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.",visibility="deployment",requires="model-version-id") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="deployment",requires="model-invariant-id") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="virtual network components associated with a vserver from application controller.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(indexedProps="subnet-id,subnet-name",nameProps="subnet-name",uniqueProps="subnet-id",dependentOn="l3-network",container="subnets") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Subnet ID, should be UUID.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name associated with the subnet.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron id of this subnet") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="gateway ip address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="network start address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="cidr mask") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ip version") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="dhcp enabled") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the start address reserved for use by dhcp") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the last address reserved for use by dhcp") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="role of the subnet, referenced when assigning IPs") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(indexedProps="vlan-id-inner",dependentOn="l3-network",container="ctag-assignments") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="id.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Openstack segmentation assignment.",indexedProps="segmentation-id",dependentOn="l3-network",container="segmentation-assignments") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Route Table Reference id, UUID assigned to this instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Concurrency value") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of openstack segmentation assignments") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Generic network definition",nameProps="network-name",indexedProps="heat-stack-id,network-uuid,service-id,network-id,network-name,model-invariant-id,model-version-id,widget-model-id,widget-model-version,contrail-network-fqdn,network-role",searchable="network-id,network-name",uniqueProps="network-id",container="l3-networks",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Network ID, should be uuid. Unique across A&AI.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of the network, governed by some naming convention..") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Type of the network - who defines these values?") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Role the network plans - who defines these values?") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Network technology - who defines these values?") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron network id of this Interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Set to true if bound to VPN") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Unique identifier of service from ASDC. Does not strictly map to ASDC services. SOON TO BE DEPRECATED") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="network role instance") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Contrail FQDN for the network") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.",visibility="deployment",requires="model-version-id",dbAlias="model-invariant-id-local") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="deployment",requires="model-invariant-id",dbAlias="model-version-id-local") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="internal",dataCopy="service-design-and-creation/models/model/{model-invariant-id}/model-vers/model-ver/{model-version-id}#model-version") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name associated with the physical network.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="boolean indicatating whether or not network is a provider network.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="boolean indicatating whether or not network is a shared network.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="boolean indicatating whether or not network is an external network.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Path to the controller object.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational.") + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Relates to tenant (or is it a child of tenant), complex, service, vpn-binding") + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(nameProps="network-policy-fqdn",indexedProps="network-policy-id,network-policy-fqdn",searchable="network-policy-id,network-policy-fqdn",uniqueProps="network-policy-id",container="network-policies",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="UUID representing unique key to this instance") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Contrail FQDN for the policy") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ID for the openStack Heat instance") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="a deployment unit of VNFCs",indexedProps="vf-module-id,vf-module-name,heat-stack-id,model-invariant-id,model-version-id,widget-model-id,widget-model-version,contrail-service-instance-fqdn",searchable="vf-module-id,vf-module-name",dependentOn="generic-vnf",container="vf-modules") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of vf-module.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of vf-module") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="orchestration status of this vf-module, mastered by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is base vf module") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.",visibility="deployment",requires="model-version-id",dbAlias="model-invariant-id-local") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="deployment",requires="model-invariant-id",dbAlias="model-version-id-local") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="internal",dataCopy="service-design-and-creation/models/model/{model-invariant-id}/model-vers/model-ver/{model-version-id}#model-version") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the Contrail unique ID for a service-instance") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the index will track the number of modules of a given type that have been deployed in a VNF, starting with 0, and always choosing the lowest available digit") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Path to the controller object.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of vf-modules, a deployment unit of VNFCs") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="General purpose VNF",nameProps="vnf-name",indexedProps="is-closed-loop-disabled,vnf-name2,vnf-type,heat-stack-id,in-maint,vnf-name,vnf-id,regional-resource-zone,prov-status,service-id,model-invariant-id,model-version-id,widget-model-id,widget-model-version,nf-type,nf-function,nf-naming-code,nf-role",searchable="vnf-id,vnf-name,vnf-name2",uniqueProps="vnf-id",container="generic-vnfs",namespace="network",extendsFrom="vnf",containsSuggestibleProps="true",suggestionAliases="VNFs") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF. This is unique across the graph.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of VNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Alternate name of VNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded in service-specific ways and clients should expect changes to occur in the future to this field as ECOMP matures.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Unique identifier of service, does not necessarily map to ASDC service models. SOON TO BE DEPRECATED") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Regional way of organizing pservers, source of truth should define values") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.",suggestibleOnSearch="true") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational. Valid values are in-service-path and out-of-service-path.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="OBSOLETE - do not use") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Client should send valid enumerated value") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, used by MSO.",suggestibleOnSearch="true") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="identifier of managed by ATT or customer") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure generic-vnf, also used for troubleshooting and is IP used for traps generated by generic-vnf.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="v4 Loopback0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="v6 Loopback address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="v6 management address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="number of vcpus ordered for this instance of VNF, used for VNFs with no vservers/flavors, to be used only by uCPE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="units associated with vcpu, used for VNFs with no vservers/flavors, to be used only by uCPE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="number of GB of memory ordered for this instance of VNF, used for VNFs with no vservers/flavors, to be used only by uCPE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="units associated with vmemory, used for VNFs with no vservers/flavors, to be used only by uCPE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="number of vdisks ordered for this instance of VNF, used for VNFs with no vservers/flavors, to be used only uCPE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="units associated with vdisk, used for VNFs with no vservers/flavors, to be used only by uCPE") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether closed loop function is enabled on this node") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="details regarding the generic-vnf operation, PLEASE DISCONTINUE USE OF THIS FIELD.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="indicates whether generic-vnf access uses SSH") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="UUID of the Entitlement group used for licensing VNFs, OBSOLETE - See child relationships.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="UUID of the specific entitlement resource. OBSOLETE - See child relationships.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="UUID of the license assignment group. OBSOLETE - See child relationships.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="UUID of the actual license resource. OBSOLETE - See child relationships.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.",visibility="deployment",requires="model-version-id",dbAlias="model-invariant-id-local") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="deployment",requires="model-invariant-id",dbAlias="model-version-id-local") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="internal",dataCopy="service-design-and-creation/models/model/{model-invariant-id}/model-vers/model-ver/{model-version-id}#model-version") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="as-number of the VNF") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="represents sub zone of the rr plane") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Generic description of the type of NF",suggestibleOnSearch="true") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="English description of Network function that the specific VNF deployment is providing") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="role in the network that this model will be providing",suggestibleOnSearch="true") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="string assigned to this model used for naming purposes") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Path to the controller object.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Gateway address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Prefix length for oam-address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Temporary location for S-TAG to get to VCE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Network Management profile of this VNF") + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of VNFs") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="LAG links can connect lag-interfaces",indexedProps="link-name",container="lag-links",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Alphabetical concatenation of lag-interface names") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of link aggregation connections") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This object fills in the gaps from vce that were incorporated into generic-vnf. This object will be retired with vce.",nameProps="vnf-name",indexedProps="vnf-name,vnf-name2,vnf-type,heat-stack-id,prov-status,vnf-id2",searchable="vnf-id2,vnf-name,vnf-name2",uniqueProps="vnf-id2",container="newvces",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF, can't use same attribute name right now until we promote this new object") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of VNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Alternate name of VNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded in service-specific ways and clients should expect changes to occur in the future to this field as ECOMP matures.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this VNF by BAU Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="OBSOLETE - do not use") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure generic-vnf, also used for troubleshooting and is IP used for traps generated by GenericVnf (v4-loopback0-ip-address).") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Client should send valid enumerated value.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="v4 Loopback0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This object fills in the gaps from vce that were incorporated into generic-vnf. This object will be retired with vce.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="PNF represents a physical network function. typically equipment used in the D1 world. in 1607, this will be populated by SDN-C to represent a premises router that a uCPE connects to. But this can be used to represent any physical device that is not an AIC node or uCPE.",indexedProps="pnf-name,orchestration-status,inv-status",searchable="pnf-name",uniqueProps="pnf-name",container="pnfs",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="unique name of Physical Network Function.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="name of Physical Network Function.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="source of name2") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="id of pnf") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Equipment type. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Equipment vendor. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Equipment model. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="identifier of managed by ATT or customer") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ipv4-oam-address with new naming convention for IP addresses") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="sw-version is the version of SW for the hosted application on the PNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ID of the physical frame (relay rack) where pnf is installed.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Serial number of the device") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV4 Loopback 0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV6 Loopback 0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV4 AIM address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV6 AIM address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV6 OAM address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="CANOPI's inventory status. Only set with values exactly as defined by CANOPI.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Prov Status of this device (not under canopi control) Valid values [PREPROV/NVTPROV/PROV]") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Nf Role is the role performed by this instance in the network.") + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of Physical Network Functions.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of physical connections, typically between p-interfaces",indexedProps="circuit-id,link-name",alternateKeys1="circuit-id",container="physical-links",namespace="network",searchable="link-name,circuit-id") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="e.g., hostnameA_p-connection_nameA_hostnameZ+p_connection-nameZ") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Circuit it") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Dual access mode (e.g., primary, secondary") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="To provide information on who manages this circuit. A&AI or 3rd party transport provider") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of the service Provider on this link.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of physical connections, typically between p-interfaces") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="vig-server contains information about a vig server used for IPSec-configuration. Populated by SDN-C from 1607",indexedProps="vig-address-type",dependentOn="ipsec-configuration",container="vig-servers") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="indicates whether the VIG is for AVPN or INTERNET") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="v4 IP of the vig server") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="v6 IP of the vig server") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPSec configuration node will contain various configuration data for the NMTE VNF. This node will have an edge to the generic-vnf (vnf type = TE). Starting 1607, this data will be populated by SDN-C",indexedProps="ipsec-configuration-id",uniqueProps="ipsec-configuration-id",container="ipsec-configurations",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="UUID of this configuration") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicate the type of VIG server like AVPN, INTERNET, BOTH") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Encryption values like 3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ATT can offer a shared DMZ or a DMZ specific to a customer") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Network address of shared DMZ") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="If the DMZ is a custom DMZ, this field will indicate the customer information") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="can be 1 or 2") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Contains values like md5, sha1, sha256, sha384") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Encyption values like 3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Diffie-Hellman group like DH-GROUP2, DH-GROUP5, DH-GROUP14") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Group name defined in VIG for clients using aggressive mode") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="pre-shared key for the above group name ") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Lifetime for IKEv1 SA") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="md5, sha1, sha256, sha384") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Life time for IPSec SA") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="enable PFS or not") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="user ID for xAuth, sm-user,ucpeHostName,nmteHostName") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Encrypted using the Juniper $9$ algorithm") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The time between DPD probe") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Maximum number of DPD before claiming the tunnel is down") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Openstack route table reference.",nameProps="route-table-reference-fqdn",uniqueProps="route-table-reference-id",indexedProps="route-table-reference-id,route-table-reference-fqdn",container="route-table-references",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Route Table Reference id, UUID assigned to this instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="FQDN entry in the route table.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Concurrency value") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of openstack route table references") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="General mechanism for grouping instances",nameProps="description",uniqueProps="id",searchable="id,description",indexedProps="id,description,type,sub-type",container="instance-groups",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="role of the instance group.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ASDC model id for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ASDC model version uid for this resource model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Instance Group ID, UUID assigned to this instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Descriptive text to help identify the usage of this instance-group") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Only valid value today is lower case ha for high availability") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Valid values for ha type are [geo-activeactive, geo-activestandby, local-activeactive, local-activestandby]") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Concurrency value") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of openstack route table references") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="A zone is a grouping of assets in a location homing to the same connections into the CBB",nameProps="zone-name",indexedProps="zone-id,design-type,zone-context",uniqueProps="zone-id",container="zones",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Code assigned by AIC to the zone") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="English name associated with the zone") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Design of zone [Medium/Large…]") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Context of zone [production/test]") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Status of a zone.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Concurrency value") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of zones") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Namespace for network inventory resources.") + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Internal map to define some reserved properties of a vertex",uniqueProps="aai-unique-key",indexedProps="aai-unique-key,source-of-truth,aai-node-type,aai-uri") + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Internal map to define the properties of an edge and interpret the map EdgeRules",edgeInfo="edgeLabel,direction,multiplicityRule,isParent,usesResource,hasDelTarget,SVC-INFRA,SVC-INFRA-REV") + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Allows for legacy POST of old-style and new-style models") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier corresponding to the main definition of a model in ASDC") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier corresponding to one version of a model in ASDC") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Type of the model, e.g., service, resource, widget, etc.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of the model, which can change from version to version.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Invariant unique ID which does not change from version to version") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Version") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Description") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="QueryParameters for performing a named-query or model query") + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="InstanceFilters for performing a named-query or model query") + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="SecondaryFilts for performing a named-query or model query") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ModelAndNamedQuerySearch holds query-parameters and instance-properties for performing a named-query or model query") + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Property holder for query properties or instance properties") + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Extra properties for inventory item for response list") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Inventory item for response list",container="inventory-response-items") + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Container for inventory items in response list",container="response-list") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Response container for the results of a named-query or model query") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Abstract vnf class",indexedProps="vnf-id",uniqueProps="vnf-id",inheritors="vce,generic-vnf",isAbstract="true") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF. This is unique across the graph.") + + + + + + + \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/resources/aai_schema_v9.xsd b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/resources/aai_schema_v9.xsd new file mode 100644 index 0000000000..c73c583679 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-api/src/main/resources/aai_schema_v9.xsd @@ -0,0 +1,6303 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The specific type of node in the A&AI graph") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The URL to the specific resource") + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="A keyword provided by A&AI to indicate an attribute.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Value of the attribute.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Key part of a key/value pair") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Value part of a key/value pair") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="A keyword provided by A&AI to indicate type of node.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to the object in A&AI.") + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="OAM network, to be deprecated shortly. Do not use for new purposes. ",nameProps="network-name",indexedProps="cvlan-tag,network-uuid,network-name",dependentOn="cloud-region",container="oam-networks") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="UUID of the network. Unique across a cloud-region") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of the network.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="cvlan-id") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for VNF firewall rule so customer cannot send customer traffic over this oam network") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for VNF firewall rule so customer cannot send customer traffic over this oam network") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of OAM networks, to be deprecated shortly. Do not use for new purposes. ") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Digital virtual switch metadata, used by SDN-C to configure VCEs. A&AI needs to receive this data from the PO deployment team and administer it using the provisioningTool.sh into A&AI. ",indexedProps="vcenter-url,switch-name",dependentOn="cloud-region",container="dvs-switches") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="DVS switch name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL used to reach the vcenter") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of digital virtual switch metadata used for vmWare VCEs and VPEs.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Availability zone, a collection of compute hosts/pservers",indexedProps="availability-zone-name",dependentOn="cloud-region",container="availability-zones") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name of the availability zone. Unique across a cloud region") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Type of hypervisor. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="State that indicates whether the availability zone should be used, etc. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Serves a PATCH like function. Does not enforce concurrency control. Clear each usage with AAI team.") + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="APIs that are more action related than REST (e.g., notify, update).") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="A collection of C tags (vlan tags) grouped for a specific purpose.",indexedProps="availability-zone-name",dependentOn="complex",container="ctag-pools") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="The Target provider edge router") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name of the availability zone") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Describes what the intended purpose of this pool is.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Comma separated list of ctags") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of physical locations that can house cloud-regions.",indexedProps="identity-url,data-center-code,complex-name,physical-location-id",searchable="physical-location-id,data-center-code,complex-name,street1,street2,postal-code",uniqueProps="physical-location-id",container="complexes",namespace="cloud-infrastructure") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier for physical location, e.g., CLLI") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Data center code which can be an alternate way to identify a complex") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Gamma complex name for LCP instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL of the keystone identity service") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Type, e.g., central office, data center.") + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of physical locations that can house cloud-regions.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Persistent block-level storage.",indexedProps="volume-group-name,vnf-type,heat-stack-id,volume-group-id",searchable="volume-group-name",dependentOn="cloud-region",container="volume-groups") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of volume-group.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of the volume group.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this volume-group") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this volume-group") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of persistent block-level storage.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Ephemeral Block storage volume.",indexedProps="volume-id",dependentOn="vserver",container="volumes") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of block storage volume relative to the vserver.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of ephemeral Block storage volumes.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPv4 Address Range",indexedProps="l3-interface-ipv4-address,vlan-id-inner,neutron-network-id,neutron-subnet-id",dependentOn="vlan,l-interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="IP address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Prefix length, 32 for single address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Inner VLAN tag") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Outer VLAN tag") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicator of fixed or floating address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron network id of the interface that address belongs to") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron id of subnet that address belongs to") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPv6 Address Range",indexedProps="l3-interface-ipv6-address,vlan-id-inner,neutron-network-id,neutron-subnet-id",dependentOn="vlan,l-interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="IP address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Prefix length, 128 for single address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Inner VLAN tag") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Outer VLAN tag") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicator of fixed or floating address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron network id of the interface that address belongs to") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron id of subnet that address belongs to") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Definition of vlan",indexedProps="vlan-interface,vlan-id-inner,vpn-id",uniqueProps="vpn-id",dependentOn="l-interface",container="vlans") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="String that identifies the interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Inner VLAN tag") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Outer VLAN tag") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used to describe (the service associated with) the vlan") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Whether customer is going to use this VLAN for backdoor connection to another customer premise device.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This indicates the customers VPN ID associated with this vlan") + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="SR-IOV Virtual Function (not to be confused with virtual network function)",indexedProps="pci-id,vf-vlan-filter,vf-mac-filter,vf-vlan-strip,neutron-network-id",dependentOn="l-interface",container="sriov-vfs") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="PCI ID used to identify the sriov-vf") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This metadata provides option to specify list of VLAN filters applied on VF to pass the traffic to VM.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="When MAC filters are specified, VF-agent service configures VFs to do MAC level filtering before the traffic is passed to VM.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="When this field is set to true, VF will configured to strip the outer TAG before the traffic is passed to VM.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option ensures anti VLAN spoof checks are done at the VF level to comply with security. The disable check will also be honored per the VNF needs for trusted VMs.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option ensures anti MAC spoof checks are done at the VF level to comply with security. The disable check will also be honored per the VNF needs for trusted VMs.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option defines the set of Mirror objects which essentially mirrors the traffic from source to set of collector VNF Ports.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, sets the VF in promiscuous mode and allows all broadcast traffic to reach the VM") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, sets the VF in promiscuous mode and allows unknown multicast traffic to reach the VM") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, sets the VF in promiscuous mode and allows unknown unicast traffic to reach the VM") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, instructs to insert outer tag after traffic comes out of VM.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This option is used to set the link status. Valid values as of 1607 are on, off, and auto.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron network id of the interface") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of SR-IOV Virtual Functions.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Logical interfaces, e.g., a vnic.",indexedProps="macaddr,interface-id,interface-name,network-name",dependentOn="generic-vnf,newvce,vpe,p-interface,vserver,lag-interface",container="l-interfaces") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name given to the interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="E.g., CUSTOMER, UPLINK, etc.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Questionably placed - v6 ip addr of this interface (is in vr-lan-interface from Mary B.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ID of interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="MAC address for the interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of the network") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Whether A&AI should be managing this interface of not. Could have value like CUSTOMER") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Human friendly text regarding this interface.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of logical interfaces.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Virtual Servers, aka virtual machine or VM.",nameProps="vserver-name",indexedProps="is-closed-loop-disabled,prov-status,vserver-name,vserver-id,in-maint,vserver-name2",searchable="vserver-name,vserver-id,vserver-name2",dependentOn="tenant",container="vservers") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier for this vserver relative to its tenant") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of vserver") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Alternative name of vserver") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Used to indicate whether closed loop function is enabled on this node") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of virtual Servers, aka virtual machines or VMs.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Openstack tenant",nameProps="tenant-name",indexedProps="tenant-name,tenant-id",searchable="tenant-name,tenant-id",dependentOn="cloud-region",container="tenants") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id relative to the cloud-region.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Readable name of tenant") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of openstack tenants.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Openstack flavor.",nameProps="flavor-name",indexedProps="flavor-name,flavor-id",dependentOn="cloud-region",container="flavors") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Flavor id, expected to be unique across cloud-region.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Flavor name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Number of CPUs") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Amount of memory") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Disk space") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Amount of ephemeral disk space") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="amount of swap space allocation") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="whether flavor is available to all users or private to the tenant it was created in.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Boolean as to whether this flavor is no longer enabled") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of openstack flavors.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Openstack group-assignment used to store exclusivity groups (EG).",nameProps="group-name",indexedProps="group-id,group-type,group-name",dependentOn="cloud-region",container="group-assignments") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Group id, expected to be unique across cloud-region.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Group type - the type of group this instance refers to") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Group name - name assigned to the group") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Group description - description of the group") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of openstack group assignments") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Openstack snapshot",nameProps="snapshot-name",uniqueProps="snapshot-id",indexedProps="application,snapshot-name,application-vendor,snapshot-id,application-version,prev-snapshot-id",dependentOn="cloud-region",container="snapshots") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Snapshot id, this is the key UUID assoc associated in glance with the snapshots.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Snapshot name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Operating system architecture") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The common name of the operating system distribution in lowercase") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The operating system version as specified by the distributor.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The application that the image instantiates.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The vendor of the application.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The version of the application.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This field contains the UUID of the previous snapshot (if any).") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of openstack snapshots") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Key/value pairs",indexedProps="metaname",dependentOn="tenant,image,service-instance,connector,model",container="metadata") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true) + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of metadatum (key/value pairs)") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Openstack image.",nameProps="image-name",indexedProps="application,image-name,application-vendor,image-id,application-version",dependentOn="cloud-region",container="images") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Image id, expected to be unique across cloud region") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Image name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Operating system architecture.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The common name of the operating system distribution in lowercase") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The operating system version as specified by the distributor.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The application that the image instantiates.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The vendor of the application.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The version of the application.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collectio of Openstack images.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of availability zones") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="cloud-region designates an installation of a cloud cluster or region or instantiation. In AT&Ts openecomp cloud, this could be an LCP or DCP. Cloud regions are uniquely identified by a composite key, cloud-owner + cloud-region-id. The format of the cloud-owner is vendor-cloudname and we will use openecomp-openecomp for AT&T's openecomp.",indexedProps="cloud-owner,cloud-region-id,cloud-type,owner-defined-type",nameProps="owner-defined-type",container="cloud-regions",namespace="cloud-infrastructure") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Identifies the vendor and cloud name, e.g., openecomp-openecomp. First part of composite key should be formatted as vendor-cloudname") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Identifier used by the vendor for the region. Second part of composite key") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Type of the cloud (e.g., openstack)") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Cloud-owner defined type indicator (e.g., DCP, LCP)") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Software version employed at the site") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL of the keystone identity service") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Zone where the cloud is homed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="complex name for cloud-region instance") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(maximumDepth="0") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Network profile populated by SDN-GP for SNMP",indexedProps="nm-profile-name",container="network-profiles",namespace="cloud-infrastructure") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique name of network profile.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Encrypted SNMP community string") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of network profiles") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Physical interface (e.g., nic)",indexedProps="interface-name,prov-status",nameProps="prov-status",dependentOn="vpls-pe,pserver,pnf",container="p-interfaces") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name that identifies the physical interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Nature of the services and connectivity on this port.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="CLEI or other specification for p-interface hardware.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Role specification for p-interface hardware.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicates the physical properties of the interface.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of physical interfaces.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Link aggregate interface",indexedProps="interface-name,interface-id,interface-role",dependentOn="generic-vnf,pserver,vpe,vpls-pe,pnf",container="lag-interfaces") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name that identifies the link aggregate interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ID of interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Role assigned to this Interface, should use values as defined in OPENECOMP Yang models.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of link aggregate interfaces.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Compute host whose hostname must be unique and must exactly match what is sent as a relationship to a vserver.",nameProps="pserver-name2",indexedProps="hostname,in-maint,pserver-id,pserver-name2,inv-status",searchable="hostname,pserver-name2,pserver-id,ipv4-oam-address",container="pservers",namespace="cloud-infrastructure") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Value from executing hostname on the compute node.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="PTNII name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Number of cpus") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Disk size, in GBs") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="RAM size, in MBs") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Equipment type. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Equipment vendor. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Equipment model. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Fully-qualified domain name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used to configure device, also used for troubleshooting and is IP used for traps generated by device.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Serial number, may be queried") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV4 Loopback 0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV6 Loopback 0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV4 AIM address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV6 AIM address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV6 OAM address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="CANOPI's inventory status. Only set with values exactly as defined by CANOPI.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ID of Pserver") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="internet topology of Pserver") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="alternative pserver name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="purpose of pserver") + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of compute hosts.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Virtual organization of cloud infrastructure elements in a data center context",nameProps="vdc-name",indexedProps="vdc-name,vdc-id",container="virtual-data-centers",namespace="cloud-infrastructure") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of the vdc") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of the virtual data center") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Virtual organization of cloud infrastructure elements in a data center context") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Namespace for cloud infrastructure.") + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(nameProps="name",indexedProps="assignment-group-uuid,openecomp-uuid,name",uniqueProps="openecomp-uuid",container="license-key-resources",namespace="license-management") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true) + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of resource instances used to connect a variety of disparate inventory widgets",indexedProps="resource-instance-id,persona-model-id,persona-model-version,widget-model-id,widget-model-version",container="connectors",namespace="business") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of resource instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of resource instances used to connect a variety of disparate inventory widgets") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Represents the specifics of a tunnel cross connect piece of a resource that gets separately allotted",uniqueProps="id",indexedProps="id",dependentOn="allotted-resource",container="tunnel-xconnects") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Allotted Resource id UUID assigned to this instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The WAN uplink bandwidth for WAN1") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The WAN downlink bandwidth for WAN1") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The WAN uplink bandwidth for WAN2") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The WAN downlink bandwidth for WAN2") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Concurrency value") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This object is used to store the specific tunnel cross connect aspects of an allotted resource") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Represents a slice or partial piece of a resource that gets separately allotted",nameProps="description",uniqueProps="id",indexedProps="id,persona-model-id,persona-model-version",dependentOn="service-instance",container="allotted-resources") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Allotted Resource id UUID assigned to this instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The descriptive information assigned to this allotted resource instance") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Link back to more information in the controller") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Concurrency value") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This object is used to store slices of services being offered") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Instance of a service",indexedProps="service-instance-id,persona-model-id,persona-model-version,widget-model-id,widget-model-version,service-instance-name,service-instance-location-id",nameProps="service-instance-name",searchable="service-instance-id,service-instance-name",uniqueProps="service-instance-id",dependentOn="service-subscription",container="service-instances") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Uniquely identifies this instance of a service") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This field will store a name assigned to the service-instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicates the total bandwidth to be used for this service.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="indicates the upstream bandwidth this service will use on the WAN1 port of the physical device.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="indicates the downstream bandwidth this service will use on the WAN1 port of the physical device.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="indicates the upstream bandwidth this service will use on the WAN2 port of the physical device.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="indicates the downstream bandwidth this service will use on the WAN2 port of the physical device.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL customers will use to access the vHN Portal.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Operational status of the service-instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="An identifier that customers assign to the location where this service is being used.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of service instances") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Object that group service instances.",indexedProps="service-type",dependentOn="customer",container="service-subscriptions") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Value defined by orchestration to identify this service across OPENECOMP.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This property will be deleted from A&AI in the near future. Only stop gap solution.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of objects that group service instances.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="customer identifiers to provide linkage back to BSS information.",nameProps="subscriber-name",indexedProps="subscriber-name,global-customer-id,subscriber-type",searchable="subscriber-name,global-customer-id",uniqueProps="global-customer-id,subscriber-name",alternateKeys1="subscriber-name",container="customers",namespace="business") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Global customer id used across OPENECOMP to uniquely identify customer.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Subscriber name, an alternate way to retrieve a customer.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Subscriber type, a way to provide VID with only the INFRA customers.",defaultValue="CUST") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of customer identifiers to provide linkage back to BSS information.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Namespace for business related constructs") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Image object that pertain to a VNF that doesn't have associated vservers. This is a kludge.",indexedProps="application,openecomp-uuid,application-vendor,application-version",uniqueProps="openecomp-uuid",container="vnf-images",namespace="service-design-and-creation") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of this asset") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The application that the image instantiates.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The vendor of the application.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The version of the application.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of image objects that pertain to a VNF that doesn't have associated vservers. This is a kludge.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Stand-in for service model definitions. Likely to be deprecated in favor of models from ASDC.",indexedProps="service-description,service-id",container="services",namespace="service-design-and-creation") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="This gets defined by others to provide a unique ID for the service, we accept what is sent.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Description of the service") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="service version") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of service model definitions. Likely to be deprecated in favor of models from ASDC.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Early definition of server/resource pairings, likely to be replaced by models. No new use should be made of this.",indexedProps="service-type,vnf-type",container="service-capabilities",namespace="service-design-and-creation") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="This gets defined by others to provide a unique ID for the service, we accept what is sent.") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of service capabilities.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This is how we would capture constraints defining allowed sets of elements.",uniqueProps="element-choice-set-uuid",indexedProps="element-choice-set-uuid",allowDirectRead="true",allowDirectWrite="false",container="element-choice-sets") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This is how we would capture constraints defining allowed sets of elements.",uniqueProps="constrained-element-set-uuid",indexedProps="constrained-element-set-uuid",allowDirectRead="true",allowDirectWrite="false",container="constrained-element-sets") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This is how we would capture constraints defining allowed sets of elements.",uniqueProps="model-constraint-uuid",indexedProps="model-constraint-uuid",allowDirectRead="true",allowDirectWrite="false",container="model-constraints") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Defines how other models combine to make up a higher-level model.",uniqueProps="model-element-uuid",indexedProps="model-element-uuid",allowDirectRead="true",allowDirectWrite="false",container="model-elements") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicates whether this element was created as part of instantiation from this model") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="How many of this type of element are required/allowed") + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Defines how other models combine to make up a higher-level model.",uniqueProps="model-element-uuid",indexedProps="model-element-uuid",allowDirectRead="true",allowDirectWrite="false",container="model-elements") + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Defines how other models combine to make up a higher-level model") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Describes new constraints on this model element that are not part of that model's definition") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Subgraph definition provided by ASDC to describe a specific version of an inventory asset and its connections related to ASDC models",nameProps="model-name",indexedProps="model-version-id,model-name,model-version",uniqueProps="model-version-id",container="model-vers",namespace="service-design-and-creation") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier corresponding to one version of a model in ASDC") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of the model, which can change from version to version.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Version") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Description") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Subgraph definition provided by ASDC to describe an inventory asset and its connections related to ASDC models, independent of version",nameProps="model-type",indexedProps="model-invariant-id,model-type",uniqueProps="model-invariant-id",container="models",namespace="service-design-and-creation") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier corresponding to the main definition of a model in ASDC") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Type of the model, e.g., service, resource, widget, etc.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of subgraph definitions provided by ASDC to describe the inventory assets and their connections related to ASDC models") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="TBD",uniqueProps="related-lookup-uuid",indexedProps="related-lookup-uuid",allowDirectRead="true",allowDirectWrite="false",container="related-lookups") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="TBD",uniqueProps="property-constraint-uuid",indexedProps="property-constraint-uuid",allowDirectRead="true",allowDirectWrite="false",container="property-constraints") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="TBD",uniqueProps="named-query-element-uuid",indexedProps="named-query-element-uuid",allowDirectRead="true",allowDirectWrite="false",container="named-query-elements") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="TBD",nameProps="named-query-name",uniqueProps="named-query-uuid",indexedProps="named-query-uuid,named-query-name",container="named-queries",namespace="service-design-and-creation") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true) + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="TBD",nameProps="named-query-name",uniqueProps="named-query-uuid",indexedProps="named-query-uuid,named-query-name",container="named-queries",namespace="service-design-and-creation") + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Namespace for objects managed by ASDC") + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Logical links generally connect l-interfaces but are used to express logical connectivity between two points",indexedProps="link-name,persona-model-id,persona-model-version,widget-model-id,widget-model-version,link-id,prov-status,circuit-id,purpose",uniqueProps="link-id",nameProps="prov-status,circuit-id",container="logical-links",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="e.g., evc-name, or vnf-nameA_interface-nameA_vnf-nameZ_interface-nameZ") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Type of logical link, e.g., evc") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="v4, v6, or ds for dual stack (should be openecomp-ip-version)") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="For example, static or BGP") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indication of operational status of the logical link.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this VNF by BAU Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indication of the network use of the logical link.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Alias or alternate name (CLCI or D1 name).") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="UUID of the logical-link, SDNC generates this.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Circuit id") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Reason for this entity, role it is playing") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of logical connections") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(indexedProps="cos",dependentOn="site-pair",container="classes-of-service") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="unique identifier of probe") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="identifier of probe") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="type of probe") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="class-of-service of probe") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(indexedProps="site-pair-id",uniqueProps="site-pair-id",dependentOn="routing-instance",container="site-pairs") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="unique identifier of probe") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Prefix address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Prefix address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ip version, v4, v6") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Hostname of the destination equipment to which SLAs are measured against.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The type of destinatination equipment. Could be Router, UCPE, etc.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="probe within a set") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(indexedProps="routing-instance-id",uniqueProps="routing-instance-id",dependentOn="site-pair-set",container="routing-instances") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of routing instance") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="rpm owner") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="set of probes related to generic-vnf routing instance") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Set of instances for probes used to measure service level agreements",indexedProps="site-pair-set-id",uniqueProps="site-pair-set-id",container="site-pair-sets",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of site pair set.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of sets of instances for probes related to generic-vnf") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="VPN binding",nameProps="vpn-name,vpn-type",indexedProps="vpn-name,vpn-id,global-route-target,vpn-type",searchable="vpn-name",uniqueProps="vpn-id",container="vpn-bindings",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="VPN ID, globally unique within A&AI") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="VPN Name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Number used to identify a VPN, globally unique in the network") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the platform associated with the VPN example AVPN, Mobility") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Type of the vpn, should be taken from enumerated/valid values") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used to distinguish the distinct VPN routes of separate customers who connect to the provider in an MPLS network.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Role assigned to this route target") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="l3-networks relate to vpn-bindings") + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="VPLS Provider Edge routers.",indexedProps="prov-status,equipment-name",container="vpls-pes",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true) + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this VNF by BAU Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure vpe, also used for troubleshooting and is IP used for traps generated by VPE (v4-loopback0-ip-address).") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Client should send valid enumerated value, e.g., VPLS-PE.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Temporary location for stag to get to VCE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of VPLS Provider Edge routers") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(indexedProps="multicast-configuration-id",uniqueProps="multicast-configuration-id",container="multicast-configurations",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of multicast configuration.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="protocol of multicast configuration") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="rp type of multicast configuration") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="multicast configuration of generic-vnf ip-address") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(dependentOn="port-group",indexedProps="cvlan-tag",container="cvlan-tags") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="See mis-na-virtualization-platform.yang") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used to capture the network interfaces of this VCE",nameProps="port-group-name",indexedProps="port-group-id,heat-stack-id,interface-id,interface-name,switch-name",dependentOn="vce",container="port-groups") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of the interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron network id of this Interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron network name of this Interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Role assigned to this Interface, should use values as defined in OPENECOMP Yang models.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Unique ID for port group in vmware") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Likely to duplicate value of neutron network name") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="DVS or standard switch name (should be non-null for port groups associated with DVS)") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Metadata for license group.",indexedProps="group-uuid,resource-uuid",dependentOn="generic-vnf,vce,vpe",container="licenses") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID for the license group the resource belongs to, should be uuid.") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of a license resource. ") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Concurrency value") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Licenses to be allocated across resources, keyed by group-uuid and resource-uuid, related to license management") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Metadata for entitlement group.",indexedProps="group-uuid,resource-uuid",dependentOn="generic-vnf,vce,vpe",container="entitlements") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID for the entitlement group the resource comes from, should be uuid.") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of an entitlement resource. ") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Concurrency value") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Entitlements, keyed by group-uuid and resource-uuid, related to license management") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Virtual Customer Edge Router, used specifically for Gamma. This object is deprecated.",nameProps="vnf-name",indexedProps="vnf-name,vnf-name2,vnf-type,heat-stack-id,vnf-id,interface-name,regional-resource-zone,vpe-id,prov-status,service-id",searchable="vnf-id,vnf-name,vnf-name2",uniqueProps="vnf-id",container="vces",namespace="network",extendsFrom="vnf") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF. This is unique across the graph.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of VNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Alternate name of VNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Unique identifier of service from ASDC. Expect this to change as ASDC matures.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Regional way of organizing pservers, source of truth should define values") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="License key") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Network role being played by this VNF") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Unique ID of VPE connected to this VCE.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Valid v6 IP address for the WAN Link on this router. Implied length of /64.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure vce, also used for troubleshooting and is IP used for traps generated by VCE.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Loopback0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Entitlement resource uuid") + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of Virtual Customer Edge Routers, used specifically for Gamma. This object is deprecated.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Relationship-list must include related to info for complex.",nameProps="vnf-name",indexedProps="vnf-name,vnf-name2,vnf-type,heat-stack-id,vnf-id,regional-resource-zone,prov-status,service-id",searchable="vnf-id,vnf-name,vnf-name2",uniqueProps="vnf-id",container="vpes",namespace="network",extendsFrom="vnf") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF. This is unique across the graph.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of VNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Alternate name of VNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Unique identifier of service from ASDC") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Regional way of organizing pservers, source of truth should define values") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="License key") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Client should send valid enumerated value") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure vpe, also used for troubleshooting and is IP used for traps generated by VPE (v4-loopback0-ip-address).") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Prefix length for oam-address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Gateway address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Loopback0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Temporary location for stag to get to VCE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="as-number of the VPE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="details regarding the vpe operation") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="indicates whether vpe access uses SSH") + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Virtual provider edge router. In 1504, A&AI will populate this object through an M&P and tool provided to operations.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(indexedProps="vnfc-name,prov-status,vnfc-type,vnfc-function-code,ipaddress-v4-oam-vip,in-maint,is-closed-loop-disabled,group-notation",searchable="vnfc-name",container="vnfcs",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of vnfc.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="function code") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="type") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="prov status of this vnfc") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by APP-C") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Oam V4 vip address of this vnfc") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true)") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether closed loop function is enabled on this node") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Group notation of VNFC") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="virtual network components associated with a vserver from application controller.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(indexedProps="subnet-id,subnet-name",nameProps="subnet-name",uniqueProps="subnet-id",dependentOn="l3-network",container="subnets") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Subnet ID, should be UUID.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name associated with the subnet.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron id of this subnet") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="gateway ip address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="network start address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="cidr mask") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ip version") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="dhcp enabled") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the start address reserved for use by dhcp") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the last address reserved for use by dhcp") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(indexedProps="vlan-id-inner",dependentOn="l3-network",container="ctag-assignments") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="id.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Openstack segmentation assignment.",indexedProps="segmentation-id",dependentOn="l3-network",container="segmentation-assignments") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Route Table Reference id, UUID assigned to this instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Concurrency value") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of openstack segmentation assignments") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Generic network definition",nameProps="network-name",indexedProps="heat-stack-id,network-uuid,service-id,network-id,network-name,persona-model-id,persona-model-version,widget-model-id,widget-model-version,contrail-network-fqdn,network-role",searchable="network-name",uniqueProps="network-id",container="l3-networks",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Network ID, should be uuid. Unique across A&AI.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of the network, governed by some naming convention..") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Type of the network - who defines these values?") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Role the network plans - who defines these values?") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Network technology - who defines these values?") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Neutron network id of this Interface") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Set to true if bound to VPN") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Unique identifier of service from ASDC") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="network role instance") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Contrail FQDN for the network") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name associated with the physical network.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="boolean indicatating whether or not network is a provider network.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="boolean indicatating whether or not network is a shared network.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="boolean indicatating whether or not network is an external network.") + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Relates to tenant (or is it a child of tenant), complex, service, vpn-binding") + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(nameProps="network-policy-fqdn",indexedProps="network-policy-id,network-policy-fqdn",searchable="network-policy-fqdn",uniqueProps="network-policy-id",container="network-policies",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="UUID representing unique key to this instance") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Contrail FQDN for the policy") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ID for the openStack Heat instance") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="a deployment unit of VNFCs",indexedProps="vf-module-id,vf-module-name,heat-stack-id,persona-model-id,persona-model-version,widget-model-id,widget-model-version,contrail-service-instance-fqdn",searchable="vf-module-name",dependentOn="generic-vnf",container="vf-modules") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of vf-module.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of vf-module") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="orchestration status of this vf-module, mastered by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is base vf module") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the Contrail unique ID for a service-instance") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of vf-modules, a deployment unit of VNFCs") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="General purpose VNF",nameProps="vnf-name",indexedProps="is-closed-loop-disabled,vnf-name2,vnf-type,heat-stack-id,in-maint,vnf-name,vnf-id,regional-resource-zone,prov-status,service-id,persona-model-id,persona-model-version,widget-model-id,widget-model-version",searchable="vnf-id,vnf-name,vnf-name2",uniqueProps="vnf-id",container="generic-vnfs",namespace="network",extendsFrom="vnf") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF. This is unique across the graph.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of VNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Alternate name of VNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Unique identifier of service from ASDC") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Regional way of organizing pservers, source of truth should define values") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="License key") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Client should send valid enumerated value") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, used by MSO.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="identifier of managed by openecomp or customer") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure generic-vnf, also used for troubleshooting and is IP used for traps generated by generic-vnf.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="v4 Loopback0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="v6 Loopback address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="v6 management address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="number of vcpus ordered for this instance of VNF, used for VNFs with no vservers/flavors") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="units associated with vcpu, used for VNFs with no vservers/flavors") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="number of GB of memory ordered for this instance of VNF, used for VNFs with no vservers/flavors") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="units associated with vmemory, used for VNFs with no vservers/flavors") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="number of vdisks ordered for this instance of VNF, used for VNFs with no vservers/flavors") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="units associated with vdisk, used for VNFs with no vservers/flavors") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether closed loop function is enabled on this node") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="details regarding the generic-vnf operation") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="indicates whether generic-vnf access uses SSH") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="UUID of the Entitlement group used for licensing VNFs") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="UUID of the specific entitlement resource") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="UUID of the license assignment group") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="UUID of the actual license resource") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="as-number of the VNF") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="represents sub zone of the rr plane") + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of VNFs") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="LAG links can connect lag-interfaces",indexedProps="link-name",container="lag-links",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Alphabetical concatenation of lag-interface names") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of link aggregation connections") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This object fills in the gaps from vce that were incorporated into generic-vnf. This object will be retired with vce.",nameProps="vnf-name",indexedProps="vnf-name,vnf-name2,vnf-type,heat-stack-id,prov-status,vnf-id2",searchable="vnf-id2,vnf-name,vnf-name2",uniqueProps="vnf-id2",container="newvces",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF, can't use same attribute name right now until we promote this new object") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of VNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Alternate name of VNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this VNF by BAU Service Assurance systems.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="License key") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure vpe, also used for troubleshooting and is IP used for traps generated by VPE (v4-loopback0-ip-address).") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Client should send valid enumerated value, e.g., VPE.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="v4 Loopback0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="This object fills in the gaps from vce that were incorporated into generic-vnf. This object will be retired with vce.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="PNF represents a physical network function. typically equipment used in the D1 world. in 1607, this will be populated by SDN-C to represent a premises router that a uCPE connects to. But this can be used to represent any physical device that is not an openecomp node or uCPE.",indexedProps="pnf-name,orchestration-status,inv-status",searchable="pnf-name",uniqueProps="pnf-name",container="pnfs",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="unique name of Physical Network Function.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="name of Physical Network Function.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="source of name2") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="id of pnf") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Equipment type. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Equipment vendor. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Equipment model. Source of truth should define valid values.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="identifier of managed by openecomp or customer") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ipv4-oam-address with new naming convention for IP addresses") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="sw-version is the version of SW for the hosted application on the PNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="orchestration-status is the status of orchestration on the PNF.") + + + + + + + @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ID of the physical frame (relay rack) where pnf is installed.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Serial number of the device") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV4 Loopback 0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV6 Loopback 0 address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV4 AIM address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV6 AIM address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPV6 OAM address") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="CANOPI's inventory status. Only set with values exactly as defined by CANOPI.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of Physical Network Functions.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of physical connections, typically between p-interfaces",indexedProps="circuit-id,link-name",alternateKeys1="circuit-id",container="physical-links",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="e.g., hostnameA_p-connection_nameA_hostnameZ+p_connection-nameZ") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Circuit it") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Dual access mode (e.g., primary, secondary") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="To provide information on who manages this circuit. A&AI or 3rd party transport provider") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Name of the service Provider on this link.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of physical connections, typically between p-interfaces") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="vig-server contains information about a vig server used for IPSec-configuration. Populated by SDN-C from 1607",indexedProps="vig-address-type",dependentOn="ipsec-configuration",container="vig-servers") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="indicates whether the VIG is for AVPN or INTERNET") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="v4 IP of the vig server") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="v6 IP of the vig server") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="IPSec configuration node will contain various configuration data for the NMTE VNF. This node will have an edge to the generic-vnf (vnf type = TE). Starting 1607, this data will be populated by SDN-C",indexedProps="ipsec-configuration-id",uniqueProps="ipsec-configuration-id",container="ipsec-configurations",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="UUID of this configuration") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Indicate the type of VIG server like AVPN, INTERNET, BOTH") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Encryption values like 3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="openecomp can offer a shared DMZ or a DMZ specific to a customer") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Network address of shared DMZ") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="If the DMZ is a custom DMZ, this field will indicate the customer information") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="can be 1 or 2") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Contains values like md5, sha1, sha256, sha384") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Encyption values like 3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Diffie-Hellman group like DH-GROUP2, DH-GROUP5, DH-GROUP14") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Group name defined in VIG for clients using aggressive mode") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="pre-shared key for the above group name ") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Lifetime for IKEv1 SA") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="md5, sha1, sha256, sha384") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Life time for IPSec SA") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="enable PFS or not") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="user ID for xAuth, sm-user,ucpeHostName,nmteHostName") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Encrypted using the Juniper $9$ algorithm") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="The time between DPD probe") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Maximum number of DPD before claiming the tunnel is down") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Openstack route table reference.",nameProps="route-table-reference-fqdn",uniqueProps="route-table-reference-id",indexedProps="route-table-reference-id,route-table-reference-fqdn",container="route-table-references",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Route Table Reference id, UUID assigned to this instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="FQDN entry in the route table.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Concurrency value") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of openstack route table references") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="General mechanism for grouping instances",nameProps="description",uniqueProps="id",indexedProps="id,description,type,sub-type",container="instance-groups",namespace="network") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Instance Group ID, UUID assigned to this instance.") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Descriptive text to help identify the usage of this instance-group") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Only valid value today is lower case ha for high availability") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Valid values for ha type are [geo-activeactive, geo-activestandby, local-activeactive, local-activestandby]") + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Concurrency value") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Collection of openstack route table references") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Namespace for network inventory resources.") + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Internal map to define some reserved properties of a vertex",uniqueProps="aai-unique-key",indexedProps="aai-unique-key,source-of-truth,aai-node-type") + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Internal map to define the properties of an edge and interpret the map EdgeRules",edgeInfo="edgeLabel,direction,multiplicityRule,isParent,usesResource,hasDelTarget,SVC-INFRA,SVC-INFRA-REV") + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="QueryParameters for performing a named-query or model query") + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="InstanceFilters for performing a named-query or model query") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="ModelAndNamedQuerySearch holds query-parameters and instance-properties for performing a named-query or model query") + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Property holder for query properties or instance properties") + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Inventory item for response list",container="inventory-response-items") + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Container for inventory items in response list",container="response-list") + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Response container for the results of a named-query or model query") + + + + + + + + + + + + + + + + + + + @org.openecomp.aai.annotations.Metadata(description="Abstract vnf class",indexedProps="vnf-id",uniqueProps="vnf-id",inheritors="vce,vpe,generic-vnf",isAbstract="true") + + + + + + + @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF. This is unique across the graph.") + + + + + + + diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/pom.xml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/pom.xml new file mode 100644 index 0000000000..dfbc90a622 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/pom.xml @@ -0,0 +1,120 @@ + + 4.0.0 + + onap-sdc-artifact-generator-core + onap-sdc-artifact-generator-core + + + onap-common-lib + org.onap.sdc.common + 1.2.0-SNAPSHOT + ../../ + + + + + org.aspectj + aspectjrt + ${aspectj.version} + + + org.slf4j + slf4j-api + ${slf4j.version} + + + ch.qos.logback + logback-classic + ${logback.version} + provided + + + ch.qos.logback + logback-core + ${logback.version} + provided + + + com.fasterxml.jackson.core + jackson-databind + ${jackson.version} + + + com.fasterxml.jackson.dataformat + jackson-dataformat-yaml + ${jackson.version} + + + commons-codec + commons-codec + ${commons.codec.version} + + + org.openecomp.sdc + openecomp-sdc-logging-api + ${project.version} + + + org.openecomp.sdc + openecomp-sdc-logging-core + ${project.version} + runtime + + + org.onap.sdc.common + onap-sdc-artifact-generator-api + ${project.version} + + + org.testng + testng + test + ${testng.version} + + + commons-io + commons-io + RELEASE + test + + + org.reflections + reflections + ${org.reflections.version} + + + + + + + + org.codehaus.mojo + aspectj-maven-plugin + 1.8 + + + 1.8 + 1.8 + 1.8 + + + + + compile + test-compile + + + + + + + + + + org.codehaus.mojo + aspectj-maven-plugin + + + + diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/GeneratorManager.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/GeneratorManager.java new file mode 100644 index 0000000000..e0049bd719 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/GeneratorManager.java @@ -0,0 +1,93 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator; + +import static org.onap.sdc.generator.util.ArtifactGeneratorUtil.logError; + +import com.fasterxml.jackson.databind.ObjectMapper; +import org.onap.sdc.generator.data.ArtifactType; +import org.onap.sdc.generator.data.GeneratorConfiguration; +import org.onap.sdc.generator.data.GeneratorConstants; +import org.onap.sdc.generator.intf.ArtifactGenerator; +import org.onap.sdc.generator.intf.Generator; +import org.onap.sdc.generator.util.ArtifactGeneratorUtil; +import org.openecomp.sdc.logging.api.Logger; +import org.openecomp.sdc.logging.api.LoggerFactory; +import org.reflections.Reflections; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; + +public class GeneratorManager { + + private static Logger log = LoggerFactory.getLogger(GeneratorManager.class.getName()); + private static Map generators = new HashMap<>(); + + /** + * Gets active artifact generators. + * + * @param clientConfiguration the client configuration + * @return the active artifact generators + * @throws Exception the exception + */ + public static List getActiveArtifactGenerators(String clientConfiguration) + throws Exception { + + if (generators.isEmpty()) { + log.debug("Getting list of active generators"); + Reflections reflections = new Reflections("org.onap.sdc.generator"); + Set> annotated = reflections.getTypesAnnotatedWith(Generator.class); + for (Class clazz : annotated) { + Generator generator = clazz.getAnnotation(Generator.class); + generators.put(generator.artifactType(), (ArtifactGenerator) clazz.newInstance()); + } + } + + log.debug("Parsing generator configuration from the client configuration : " + + clientConfiguration); + GeneratorConfiguration gf = getGeneratorConfiguration(clientConfiguration); + List generatorList = new ArrayList<>(); + if (gf.getArtifactTypes() != null && !gf.getArtifactTypes().isEmpty()) { + for (ArtifactType type : gf.getArtifactTypes()) { + if (generators.get(type) != null) { + generatorList.add(generators.get(type)); + } + } + } + + return generatorList; + } + + private static GeneratorConfiguration getGeneratorConfiguration(String jsonConfiguration) { + try { + return new ObjectMapper().readValue(jsonConfiguration, GeneratorConfiguration.class); + } catch (Exception exception) { + ArtifactGeneratorUtil + .logError(GeneratorConstants.GENERATOR_ERROR_INVALID_CLIENT_CONFIGURATION, exception); + throw new IllegalArgumentException( + GeneratorConstants.GENERATOR_ERROR_INVALID_CLIENT_CONFIGURATION, exception); + } + } + +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/GeneratorTask.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/GeneratorTask.java new file mode 100644 index 0000000000..66004ec89b --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/GeneratorTask.java @@ -0,0 +1,74 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator; + +import org.onap.sdc.generator.data.Artifact; +import org.onap.sdc.generator.data.GenerationData; +import org.onap.sdc.generator.intf.ArtifactGenerator; +import org.openecomp.sdc.logging.api.Logger; +import org.openecomp.sdc.logging.api.LoggerFactory; + +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.concurrent.RecursiveTask; + +public class GeneratorTask extends RecursiveTask { + + private static Logger log = LoggerFactory.getLogger(GeneratorTask.class.getName()); + + List input; + List generators; + Map additionalParams; + + /** + * Instantiates a new Generator task. + * + * @param generators the generators + * @param input the input + * @param additionalParams the additional params + */ + public GeneratorTask(List generators, List input, + Map additionalParams ) { + this.input = input; + this.generators = generators; + this.additionalParams = additionalParams; + } + + @Override + protected GenerationData compute() { + if (generators.size() == 1) { + log.debug("Instantiating Generator : " + generators.get(0).getClass().getName()); + return generators.remove(0).generateArtifact(input, additionalParams); + } else { + LinkedList generator = new LinkedList<>(); + generator.add(generators.remove(0)); + GeneratorTask tobeDone = new GeneratorTask(generator, input, additionalParams); + GeneratorTask tobeForked = + new GeneratorTask(new LinkedList(generators), input, additionalParams); + tobeForked.fork(); + GenerationData output = tobeDone.compute(); + output.add(tobeForked.join()); + return output; + } + } + +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/MockArtifactGenerator.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/MockArtifactGenerator.java new file mode 100644 index 0000000000..9753c26a03 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/MockArtifactGenerator.java @@ -0,0 +1,81 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator; + +import org.onap.sdc.generator.data.GenerationData; +import org.onap.sdc.generator.intf.ArtifactGenerator; +import org.onap.sdc.generator.data.Artifact; +import org.onap.sdc.generator.data.ArtifactType; +import org.onap.sdc.generator.data.GeneratorUtil; +import org.onap.sdc.generator.data.GroupType; +import org.onap.sdc.generator.intf.Generator; + +import java.util.Date; +import java.util.List; +import java.util.Map; + +@Generator(artifactType = ArtifactType.OTHER) +public class MockArtifactGenerator implements ArtifactGenerator { + + @Override + public GenerationData generateArtifact(List input, + Map additionalParams) { + final GenerationData data = new GenerationData(); + + String staticArtifactName = "MOCK_Generator-Static-Artifact.xml"; + String staticArtifactLabel = "MOCK-Generator-Static-Artifact"; + final String dynamicArtifactName = "MOCK_Generator-Dynamic-Artifact.xml"; + final String dynamicArtifactLabel = "MOCK-Generator-Dynamic-Artifact"; + String staticArtifact = getStaticArtifact(); + String dynamicArtifact = getDynamicArtifact(); + + Artifact staticArtifactModel = new Artifact(ArtifactType.OTHER.name(), GroupType.OTHER.name(), + GeneratorUtil.checkSum(staticArtifact.getBytes()), + GeneratorUtil.encode(staticArtifact.getBytes())); + staticArtifactModel.setName(staticArtifactName); + staticArtifactModel.setLabel(staticArtifactLabel); + staticArtifactModel.setDescription("Mock Generator"); + + Artifact dynamicArtifactModel = new Artifact(ArtifactType.OTHER.name(), GroupType.OTHER.name(), + GeneratorUtil.checkSum(dynamicArtifact.getBytes()), + GeneratorUtil.encode(dynamicArtifact.getBytes())); + dynamicArtifactModel.setName(dynamicArtifactName); + dynamicArtifactModel.setLabel(dynamicArtifactLabel); + dynamicArtifactModel.setDescription("Mock Generator"); + + data.add(staticArtifactModel); + data.add(dynamicArtifactModel); + + return data; + + } + + private String getStaticArtifact() { + return "Hi I'm Static"; + } + + private String getDynamicArtifact() { + return + "Hi I'm Static" + + new Date() + ""; + } + +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/aai/AaiArtifactGenerator.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/aai/AaiArtifactGenerator.java new file mode 100644 index 0000000000..995d0846be --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/aai/AaiArtifactGenerator.java @@ -0,0 +1,684 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai; + +import static org.onap.sdc.generator.util.ArtifactGeneratorUtil.logError; + +import org.onap.sdc.generator.aai.model.AllotedResource; +import org.onap.sdc.generator.aai.model.ProvidingService; +import org.onap.sdc.generator.aai.model.Resource; +import org.onap.sdc.generator.aai.model.Service; +import org.onap.sdc.generator.aai.model.Widget; +import org.onap.sdc.generator.aai.tosca.GroupDefinition; +import org.onap.sdc.generator.aai.types.ModelType; +import org.onap.sdc.generator.data.AdditionalParams; +import org.onap.sdc.generator.data.ArtifactType; +import org.onap.sdc.generator.data.GenerationData; +import org.onap.sdc.generator.data.GeneratorConstants; +import org.onap.sdc.generator.data.GroupType; +import org.onap.sdc.generator.data.WidgetConfigurationUtil; +import org.onap.sdc.generator.intf.ArtifactGenerator; +import org.onap.sdc.generator.intf.Generator; +import org.onap.sdc.generator.util.ArtifactGeneratorUtil; +import org.openecomp.sdc.logging.api.Logger; +import org.openecomp.sdc.logging.api.LoggerFactory; +import org.onap.sdc.generator.aai.model.L3NetworkWidget; +import org.onap.sdc.generator.aai.model.Model; +import org.onap.sdc.generator.aai.model.TunnelXconnectWidget; +import org.onap.sdc.generator.aai.model.VfModule; +import org.onap.sdc.generator.aai.tosca.NodeTemplate; +import org.onap.sdc.generator.aai.tosca.ToscaTemplate; +import org.onap.sdc.generator.data.Artifact; +import org.onap.sdc.generator.data.GeneratorUtil; +import org.onap.sdc.generator.logging.annotations.Audit; +import org.slf4j.MDC; + +import java.io.File; +import java.io.FileInputStream; +import java.io.IOException; +import java.util.Collection; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.Properties; +import java.util.Set; + +@Generator(artifactType = ArtifactType.AAI) +public class AaiArtifactGenerator implements ArtifactGenerator { + + private static Logger log = LoggerFactory.getLogger(AaiArtifactGenerator.class.getName()); + + /** + * Implementation of the method to generate AAI artifacts. + * + * @param input List of input tosca files + * @return Translated/Error data as a {@link GenerationData} object + */ + @Override + @Audit + public GenerationData generateArtifact(List input, + Map additionalParams) { + try { + if (input != null && input.size() != 0 ) { + ArtifactGeneratorUtil.initializeArtifactLoggingContext(input.get(0)); + } + initWidgetConfiguration(); + return generateArtifactInternal(input, additionalParams); + } catch (Exception exception) { + ArtifactGeneratorUtil.logError(exception.getMessage(), exception); + GenerationData generationData = new GenerationData(); + generationData.add(ArtifactType.AAI.name(), exception.getMessage()); + return generationData; + } + } + + /** + * Helper method to generate AAI artifacts. + * + * @param input List of input tosca files + * @return Translated/Error data as a {@link GenerationData} object + */ + private GenerationData generateArtifactInternal(List input, + Map additionalParams) { + final GenerationData generationData = new GenerationData(); + + List resources = new LinkedList<>(); + Map idTypeStore = new HashMap<>(); + Map resourcesVersion = new HashMap<>(); + + List toscas = new LinkedList<>(); + + String serviceVersion = additionalParams.get(AdditionalParams.ServiceVersion.getName()); + if (serviceVersion == null) { + throw new IllegalArgumentException(GeneratorConstants + .GENERATOR_AAI_ERROR_MISSING_SERVICE_VERSION); + } else { + String versionRegex = "^[1-9]\\d*(\\.0)$"; + if (! (serviceVersion.matches(versionRegex))) { + throw new IllegalArgumentException(String + .format(GeneratorConstants + .GENERATOR_AAI_INVALID_SERVICE_VERSION)); + } + } + + for (Artifact inputArtifact : input) { + ToscaTemplate tosca = getToscaModel(inputArtifact, serviceVersion); + validateTosca(tosca, inputArtifact); + ToscaTemplate processedTosca = preProcessingTosca(tosca); + toscas.add(processedTosca); + } + + //Get the service tosca from the list of artifacts + ToscaTemplate serviceTosca = getServiceTosca(toscas); + if (serviceTosca == null) { + throw new IllegalArgumentException(GeneratorConstants + .GENERATOR_AAI_ERROR_MISSING_SERVICE_TOSCA); + } + + Service service = new Service(); + //Populate basic service model metadata + service.populateModelIdentificationInformation(serviceTosca.getMetadata()); + + if (serviceTosca.getTopology_template() != null + && serviceTosca.getTopology_template().getNode_templates() != null) { + processServiceTosca(service, idTypeStore,resourcesVersion, serviceTosca,resources); + } + validateResourceToscaAgainstService(idTypeStore, toscas); + + //Process the resource tosca files + int counter = 0; + List currentToscaResources = new LinkedList<>(); + while (toscas.size() > 0) { + ToscaTemplate resourceTemplate = toscas.remove(0); + String resourceUuId = resourceTemplate.getMetadata().get("UUID"); + String mapValue = idTypeStore.get(resourceUuId); + if (mapValue == null) { + log.warn( + "Additional tosca file found with resource version id : " + + resourceUuId); + continue; + } + //update resource version with version from service tosca + String resourceVersion = resourcesVersion.get(resourceUuId); + resourceTemplate.getMetadata().put("version", resourceVersion); + Model model = Model.getModelFor(idTypeStore.get(resourceTemplate.getModelVersionId())); + + log.debug("Inside Resource artifact generation for resource"); + model.populateModelIdentificationInformation( + resourceTemplate.getMetadata()); //Get base resource metadata information + //Found model from the type store so removing the same + idTypeStore.remove(model.getModelNameVersionId()); + if (resourceTemplate.getTopology_template() != null + && resourceTemplate.getTopology_template().getNode_templates() != null) { + processVfTosca(idTypeStore, resourceTemplate, model); + } + + //Process group information from tosca for vfModules + if (resourceTemplate.getTopology_template() != null + && resourceTemplate.getTopology_template().getGroups() != null) { + processVfModule(resources, currentToscaResources, resourceTemplate, model); + } else { + model.getWidgets().clear(); + } + + if ("Tunnel XConnect".equals(resourceTemplate.getMetadata().get("subcategory")) + && "Allotted Resource".equals(resourceTemplate.getMetadata().get("category"))) { + model.addWidget(new TunnelXconnectWidget()); + } + + resources.add((Resource) model); + currentToscaResources + .clear(); //Clearing the current tosca resource list for the next iteration + counter = 0; + } + + AaiModelGenerator modelGenerator = AaiModelGenerator.getInstance(); + //Generate AAI XML service model + MDC.put(GeneratorConstants.ARTIFACT_MODEL_INFO , service.getModelName() + "," + getArtifactLabel(service)); + String aaiServiceModel = modelGenerator.generateModelFor(service); + generationData.add(getServiceArtifact(service, aaiServiceModel)); + + //Generate AAI XML resource model + for (Resource res : resources) { + MDC.put(GeneratorConstants.ARTIFACT_MODEL_INFO , res.getModelName() + "," + getArtifactLabel(res)); + String aaiResourceModel = modelGenerator.generateModelFor(res); + generationData.add(getResourceArtifact(res, aaiResourceModel)); + } + + //Resetting logging parameters since they get overridden while writing metrics logs + // recursively for service, resource and widgets. + if (input != null && input.size() != 0 ) { + ArtifactGeneratorUtil.initializeArtifactLoggingContext(input.get(0)); + } + + return generationData; + } + + private void validateResourceToscaAgainstService(Map idTypeStore, + List toscas) { + Iterator entries = idTypeStore.entrySet().iterator(); + while (entries.hasNext()) { + Map.Entry entry = (Map.Entry) entries.next(); + String resourceUuidFromService = (String)entry.getKey(); + Iterator itr = toscas.iterator(); + boolean toscaFound = false; + while (itr.hasNext()) { + ToscaTemplate toscaTemplate = itr.next(); + String resourceUuId = toscaTemplate.getMetadata().get("UUID"); + if (resourceUuidFromService.equals(resourceUuId)) { + toscaFound = true; + break; + } + } + if (toscaFound == false) { + throw new IllegalArgumentException(String + .format(GeneratorConstants.GENERATOR_AAI_ERROR_MISSING_RESOURCE_TOSCA, + resourceUuidFromService)); + } + } + + } + + private ToscaTemplate preProcessingTosca(ToscaTemplate tosca) { + ToscaTemplate processedTosca = tosca; + if (tosca.getTopology_template() != null + && tosca.getTopology_template().getNode_templates() != null) { + Collection coll = + processedTosca.getTopology_template().getNode_templates().values(); + for (NodeTemplate node : coll) { + + if (node.getType().contains("org.openecomp.resource.vf.") && node.getMetadata().get("category") + .equals("Allotted Resource")) { + node.setType("org.openecomp.resource.vf.allottedResource"); + } + if (node.getType().contains("org.openecomp.resource.vfc.") && node.getMetadata().get + ("category") + .equals("Allotted Resource")) { + node.setType("org.openecomp.resource.vfc.AllottedResource"); + } + } + } + return processedTosca; + } + + private void processVfTosca(Map idTypeStore, ToscaTemplate resourceTemplate, + Model model) { + Set keys = resourceTemplate.getTopology_template().getNode_templates().keySet(); + boolean flag = false; + for (String key : keys) { + NodeTemplate node = resourceTemplate.getTopology_template().getNode_templates().get(key); + Model resourceNode = Model.getModelFor(node.getType()); + if (resourceNode != null) { + if (resourceNode instanceof ProvidingService) { + flag = true; + Map properties = new HashMap<>(); + Map nodeProperties = node.getProperties(); + if (nodeProperties.get("providing_service_uuid") == null || nodeProperties.get( + "providing_service_invariant_uuid") == null) { + throw new IllegalArgumentException(String.format( + GeneratorConstants.GENERATOR_AAI_PROVIDING_SERVICE_METADATA_MISSING + , model.getModelId())); + } + for (String key1 : nodeProperties.keySet()) { + if (nodeProperties.get(key1) instanceof String) { + properties.put(key1, nodeProperties.get(key1).toString()); + } + } + properties.put("version","1.0"); + resourceNode.populateModelIdentificationInformation(properties); + model.addResource((Resource) resourceNode); + } else if (resourceNode instanceof Resource && !(resourceNode.getWidgetType().equals( + Widget.Type + .L3_NET))) { + //resourceNode.populateModelIdentificationInformation(node.getMetadata()); + idTypeStore.put(resourceNode.getModelNameVersionId(), node.getType()); + model.addResource((Resource) resourceNode); + } + } + } + if(model instanceof AllotedResource){ + if(!flag) { + throw new IllegalArgumentException(String.format( + GeneratorConstants.GENERATOR_AAI_PROVIDING_SERVICE_MISSING, + model.getModelId())); + } + } + } + + /* private void vfWarnScenario(Map idTypeStore, ToscaTemplate resourceTemplate) { + if (idTypeStore.size() == 0) { + //Log message for extra model file + log.warn( + "Additional tosca file found with resource version id : " + + resourceTemplate.getModelVersionId()); + } else { + //Log message for missing model files.. Replace with logger statement + log.warn("Service-Resource Tosca mapping not found for : " + + idTypeStore.keySet().toString()); + } + return; + }*/ + + private void processVfModule(List resources, List currentToscaResources, + ToscaTemplate resourceTemplate, Model model) { + log.debug("Inside Resource artifact generation for group/vfModule"); + Collection groups = + resourceTemplate.getTopology_template().getGroups().values(); + Set nodeNameListForGroups = new HashSet<>(); + for (GroupDefinition gd : groups) { + Model group = Model.getModelFor(gd.getType()); + if (group != null) { + group.populateModelIdentificationInformation(gd.getMetadata()); + Map properties = new HashMap<>(); + Map groupProperties = gd.getProperties(); + for (String key : groupProperties.keySet()) { + if (groupProperties.get(key) instanceof String) { + properties.put(key, groupProperties.get(key).toString()); + } + } + group.populateModelIdentificationInformation(properties); + if (group instanceof VfModule && !currentToscaResources.contains(group)) { + if (gd.getMembers() != null && !gd.getMembers().isEmpty()) { + Set groupMembers = new HashSet<>(); + ((VfModule) group).setMembers(gd.getMembers()); + nodeNameListForGroups.addAll(gd.getMembers()); + groupMembers.addAll(gd.getMembers()); + + for (String member : groupMembers) { + NodeTemplate node = + resourceTemplate.getTopology_template().getNode_templates().get(member); + if (node != null) { + Model resourceNode = null; + //L3-network inside vf-module to be generated as Widget a special handling. + if (node.getType().contains("org.openecomp.resource.vl")) { + resourceNode = new L3NetworkWidget(); + } else { + resourceNode = Model.getModelFor(node.getType()); + } + if (resourceNode != null) { + if (!(resourceNode instanceof Resource)) { + Widget widget = (Widget) resourceNode; + widget.addKey(member); + //Add the widget element encountered + // in the resource tosca in the resource model + boolean isAdded = group.addWidget(widget); + + //Add only widgets which are members of vf module and remove others + if (isAdded) { + model.addWidget(widget); + } + } + } + } + } + } + + model.addResource((Resource) group); //Added group (VfModule) to the (VF) model + currentToscaResources + .add((Resource) group); //Adding the VfModule group to file specific resources + //Check if we have already encountered the same VfModule across all the artifacts + if (!resources.contains(group)) { + resources.add((Resource) group); + } + } + } + } + + Iterator iter = model.getWidgets().iterator(); + while (iter.hasNext()) { + if (iter.next().allInstancesUsed(nodeNameListForGroups) || true) { + iter.remove(); + } + } + } + + private void processServiceTosca(Service service, Map idTypeStore,Map resourcesVersion,ToscaTemplate serviceTosca, List resources) { + Collection coll = + serviceTosca.getTopology_template().getNode_templates().values(); + log.debug("Inside Service Tosca "); + //Get the resource/widgets in the service according to the node-template types + for (NodeTemplate node : coll) { + Model model = Model.getModelFor(node.getType()); + if (model != null) { + model.populateModelIdentificationInformation(node.getMetadata()); + if (model instanceof Resource) { + String resourceVersion = node.getMetadata().get("version"); + validateVersion(resourceVersion,model.getModelNameVersionId()); + //Keeping track of resource types and + // their uuid for identification during resource tosca processing + idTypeStore.put(model.getModelNameVersionId(), node.getType()); + resourcesVersion.put(model.getModelNameVersionId(),resourceVersion); + service.addResource((Resource) model); + } else { + service.addWidget((Widget) model); + } + } + } + } + + /** + * Create Service artifact model from the AAI xml model string. + * + * @param serviceModel Model of the service artifact + * @param aaiServiceModel AAI model as string + * @return Generated {@link Artifact} model for the service + */ + private Artifact getServiceArtifact(Model serviceModel, String aaiServiceModel) { + Artifact artifact = + new Artifact(ArtifactType.MODEL_INVENTORY_PROFILE.name(), GroupType.DEPLOYMENT.name(), + GeneratorUtil.checkSum(aaiServiceModel.getBytes()), + GeneratorUtil.encode(aaiServiceModel.getBytes())); + String serviceArtifactName = getArtifactName(serviceModel); + String serviceArtifactLabel = getArtifactLabel(serviceModel); + artifact.setName(serviceArtifactName); + artifact.setLabel(serviceArtifactLabel); + String description = getArtifactDescription(serviceModel); + artifact.setDescription(description); + return artifact; + } + + /** + * Create Resource artifact model from the AAI xml model string. + * + * @param resourceModel Model of the resource artifact + * @param aaiResourceModel AAI model as string + * @return Generated {@link Artifact} model for the resource + */ + private Artifact getResourceArtifact(Model resourceModel, String aaiResourceModel) { + Artifact artifact = + new Artifact(ArtifactType.MODEL_INVENTORY_PROFILE.name(), GroupType.DEPLOYMENT.name(), + GeneratorUtil.checkSum(aaiResourceModel.getBytes()), + GeneratorUtil.encode(aaiResourceModel.getBytes())); + String resourceArtifactName = getArtifactName(resourceModel); + String resourceArtifactLabel = getArtifactLabel(resourceModel); + artifact.setName(resourceArtifactName); + artifact.setLabel(resourceArtifactLabel); + String description = getArtifactDescription(resourceModel); + artifact.setDescription(description); + return artifact; + } + + /** + * Method to generate the artifact name for an AAI model. + * + * @param model AAI artifact model + * @return Model artifact name + */ + private String getArtifactName(Model model) { + StringBuilder artifactName = new StringBuilder(ArtifactType.AAI.name()); + artifactName.append("-"); + + String truncatedArtifactName = ""; + truncatedArtifactName = truncateName(model.getModelName()); + artifactName.append(truncatedArtifactName); + + artifactName.append("-"); + artifactName.append(model.getModelType().name().toLowerCase()); + artifactName.append("-"); + artifactName.append(model.getModelVersion()); + + //artifactName.append(model.getModelVersion()); + artifactName.append("."); + artifactName.append(GeneratorConstants.GENERATOR_AAI_GENERATED_ARTIFACT_EXTENSION); + return artifactName.toString(); + } + + private String getArtifactLabel(Model model) { + // String label = ""; + StringBuilder artifactName = new StringBuilder(ArtifactType.AAI.name()); + artifactName.append("-"); + artifactName.append(model.getModelType().name().toLowerCase()); + artifactName.append("-"); + artifactName.append(hashCodeUuId(model.getModelNameVersionId())); + String label = (artifactName.toString()).replaceAll("[^a-zA-Z0-9 +]+", "-"); + return label; + } + + private int hashCodeUuId(String uuId) { + int hashcode = 0; + for (int i = 0; i < uuId.length(); i++) { + hashcode = 31 * hashcode + uuId.charAt(i); + } + return hashcode; + } + + + private String truncateName(String name) { + String truncatedName = name; + if (name.length() >= 200) { + truncatedName = name.substring(0, 199); + } + return truncatedName; + } + + private String getArtifactDescription(Model model) { + String artifactDesc = model.getModelDescription(); + if (model.getModelType().equals(ModelType.SERVICE)) { + artifactDesc = "AAI Service Model"; + } else if (model.getModelType().equals(ModelType.RESOURCE)) { + artifactDesc = "AAI Resource Model"; + } + return artifactDesc; + } + + private void validateVersion(String version, String uuId) { + String versionRegex = "^[0-9]\\d*(\\.\\d+)$"; + if (null == version || version == "") { + throw new IllegalArgumentException(String + .format(GeneratorConstants.GENERATOR_AAI_ERROR_NULL_RESOURCE_VERSION_IN_SERVICE_TOSCA, + uuId)); + } else if ( version.equals("0.0") || !(version.matches(versionRegex))) { + throw new IllegalArgumentException(String + .format(GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_RESOURCE_VERSION_IN_SERVICE_TOSCA, + uuId)); + } + } + /** + * Get the tosca java model from the tosca input artifact. + * + * @param input Input tosca file and its metadata information as {@link Artifact} object + * @return Translated {@link ToscaTemplate tosca} object + */ + + private ToscaTemplate getToscaModel(Artifact input, String serviceVersion) + throws SecurityException { + byte[] decodedInput = GeneratorUtil.decoder(input.getPayload()); + String checksum = GeneratorUtil.checkSum(decodedInput); + ToscaTemplate tosca = null; + if (checksum.equalsIgnoreCase(input.getChecksum())) { + try { + log.debug("Input yaml name " + input.getName() + "payload " + new String(decodedInput)); + tosca = GeneratorUtil.translateTosca(new String(decodedInput), ToscaTemplate.class); + tosca.getMetadata().put("version", serviceVersion); + return tosca; + } catch (Exception exception) { + throw new IllegalArgumentException( + String.format(GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_TOSCA, input.getName()), exception); + } + } else { + throw new SecurityException(GeneratorConstants.GENERATOR_AAI_ERROR_CHECKSUM_MISMATCH); + } + } + + private void validateTosca(ToscaTemplate tosca, Artifact input) { + log.debug("Validating tosca for Artifact: " + input.getName()); + if (tosca.getMetadata().containsKey("invariantUUID")) { + if (tosca.getMetadata().get("invariantUUID") == null + || tosca.getMetadata().get("invariantUUID") == "") { + throw new IllegalArgumentException(String + .format(GeneratorConstants.GENERATOR_AAI_ERROR_MANDATORY_METADATA_DEFINITION, + "invariantUUID", + input.getName())); + } else if (tosca.getMetadata().get("invariantUUID").length() != GeneratorConstants.ID_LENGTH) { + throw new IllegalArgumentException(String.format( + GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_ID, "invariantUUID", input.getName())); + } + } + + if (tosca.getMetadata().containsKey("UUID")) { + if (tosca.getMetadata().get("UUID") == null || tosca.getMetadata().get("UUID") == "") { + throw new IllegalArgumentException(String + .format(GeneratorConstants.GENERATOR_AAI_ERROR_MANDATORY_METADATA_DEFINITION, "UUID", + input.getName())); + } else if (tosca.getMetadata().get("UUID").length() != GeneratorConstants.ID_LENGTH) { + throw new IllegalArgumentException(String + .format(GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_ID, "UUID", input.getName())); + } + + } + if (tosca.getMetadata().containsKey("name")) { + if (tosca.getMetadata().get("name") == null || tosca.getMetadata().get("name") == "") { + throw new IllegalArgumentException(String + .format(GeneratorConstants.GENERATOR_AAI_ERROR_MANDATORY_METADATA_DEFINITION, "name", + input.getName())); + } + } + + //Validate VFmodule + if (tosca.getTopology_template() != null && tosca.getTopology_template().getGroups() != null) { + Collection groups = tosca.getTopology_template().getGroups().values(); + for (GroupDefinition gd : groups) { + Model group = Model.getModelFor(gd.getType()); + if (group != null && group instanceof VfModule) { + if (gd.getMetadata().containsKey("vfModuleModelName") + && gd.getMetadata().get("vfModuleModelName") == null) { + throw new IllegalArgumentException(String + .format(GeneratorConstants.GENERATOR_AAI_ERROR_MANDATORY_METADATA_DEFINITION, + "vfModuleModelName", + input.getName())); + } + if (gd.getMetadata().containsKey("vfModuleModelInvariantUUID") + && gd.getMetadata().get("vfModuleModelInvariantUUID") == null) { + throw new IllegalArgumentException(String + .format(GeneratorConstants.GENERATOR_AAI_ERROR_MANDATORY_METADATA_DEFINITION, + "vfModuleModelInvariantUUID", input.getName())); + } else if (gd.getMetadata().get("vfModuleModelInvariantUUID").length() != GeneratorConstants.ID_LENGTH) { + throw new IllegalArgumentException(String.format( + GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_ID, "vfModuleModelInvariantUUID", + input.getName())); + } + + if (gd.getMetadata().containsKey("vfModuleModelUUID") + && gd.getMetadata().get("vfModuleModelUUID") == null) { + throw new IllegalArgumentException(String + .format(GeneratorConstants.GENERATOR_AAI_ERROR_MANDATORY_METADATA_DEFINITION, + "vfModuleModelUUID", + input.getName())); + } else if (gd.getMetadata().get("vfModuleModelUUID").length() != GeneratorConstants.ID_LENGTH) { + throw new IllegalArgumentException(String.format( + GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_ID, "vfModuleModelUUID", + input.getName())); + } + if (gd.getMetadata().containsKey("vfModuleModelVersion") + && gd.getMetadata().get("vfModuleModelVersion") == null) { + throw new IllegalArgumentException(String + .format(GeneratorConstants.GENERATOR_AAI_ERROR_MANDATORY_METADATA_DEFINITION, + "vfModuleModelVersion", + input.getName())); + } + } + } + } + } + + /** + * Identify the service tosca artifact from the list of translated tosca inputs. + * + * @param input List of translated {@link ToscaTemplate tosca} object models + * @return Identified service {@link ToscaTemplate tosca} + */ + private ToscaTemplate getServiceTosca(List input) { + Iterator iter = input.iterator(); + while (iter.hasNext()) { + ToscaTemplate tosca = iter.next(); + if (tosca.isService()) { + iter.remove(); + return tosca; + } + } + return null; + } + + private void initWidgetConfiguration() throws IOException { + log.debug("Getting Widget Configuration"); + String configLocation = System.getProperty("artifactgenerator.config"); + Properties properties = null; + if (configLocation != null) { + File file = new File(configLocation); + if (file.exists()) { + properties = new Properties(); + properties.load(new FileInputStream(file)); + WidgetConfigurationUtil.setConfig(properties); + } else { + throw new IllegalArgumentException(String.format( + GeneratorConstants.GENERATOR_AAI_CONFIGFILE_NOT_FOUND, + configLocation)); + } + } else { + throw new IllegalArgumentException(GeneratorConstants.GENERATOR_AAI_CONFIGLOCATION_NOT_FOUND); + } + } + +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/aai/AaiModelGeneratorImpl.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/aai/AaiModelGeneratorImpl.java new file mode 100644 index 0000000000..4a4f9f0923 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/aai/AaiModelGeneratorImpl.java @@ -0,0 +1,278 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.aai; + +import org.openecomp.sdc.logging.api.Logger; +import org.openecomp.sdc.logging.api.LoggerFactory; +import org.onap.sdc.generator.aai.model.Resource; +import org.onap.sdc.generator.aai.model.Service; +import org.onap.sdc.generator.aai.model.Widget; +import org.onap.sdc.generator.aai.xml.Model; +import org.onap.sdc.generator.aai.xml.ModelElement; +import org.onap.sdc.generator.aai.xml.ModelElements; +import org.onap.sdc.generator.aai.xml.ModelVer; +import org.onap.sdc.generator.aai.xml.ModelVers; +import org.onap.sdc.generator.aai.xml.Relationship; +import org.onap.sdc.generator.aai.xml.RelationshipData; +import org.onap.sdc.generator.aai.xml.RelationshipList; +import org.onap.sdc.generator.logging.annotations.Metrics; +import org.w3c.dom.DOMException; + +import java.io.StringWriter; +import java.util.List; +import java.util.Set; +import javax.xml.bind.JAXBContext; +import javax.xml.bind.JAXBException; +import javax.xml.bind.Marshaller; + +/** + * Implementation of the {@link AaiModelGenerator} which generates the XML models from the + * Service/Resource/Widget java models. + */ +public class AaiModelGeneratorImpl implements AaiModelGenerator { + private static Logger log = LoggerFactory.getLogger(AaiModelGeneratorImpl.class.getName()); + + /** + * Method to generate the AAI model for a Service. + * + * @param service Java object model representing an AAI {@link Service} model + * @return XML representation of the service model in String format + */ + @Override + @Metrics + public String generateModelFor(Service service) { + //Create a JAXB Model for AAI service model + Model aaiServiceModel = new Model(); + log.debug("Generating Model for Service with ModelName: " + service.getModelName()); + // after new model + aaiServiceModel.setModelInvariantId(service.getModelId()); + aaiServiceModel.setModelVers(new ModelVers()); + ModelVer modelVer = new ModelVer(); + modelVer.setModelDescription(service.getModelDescription()); + modelVer.setModelName(service.getModelName()); + modelVer.setModelVersion(service.getModelVersion()); + modelVer.setModelVersionId(service.getModelNameVersionId()); + modelVer.setModelElements(new ModelElements()); + ModelElements modelElements = modelVer.getModelElements(); + //Populate basic model details + aaiServiceModel + .setModelType(service.getModelType().name().toLowerCase()); //Using enum name as model type + List modelElementList = modelElements.getModelElement(); + + //Add service base widget model element + ModelElement serviceWidgetModelRelationshipElement = + createRelationshipModelElement(getNewDataDelFlagValue(service.getDeleteFlag()), + service.getWidgetId(),service.getWidgetInvariantId()); + modelElementList.add(serviceWidgetModelRelationshipElement); + + //Add the resource model elements + ModelElements serviceModelElements = serviceWidgetModelRelationshipElement.getModelElements(); + List serviceModelElementList = serviceModelElements.getModelElement(); + Set serviceResources = service.getResources(); + if (serviceResources != null && !serviceResources.isEmpty()) { + for (Resource resourceModel : serviceResources) { + ModelElement aaiResourceModelElement = + createRelationshipModelElement(getNewDataDelFlagValue(resourceModel.getDeleteFlag()), + resourceModel.getModelNameVersionId(),resourceModel.getModelId()); + serviceModelElementList.add(aaiResourceModelElement); + } + } + + //Add the widget model elements + Set serviceWidgets = service.getWidgets(); + if (serviceWidgets != null && !serviceWidgets.isEmpty()) { + for (Widget widgetModel : serviceWidgets) { + ModelElement widgetModelElement = + createRelationshipModelElement(getNewDataDelFlagValue(widgetModel.getDeleteFlag()), + widgetModel.getId(),widgetModel.getWidgetId()); + serviceModelElementList.add(widgetModelElement); + } + } + ModelVers modelVers = aaiServiceModel.getModelVers(); + List modelVerList = modelVers.getModelVer(); + modelVerList.add(modelVer); + return getModelAsString(aaiServiceModel); + } + + /** + * Method to generate the AAI model for a Resource. + * + * @param resource Java object model representing an AAI {@link Resource} model + * @return XML representation of the resource model in String format + */ + @Override + @Metrics + public String generateModelFor(Resource resource) { + //Create a JAXB Model for AAI Resource model + Model aaiResourceModel = new Model(); + log.debug("Generating Model for Resource with ModelName: " + resource.getModelName()); + aaiResourceModel.setModelInvariantId(resource.getModelId()); + aaiResourceModel.setModelVers(new ModelVers()); + ModelVer modelVer = new ModelVer(); + modelVer.setModelDescription(resource.getModelDescription()); + modelVer.setModelName(resource.getModelName()); + modelVer.setModelVersion(resource.getModelVersion()); + modelVer.setModelVersionId(resource.getModelNameVersionId()); + modelVer.setModelElements(new ModelElements()); + ModelElements modelElements = modelVer.getModelElements(); + aaiResourceModel + .setModelType(resource.getModelType().name().toLowerCase()); //Using enum name as model type + List modelElementList = modelElements.getModelElement(); + + //Add resource base widget model element + ModelElement resourceWidgetModelRelationshipElement = + createRelationshipModelElement(getNewDataDelFlagValue(resource.getDeleteFlag()), + resource.getWidgetId(),resource.getWidgetInvariantId()); + modelElementList.add(resourceWidgetModelRelationshipElement); + + //Add the child resources to the base widget model element list + ModelElements baseResourceWidgetModelElements = + resourceWidgetModelRelationshipElement.getModelElements(); + List baseResourceWidgetModelElementList = + baseResourceWidgetModelElements.getModelElement(); + Set childResources = resource.getResources(); + if (childResources != null && !childResources.isEmpty()) { + for (Resource childResourceModel : childResources) { + ModelElement aaiChildResourceModelElement = createRelationshipModelElement( + getNewDataDelFlagValue(childResourceModel.getDeleteFlag()), + childResourceModel.getModelNameVersionId(),childResourceModel.getModelId()); + baseResourceWidgetModelElementList.add(aaiChildResourceModelElement); + } + } + //Add resource widgets/resources to the resource widget model relationship element + Set resourceWidgets = resource.getWidgets(); + if (resourceWidgets != null && !resourceWidgets.isEmpty()) { + generateWidgetChildren(resourceWidgetModelRelationshipElement, resourceWidgets); + } + + ModelVers modelVers = aaiResourceModel.getModelVers(); + List modelVerList = modelVers.getModelVer(); + modelVerList.add(modelVer); + return getModelAsString(aaiResourceModel); + + } + + /** + * Method to create the holding the relationship value for a + * resource/widget + * model. + * + * @param newDataDelFlag Value of the attribute for + * a widget/resource in + * the model xml + * @param relationshipValue Value of the attribute + * for the widget/resource in + * the model xml + * @return Java object representation for the holding the + relationship + */ + private ModelElement createRelationshipModelElement(String newDataDelFlag, + String modelVersionId,String + modelInvariantId) { + ModelElement relationshipModelElement = new ModelElement(); + relationshipModelElement.setNewDataDelFlag(newDataDelFlag); //Set new-data-del-flag value + relationshipModelElement.setCardinality("unbounded"); + RelationshipList relationShipList = new RelationshipList(); + final List relationships = relationShipList.getRelationship(); + Relationship relationship = new Relationship(); + relationship.setRelatedTo("model-ver"); + List relationshipDataList = relationship.getRelationshipData(); + + RelationshipData modelVersionRelationshipData = new RelationshipData(); + modelVersionRelationshipData.setRelationshipKey("model-ver.model-version-id"); + modelVersionRelationshipData.setRelationshipValue( + modelVersionId); //Set the widget/resource name-version-uuid as value + relationshipDataList.add(modelVersionRelationshipData); + RelationshipData modelInvariantRelationshipData = new RelationshipData(); + modelInvariantRelationshipData.setRelationshipKey("model.model-invariant-id"); + modelInvariantRelationshipData.setRelationshipValue( + modelInvariantId); + relationshipDataList.add(modelInvariantRelationshipData); + relationships.add(relationship); + relationshipModelElement.setRelationshipList(relationShipList); + relationshipModelElement.setModelElements(new ModelElements()); + return relationshipModelElement; + } + + /** + * Method to create the child model elements of the widget. Handles the generation of recursive + * child widget elements (if any) + * + * @param parent Reference to the parent widget model element + * @param widgetChildrenSet Set of children obtained from the tosca/widget definition + */ + private void generateWidgetChildren(ModelElement parent, Set widgetChildrenSet) { + for (Widget widget : widgetChildrenSet) { + Set widgetSubChildren = widget.getWidgets(); + if (widgetSubChildren != null && !widgetSubChildren.isEmpty()) { + ModelElement widgetChildRelationshipElement = + createRelationshipModelElement(getNewDataDelFlagValue(widget.getDeleteFlag()), + widget.getId(),widget.getWidgetId()); + //Recursive call for getting the children of widgets (if any) + generateWidgetChildren(widgetChildRelationshipElement, widgetSubChildren); + parent.getModelElements().getModelElement().add(widgetChildRelationshipElement); + } else { + ModelElement widgetChildRelationshipElement = + createRelationshipModelElement(getNewDataDelFlagValue(widget.getDeleteFlag()), + widget.getId(),widget.getWidgetId() + ); + parent.getModelElements().getModelElement().add(widgetChildRelationshipElement); + } + } + } + + /** + * Converts the data delete flag value from boolean to String as per AAI model. + * + * @param delFlag Boolean value as true/false from the annotation + * @return Converted value to a flag as per AAI model + */ + private String getNewDataDelFlagValue(boolean delFlag) { + if (delFlag) { + return "T"; + } else { + return "F"; + } + } + + /** + * JAXB marshalling helper method to convert the Java object model to XML String. + * + * @param model Java Object model of a service/widget/resource + * @return XML representation of the Java model in String format + */ + private String getModelAsString(Model model) { + JAXBContext jaxbContext; + StringWriter modelStringWriter = new StringWriter(); + try { + jaxbContext = JAXBContext.newInstance(Model.class); + Marshaller jaxbMarshaller = jaxbContext.createMarshaller(); + jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); + jaxbMarshaller.setProperty(Marshaller.JAXB_ENCODING, "US-ASCII"); + jaxbMarshaller.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE); + jaxbMarshaller.marshal(model, modelStringWriter); + } catch (JAXBException jaxbException) { + throw new DOMException(DOMException.SYNTAX_ERR, jaxbException.getMessage()); + } + + return modelStringWriter.toString(); + } +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/impl/ArtifactGenerationServiceImpl.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/impl/ArtifactGenerationServiceImpl.java new file mode 100644 index 0000000000..42975478fe --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/impl/ArtifactGenerationServiceImpl.java @@ -0,0 +1,87 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.impl; + +import static org.onap.sdc.generator.util.ArtifactGeneratorUtil.logError; + +import org.onap.sdc.generator.data.GeneratorConstants; +import org.onap.sdc.generator.util.ArtifactGeneratorUtil; +import org.openecomp.sdc.logging.api.Logger; +import org.openecomp.sdc.logging.api.LoggerFactory; +import org.onap.sdc.generator.GeneratorManager; +import org.onap.sdc.generator.GeneratorTask; +import org.onap.sdc.generator.data.Artifact; +import org.onap.sdc.generator.data.GenerationData; +import org.onap.sdc.generator.intf.ArtifactGenerator; +import org.onap.sdc.generator.service.ArtifactGenerationService; + +import java.util.List; +import java.util.Map; +import java.util.concurrent.ForkJoinPool; + +/** + * Artifact Generation Service implementation class. + */ +public class ArtifactGenerationServiceImpl implements ArtifactGenerationService { + + private static Logger log = + LoggerFactory.getLogger(ArtifactGenerationServiceImpl.class.getName()); + + /** + * Artifact generator method. + * + * @param input List of input files as {@link Artifact} models + * @param overridingConfiguration Configuration data for invoking generators + * @param additionalParams Additional Parameters + * @return Generated artifacts/Error data in a {@link GenerationData} object + */ + @Override + public GenerationData generateArtifact(List input, String overridingConfiguration, + Map additionalParams) { + try { + //Initialize artifact generation logging context + ArtifactGeneratorUtil.initializeLoggingContext(); + + List generatorsToBeUsed = + GeneratorManager.getActiveArtifactGenerators(overridingConfiguration); + if (generatorsToBeUsed.size() > 0) { + return ForkJoinPool.commonPool().invoke(new GeneratorTask(generatorsToBeUsed, input, + additionalParams)); + } else { + return new GenerationData(); + } + } catch (IllegalArgumentException iae) { + //Invalid client configuration + ArtifactGeneratorUtil + .logError(GeneratorConstants.GENERATOR_ERROR_ARTIFACT_GENERATION_FAILED, iae); + GenerationData errorData = new GenerationData(); + errorData.add(GeneratorConstants.GENERATOR_INVOCATION_ERROR_CODE, iae.getMessage()); + return errorData; + } catch (Exception ex) { + ArtifactGeneratorUtil + .logError(GeneratorConstants.GENERATOR_ERROR_ARTIFACT_GENERATION_FAILED, ex); + GenerationData errorData = new GenerationData(); + errorData.add(GeneratorConstants.GENERATOR_INVOCATION_ERROR_CODE, + GeneratorConstants.GENERATOR_ERROR_ARTIFACT_GENERATION_FAILED); + return errorData; + } + } +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/util/ArtifactGeneratorUtil.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/util/ArtifactGeneratorUtil.java new file mode 100644 index 0000000000..8e6e2c0829 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/main/java/org/onap/sdc/generator/util/ArtifactGeneratorUtil.java @@ -0,0 +1,298 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator.util; + +import static org.onap.sdc.generator.data.GeneratorConstants.BEGIN_TIMESTAMP; +import static org.onap.sdc.generator.data.GeneratorConstants.BE_FQDN; +import static org.onap.sdc.generator.data.GeneratorConstants.CATEGORY_LOG_LEVEL; +import static org.onap.sdc.generator.data.GeneratorConstants.CLIENT_IP; +import static org.onap.sdc.generator.data.GeneratorConstants.ELAPSED_TIME; +import static org.onap.sdc.generator.data.GeneratorConstants.END_TIMESTAMP; +import static org.onap.sdc.generator.data.GeneratorConstants.ERROR_CATEGORY; +import static org.onap.sdc.generator.data.GeneratorConstants.ERROR_CODE; +import static org.onap.sdc.generator.data.GeneratorConstants.ERROR_DESCRIPTION; +import static org.onap.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_CONFIGFILE_NOT_FOUND; +import static org.onap.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_CONFIGLOCATION_NOT_FOUND; +import static org.onap.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_CONFIGLPROP_NOT_FOUND; +import static org.onap.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_PROVIDING_SERVICE_METADATA_MISSING; +import static org.onap.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_PROVIDING_SERVICE_MISSING; +import static org.onap.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_ID; +import static org.onap.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_RESOURCE_VERSION_IN_SERVICE_TOSCA; +import static org.onap.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_TOSCA_MSG; +import static org.onap.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_ERROR_MANDATORY_METADATA_DEFINITION_MSG; +import static org.onap.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_ERROR_MISSING_RESOURCE_TOSCA; +import static org.onap.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_ERROR_MISSING_SERVICE_TOSCA_MSG; +import static org.onap.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_ERROR_MISSING_SERVICE_VERSION; +import static org.onap.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_ERROR_NULL_RESOURCE_VERSION_IN_SERVICE_TOSCA; +import static org.onap.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_INVALID_SERVICE_VERSION; +import static org.onap.sdc.generator.data.GeneratorConstants.GENERATOR_ERROR_ARTIFACT_GENERATION_FAILED_MSG; +import static org.onap.sdc.generator.data.GeneratorConstants.GENERATOR_ERROR_INVALID_CLIENT_CONFIGURATION_MSG; +import static org.onap.sdc.generator.data.GeneratorConstants.GENERATOR_PARTNER_NAME; +import static org.onap.sdc.generator.data.GeneratorConstants.INSTANCE_UUID; +import static org.onap.sdc.generator.data.GeneratorConstants.LOCAL_ADDR; +import static org.onap.sdc.generator.data.GeneratorConstants.MDC_SDC_INSTANCE_UUID; +import static org.onap.sdc.generator.data.GeneratorConstants.PARTNER_NAME; +import static org.onap.sdc.generator.data.GeneratorConstants.REMOTE_HOST; +import static org.onap.sdc.generator.data.GeneratorConstants.REQUEST_ID; +import static org.onap.sdc.generator.data.GeneratorConstants.RESPONSE_CODE; +import static org.onap.sdc.generator.data.GeneratorConstants.RESPONSE_DESCRIPTION; +import static org.onap.sdc.generator.data.GeneratorConstants.SERVICE_INSTANCE_ID; +import static org.onap.sdc.generator.data.GeneratorConstants.SERVICE_METRIC_BEGIN_TIMESTAMP; +import static org.onap.sdc.generator.data.GeneratorConstants.SERVICE_NAME; +import static org.onap.sdc.generator.data.GeneratorConstants.STATUS_CODE; +import static org.onap.sdc.generator.data.GeneratorConstants.TARGET_ENTITY; +import static org.onap.sdc.generator.data.GeneratorConstants.TARGET_SERVICE_NAME; +import static org.onap.sdc.generator.logging.ArtifactGeneratorLogResponseCode.INTERNAL_SERVER_ERROR; +import static org.onap.sdc.generator.logging.ArtifactGeneratorLogResponseCode.INVALID_CLIENT_CONFIGURATION; +import static org.onap.sdc.generator.logging.ArtifactGeneratorLogResponseCode.INVALID_ID_VALUE; +import static org.onap.sdc.generator.logging.ArtifactGeneratorLogResponseCode.INVALID_RESOURCE_VERSION; +import static org.onap.sdc.generator.logging.ArtifactGeneratorLogResponseCode.INVALID_SERVICE_VERSION; +import static org.onap.sdc.generator.logging.ArtifactGeneratorLogResponseCode.INVALID_TOSCA_YAML; +import static org.onap.sdc.generator.logging.ArtifactGeneratorLogResponseCode.MANDATORY_ATTRIBUTE_MISSING; +import static org.onap.sdc.generator.logging.ArtifactGeneratorLogResponseCode.MISSING_CONFIG_PROPERTIES_FILE; +import static org.onap.sdc.generator.logging.ArtifactGeneratorLogResponseCode.MISSING_PRO_SERVICE; +import static org.onap.sdc.generator.logging.ArtifactGeneratorLogResponseCode.MISSING_PRO_SERVICE_METADATA; +import static org.onap.sdc.generator.logging.ArtifactGeneratorLogResponseCode.MISSING_RESOURCE_VERSION; +import static org.onap.sdc.generator.logging.ArtifactGeneratorLogResponseCode.MISSING_SERVICE_VERSION; +import static org.onap.sdc.generator.logging.ArtifactGeneratorLogResponseCode.MISSING_SYSTME_PROPERY_CONFIGURATION; +import static org.onap.sdc.generator.logging.ArtifactGeneratorLogResponseCode.MISSING_WIDGET_CONFIGURATION; +import static org.onap.sdc.generator.logging.ArtifactGeneratorLogResponseCode.RESOURCE_TOSCA_MISSING; +import static org.onap.sdc.generator.logging.ArtifactGeneratorLogResponseCode.SERVICE_TOSCA_MISSING; +import static org.onap.sdc.generator.logging.ArtifactGeneratorLogResponseCode.UNABLE_TO_GENERATE_ARTIFACT; + +import org.openecomp.sdc.logging.api.Logger; +import org.openecomp.sdc.logging.api.LoggerFactory; +import org.onap.sdc.generator.data.Artifact; +import org.onap.sdc.generator.logging.ArtifactGeneratorLogResponseCode; +import org.onap.sdc.generator.logging.CategoryLogLevel; +import org.onap.sdc.generator.logging.StatusCode; +import org.slf4j.MDC; + +import java.io.PrintWriter; +import java.io.StringWriter; +import java.net.InetAddress; +import java.net.UnknownHostException; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.TimeZone; + + +public class ArtifactGeneratorUtil { + + private static Logger log = LoggerFactory.getLogger(ArtifactGeneratorUtil.class.getName()); + private static final String LOG_UTC_DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSS"; + + /** + * Artifact Generator Error logging Helper. + * @param errorDescription Description of the error + */ + public static void logError(String errorDescription) { + logError(errorDescription, ""); + } + + /** + * Artifact Generator Error logging Helper. + * @param errorDescription Description of the error + * @param ex Exception object for stackstrace + */ + public static void logError(String errorDescription, Exception ex) { + StringWriter sw = new StringWriter(); + ex.printStackTrace(new PrintWriter(sw)); + String detailMessage = sw.toString(); + logError(CategoryLogLevel.ERROR, errorDescription, detailMessage); + } + + /** + * Artifact Generator Error logging Helper. + * @param errorDescription Description of the error + * @param detailMessage Detailed Error message + */ + public static void logError(String errorDescription, String detailMessage) { + logError(CategoryLogLevel.ERROR, errorDescription, detailMessage); + } + + /** + * Artifact Generator Error logging Helper. + * @param errorCategory ERROR + * @param errorDescription Description of the error + * @param detailMessage Detailed Error message + */ + public static void logError(CategoryLogLevel errorCategory, + String errorDescription, String detailMessage) { + MDC.put(ERROR_CATEGORY, errorCategory.name()); + MDC.put(STATUS_CODE, StatusCode.ERROR.name()); + artifactGeneratorErrorLogProcessor(errorCategory,errorDescription); + log.error(detailMessage); + resetLoggingContext(); + } + + /** + * Initialize generic MDC attributes for logging the current request. + * + */ + public static void initializeLoggingContext() { + log.debug("Initializing generic logging context "); + MDC.put(PARTNER_NAME, GENERATOR_PARTNER_NAME); + MDC.put(SERVICE_METRIC_BEGIN_TIMESTAMP, String.valueOf(System.currentTimeMillis())); + MDC.put(INSTANCE_UUID, MDC_SDC_INSTANCE_UUID); + MDC.put(STATUS_CODE, StatusCode.COMPLETE.name()); + MDC.put(CLIENT_IP, MDC.get(REMOTE_HOST)); + + try { + InetAddress ip = InetAddress.getLocalHost(); + MDC.put(LOCAL_ADDR, ip.getHostAddress()); + String hostname = ip.getHostName(); + MDC.put(BE_FQDN, hostname); + } catch (UnknownHostException uhe) { + log.error("Failed to get server FQDN", uhe); + } + + if (log.isDebugEnabled()) { + MDC.put(CATEGORY_LOG_LEVEL, CategoryLogLevel.DEBUG.name()); + } else if (log.isInfoEnabled()) { + MDC.put(CATEGORY_LOG_LEVEL, CategoryLogLevel.INFO.name()); + } else if (log.isWarnEnabled()) { + MDC.put(CATEGORY_LOG_LEVEL, CategoryLogLevel.WARN.name()); + } else if (log.isErrorEnabled()) { + MDC.put(CATEGORY_LOG_LEVEL, CategoryLogLevel.ERROR.name()); + } + } + + /** + * Initialize MDC for logging the current artifact request. + * + * @param artifact Current artifact + */ + public static void initializeArtifactLoggingContext(Artifact artifact) { + log.debug("Initializing logging context for " + artifact.getLabel()); + MDC.put(REQUEST_ID, artifact.getLabel()); + MDC.put(SERVICE_NAME, artifact.getType()); + MDC.put(SERVICE_INSTANCE_ID, artifact.getName()); + } + + /** + * Reset the logging context after a Audit/Metrics logging operation. + */ + public static void resetLoggingContext() { + MDC.remove(ERROR_CATEGORY); + MDC.remove(ERROR_CODE); + MDC.remove(STATUS_CODE); + MDC.remove(ERROR_DESCRIPTION); + MDC.remove(BEGIN_TIMESTAMP); + MDC.remove(END_TIMESTAMP); + MDC.remove(ELAPSED_TIME); + MDC.put(STATUS_CODE, StatusCode.COMPLETE.name()); + MDC.remove(RESPONSE_CODE); + MDC.remove(RESPONSE_DESCRIPTION); + MDC.remove(TARGET_ENTITY); + MDC.remove(TARGET_SERVICE_NAME); + } + + /** + * Convert timestamp to UTC format date string. + * + * @param timeStamp UTC timestamp to be converted to the UTC Date format. + * @return UTC formatted Date string from timestamp. + */ + public static String getLogUtcDateStringFromTimestamp(Date timeStamp) { + DateFormat df = new SimpleDateFormat(LOG_UTC_DATE_FORMAT); + df.setTimeZone(TimeZone.getTimeZone("GMT")); + return df.format(timeStamp); + } + + /** + * Artifact Gnenerator Error logging Helper. + * + * @param errorCategory WARN or ERROR. + * @param errorDescription Description of the error. + */ + public static void artifactGeneratorErrorLogProcessor(CategoryLogLevel errorCategory, + String errorDescription) { + MDC.put(ERROR_CATEGORY, errorCategory.name()); + if (errorDescription != null) { + String errorType = ""; + switch (errorCategory) { + case WARN: + errorType = "W"; + break; + case ERROR: + errorType = "E"; + break; + case FATAL: + errorType = "F"; + break; + default: + break; + } + MDC.put(ERROR_CODE, getLogResponseCode(errorDescription) + errorType); + } + MDC.put(ERROR_DESCRIPTION, errorDescription); + } + + + /** + * + * @return Audit log code corresponding to the Artifact Generator exception. + */ + public static int getLogResponseCode(String errorDescription) { + ArtifactGeneratorLogResponseCode responseCode = INTERNAL_SERVER_ERROR; + if (errorDescription.contains(GENERATOR_AAI_ERROR_MANDATORY_METADATA_DEFINITION_MSG)) { + responseCode = MANDATORY_ATTRIBUTE_MISSING; + } else if (errorDescription.contains(GENERATOR_AAI_ERROR_INVALID_TOSCA_MSG)) { + responseCode = INVALID_TOSCA_YAML; + } else if (errorDescription.contains(GENERATOR_AAI_ERROR_MISSING_SERVICE_TOSCA_MSG)) { + responseCode = SERVICE_TOSCA_MISSING; + } else if (errorDescription.contains(GENERATOR_ERROR_INVALID_CLIENT_CONFIGURATION_MSG)) { + responseCode = INVALID_CLIENT_CONFIGURATION; + } else if (errorDescription.contains(GENERATOR_ERROR_ARTIFACT_GENERATION_FAILED_MSG)) { + responseCode = UNABLE_TO_GENERATE_ARTIFACT; + } else if (errorDescription.contains(GENERATOR_AAI_CONFIGLOCATION_NOT_FOUND.split("%s")[0])) { + responseCode = MISSING_SYSTME_PROPERY_CONFIGURATION; + } else if (errorDescription.contains(GENERATOR_AAI_CONFIGFILE_NOT_FOUND.split("%s")[0])) { + responseCode = MISSING_CONFIG_PROPERTIES_FILE; + } else if (errorDescription.contains(GENERATOR_AAI_CONFIGLPROP_NOT_FOUND.split("%s")[0])) { + responseCode = MISSING_WIDGET_CONFIGURATION; + } else if (errorDescription.contains(GENERATOR_AAI_ERROR_INVALID_ID.split("%s")[0])) { + responseCode = INVALID_ID_VALUE; + } else if (errorDescription.contains(GENERATOR_AAI_ERROR_MISSING_RESOURCE_TOSCA.split("%s")[0])) + { + responseCode = RESOURCE_TOSCA_MISSING; + } else if(errorDescription.contains(GENERATOR_AAI_ERROR_MISSING_SERVICE_VERSION)) { + responseCode = MISSING_SERVICE_VERSION; + } else if(errorDescription.contains(GENERATOR_AAI_INVALID_SERVICE_VERSION)) + { + responseCode = INVALID_SERVICE_VERSION; + } else if(errorDescription.contains(GENERATOR_AAI_ERROR_NULL_RESOURCE_VERSION_IN_SERVICE_TOSCA. + split("%s")[0])) { + responseCode = MISSING_RESOURCE_VERSION; + } else if(errorDescription.contains( + GENERATOR_AAI_ERROR_INVALID_RESOURCE_VERSION_IN_SERVICE_TOSCA.split("%s")[0])) { + responseCode = INVALID_RESOURCE_VERSION; + } else if(errorDescription.contains(GENERATOR_AAI_PROVIDING_SERVICE_MISSING.split("%s")[0])) { + responseCode = MISSING_PRO_SERVICE; + } else if(errorDescription.contains( + GENERATOR_AAI_PROVIDING_SERVICE_METADATA_MISSING.split("%s")[0])) { + responseCode = MISSING_PRO_SERVICE_METADATA; + } + return responseCode.getValue(); + } +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/java/org/onap/sdc/generator/ArtifactGenerationServiceTest.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/java/org/onap/sdc/generator/ArtifactGenerationServiceTest.java new file mode 100644 index 0000000000..e6f1abd796 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/java/org/onap/sdc/generator/ArtifactGenerationServiceTest.java @@ -0,0 +1,1679 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator; + +import org.apache.commons.io.FileUtils; +import org.onap.sdc.generator.aai.tosca.GroupDefinition; +import org.onap.sdc.generator.data.AdditionalParams; +import org.onap.sdc.generator.data.GenerationData; +import org.onap.sdc.generator.data.GeneratorConstants; +import org.onap.sdc.generator.impl.ArtifactGenerationServiceImpl; +import org.onap.sdc.generator.aai.model.Resource; +import org.onap.sdc.generator.aai.model.Service; +import org.onap.sdc.generator.aai.model.Widget; +import org.onap.sdc.generator.aai.tosca.NodeTemplate; +import org.onap.sdc.generator.aai.tosca.ToscaTemplate; +import org.onap.sdc.generator.aai.xml.Model; +import org.onap.sdc.generator.aai.xml.ModelElement; +import org.onap.sdc.generator.aai.xml.ModelElements; +import org.onap.sdc.generator.aai.xml.ModelVer; +import org.onap.sdc.generator.aai.xml.Relationship; +import org.onap.sdc.generator.aai.xml.RelationshipData; +import org.onap.sdc.generator.data.Artifact; +import org.onap.sdc.generator.data.ArtifactType; +import org.onap.sdc.generator.data.GeneratorUtil; +import org.onap.sdc.generator.data.GroupType; +import org.testng.Assert; +import org.testng.annotations.BeforeSuite; +import org.testng.annotations.Test; + +import java.io.ByteArrayInputStream; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.net.URL; +import java.util.*; +import javax.xml.bind.JAXBContext; +import javax.xml.bind.JAXBException; +import javax.xml.bind.Unmarshaller; + +@SuppressWarnings("Duplicates") +public class ArtifactGenerationServiceTest { + + private static final String aaiArtifactType = ArtifactType.AAI.name(); + private static final String aaiArtifactGroupType = GroupType.DEPLOYMENT.name(); + private static final String generatorConfig = "{\"artifactTypes\": [\"OTHER\",\"AAI\"]}"; + private final Properties properties = new Properties(); + private final Map additionalParams = new HashMap<>(); + private final Map resourcesVersion = new HashMap<>(); + + @BeforeSuite + public void loadProperties() throws Exception{ + loadConfigFromClasspath(properties); + additionalParams.put(AdditionalParams.ServiceVersion.getName(), "1.0"); + } + + @Test + public void testArtifactGeneration() { + // Sunny day scenario service with VF anf vfmodule + try { + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList<>(); + String aaiResourceBasePaths = "aai/"; + List inputArtifacts = init(aaiResourceBasePaths); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + if (data.getErrorData().isEmpty()) { + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + /*for( int i = 0 ; i < resultData.size() ; i++) { + Artifact artifact = resultData.get(i); + String fileName = artifact.getName(); + while(fileName.contains(":")){ + fileName = fileName.replace(":",""); + } + File targetFile =new File("src/test/resources/"+fileName); + OutputStream outStream = new FileOutputStream(targetFile); + outStream.write(Base64.getDecoder().decode(artifact.getPayload())); + }*/ + + Assert.assertEquals(resultData.size(),5); // 1-service,1-VF-resource,1-vfmodule and 2 + // others + Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); + testServiceTosca(toscas, outputArtifactMap); + testResourceTosca(toscas.iterator(), outputArtifactMap); + } else { + Assert.fail("error encountered : " + data.getErrorData().get("AAI")); + } + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testWidgetinServiceTosca() { + // Sunny day scenario service with VF and extra widget like CP anf vf has vfmodule without + // member + try { + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList<>(); + String aaiResourceBasePaths = "testWidgetinServiceTosca/"; + List inputArtifacts = init(aaiResourceBasePaths); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + if (data.getErrorData().isEmpty()) { + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + Assert.assertEquals(resultData.size(),5); // 1-service,1-VF-resource,1-vfmodule and 2 + // others + Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); + testServiceTosca(toscas, outputArtifactMap); + testResourceTosca(toscas.iterator(), outputArtifactMap); + } else { + Assert.fail("error encountered : " + data.getErrorData().get("AAI")); + } + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testSameVLdifferentVersion() { + // Sunny day scenario service with VF and extra widget like CP anf vf has vfmodule without + // member + try { + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList<>(); + String aaiResourceBasePaths = "testSameVLdifferentVersion/"; + List inputArtifacts = init(aaiResourceBasePaths); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + if (data.getErrorData().isEmpty()) { + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + Assert.assertEquals(resultData.size(),8); + // others + Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); + testServiceTosca(toscas, outputArtifactMap); + testResourceTosca(toscas.iterator(), outputArtifactMap); + } else { + Assert.fail("error encountered : " + data.getErrorData().get("AAI")); + } + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationAllottedResourceAndL3Network() { + // Sunny day scenario service with allotted resource and L3-network + try { + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList<>(); + String aaiResourceBasePaths = "aai2/"; + List inputArtifacts = init(aaiResourceBasePaths); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + if (data.getErrorData().isEmpty()) { + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Assert.assertEquals(resultData.size(),5); + // and 2 + // others + Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); + testServiceTosca(toscas, outputArtifactMap); + testResourceTosca(toscas.iterator(), outputArtifactMap); + } else { + Assert.fail("error encountered : " + data.getErrorData().get("AAI")); + } + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test(dependsOnMethods = {"testArtifactGeneration"}) + public void testWhenMissingTosca() { + try { + //Missing Service tosca test case + String aaiResourceBasePaths = "testArtifactGeneration2/"; + List inputArtifacts = init(aaiResourceBasePaths); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals(data.getErrorData().get("AAI").get(0),"Service tosca missing from list of input artifacts"); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test(dependsOnMethods = {"testWhenMissingTosca"}) + public void testWhenInvaildConfig() { + try { + //Invalid config test case + String generatorConfig1 = "{\"artifactTypes\": [\"ABC\"]}"; + String aaiResourceBasePaths = "testArtifactGeneration2/"; + List inputArtifacts = init(aaiResourceBasePaths); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig1, additionalParams); + Assert.assertEquals(data.getErrorData().get("ARTIFACT_GENERATOR_INVOCATION_ERROR").get(0),"Invalid Client Configuration"); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test(dependsOnMethods = {"testArtifactGeneration"}) + public void testWhenOnlyServToscaNoResTosca() { + try { + //Testing only service tosca no resource Tosca + String aaiResourceBasePaths = "testArtifactGeneration4/"; + List inputArtifacts = init(aaiResourceBasePaths); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList<>(); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + List resultData = data.getResultData(); + if (data.getErrorData().isEmpty()) { + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + } + Assert.assertEquals(resultData.size(),3); // 1-service and 2-Others + Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); + testServiceTosca(toscas, outputArtifactMap); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test(dependsOnMethods = {"testArtifactGeneration"}) + public void testWhenInvaildYaml() { + try { + //Invalid Yaml file test case + String aaiResourceBasePaths = "testArtifactGeneration5/"; + List inputArtifacts = init(aaiResourceBasePaths); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals(data.getErrorData().get("AAI").get(0),"Invalid format for Tosca YML : " + inputArtifacts.get(0).getName()); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test(dependsOnMethods = {"testArtifactGeneration"}) + public void testWhenExtraResToscaNotPartOfServ() { + try { + // Valid scenario with extra resource tosca which is not part of Service + String aaiResourceBasePaths = "testArtifactGeneration6/"; + List inputArtifacts = init(aaiResourceBasePaths); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList<>(); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + List resultData = data.getResultData(); + if (data.getErrorData().isEmpty()) { + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + } + Assert.assertEquals(resultData.size(),3); // 1-service and 2 Others + Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); + testServiceTosca(toscas, outputArtifactMap); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + + @Test + public void testWhenInvUuIdAttrMissing() { + try { + // mandatory attribute missing + String aaiResourceBasePaths = "testArtifactGeneration8/"; + List inputArtifacts = init(aaiResourceBasePaths); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals( + data.getErrorData().get("AAI").get(0),"Invalid Service/Resource definition mandatory attribute missing in Artifact: <" + + inputArtifacts.get(0).getName() + ">"); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testErrorWhenInvalidInvId() { + try { + //Invariant Id in service tosca of length not 36 + String aaiResourceBasePaths = "testErrorWhenInvalidInvId/"; + List inputArtifacts = init(aaiResourceBasePaths); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals( + data.getErrorData().get("AAI").get(0),String.format( + GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_ID, + "invariantUUID",inputArtifacts.get(0).getName())); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testWhenUuIdAttrMissing() { + try { + //mandatory attribute missing + String aaiResourceBasePaths = "testArtifactGeneration9/"; + List inputArtifacts = init(aaiResourceBasePaths); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals( + data.getErrorData().get("AAI").get(0),"Invalid Service/Resource definition mandatory attribute missing in Artifact: <" + + inputArtifacts.get(0).getName() + ">"); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testErrorWhenInvalidUuId() { + try { + //UUID Id in service tosca of length not 36 + String aaiResourceBasePaths = "testErrorWhenInvalidUuId/"; + List inputArtifacts = init(aaiResourceBasePaths); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals( + data.getErrorData().get("AAI").get(0),String.format( + GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_ID, + "UUID",inputArtifacts.get(0).getName())); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testWhenNameAttrMissing() { + try { + //mandatory attribute missing + String aaiResourceBasePaths = "testArtifactGeneration10/"; + List inputArtifacts = init(aaiResourceBasePaths); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals( + data.getErrorData().get("AAI").get(0),"Invalid Service/Resource definition mandatory attribute missing in Artifact: <" + + inputArtifacts.get(0).getName() + ">"); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test //(dependsOnMethods = {"testArtifactGeneration"}) + public void testWhenVfModInvUuIdAttrMissing() { + try { + //mandatory attribute missing + List inputArtifacts = new ArrayList<>(); + readPayloadFromResource(inputArtifacts, "service_vmme_template_ModInvUUID.yml"); + readPayloadFromResource(inputArtifacts, "vf_vmme_template_ModInvUUID.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals( + data.getErrorData().get("AAI").get(0),"Invalid Service/Resource definition mandatory attribute missing in Artifact: <" + + inputArtifacts.get(1).getName() + ">"); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + public static void readPayload(List inputArtifacts, InputStream fis, String fileName) throws + IOException { + byte[] payload = new byte[fis.available()]; + fis.read(payload); + String checksum = GeneratorUtil.checkSum(payload); + byte[] encodedPayload = GeneratorUtil.encode(payload); + Artifact artifact = new Artifact(aaiArtifactType, aaiArtifactGroupType, checksum, encodedPayload); + artifact.setName(fileName); + artifact.setLabel(fileName); + artifact.setDescription(fileName); + artifact.setVersion("1.0"); + System.out.println(artifact.getName()); + inputArtifacts.add(artifact); + } + + @Test + public void testWhenInvalidVfModInvUuIdAttr() { + try { + //invalid id since not of length 36 for + List inputArtifacts = new ArrayList<>(); + readPayloadFromResource(inputArtifacts, "service_vmme_template_InvalidVfModInvUuIdAttr.yml"); + + readPayloadFromResource(inputArtifacts, "vf_vmme_template_InvalidVfModInvUuIdAttr.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals( + data.getErrorData().get("AAI").get(0),String.format( + GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_ID, + "vfModuleModelInvariantUUID", inputArtifacts.get(1).getName() )); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test //(dependsOnMethods = {"testArtifactGeneration"}) + public void testWhenVfModNameAttrMissing() { + try { + //mandatory attribute missing + List inputArtifacts = new ArrayList<>(); + readPayloadFromResource(inputArtifacts, "service_vmme_template_ModelName.yml"); + + readPayloadFromResource(inputArtifacts, "vf_vmme_template_ModelName.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals( + data.getErrorData().get("AAI").get(0),"Invalid Service/Resource definition mandatory attribute missing in Artifact: <" + + inputArtifacts.get(1).getName() + ">"); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + /*public static void readPayload(List inputArtifacts,InputStream fis, String fileName) + throws + IOException { + byte[] payload = new byte[fis.available()]; + fis.read(payload); + String checksum = GeneratorUtil.checkSum(payload); + byte[] encodedPayload = GeneratorUtil.encode(payload); + Artifact artifact = new Artifact(aaiArtifactType, aaiArtifactGroupType, checksum, encodedPayload); + artifact.setName(fileName); + artifact.setLabel(fileName); + artifact.setDescription(fileName); + artifact.setVersion("1.0"); + System.out.println(artifact.getName()); + inputArtifacts.add(artifact); + }*/ + + @Test //(dependsOnMethods = {"testArtifactGeneration"}) + public void testWhenVfModUuIdAttrMissing() { + try { + //mandatory attribute missing in Artifact + List inputArtifacts = new ArrayList<>(); + readPayloadFromResource(inputArtifacts, "service_vmme_template_ModelUUID.yml"); + + readPayloadFromResource(inputArtifacts, "vf_vmme_template_ModelUUID.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals( + data.getErrorData().get("AAI").get(0),"Invalid Service/Resource definition mandatory " + + "attribute missing in Artifact: <" + + inputArtifacts.get(1).getName() + ">"); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testWhenInvalidVfModUuIdAttr() { + try { + //invalid id since not of length 36 for + List inputArtifacts = new ArrayList<>(); + readPayloadFromResource(inputArtifacts, "service_vmme_template_InvalidVfModUuIdAttr.yml"); + + readPayloadFromResource(inputArtifacts, "vf_vmme_template_InvalidVfModUuIdAttr.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals( + data.getErrorData().get("AAI").get(0),String.format( + GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_ID, + "vfModuleModelUUID", inputArtifacts.get(1).getName() )); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test //(dependsOnMethods = {"testArtifactGeneration"}) + public void testWhenVfModVersionAttrMissing() { + try { + //mandatory attribute missing + List inputArtifacts = new ArrayList<>(); + readPayloadFromResource(inputArtifacts, "service_vmme_template_ModelVersion.yml"); + + readPayloadFromResource(inputArtifacts, "vf_vmme_template_ModelVersion.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals( + data.getErrorData().get("AAI").get(0),"Invalid Service/Resource definition mandatory attribute missing in Artifact: <" + + inputArtifacts.get(1).getName() + ">"); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testErrorWhenNoSystemPropConfigured() throws Exception { + String configLoc = System.getProperty("artifactgenerator.config"); + try { + System.clearProperty("artifactgenerator.config"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + String aaiResourceBasePaths = "aai/"; + List inputArtifacts = init(aaiResourceBasePaths); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals(false,data.getErrorData().isEmpty()); + Assert.assertEquals(data.getErrorData(). + get("AAI").get(0), GeneratorConstants.GENERATOR_AAI_CONFIGLOCATION_NOT_FOUND); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + finally{ + System.setProperty("artifactgenerator.config",configLoc); + } + } + + @Test + public void testErrorWhenNoWidgetInConfig() throws Exception { + String configLoc = System.getProperty("artifactgenerator.config"); + final File configFile = new File(configLoc); + String configDir = configLoc.substring(0, configLoc.lastIndexOf(File.separator)); + final File tempFile = new File(configDir + File.separator + "temp.properties"); + try { + //copy orignal Artifact-Generator.properties to temp.properties for backup + FileUtils.copyFile(configFile, tempFile); + + String serviceWidgetName = ArtifactType.AAI.name()+".model-version-id."+Widget.getWidget + (Widget.Type.SERVICE) + .getName(); + String assertMsg = ArtifactType.AAI.name() + ".model-version-id." +Widget.getWidget + (Widget.Type.SERVICE).getName(); + + //Remove property from Artifact-Generator.properties + properties.remove(serviceWidgetName); + try (OutputStream fos = new FileOutputStream(new File(configLoc))) { + properties.store(fos,null); + } + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + String aaiResourceBasePaths = "aai/"; + List inputArtifacts = init(aaiResourceBasePaths); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals(false,data.getErrorData().isEmpty()); + String errMsg = String.format(GeneratorConstants.GENERATOR_AAI_CONFIGLPROP_NOT_FOUND,assertMsg); + Assert.assertEquals(data.getErrorData().get("AAI").get(0),errMsg); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + finally{ + if(tempFile.exists()){ + //Revert the changes + FileUtils.copyFile(tempFile, configFile); + loadConfigFromClasspath(properties); + tempFile.delete(); + } + } + } + + @Test + public void testErrorWhenNoFileAtConfigLocation() throws Exception { + String configLoc = System.getProperty("artifactgenerator.config"); + try { + System.setProperty("artifactgenerator.config",configLoc + File.separator + "testErrorWhenNoFileAtConfigLocation"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + String aaiResourceBasePaths = "aai/"; + List inputArtifacts = init(aaiResourceBasePaths); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals(data.getErrorData().isEmpty(),false); + Assert.assertEquals(data.getErrorData().get("AAI").get(0),String.format( + GeneratorConstants.GENERATOR_AAI_CONFIGFILE_NOT_FOUND,System.getProperty + ("artifactgenerator.config"))); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + finally{ + System.setProperty("artifactgenerator.config",configLoc); + } + } + + @Test + public void testErrorWhenNoServiceVersion() { + // scenario service with VF anf vfmodule but no service version in additional parameter + try { + additionalParams.clear(); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + String aaiResourceBasePaths = "aai/"; + List inputArtifacts = init(aaiResourceBasePaths); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals(data.getErrorData().isEmpty(),false); + Assert.assertEquals(data.getErrorData().get("AAI").get(0), + GeneratorConstants.GENERATOR_AAI_ERROR_MISSING_SERVICE_VERSION); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + finally{ + additionalParams.put(AdditionalParams.ServiceVersion.getName(),"1.0"); + } + } + + @Test + public void testArtifactGenerationWithServiceVersion() { + // Sunny day scenario service with VF anf vfmodule and service version as adiitional parameter + try { + additionalParams.put(AdditionalParams.ServiceVersion.getName(),"9.0"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList<>(); + String aaiResourceBasePaths = "aai/"; + List inputArtifacts = init(aaiResourceBasePaths); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + if (data.getErrorData().isEmpty()) { + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + /*for( int i = 0 ; i < resultData.size() ; i++) { + Artifact artifact = resultData.get(i); + String fileName = artifact.getName(); + while(fileName.contains(":")){ + fileName = fileName.replace(":",""); + } + File targetFile =new File("src/test/resources/"+fileName); + OutputStream outStream = new FileOutputStream(targetFile); + outStream.write(Base64.getDecoder().decode(artifact.getPayload())); + }*/ + + Assert.assertEquals(resultData.size(),5); // 1-service,1-VF-resource,1-vfmodule and 2 + // others + Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); + testServiceTosca(toscas, outputArtifactMap); + testResourceTosca(toscas.iterator(), outputArtifactMap); + } else { + Assert.fail("error encountered : " + data.getErrorData().get("AAI")); + } + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + finally{ + additionalParams.put(AdditionalParams.ServiceVersion.getName(),"1.0"); + } + } + + @Test + public void testErrorWhenInvalidServiceVersion() { + // scenario service with VF anf vfmodule but invalid service version in additional parameter + try { + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + String aaiResourceBasePaths = "aai/"; + List inputArtifacts = init(aaiResourceBasePaths); + + additionalParams.put(AdditionalParams.ServiceVersion.getName(),"1"); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals(data.getErrorData().isEmpty(),false); + Assert.assertEquals(data.getErrorData().get("AAI").get(0), + GeneratorConstants.GENERATOR_AAI_INVALID_SERVICE_VERSION); + + additionalParams.put(AdditionalParams.ServiceVersion.getName(),"0.1"); + data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals(data.getErrorData().isEmpty(),false); + Assert.assertEquals(data.getErrorData().get("AAI").get(0), + GeneratorConstants.GENERATOR_AAI_INVALID_SERVICE_VERSION); + + additionalParams.put(AdditionalParams.ServiceVersion.getName(),"0.0"); + data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals(data.getErrorData().isEmpty(),false); + Assert.assertEquals(data.getErrorData().get("AAI").get(0), + GeneratorConstants.GENERATOR_AAI_INVALID_SERVICE_VERSION); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + finally{ + additionalParams.put(AdditionalParams.ServiceVersion.getName(),"1.0"); + } + } + + @Test + public void testMissingResourceTosca() { + try { + //Service with resource but seperate resource tosca not coming as input. + String aaiResourceBasePaths = "missingResourceTosca/"; + List inputArtifacts = init(aaiResourceBasePaths); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals(data.getErrorData().get("AAI").get(0),"Cannot generate artifacts. Resource Tosca missing for resource with UUID: "); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + @Test + public void testMissingVLTosca() { + try { + //Service with VL but seperate VL tosca not coming as input artifact. + String aaiResourceBasePaths = "missingVLTosca/"; + List inputArtifacts = init(aaiResourceBasePaths); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals(data.getErrorData().get("AAI").get(0),"Cannot generate artifacts. Resource Tosca missing for resource with UUID: <3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468>"); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testErrorWhenNoResourceVersion() { + // scenario service with VF but missing resource version in service tosca + try { + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + String aaiResourceBasePaths = "testErrorWhenNoResourceVersion/"; + List inputArtifacts = init(aaiResourceBasePaths); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals(data.getErrorData().isEmpty(),false); + Assert.assertEquals(data.getErrorData().get("AAI").get(0), + "Invalid Service definition mandatory attribute version missing for resource with UUID: "); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testErrorWhenInvalidResourceVersion1() { + // scenario service with VF but invalid resource version 0.0 in service tosca + try { + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + String aaiResourceBasePaths = "testErrorWhenInvalidResourceVersion1/"; + List inputArtifacts = init(aaiResourceBasePaths); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals(data.getErrorData().isEmpty(),false); + Assert.assertEquals(data.getErrorData().get("AAI").get(0), + "Cannot generate artifacts. Invalid Resource version in Service tosca for resource with UUID: "); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testErrorWhenInvalidResourceVersion2() { + // scenario service with VF but invalid resource version 1 in service tosca + try { + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + String aaiResourceBasePaths = "testErrorWhenInvalidResourceVersion2/"; + List inputArtifacts = init(aaiResourceBasePaths); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals(data.getErrorData().isEmpty(),false); + Assert.assertEquals(data.getErrorData().get("AAI").get(0), + "Cannot generate artifacts. Invalid Resource version in Service tosca for resource with UUID: "); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationAllottedResourceWithIpMuxAndTunnelXConn() { + try { + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList<>(); + String aaiResourceBasePaths = "testArtifactGeneration15/"; + List inputArtifacts = init(aaiResourceBasePaths); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + if (data.getErrorData().isEmpty()) { + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Assert.assertEquals(resultData.size(),5); + Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); + testServiceTosca(toscas, outputArtifactMap); + testResourceTosca(toscas.iterator(), outputArtifactMap); + } else { + Assert.fail("error encountered : " + data.getErrorData().get("AAI")); + } + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + +// @Test + public void testErrorWhenAllottedResourceWithOutProvidingServiceId() { + try { + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + String aaiResourceBasePaths = "testErrorWhenAllottedResourceWithOutDependingServiceId/"; + List inputArtifacts = init(aaiResourceBasePaths); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals(data.getErrorData().isEmpty(),false); + Assert.assertEquals(data.getErrorData().get("AAI").get(0),String.format + (GeneratorConstants.GENERATOR_AAI_PROVIDING_SERVICE_METADATA_MISSING, "707b2850-e830-4b00-9902-879f44ac05a4")); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationWithoutAllottedResource() { + try { + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + String aaiResourceBasePaths = "testArtifactGeneration16/"; + List inputArtifacts = init(aaiResourceBasePaths); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + Assert.assertEquals(data.getErrorData().isEmpty(),false); + Assert.assertEquals(data.getErrorData().get("AAI").get(0),String.format + (GeneratorConstants.GENERATOR_AAI_PROVIDING_SERVICE_MISSING, "a54a5235-b69d-4f8a-838b-d011e6783fa5")); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationAllottedResourceIpmuxSameInvariantDiffVersion() { + try { + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList<>(); + String aaiResourceBasePaths = "testArtifactGeneration17/"; + List inputArtifacts = init(aaiResourceBasePaths); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + if (data.getErrorData().isEmpty()) { + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Assert.assertEquals(resultData.size(),5); + Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); + testServiceTosca(toscas, outputArtifactMap); + testResourceTosca(toscas.iterator(), outputArtifactMap); + } else { + Assert.fail("error encountered : " + data.getErrorData().get("AAI")); + } + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationAllottedResourceIpmuxSameInvariantSameVersion() { + try { + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList<>(); + String aaiResourceBasePaths = "testArtifactGeneration18/"; + List inputArtifacts = init(aaiResourceBasePaths); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + if (data.getErrorData().isEmpty()) { + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + + Assert.assertEquals(resultData.size(),4); + Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); + testServiceTosca(toscas, outputArtifactMap); + testResourceTosca(toscas.iterator(), outputArtifactMap); + } else { + Assert.fail("error encountered : " + data.getErrorData().get("AAI")); + } + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationAllottedResourceIpmuxWithGroups() { + try { + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList<>(); + String aaiResourceBasePaths = "testAllotedResourceWithDependingSerWithGroups/"; + List inputArtifacts = init(aaiResourceBasePaths); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + if (data.getErrorData().isEmpty()) { + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Assert.assertEquals(resultData.size(),5); + Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); + testServiceTosca(toscas, outputArtifactMap); + testResourceTosca(toscas.iterator(), outputArtifactMap); + } else { + Assert.fail("error encountered : " + data.getErrorData().get("AAI")); + } + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationAllottedResourceWithVF() { + try { + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList<>(); + String aaiResourceBasePaths = "testArtifactGenerationAllottedResourceWithVF/"; + List inputArtifacts = init(aaiResourceBasePaths); + GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); + if (data.getErrorData().isEmpty()) { + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Assert.assertEquals(resultData.size(),7); + Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); + testServiceTosca(toscas, outputArtifactMap); + testResourceTosca(toscas.iterator(), outputArtifactMap); + } else { + Assert.fail("error encountered : " + data.getErrorData().get("AAI")); + } + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + + //@Test + public void testServiceTosca(List toscas, Map outputArtifactMap) { + try { + ToscaTemplate serviceTosca = getServiceTosca(toscas); + if (serviceTosca == null) { + Assert.fail("Service Tosca not found"); + } + serviceTosca.getMetadata().put("version", "1.0"); + Service service = new Service(); + service.populateModelIdentificationInformation(serviceTosca.getMetadata()); + String serviceNameVersionId = service.getModelNameVersionId(); + Model serviceAAIModel = getAAIModelByNameVersionId(serviceNameVersionId, outputArtifactMap); + validateServiceModelMetadata(service, serviceAAIModel); + //Validate Service instance base widget + ModelVer modelVersion = serviceAAIModel.getModelVers().getModelVer().get(0); + + List matchedServiceBaseWidgetElements = + getModelElementbyRelationshipValue( modelVersion.getModelElements(), + Widget.getWidget(Widget.Type.SERVICE).getId()); + validateMatchedModelElementsInService(matchedServiceBaseWidgetElements, + Widget.getWidget(Widget.Type.SERVICE).getName()); + + validateWidgetIds(matchedServiceBaseWidgetElements, Widget.getWidget(Widget.Type.SERVICE).getName(), + Widget.getWidget(Widget.Type.SERVICE).getWidgetId()); + + ModelElements baseServiceWidgetModelElements = + matchedServiceBaseWidgetElements.get(0).getModelElements(); + + + Map nodeTemplateIdTypeStore = getNodeTemplateTypeStore(serviceTosca); + if (nodeTemplateIdTypeStore != null) { + for (String key : nodeTemplateIdTypeStore.keySet()) { + if (nodeTemplateIdTypeStore.get(key).contains("org.openecomp.resource.vf")) { + List matchedResourceElements = + getModelElementbyRelationshipValue(baseServiceWidgetModelElements, key); + if (nodeTemplateIdTypeStore.get(key).contains("org.openecomp.resource.vf.allottedResource")){ + validateMatchedModelElementsInService(matchedResourceElements, + Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getName()); + }else { + validateMatchedModelElementsInService(matchedResourceElements, + Widget.getWidget(Widget.Type.VF).getName()); + } + + //Validate uuid and invariantuuid are populated in model-ver.model-version-id and model.model-invariant-id + Assert.assertEquals(matchedResourceElements.get(0).getRelationshipList() + .getRelationship().get(0) + .getRelationshipData().get(0).getRelationshipValue(),key); + + Assert.assertEquals(matchedResourceElements.get(0).getRelationshipList().getRelationship().get(0) + .getRelationshipData().get(1).getRelationshipValue(), nodeTemplateIdTypeStore + .get(key+"-INV_UID")); + } else if(nodeTemplateIdTypeStore.get(key).contains("org.openecomp.resource.vl")){ + //validate l3-network in service tosca + List matchedResourceElements = + getModelElementbyRelationshipValue(baseServiceWidgetModelElements, key); + validateMatchedModelElementsInService(matchedResourceElements, + Widget.getWidget(Widget.Type.L3_NET).getName()); + //Validate uuid and invariantuuid are populated in model-ver.model-version-id and model.model-invariant-id + Assert.assertEquals(matchedResourceElements.get(0).getRelationshipList() + .getRelationship().get(0) + .getRelationshipData().get(0).getRelationshipValue(),key); + + Assert.assertEquals(matchedResourceElements.get(0).getRelationshipList().getRelationship().get(0) + .getRelationshipData().get(1).getRelationshipValue(), nodeTemplateIdTypeStore + .get(key+"-INV_UID")); + } + } + + + System.out.println(); + + } + } catch (IllegalArgumentException e) { + Assert.fail(e.getMessage()); //Can come while populating metadata + } + } + + private void validateWidgetIds(List matchedServiceBaseWidgetElements, + String widgetName, String widgetInvUuId) { + Assert.assertEquals(matchedServiceBaseWidgetElements.get(0).getRelationshipList().getRelationship().get(0) + .getRelationshipData().get(0).getRelationshipValue(), properties.getProperty(ArtifactType.AAI.name() + + ".model-version-id."+ widgetName)); + + Assert.assertEquals(matchedServiceBaseWidgetElements.get(0).getRelationshipList().getRelationship().get(0) + .getRelationshipData().get(1).getRelationshipValue(), widgetInvUuId); + } + + + public void testL3NetworkResourceTosca(Map outputArtifactMap , ToscaTemplate + resourceTosca) { + try { + if (resourceTosca != null) { + Resource resource = new Resource(); + resource.populateModelIdentificationInformation(resourceTosca.getMetadata()); + String resourceNameVersionId = resource.getModelNameVersionId(); + Model resourceAAIModel = + getAAIModelByNameVersionId(resourceNameVersionId, outputArtifactMap); + if (resourceAAIModel != null) { + validateResourceModelMetadata(resource, resourceAAIModel); + //Validate Resource instance base widget + + ModelVer modelVersion = resourceAAIModel.getModelVers().getModelVer().get(0); + + List matchedVFBaseWidgetElements = + getModelElementbyRelationshipValue(modelVersion.getModelElements(), + Widget.getWidget(Widget.Type.L3_NET).getId()); + validateMatchedModelElementsInService(matchedVFBaseWidgetElements, + Widget.getWidget(Widget.Type.L3_NET).getName()); + + validateWidgetIds(matchedVFBaseWidgetElements, Widget.getWidget(Widget.Type.L3_NET).getName(), + Widget.getWidget(Widget.Type.L3_NET).getWidgetId()); + + }else { + System.out.println("Resource mapping not found for " + resourceNameVersionId); + } + } + + }catch (IllegalArgumentException e) { + Assert.fail(e.getMessage()); //Can come while populating metadata + } + + } + + public void testAllottedResourceTosca(Map outputArtifactMap , ToscaTemplate + resourceTosca) { + try { + if (resourceTosca != null) { + Resource resource = new Resource(); + resource.populateModelIdentificationInformation(resourceTosca.getMetadata()); + String resourceNameVersionId = resource.getModelNameVersionId(); + Model resourceAAIModel = + getAAIModelByNameVersionId(resourceNameVersionId, outputArtifactMap); + if (resourceAAIModel != null) { + validateResourceModelMetadata(resource, resourceAAIModel); + //Validate Resource instance base widget + + ModelVer modelVersion = resourceAAIModel.getModelVers().getModelVer().get(0); + + List matchedVFBaseWidgetElements = + getModelElementbyRelationshipValue(modelVersion.getModelElements(), + Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getId()); + validateMatchedModelElementsInService(matchedVFBaseWidgetElements, + Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getName()); + + validateWidgetIds(matchedVFBaseWidgetElements, Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getName(), + Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getWidgetId()); + + Map dependingServiceDetails = getProvidingServiceDetails(resourceTosca); + + ModelElements containedModelElements = modelVersion.getModelElements().getModelElement(). + get(0).getModelElements(); + Assert.assertEquals( containedModelElements.getModelElement().get(0).getRelationshipList() + .getRelationship().get(0).getRelationshipData().get(0).getRelationshipValue(), + dependingServiceDetails.get("providing_service_uuid")); + + Assert.assertEquals(containedModelElements.getModelElement().get(0).getRelationshipList() + .getRelationship().get(0).getRelationshipData().get(1).getRelationshipValue(), + dependingServiceDetails.get("providing_service_invariant_uuid")); + + if("Allotted Resource".equals(resourceTosca.getMetadata().get("category")) && + "Tunnel XConnect".equals(resourceTosca.getMetadata().get("subcategory"))) { + + List matchedTunnelXConnectWidgetElements = + getModelElementbyRelationshipValue(containedModelElements, + Widget.getWidget(Widget.Type.TUNNEL_XCONNECT).getId()); + validateMatchedModelElementsInService(matchedTunnelXConnectWidgetElements, + Widget.getWidget(Widget.Type.TUNNEL_XCONNECT).getName()); + + validateWidgetIds(matchedTunnelXConnectWidgetElements, Widget.getWidget(Widget.Type.TUNNEL_XCONNECT).getName(), + Widget.getWidget(Widget.Type.TUNNEL_XCONNECT).getWidgetId()); + } + + }else { + System.out.println("Resource mapping not found for " + resourceNameVersionId); + } + } + + }catch (IllegalArgumentException e) { + Assert.fail(e.getMessage()); //Can come while populating metadata + } + + } + + public Map getProvidingServiceDetails(ToscaTemplate resourceTemplate) { +Set keys = resourceTemplate.getTopology_template().getNode_templates().keySet(); + +Map nodeProperties =null; +for(String key : keys) { +NodeTemplate node = resourceTemplate.getTopology_template().getNode_templates().get(key); +if(node.getType().equals("org.openecomp.resource.vfc.AllottedResource")) { +nodeProperties = node.getProperties(); + } +} + + return nodeProperties; + } + + public void testVfTosca(Map outputArtifactMap , ToscaTemplate resourceTosca) { + try { + //ToscaTemplate resourceTosca = getResourceTosca(toscas); + //resourceTosca.getTopology_template().getGroups(). + if (resourceTosca != null) { + Resource resource = new Resource(); + resource.populateModelIdentificationInformation(resourceTosca.getMetadata()); + String resourceNameVersionId = resource.getModelNameVersionId(); + Model resourceAAIModel = + getAAIModelByNameVersionId(resourceNameVersionId, outputArtifactMap); + if (resourceAAIModel != null) { + validateResourceModelMetadata(resource, resourceAAIModel); + //Validate Resource instance base widget + + ModelVer modelVersion = resourceAAIModel.getModelVers().getModelVer().get(0); + + List matchedVFBaseWidgetElements = + getModelElementbyRelationshipValue(modelVersion.getModelElements(), + Widget.getWidget(Widget.Type.VF).getId()); + validateMatchedModelElementsInService(matchedVFBaseWidgetElements, + Widget.getWidget(Widget.Type.VF).getName()); + + validateWidgetIds(matchedVFBaseWidgetElements, Widget.getWidget(Widget.Type.VF).getName(), + Widget.getWidget(Widget.Type.VF).getWidgetId()); + + ModelElements baseResourceWidgetModelElements = + matchedVFBaseWidgetElements.get(0).getModelElements(); + if (resourceTosca.getTopology_template() != null) { + Map groupIdTypeStore = getGroupsTypeStore(resourceTosca); + + if (baseResourceWidgetModelElements.getModelElement().size() != + groupIdTypeStore.size()) { + Assert.fail("Missing VFModule in VF model.xml"); + } + + for (String key : groupIdTypeStore.keySet()) { + + List matchedResourceElements = + getModelElementbyRelationshipValue(baseResourceWidgetModelElements, key); + validateMatchedModelElementsInService(matchedResourceElements, + Widget.getWidget(Widget.Type.VFMODULE).getName()); + Model resourceAAIVFModel = getAAIModelByNameVersionId(key, outputArtifactMap); + Map vfModuleModelMetadata = + getVFModuleMetadataTosca(resourceTosca, key); + Map vfModuleMembers = getVFModuleMembersTosca(resourceTosca, key); + + validateVFModelMetadata(vfModuleModelMetadata, resourceAAIVFModel); + + + ModelVer modelVfVersion = resourceAAIVFModel.getModelVers().getModelVer().get(0); + + List matchedVFModuleBaseWidgetElements = + getModelElementbyRelationshipValue(modelVfVersion.getModelElements(), + Widget.getWidget(Widget.Type.VFMODULE).getId()); + validateMatchedModelElementsInService(matchedVFModuleBaseWidgetElements, + Widget.getWidget(Widget.Type.VFMODULE).getName()); + validateWidgetIds(matchedVFModuleBaseWidgetElements, Widget.getWidget(Widget.Type.VFMODULE) + .getName(), Widget.getWidget(Widget.Type.VFMODULE).getWidgetId()); + + ModelElements baseResourceVFModuleWidgetModelElements = + matchedVFModuleBaseWidgetElements.get(0).getModelElements(); + if (vfModuleMembers.containsKey("l3-network")) { + //Validate l3 + List matchedL3NetworkElements = + getModelElementbyRelationshipValue(baseResourceVFModuleWidgetModelElements, + Widget.getWidget(Widget.Type.L3_NET).getId()); + validateMatchedModelElementsInService(matchedL3NetworkElements, + Widget.getWidget(Widget.Type.L3_NET).getName()); + validateWidgetIds(matchedL3NetworkElements, Widget.getWidget(Widget.Type.L3_NET) + .getName(), Widget.getWidget(Widget.Type.L3_NET).getWidgetId()); + } + if (vfModuleMembers.containsKey("vserver")) { + //Validate vserver + List matchedVserverElements = + getModelElementbyRelationshipValue(baseResourceVFModuleWidgetModelElements, + Widget.getWidget(Widget.Type.VSERVER).getId()); + validateMatchedModelElementsInService(matchedVserverElements, + Widget.getWidget(Widget.Type.VSERVER).getName()); + ModelElements vserverWidgetModelElements = + matchedVserverElements.get(0).getModelElements(); + + validateWidgetIds(matchedVserverElements, Widget.getWidget(Widget.Type.VSERVER) + .getName(), Widget.getWidget(Widget.Type.VSERVER).getWidgetId()); + + + //Validate vserver->vfc + List matchedVfcElements = + getModelElementbyRelationshipValue(vserverWidgetModelElements, + Widget.getWidget(Widget.Type.VFC).getId()); + validateMatchedModelElementsInService(matchedVfcElements, + Widget.getWidget(Widget.Type.VFC).getName()); + validateWidgetIds(matchedVfcElements, Widget.getWidget(Widget.Type.VFC).getName(), + Widget.getWidget(Widget.Type.VFC).getWidgetId()); + + //Validate vserver->Image + List matchedImageElements = + getModelElementbyRelationshipValue(vserverWidgetModelElements, + Widget.getWidget(Widget.Type.IMAGE).getId()); + validateMatchedModelElementsInService(matchedImageElements, + Widget.getWidget(Widget.Type.IMAGE).getName()); + validateWidgetIds(matchedImageElements, Widget.getWidget(Widget.Type.IMAGE) + .getName(), Widget.getWidget(Widget.Type.IMAGE).getWidgetId()); + + + //Validate vserver->Flavor + List matchedFlavorElements = + getModelElementbyRelationshipValue(vserverWidgetModelElements, + Widget.getWidget(Widget.Type.FLAVOR).getId()); + validateMatchedModelElementsInService(matchedFlavorElements, + Widget.getWidget(Widget.Type.FLAVOR).getName()); + validateWidgetIds(matchedFlavorElements, Widget.getWidget(Widget.Type.FLAVOR).getName(), + Widget.getWidget(Widget.Type.FLAVOR).getWidgetId()); + + //Validate vserver->Tenant + List matchedTenantElements = + getModelElementbyRelationshipValue(vserverWidgetModelElements, + Widget.getWidget(Widget.Type.TENANT).getId()); + validateMatchedModelElementsInService(matchedTenantElements, + Widget.getWidget(Widget.Type.TENANT).getName()); + validateWidgetIds(matchedTenantElements, Widget.getWidget(Widget.Type.TENANT).getName(), + Widget.getWidget(Widget.Type.TENANT).getWidgetId()); + + //Validate vserver->l-interface + if (vfModuleMembers.containsKey("l-interface")) { + List matchedLinterfaceElements = + getModelElementbyRelationshipValue(vserverWidgetModelElements, + Widget.getWidget(Widget.Type.LINT).getId()); + validateMatchedModelElementsInService(matchedLinterfaceElements, + Widget.getWidget(Widget.Type.LINT).getName()); + validateWidgetIds(matchedLinterfaceElements, Widget.getWidget(Widget.Type.LINT).getName(), + Widget.getWidget(Widget.Type.LINT).getWidgetId()); + } + //Validate vserver->volume + if (vfModuleMembers.containsKey("volume")) { + List matchedVolumeElements = + getModelElementbyRelationshipValue(vserverWidgetModelElements, + Widget.getWidget(Widget.Type.VOLUME).getId()); + validateMatchedModelElementsInService(matchedVolumeElements, + Widget.getWidget(Widget.Type.VOLUME).getName()); + validateWidgetIds(matchedVolumeElements, Widget.getWidget(Widget.Type.VOLUME).getName(), + Widget.getWidget(Widget.Type.VOLUME).getWidgetId()); + } + } + } + } + } else { + System.out.println("Resource mapping not found for " + resourceNameVersionId); + } + } + + } catch (IllegalArgumentException e) { + Assert.fail(e.getMessage()); //Can come while populating metadata + } + + } + + private void validateMatchedModelElementsInService(List matchedModelElements, + String modelType) { + if (matchedModelElements.isEmpty()) { + Assert.fail(modelType + " not present "); + } + if (matchedModelElements.size() > 1) { + Assert.fail("More than one " + modelType + " present "); + } + } + + private Map getNodeTemplateTypeStore(ToscaTemplate toscaTemplate) { + if (toscaTemplate.getTopology_template() != null) { + Map nodeTemplateMap = + toscaTemplate.getTopology_template().getNode_templates(); + Map nodeTemplateIdTypeStore = new LinkedHashMap<>(); + if (nodeTemplateMap != null) { + for (Map.Entry e : nodeTemplateMap.entrySet()) { + String uuid = e.getValue().getMetadata().get("resourceUUID"); + if (GeneratorUtil.isEmpty(uuid)) { + uuid = e.getValue().getMetadata().get("UUID"); + if (GeneratorUtil.isEmpty(uuid)) { + Assert.fail("UUID Not found"); + } + } + if(e.getValue().getType().contains("org.openecomp.resource.vf.")&& (e.getValue() + .getMetadata().get("category").equals("Allotted Resource"))) + { + e.getValue().setType("org.openecomp.resource.vf.allottedResource"); + } + nodeTemplateIdTypeStore.put(uuid, e.getValue().getType()); + resourcesVersion.put(uuid,e.getValue().getMetadata().get + ("version")); + //Populate invraintUuId for V9 + String invUuId = e.getValue().getMetadata().get("invariantUUID"); + nodeTemplateIdTypeStore.put(uuid+"-INV_UID" , invUuId); + } + } + return nodeTemplateIdTypeStore; + } else { + return null; + } + } + + private Map getGroupsTypeStore(ToscaTemplate toscaTemplate) { + if (toscaTemplate.getTopology_template() != null) { + Map groupDefinitionMap = + toscaTemplate.getTopology_template().getGroups(); + Map groupDefinitionIdTypeStore = new LinkedHashMap<>(); + if (groupDefinitionMap != null) { + for (Map.Entry e : groupDefinitionMap.entrySet()) { + if (e.getValue().getType().contains("org.openecomp.groups.VfModule")) { + String uuid = e.getValue().getMetadata().get("vfModuleModelUUID"); + if (GeneratorUtil.isEmpty(uuid)) { + uuid = e.getValue().getMetadata().get("UUID"); + if (GeneratorUtil.isEmpty(uuid)) { + Assert.fail("UUID Not found"); + } + } + groupDefinitionIdTypeStore.put(uuid, e.getValue().getType()); + } + } + } + return groupDefinitionIdTypeStore; + } else { + return null; + } + + } + + private void validateServiceModelMetadata(Service serviceToscaModel, Model generatedAAIModel) { + ModelVer modelVersion = generatedAAIModel.getModelVers().getModelVer().get(0); + Assert.assertEquals(serviceToscaModel.getModelNameVersionId(), + modelVersion.getModelVersionId()); + Assert.assertEquals(serviceToscaModel.getModelId(), generatedAAIModel.getModelInvariantId()); + Assert.assertEquals(serviceToscaModel.getModelName(), modelVersion.getModelName()); + Assert.assertEquals(additionalParams.get(AdditionalParams.ServiceVersion.getName()), modelVersion + .getModelVersion()); + Assert.assertEquals(serviceToscaModel.getModelDescription(), + modelVersion.getModelDescription()); + + } + + private void validateResourceModelMetadata(Resource resouerceToscaModel, + Model generatedAAIModel) { + ModelVer modelVersion = generatedAAIModel.getModelVers().getModelVer().get(0); + Assert.assertEquals(resouerceToscaModel.getModelNameVersionId(), + modelVersion.getModelVersionId()); + Assert.assertEquals(resouerceToscaModel.getModelId(), generatedAAIModel.getModelInvariantId()); + Assert.assertEquals(resouerceToscaModel.getModelName(), modelVersion.getModelName()); + Assert + .assertEquals(resouerceToscaModel.getModelVersion(), modelVersion.getModelVersion()); + Assert.assertEquals(resouerceToscaModel.getModelDescription(), + modelVersion.getModelDescription()); + + } + + private void validateVFModelMetadata(Map vfModuleModelMetadata, + Model generatedAAIModel) { + ModelVer modelVersion = generatedAAIModel.getModelVers().getModelVer().get(0); + Assert.assertEquals(vfModuleModelMetadata.get("vfModuleModelUUID"), + modelVersion.getModelVersionId()); + Assert.assertEquals(vfModuleModelMetadata.get("vfModuleModelInvariantUUID"), + generatedAAIModel.getModelInvariantId()); + Assert.assertEquals(vfModuleModelMetadata.get("vfModuleModelName"), + modelVersion.getModelName()); + Assert.assertEquals(vfModuleModelMetadata.get("vfModuleModelVersion"), + modelVersion.getModelVersion()); + Assert.assertEquals(vfModuleModelMetadata.get("vf_module_description"), + modelVersion.getModelDescription()); + } + + private Model getAAIModelByNameVersionId(String nameVersionId, + Map outputArtifactMap) { + return outputArtifactMap.get(nameVersionId); + } + + private List getModelElementbyRelationshipValue(ModelElements modelElements, + String relationshipValue) { + List matchedModelElements = new ArrayList<>(); + if (modelElements != null) { + List modelElementList = modelElements.getModelElement(); + for (ModelElement element : modelElementList) { + List relationshipList = element.getRelationshipList().getRelationship(); + for (Relationship r : relationshipList) { + List relationshipDataList = r.getRelationshipData(); + for (RelationshipData relationshipData : relationshipDataList) { + if (relationshipData.getRelationshipValue().equals(relationshipValue)) { + matchedModelElements.add(element); + } + } + } + } + } + return matchedModelElements; + } + + private Map populateAAIGeneratedModelStore(List resultData) throws IOException { + Map outputArtifactMap = new HashMap<>(); + for (Artifact outputArtifact : resultData) { + if (outputArtifact.getType().equals(ArtifactType.MODEL_INVENTORY_PROFILE.name())) { + byte[] decodedPayload = GeneratorUtil.decoder(outputArtifact.getPayload()); + Model aaiModel = getUnmarshalledArtifactModel(new String(decodedPayload)); + List modelVersions = aaiModel.getModelVers().getModelVer(); + outputArtifactMap.put(modelVersions.get(0).getModelVersionId(), aaiModel); + } + } + return outputArtifactMap; + } + + private Model getUnmarshalledArtifactModel(String aaiModel) throws IOException { + + try { + + JAXBContext jaxbContext = JAXBContext.newInstance(Model.class); + Unmarshaller unmarshaller = jaxbContext.createUnmarshaller(); + + try (InputStream aaiModelStream = new ByteArrayInputStream(aaiModel.getBytes())) { + return (Model) unmarshaller.unmarshal(aaiModelStream); + } + + } catch (JAXBException e) { + e.printStackTrace(); + } + + return null; + } + + /** + * Get the tosca java model from the tosca input artifact + * + * @param input Input tosca file and its metadata information as {@link Artifact} object + * @return Translated {@link ToscaTemplate tosca} object + */ + private ToscaTemplate getToscaModel(Artifact input) throws SecurityException { + byte[] decodedInput = GeneratorUtil.decoder(input.getPayload()); + String checksum = GeneratorUtil.checkSum(decodedInput); + if (checksum.equals(input.getChecksum())) { + try { + return GeneratorUtil.translateTosca(new String(decodedInput), ToscaTemplate.class); + } catch (Exception e) { + e.printStackTrace(); + throw new IllegalArgumentException( + String.format(GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_TOSCA, input.getName())); + } + } else { + throw new SecurityException( + String.format(GeneratorConstants.GENERATOR_AAI_ERROR_CHECKSUM_MISMATCH, input.getName())); + } + } + + /** + * Identify the service tosca artifact from the list of translated tosca inputs + * + * @param input List of translated {@link ToscaTemplate tosca} object models + * @return Identified service {@link ToscaTemplate tosca} + */ + private ToscaTemplate getServiceTosca(List input) { + Iterator iter = input.iterator(); + while (iter.hasNext()) { + ToscaTemplate tosca = iter.next(); + if (tosca.isService()) { + iter.remove(); + return tosca; + } + } + return null; + } + + private Map getVFModuleMetadataTosca(ToscaTemplate toscaTemplate, + String vfModuleModelUUID) { + Map groupDefinitionMap = + toscaTemplate.getTopology_template().getGroups(); + Map vfModuleModelMetadata = new LinkedHashMap<>(); + for (Map.Entry e : groupDefinitionMap.entrySet()) { + if (e.getValue().getType().contains("org.openecomp.groups.VfModule")) { + String uuid = e.getValue().getMetadata().get("vfModuleModelUUID"); + if (Objects.equals(uuid, vfModuleModelUUID)) { + vfModuleModelMetadata = e.getValue().getMetadata(); + vfModuleModelMetadata.put("vf_module_description", + (String) e.getValue().getProperties().get("vf_module_description")); + } + } + } + return vfModuleModelMetadata; + } + + private Map getVFModuleMembersTosca(ToscaTemplate toscaTemplate, + String vfModuleModelUUID) { + Map groupDefinitionMap = + toscaTemplate.getTopology_template().getGroups(); + Map nodeTemplateMaps = + toscaTemplate.getTopology_template().getNode_templates(); + Map vfModuleMembers = new LinkedHashMap<>(); + List vfModuleModelMetadata; + for (Map.Entry e : groupDefinitionMap.entrySet()) { + if (e.getValue().getType().contains("org.openecomp.groups.VfModule")) { + String uuid = e.getValue().getMetadata().get("vfModuleModelUUID"); + if (Objects.equals(uuid, vfModuleModelUUID)) { + vfModuleModelMetadata = e.getValue().getMembers(); + if (vfModuleModelMetadata !=null) { + for (Object key : vfModuleModelMetadata) { + NodeTemplate nodeTemplate = nodeTemplateMaps.get(key); + String nodetype = null; + if (nodeTemplate != null) { + nodetype = nodeTemplate.getType(); + } + if (nodetype != null) { + String widgetType = membersType(nodetype); + if (widgetType != null) { + vfModuleMembers.put(widgetType, key); + } + } + } + } + } + } + } + + return vfModuleMembers; + } + + + private String membersType(String toscaType) { + String modelToBeReturned = null; + while (toscaType != null && toscaType.lastIndexOf(".") != -1 && modelToBeReturned == null) { + + switch (toscaType) { + case "org.openecomp.resource.vf.allottedResource": + modelToBeReturned = "allotted-resource"; + break; + case "org.openecomp.resource.vfc": + modelToBeReturned = "vserver"; + break; + case "org.openecomp.resource.cp": + case "org.openecomp.cp": + modelToBeReturned = "l-interface"; + break; + case "org.openecomp.resource.vl": + modelToBeReturned = "l3-network"; + break; + case "org.openecomp.resource.vf": + modelToBeReturned = "generic-vnf"; + break; + case "org.openecomp.groups.VfModule": + modelToBeReturned = "vf-module"; + break; + case "org.openecomp.resource.vfc.nodes.heat.cinder": + modelToBeReturned = "volume"; + break; + default: + modelToBeReturned = null; + break; + } + + toscaType = toscaType.substring(0, toscaType.lastIndexOf(".")); + } + return modelToBeReturned; + } + + private List init(String aaiResourceBasePaths) { + List inputArtifacts1 = new ArrayList<>(); + try { + + String[] resourceFileList = {}; + URL resourceDirUrl = this.getClass().getClassLoader().getResource(aaiResourceBasePaths); + if (resourceDirUrl != null && resourceDirUrl.getProtocol().equals("file")) { + resourceFileList = new File(resourceDirUrl.toURI()).list(); + } else { + Assert.fail("Invalid resource directory"); + } + + for (String aResourceFileList : resourceFileList) { + File resourceFile = new File( + this.getClass().getClassLoader().getResource(aaiResourceBasePaths + aResourceFileList) + .getPath()); + + //convert service tosca file into array of bytes + byte[] payload = new byte[(int) resourceFile.length()]; + try (FileInputStream fileInputStream = new FileInputStream(resourceFile)) { + fileInputStream.read(payload); + } + + String checksum = GeneratorUtil.checkSum(payload); + byte[] encodedPayload = GeneratorUtil.encode(payload); + Artifact artifact = + new Artifact(aaiArtifactType, aaiArtifactGroupType, checksum, encodedPayload); + artifact.setName(aResourceFileList); + artifact.setLabel(aResourceFileList); + artifact.setDescription(aResourceFileList); + artifact.setVersion("1.0"); + inputArtifacts1.add(artifact); + + } + } catch (Exception e) { + //e.printStackTrace(); + Assert.fail(e.getMessage()); + } + return inputArtifacts1; + } + + private void loadConfigFromClasspath(Properties properties) throws IOException { + String configLocation = System.getProperty("artifactgenerator.config"); + if (configLocation != null) { + File file = new File(configLocation); + if (file.exists()) { + properties.load(new FileInputStream(file)); + } + } + } + + public void testResourceTosca(Iterator itr, Map + outputArtifactMap) { + while(itr.hasNext()){ + ToscaTemplate toscaTemplate = itr.next(); + String resourceVersion=resourcesVersion.get(toscaTemplate.getMetadata().get("UUID")); + toscaTemplate.getMetadata().put("version", resourceVersion); + if("VF".equals(toscaTemplate.getMetadata().get("type")) && !("Allotted Resource".equals + (toscaTemplate.getMetadata().get("category"))) ){ + testVfTosca(outputArtifactMap, toscaTemplate); + } else if("VF".equals(toscaTemplate.getMetadata().get("type")) && ("Allotted Resource".equals + (toscaTemplate.getMetadata().get("category"))) ){ + testAllottedResourceTosca(outputArtifactMap, toscaTemplate); + } else if("VL".equals(toscaTemplate.getMetadata().get("type"))){ + testL3NetworkResourceTosca(outputArtifactMap, toscaTemplate); + } + } + } + + private void readPayloadFromResource(List inputArtifacts, String file) throws IOException { + try (InputStream stream = ArtifactGenerationServiceTest.class.getResourceAsStream("/" + file)) { + readPayload(inputArtifacts, stream, file); + } + } +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai/service_vmme_template_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai/service_vmme_template_1.yml new file mode 100644 index 0000000000..c740f67b51 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai/service_vmme_template_1.yml @@ -0,0 +1,98 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 3.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai/vf_vmme_template_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai/vf_vmme_template_1.yml new file mode 100644 index 0000000000..6aee48b9d9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai/vf_vmme_template_1.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai2/resource-AllottedResource-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai2/resource-AllottedResource-template.yml new file mode 100644 index 0000000000..c80e701913 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai2/resource-AllottedResource-template.yml @@ -0,0 +1,78 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: Allotted Resource + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Alloted resource: + file: resource-AllotedResource-template.yml +topology_template: + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 + UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa + version: '1.0' + name: Alloted resource + description: This is a VFC- Allotted resource + type: VFC + category: Allotted Resource + subcategory: Allotted Resource + properties: + role: name + ecomp_naming: + naming_policy: test + ecomp_generated_naming: false + supplemental_data: + Key1: key1 + providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c + min_instances: 1 + max_instances: 1 + providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa + providing_service_name: vVIGaaS + ecomp_homing: + instance_node_target: Test + homing_policy: Test + supplemental_data: + Key: key + ecomp_selected_instance_node_target: false + substitution_mappings: + node_type: org.openecomp.resource.vf.AllottedResource + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai2/resource-Extvl-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai2/resource-Extvl-template.yml new file mode 100644 index 0000000000..512d62bdaa --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai2/resource-Extvl-template.yml @@ -0,0 +1,61 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf + UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 + name: ExtVL + description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks + type: VL + category: Generic + subcategory: Network Elements + resourceVendor: OPENECOMP (Tosca) + resourceVendorRelease: 1.0.0.wd03 +node_types: + org.openecomp.resource.vl.extVL: + derived_from: tosca.nodes.Root + description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks + properties: + physical_network: + type: org.openecomp.datatypes.network.PhysicalNetwork + network_role: + type: string + description: | + Unique label that defines the role that this network performs. example: vce oam network, vnat sr-iov1 network + network_assignments: + type: org.openecomp.datatypes.network.NetworkAssignments + network_flows: + type: org.openecomp.datatypes.network.NetworkFlows + vl_artifacts: + type: map + description: List of artifacts associated with the VL + entry_schema: + type: org.openecomp.datatypes.Artifact + network_scope: + type: string + description: | + Uniquely identifies the network scope. Valid values for the network scope includes: VF - VF-level network. Intra-VF network which connects the VFCs (VMs) inside the VF. SERVICE - Service-level network. Intra-Service network which connects the VFs within the service GLOBAL - Global network which can be shared by multiple services + network_ecomp_naming: + type: org.openecomp.datatypes.EcompNaming + network_type: + type: string + description: OPENECOMP supported network types. + network_technology: + type: string + description: OPENECOMP supported network technology + network_homing: + type: org.openecomp.datatypes.EcompHoming + capabilities: + virtual_linkable: + type: tosca.capabilities.network.Linkable + occurrences: + - 1 + - UNBOUNDED +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai2/service-ServiceWithAllotedVfAndExvl-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai2/service-ServiceWithAllotedVfAndExvl-template.yml new file mode 100644 index 0000000000..dbd039669c --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai2/service-ServiceWithAllotedVfAndExvl-template.yml @@ -0,0 +1,90 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: e8a6c85c-429f-47cd-b594-376a0ffccd29 + UUID: 14fd2446-691a-4d7d-8ef4-ece19c3176f5 + name: Service with alloted VF and exVL + description: 'This service contains two instances : 1. Allotted resource VF 2. ExVL + - Network' + type: Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false +imports: +- ExtVL: + file: resource-Extvl-template.yml +- Allotted Resource: + file: resource-AllottedResource-template.yml +topology_template: + node_templates: + ExtVL 1: + type: org.openecomp.resource.vl.extVL + metadata: + invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf + UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 + version: '2.0' + name: ExtVL + description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks + type: VL + category: Generic + subcategory: Network Elements + Allotted Resource 2: + type: org.openecomp.resource.vf.AllottedResource + metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + version: '0.1' + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: Allotted Resource + substitution_mappings: + node_type: org.openecomp.service.ServiceWithAllotedVfAndExvl + capabilities: + ExtVL 1.virtual_linkable: + type: tosca.capabilities.network.Linkable + occurrences: + - 1 + - UNBOUNDED + Allotted Resource 2.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + ExtVL 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + ExtVL 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Allotted Resource 2.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Allotted Resource 2.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai3/resource-IpMuxDemux-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai3/resource-IpMuxDemux-template.yml new file mode 100644 index 0000000000..4549306475 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai3/resource-IpMuxDemux-template.yml @@ -0,0 +1,80 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 + UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 + name: IP_Mux_Demux + description: IP_Mux_Demux + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Allotedresource: + file: resource-Allotedresource-template.yml +topology_template: + inputs: + role: + type: string + ecomp_naming: + type: string + max_instances: + type: string + min_instances: + type: string + ecomp_homing: + type: string + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c + UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a + customizationUUID: 5eac2a36-bcb5-4158-ace4-802b81e87248 + version: '1.0' + name: Allotedresource + description: Allotedresource + type: VFC + category: Allotted Resource + subcategory: IP Mux Demux + properties: + ecomp_naming: + naming_policy: + get input: ecomp_naming + providing_service_invariant_uuid: e42ea8ff-1862-43f4-a597-4b885cf3c6e5 + min_instances: 1 + max_instances: 1 + providing_service_uuid: 2fb4b63d-7ec8-4fc0-98c7-a1c51fb4b794 + substitution_mappings: + node_type: org.openecomp.resource.vf.IpMuxDemux + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai3/resource-ServiceAdmin-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai3/resource-ServiceAdmin-template.yml new file mode 100644 index 0000000000..549c18b55b --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai3/resource-ServiceAdmin-template.yml @@ -0,0 +1,81 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 + UUID: a9c6246c-0807-4a43-a64c-442a170c2088 + name: service_admin + description: service_admin + type: VF + category: Allotted Resource + subcategory: Service admin + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Allotedresource: + file: resource-Allotedresource-template.yml +topology_template: + inputs: + role: + type: string + ecomp_naming: + type: string + max_instances: + type: string + min_instances: + type: string + ecomp_homing: + type: string + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c + UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a + customizationUUID: f61f785d-2c82-4d6d-9184-8cbdf2df4da0 + version: '1.0' + name: Allotedresource + description: Allotedresource + type: VFC + category: Allotted Resource + subcategory: Service admin + properties: + ecomp_naming: + naming_policy: + get input: ecomp_naming + providing_service_invariant_uuid: e42ea8ff-1862-43f4-a597-4b885cf3c6e5 + min_instances: 1 + max_instances: 1 + providing_service_uuid: 2fb4b63d-7ec8-4fc0-98c7-a1c51fb4b794 + providing_service_name: HNPortalaaS + substitution_mappings: + node_type: org.openecomp.resource.vf.ServiceAdmin + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai3/resource-TunnelXconn-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai3/resource-TunnelXconn-template.yml new file mode 100644 index 0000000000..cf97321035 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai3/resource-TunnelXconn-template.yml @@ -0,0 +1,81 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 + UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb + name: Tunnel_XConn + description: Tunnel_XConn + type: VF + category: Allotted Resource + subcategory: Tunnel XConnect + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Allotedresource: + file: resource-Allotedresource-template.yml +topology_template: + inputs: + role: + type: string + ecomp_naming: + type: string + min_instances: + type: string + max_instances: + type: string + ecomp_homing: + type: string + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c + UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a + customizationUUID: 22ca20ca-1577-46d3-b3ef-77483cca37d6 + version: '1.0' + name: Allotedresource + description: Allotedresource + type: VFC + category: Allotted Resource + subcategory: Tunnel XConnect + properties: + ecomp_naming: + naming_policy: + get input: ecomp_naming + providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c + min_instances: 1 + max_instances: 1 + providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa + providing_service_name: vVIGaaS + substitution_mappings: + node_type: org.openecomp.resource.vf.TunnelXconn + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai3/resource-VhnfNonHeat-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai3/resource-VhnfNonHeat-template.yml new file mode 100644 index 0000000000..8ec1c192ee --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai3/resource-VhnfNonHeat-template.yml @@ -0,0 +1,24 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: f61adc31-6004-4377-a661-090f59e6b32a + UUID: 2118e830-5e0d-409a-9d7a-63b6a72d6f5f + name: vHNF non Heat + description: vHNF non Heat + type: VF + category: Generic + subcategory: Network Elements + resourceVendor: '1' + resourceVendorRelease: '1' +topology_template: + substitution_mappings: + node_type: org.openecomp.resource.vf.VhnfNonHeat +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai3/service-SdWan-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai3/service-SdWan-template.yml new file mode 100644 index 0000000000..bc3ab6dabb --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai3/service-SdWan-template.yml @@ -0,0 +1,233 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 3d8b7a76-7c47-4974-b5b9-e24c54b817a2 + UUID: eb31504f-9f60-4936-a2f2-8ac592b611a6 + name: SD-WAN + description: SD-WAN + type: Service + category: Network L4+ + serviceEcompNaming: false + serviceHoming: false +imports: +- service_admin: + file: resource-ServiceAdmin-template.yml +- Tunnel_XConn: + file: resource-TunnelXconn-template.yml +- vHNF non Heat: + file: resource-VhnfNonHeat-template.yml +- IP_Mux_Demux: + file: resource-IpMuxDemux-template.yml +topology_template: + node_templates: + Sec_IP_Mux_Demux: + type: org.openecomp.resource.vf.IpMuxDemux + metadata: + invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 + UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 + customizationUUID: f4b764bb-6721-4219-8c69-7ce61969f755 + version: '0.1' + name: IP_Mux_Demux + description: IP_Mux_Demux + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + Pri_Tunnel_XConn: + type: org.openecomp.resource.vf.TunnelXconn + metadata: + invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 + UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb + customizationUUID: 96d0bbf6-d9f7-441d-8f00-67d79dbf30de + version: '0.1' + name: Tunnel_XConn + description: Tunnel_XConn + type: VF + category: Allotted Resource + subcategory: Tunnel XConnect + Pri_service_admin: + type: org.openecomp.resource.vf.ServiceAdmin + metadata: + invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 + UUID: a9c6246c-0807-4a43-a64c-442a170c2088 + customizationUUID: 6b4a2a55-3b82-4799-8329-4fc2939fd5b5 + version: '0.1' + name: service_admin + description: service_admin + type: VF + category: Allotted Resource + subcategory: Service admin + Pri_IP_Mux_Demux: + type: org.openecomp.resource.vf.IpMuxDemux + metadata: + invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 + UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 + customizationUUID: d8f656d9-179d-4f02-9a46-8af7421eb2a0 + version: '0.1' + name: IP_Mux_Demux + description: IP_Mux_Demux + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + Sec_Tunnel_XConn: + type: org.openecomp.resource.vf.TunnelXconn + metadata: + invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 + UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb + customizationUUID: b432136d-0a2a-460b-a3da-f921e1e0dcfa + version: '0.1' + name: Tunnel_XConn + description: Tunnel_XConn + type: VF + category: Allotted Resource + subcategory: Tunnel XConnect + vHNF non Heat 22: + type: org.openecomp.resource.vf.VhnfNonHeat + metadata: + invariantUUID: f61adc31-6004-4377-a661-090f59e6b32a + UUID: 2118e830-5e0d-409a-9d7a-63b6a72d6f5f + customizationUUID: 9c7a5f7f-6b17-4066-a6f1-094ea925495b + version: '0.1' + name: vHNF non Heat + description: vHNF non Heat + type: VF + category: Generic + subcategory: Network Elements + Sec_service_admin: + type: org.openecomp.resource.vf.ServiceAdmin + metadata: + invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 + UUID: a9c6246c-0807-4a43-a64c-442a170c2088 + customizationUUID: 5a8ef05b-451f-40f4-9531-3ee00bd3c5c4 + version: '0.1' + name: service_admin + description: service_admin + type: VF + category: Allotted Resource + subcategory: Service admin + substitution_mappings: + node_type: org.openecomp.service.SdWan + capabilities: + Sec_service_admin.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Sec_IP_Mux_Demux.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Pri_service_admin.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Pri_IP_Mux_Demux.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Pri_Tunnel_XConn.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Sec_Tunnel_XConn.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Pri_service_admin.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Sec_Tunnel_XConn.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Sec_service_admin.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Pri_IP_Mux_Demux.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Pri_Tunnel_XConn.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Sec_service_admin.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Pri_service_admin.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Sec_IP_Mux_Demux.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Sec_IP_Mux_Demux.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Pri_Tunnel_XConn.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Sec_Tunnel_XConn.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Pri_IP_Mux_Demux.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/config/Artifact-Generator.properties b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/config/Artifact-Generator.properties new file mode 100644 index 0000000000..1d7e5fa01a --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/config/Artifact-Generator.properties @@ -0,0 +1,264 @@ +#action widget details +AAI.model-version-id.action=fd7fb09e-d930-41b9-b83f-cfde9df48640 +AAI.model-invariant-id.action=af593b4b-490e-4665-ad74-2f6351c0a7ce +#action-data widget details +AAI.model-invariant-id.action-data=9551346c-7d8b-4daf-9926-b93e96e2344a +AAI.model-version-id.action-data=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd +#allotted-resource widget details +AAI.model-invariant-id.allotted-resource=f6d6a23d-a1a9-48ff-8419-b6530da2d381 +AAI.model-version-id.allotted-resource=7ad0915f-25c0-4a70-b9bc-185a75f87564 +#availability-zone widget details +AAI.model-version-id.availability-zone=6c092fb1-21b2-456b-9e01-67fb4de1896e +AAI.model-invariant-id.availability-zone=61b88c01-d819-41c0-8e21-7fd7ba47148e +#az-and-dvs-switches widget details +AAI.model-version-id.az-and-dvs-switches=b2dea88d-78a0-49bf-95c9-5819df08e966 +AAI.model-invariant-id.az-and-dvs-switches=53dc00d4-e6d9-48ec-b6cc-3d3797e9b896 +#class-of-service widget details +AAI.model-version-id.class-of-service=d2fb27cc-15eb-4c4e-828e-71d41aaecc5b +AAI.model-invariant-id.class-of-service=18094b19-d16d-4822-8acf-e92c6aefa178 +#cloud-region widget details +AAI.model-version-id.cloud-region=2a160989-b202-47dd-874b-4a0f275998f7 +AAI.model-invariant-id.cloud-region=425b2158-e51d-4509-9945-dad4556474a3 +#complex widget details +AAI.model-invariant-id.complex=af91c2f7-35fc-43cf-a13d-443f385b2353 +AAI.model-version-id.complex=3a8ab1ee-9220-4fe8-b89c-9251d160ddc2 +#connector widget details +AAI.model-version-id.connector=22104c9f-29fd-462f-be07-96cd6b46dd33 +AAI.model-invariant-id.connector=4c01c948-7607-4d66-8a6c-99c2c2717936 +#constrained-element-set widget details +AAI.model-invariant-id.constrained-element-set=c0292b4f-ee97-40cc-8c2e-f967c48f5701 +AAI.model-version-id.constrained-element-set=01102126-9c04-4a89-945b-b131e61e95d7 +#ctag-assignment widget details +AAI.model-version-id.ctag-assignment=44e5cb1f-0938-41aa-b766-d4595109fe89 +AAI.model-invariant-id.ctag-assignment=fcb8d46b-b656-4ad6-8fa4-22cef74b443f +#ctag-pool widget details +AAI.model-invariant-id.ctag-pool=46c51d4e-d67e-4a9c-b1f5-49b1e9c6fcaa +AAI.model-version-id.ctag-pool=2056c41f-23b9-4de7-9f50-819adad37d76 +#customer widget details +AAI.model-invariant-id.customer=c1d4305f-cdbd-4bbe-9069-a2f4978fd89e +AAI.model-version-id.customer=d4df5c27-98a1-4812-a8aa-c17f055b7a3f +#cvlan-tag-entry widget details +AAI.model-version-id.cvlan-tag-entry=c3878ffb-8d85-4114-bee6-e4074a9db10b +AAI.model-invariant-id.cvlan-tag-entry=245cf4b0-7cc5-4eea-bbd9-753e939adcab +#dvs-switch widget details +AAI.model-invariant-id.dvs-switch=98fbb471-1f86-428e-bd8a-c8a25de6fa23 +AAI.model-version-id.dvs-switch=4cb44ae8-e3ab-452a-9f95-bcc8a44c55ea +#edge-prop-names widget details +AAI.model-invariant-id.edge-prop-names=7a08cad4-8759-46a5-8245-095d1ba57ac6 +AAI.model-version-id.edge-prop-names=f0442326-8201-4d0e-857c-74b4ddcbfc9f +#element-choice-set widget details +AAI.model-invariant-id.element-choice-set=9a011958-7165-47a3-b872-00951d1f09ae +AAI.model-version-id.element-choice-set=af27fbfd-598d-44da-aeae-0f9d3a5fcd6a +#entitlement widget details +AAI.model-version-id.entitlement=7e27ba2e-b7db-4e13-9fae-d142152ef98a +AAI.model-invariant-id.entitlement=ae75b5a0-d5e1-4f3a-b8fb-37626a753da3 +#flavor widget details +AAI.model-invariant-id.flavor=bace8d1c-a261-4041-9e37-823117415d0f +AAI.model-version-id.flavor=36200fb5-f251-4f5d-a520-7c5ad5c2cd4b +#generic-vnf widget details +AAI.model-version-id.generic-vnf=93a6166f-b3d5-4f06-b4ba-aed48d009ad9 +AAI.model-invariant-id.generic-vnf=acc6edd8-a8d4-4b93-afaa-0994068be14c +#group-assignment widget details +AAI.model-invariant-id.group-assignment=7cc05f25-7ba2-42b7-a237-c5662a1689e1 +AAI.model-version-id.group-assignment=fe578080-ce19-4604-8760-fc264fbb2565 +#image widget details +AAI.model-version-id.image=f6a038c2-820c-42ba-8c2b-375e24e8f932 +AAI.model-invariant-id.image=3f4c7204-739b-4bbb-87a7-8a6856439c90 +#include-node-filter widget details +AAI.model-invariant-id.include-node-filter=2a2d8ad2-af0a-4e1f-9982-0c899e7dc827 +AAI.model-version-id.include-node-filter=f05f804d-7057-4ffe-bdc5-39f2f0c9c9fd +#instance-group widget details +AAI.model-version-id.instance-group=8e6ee9dc-9017-444a-83b3-219edb018128 +AAI.model-invariant-id.instance-group=3bf1e610-45f7-4ad6-b833-ca4c5ee6a3fd +#inventory-item widget details +AAI.model-invariant-id.inventory-item=cd57d844-9017-4078-aa19-926935a3d77c +AAI.model-version-id.inventory-item=69957f4a-2155-4b95-8d72-d6dd9b88b27b +#inventory-item-data widget details +AAI.model-version-id.inventory-item-data=0e54bb87-bd6e-4a2b-ad1c-6d935b87ae51 +AAI.model-invariant-id.inventory-item-data=87a383ae-cf03-432e-a9de-04e6a622d0fd +#ipsec-configuration widget details +AAI.model-invariant-id.ipsec-configuration=aca4c310-cb45-42bd-9f88-73e40ba7b962 +AAI.model-version-id.ipsec-configuration=d949fd10-36bf-408a-ac7a-cad5004d2e0d +#key-data widget details +AAI.model-version-id.key-data=c23ea04d-1a3b-453d-bc49-a6c783a5e92b +AAI.model-invariant-id.key-data=f5faa464-c2f2-4cc3-89d2-a90452dc3a07 +#l3-interface-ipv4-address-list widget details +AAI.model-version-id.l3-interface-ipv4-address-list=41e76b6f-1e06-4fd4-82cd-81c50fc4574b +AAI.model-invariant-id.l3-interface-ipv4-address-list=aad85df2-09be-40fa-b867-16415e4e10e2 +#l3-interface-ipv6-address-list widget details +AAI.model-invariant-id.l3-interface-ipv6-address-list=82966045-43ee-4982-8307-7e9610866140 +AAI.model-version-id.l3-interface-ipv6-address-list=d040621d-541a-477b-bb1b-a2b61b14e295 +#l3-network widget details +AAI.model-version-id.l3-network=9111f20f-e680-4001-b83f-19a2fc23bfc1 +AAI.model-invariant-id.l3-network=3d560d81-57d0-438b-a2a1-5334dba0651a +#lag-interface widget details +AAI.model-version-id.lag-interface=ce95f7c3-b61b-4758-ae9e-7e943b1c103d +AAI.model-invariant-id.lag-interface=e0ee9bde-c1fc-4651-a95d-8e0597bf7d70 +#lag-link widget details +AAI.model-version-id.lag-link=d29a087a-af59-4053-a3f8-0f95a92faa75 +AAI.model-invariant-id.lag-link=86ffe6e5-4d0e-4cec-80b5-5c38aa3eff98 +#license widget details +AAI.model-invariant-id.license=b9a9b337-1f86-42d3-b9f9-f987a089507c +AAI.model-version-id.license=6889274b-a1dc-40ab-9090-93677e13e2e6 +#license-key-resource widget details +AAI.model-invariant-id.license-key-resource=9022ebfe-b54f-4911-a6b2-8c3f5ec189b7 +AAI.model-version-id.license-key-resource=24b25f8c-b8bd-4c62-9421-87c12667aac9 +#l-interface widget details +AAI.model-version-id.l-interface=a32613fd-18b9-459e-aab8-fffb3912966a +AAI.model-invariant-id.l-interface=cea0a982-8d55-4093-921e-418fbccf7060 +#logical-link widget details +AAI.model-version-id.logical-link=a1481a38-f8ba-4ae4-bdf1-06c2c6af4c54 +AAI.model-invariant-id.logical-link=fe012535-2c31-4a39-a739-612374c638a0 +#metadatum widget details +AAI.model-invariant-id.metadatum=86dbb63a-265e-4614-993f-6771c30b56a5 +AAI.model-version-id.metadatum=6bae950e-8939-41d3-a6a7-251b03e4c1fc +#model widget details +AAI.model-invariant-id.model=06d1418a-5faa-452d-a94b-a2829df5f67b +AAI.model-version-id.model=1f51c05c-b164-4c27-9c03-5cbb239fd6be +#model-constraint widget details +AAI.model-invariant-id.model-constraint=c28966f3-e758-4483-b37b-a90b05d3dd33 +AAI.model-version-id.model-constraint=ad70dd19-f156-4fb5-a865-97b5563b0d37 +#model-element widget details +AAI.model-invariant-id.model-element=2076e726-3577-477a-a300-7fa65cd4df11 +AAI.model-version-id.model-element=753e813a-ba9e-4a1d-ab34-b2f6dc6eec0c +#multicast-configuration widget details +AAI.model-invariant-id.multicast-configuration=ea78c9e3-514d-4a0a-9162-13837fa54c35 +AAI.model-version-id.multicast-configuration=666a06ee-4b57-46df-bacf-908da8f10c3f +#named-query widget details +AAI.model-version-id.named-query=5c3b7c33-afa3-4be5-8da7-1a5ac6f99896 +AAI.model-invariant-id.named-query=80b712fd-0ad3-4180-a99c-8c995cf1cc32 +#named-query-element widget details +AAI.model-version-id.named-query-element=204c641a-3494-48c8-979a-86856f5fd32a +AAI.model-invariant-id.named-query-element=3c504d40-b847-424c-9d25-4fb7e0a3e994 +#network-policy widget details +AAI.model-invariant-id.network-policy=6aa05779-94d7-4d8b-9bee-59ef2ab0c246 +AAI.model-version-id.network-policy=a0ccd9dc-7062-4940-9bcc-e91dd28af510 +#network-profile widget details +AAI.model-version-id.network-profile=01f45471-4240-498c-a9e1-235dc0b8b4a6 +AAI.model-invariant-id.network-profile=2734b44a-b8a2-40f6-957d-6256589e5d00 +#newvce widget details +AAI.model-version-id.newvce=7c79e11f-a408-4593-aa86-ba948a1236af +AAI.model-invariant-id.newvce=4b05ec9c-c55d-4987-83ff-e08d6ddb694f +#oam-network widget details +AAI.model-invariant-id.oam-network=2851cf01-9c40-4064-87d4-6184a6fcff35 +AAI.model-version-id.oam-network=f4fb34f3-fd6e-4a8f-a3fb-4ab61a343b79 +#physical-link widget details +AAI.model-invariant-id.physical-link=c822d81f-822f-4304-9623-1025b53da568 +AAI.model-version-id.physical-link=9c523936-95b4-4d7f-9f53-6bdfe0cf2c05 +#p-interface widget details +AAI.model-invariant-id.p-interface=94043c37-4e73-439c-a790-0fdd697924cd +AAI.model-version-id.p-interface=d2cdb2d0-fc1f-4a57-a89e-591b1c4e3754 +#pnf widget details +AAI.model-version-id.pnf=e9f1fa7d-c839-418a-9601-03dc0d2ad687 +AAI.model-invariant-id.pnf=862b25a1-262a-4961-bdaa-cdc55d69785a +#port-group widget details +AAI.model-version-id.port-group=03e8bb6b-b48a-46ae-b5d4-e5af577e6844 +AAI.model-invariant-id.port-group=8ce940fb-55d7-4230-9e7f-a56cc2741f77 +#property-constraint widget details +AAI.model-version-id.property-constraint=81706bbd-981e-4362-ae20-995cbcb2d995 +AAI.model-invariant-id.property-constraint=f4a863c3-6886-470a-a6ae-05723837ea45 +#pserver widget details +AAI.model-invariant-id.pserver=6d932c8f-463b-4e76-83fb-87acfbaa2e2d +AAI.model-version-id.pserver=72f0d495-bc27-4653-9e1a-eef76bd34bc9 +#related-lookup widget details +AAI.model-invariant-id.related-lookup=468f6f5b-2996-41bb-b2a3-7cf9613ebb9b +AAI.model-version-id.related-lookup=0988bab5-bf4f-4938-a419-ab249867d12a +#reserved-prop-names widget details +AAI.model-invariant-id.reserved-prop-names=0c3e0ba3-618c-498d-9127-c8d42b00170f +AAI.model-version-id.reserved-prop-names=ac49d26d-9163-430e-934a-13b738a04f5c +#result-data widget details +AAI.model-version-id.result-data=4e9b50aa-5227-4f6f-b489-62e6bbc03c79 +AAI.model-invariant-id.result-data=ff656f23-6185-406f-9006-4b26834f3e1c +#route-table-reference widget details +AAI.model-version-id.route-table-reference=fed7e326-03a7-45ff-a3f2-471470d268c4 +AAI.model-invariant-id.route-table-reference=a8614b63-2636-4c4f-98df-fd448c4241db +#routing-instance widget details +AAI.model-invariant-id.routing-instance=1c2ded4f-8b01-4193-829c-966847dfec3e +AAI.model-version-id.routing-instance=3ccbcbc7-d19e-44d5-a52f-7e18aa8d69fa +#secondary-filter widget details +AAI.model-version-id.secondary-filter=1380619d-dd1a-4cec-b755-c6407833e065 +AAI.model-invariant-id.secondary-filter=738ff299-6290-4c00-8998-bd0e96a07b93 +#segmentation-assignment widget details +AAI.model-invariant-id.segmentation-assignment=6e814aee-46e1-4583-a9d4-0049bfd2b59b +AAI.model-version-id.segmentation-assignment=c5171ae0-44fb-4c04-b482-d56702241a44 +#service widget details +AAI.model-version-id.service=ecce2c42-3957-4ae0-9442-54bc6afe27b6 +AAI.model-invariant-id.service=07a3a60b-1b6c-4367-8173-8014386f89e3 +#service-capability widget details +AAI.model-invariant-id.service-capability=b1a7cc05-d19d-443b-a5d1-733e325c4232 +AAI.model-version-id.service-capability=f9cfec1b-18da-4bba-bd83-4b26cca115cd +#service-instance widget details +AAI.model-invariant-id.service-instance=82194af1-3c2c-485a-8f44-420e22a9eaa4 +AAI.model-version-id.service-instance=46b92144-923a-4d20-b85a-3cbd847668a9 +#service-subscription widget details +AAI.model-invariant-id.service-subscription=2e1a602a-acd8-4f78-94ff-618b802a303b +AAI.model-version-id.service-subscription=5e68299a-79f2-4bfb-8fbc-2bae877a2459 +#site-pair widget details +AAI.model-version-id.site-pair=7106bc02-6552-4fc3-8a56-4f3df9034531 +AAI.model-invariant-id.site-pair=db63f3e6-f8d1-484e-8d5e-191600b7914b +#site-pair-set widget details +AAI.model-invariant-id.site-pair-set=5d4dae3e-b402-4bfd-909e-ece12ff75d26 +AAI.model-version-id.site-pair-set=a5c6c1bc-dc38-468e-9459-bb08f87247df +#snapshot widget details +AAI.model-version-id.snapshot=962a7c8b-687f-4d32-a775-fe098e214bcd +AAI.model-invariant-id.snapshot=24de00ef-aead-4b52-995b-0adf8d4bd90d +#sriov-vf widget details +AAI.model-version-id.sriov-vf=1e8b331f-3d4a-4160-b7aa-f4d5a8916625 +AAI.model-invariant-id.sriov-vf=04b2935f-33c4-40a9-8af0-8b52690042dc +#start-node-filter widget details +AAI.model-version-id.start-node-filter=aad96fd3-e75f-42fc-9777-3450c36f1168 +AAI.model-invariant-id.start-node-filter=083093a3-e407-447a-ba5d-7583e4d23e1d +#subnet widget details +AAI.model-version-id.subnet=f902a6bc-6be4-4fe5-8458-a6ec0056b374 +AAI.model-invariant-id.subnet=1b2c9ba7-e449-4831-ba15-3073672f5ef2 +#tagged-inventory-item-list widget details +AAI.model-invariant-id.tagged-inventory-item-list=e78a7eaa-f65d-4919-9c2b-5b258c8c4d7e +AAI.model-version-id.tagged-inventory-item-list=c246f6e2-e3a1-4697-94c0-5672a7fbbf04 +#tenant widget details +AAI.model-invariant-id.tenant=97c26c99-6870-44c1-8a07-1d900d3f4ce6 +AAI.model-version-id.tenant=abcc54bc-bb74-49dc-9043-7f7171707545 +#tunnel-xconnect widget details +AAI.model-invariant-id.tunnel-xconnect=50b9e2fa-005c-4bbe-b651-3251dece4cd8 +AAI.model-version-id.tunnel-xconnect=e7cb4ca8-e1a5-4487-a716-4ae0bcd8aef5 +#update-node-key widget details +AAI.model-version-id.update-node-key=6004cfa6-eb6d-4062-971f-b1fde6b74aa0 +AAI.model-invariant-id.update-node-key=fe81c801-f65d-408a-b2b7-a729a18f8154 +#vce widget details +AAI.model-version-id.vce=b6cf54b5-ec45-43e1-be64-97b4e1513333 +AAI.model-invariant-id.vce=bab6dceb-e7e6-4301-a5e0-a7399b48d792 +#vf-module widget details +AAI.model-invariant-id.vf-module=ef86f9c5-2165-44f3-8fc3-96018b609ea5 +AAI.model-version-id.vf-module=c00563ae-812b-4e62-8330-7c4d0f47088a +#vig-server widget details +AAI.model-version-id.vig-server=8e8c22f1-fbdf-48ea-844c-8bdeb44e7b16 +AAI.model-invariant-id.vig-server=bed7c3b7-35d0-4cd9-abde-41b20e68b28e +#virtual-data-center widget details +AAI.model-invariant-id.virtual-data-center=5150abcf-0c5f-4593-9afe-a19c48fc4824 +AAI.model-version-id.virtual-data-center=6dd43ced-d789-47af-a759-d3abc14e3ac1 +#vlan widget details +AAI.model-version-id.vlan=257d88a5-a269-4c35-944f-aca04fbdb791 +AAI.model-invariant-id.vlan=d2b1eaf1-ae59-4116-9ee4-aa0179faa4f8 +#vnfc widget details +AAI.model-invariant-id.vnfc=96129eb9-f0de-4e05-8af2-73146473f766 +AAI.model-version-id.vnfc=5761e0a7-c6df-4d8a-9ebd-b8f445054dec +#vnf-image widget details +AAI.model-invariant-id.vnf-image=f9a628ff-7aa0-40e2-a93d-02d91c950982 +AAI.model-version-id.vnf-image=c4d3e747-ba4a-4b17-9896-94c6f18c19d3 +#volume widget details +AAI.model-version-id.volume=0fbe2e8f-4d91-4415-a772-88387049b38d +AAI.model-invariant-id.volume=ddd739b4-2b25-46c4-affc-41a32af5cc42 +#volume-group widget details +AAI.model-invariant-id.volume-group=fcec1b02-b2d0-4834-aef8-d71be04717dd +AAI.model-version-id.volume-group=99d44c90-1f61-4418-b9a6-56586bf38c79 +#vpe widget details +AAI.model-invariant-id.vpe=053ec3a7-5b72-492d-b54d-123805a9b967 +AAI.model-version-id.vpe=203817d3-829c-42d4-942d-2a935478e993 +#vpls-pe widget details +AAI.model-version-id.vpls-pe=b1566228-6785-4ce1-aea2-053736f80341 +AAI.model-invariant-id.vpls-pe=457ba89b-334c-4fbd-acc4-160ac0e0cdc0 +#vpn-binding widget details +AAI.model-invariant-id.vpn-binding=9e23b675-db2b-488b-b459-57aa9857baa0 +AAI.model-version-id.vpn-binding=21a146e5-9901-448c-9197-723076770119 +#vserver widget details +AAI.model-invariant-id.vserver=ff69d4e0-a8e8-4108-bdb0-dd63217e63c7 +AAI.model-version-id.vserver=8ecb2c5d-7176-4317-a255-26274edfdd53 \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/logback.xml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/logback.xml new file mode 100644 index 0000000000..68438967b1 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/logback.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + ${defaultPattern} + + + + + + + + ${logDirectory}/${eventType}.log + + ${logDirectory}/${eventType}.%i.log.zip + 1 + 9 + + + 5MB + + + ${default-log-pattern} + + + + + + + + + + \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/missingResourceTosca/service_vmme_template_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/missingResourceTosca/service_vmme_template_1.yml new file mode 100644 index 0000000000..822484eda4 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/missingResourceTosca/service_vmme_template_1.yml @@ -0,0 +1,99 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/missingVLTosca/resource-AllottedResource-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/missingVLTosca/resource-AllottedResource-template.yml new file mode 100644 index 0000000000..8c85966229 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/missingVLTosca/resource-AllottedResource-template.yml @@ -0,0 +1,60 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: Allotted Resource + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Alloted resource: + file: resource-AllotedResource-template.yml +topology_template: + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource1 + metadata: + invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 + UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa + version: '1.0' + name: Alloted resource + description: This is a VFC- Allotted resource + type: VFC + category: Allotted Resource + subcategory: Allotted Resource + substitution_mappings: + node_type: org.openecomp.resource.vf.AllottedResource + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/missingVLTosca/service-ServiceWithAllotedVfAndExvl-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/missingVLTosca/service-ServiceWithAllotedVfAndExvl-template.yml new file mode 100644 index 0000000000..dbd039669c --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/missingVLTosca/service-ServiceWithAllotedVfAndExvl-template.yml @@ -0,0 +1,90 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: e8a6c85c-429f-47cd-b594-376a0ffccd29 + UUID: 14fd2446-691a-4d7d-8ef4-ece19c3176f5 + name: Service with alloted VF and exVL + description: 'This service contains two instances : 1. Allotted resource VF 2. ExVL + - Network' + type: Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false +imports: +- ExtVL: + file: resource-Extvl-template.yml +- Allotted Resource: + file: resource-AllottedResource-template.yml +topology_template: + node_templates: + ExtVL 1: + type: org.openecomp.resource.vl.extVL + metadata: + invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf + UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 + version: '2.0' + name: ExtVL + description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks + type: VL + category: Generic + subcategory: Network Elements + Allotted Resource 2: + type: org.openecomp.resource.vf.AllottedResource + metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + version: '0.1' + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: Allotted Resource + substitution_mappings: + node_type: org.openecomp.service.ServiceWithAllotedVfAndExvl + capabilities: + ExtVL 1.virtual_linkable: + type: tosca.capabilities.network.Linkable + occurrences: + - 1 + - UNBOUNDED + Allotted Resource 2.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + ExtVL 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + ExtVL 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Allotted Resource 2.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Allotted Resource 2.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_InvalidVfModInvUuIdAttr.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_InvalidVfModInvUuIdAttr.yml new file mode 100644 index 0000000000..f57a7d2300 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_InvalidVfModInvUuIdAttr.yml @@ -0,0 +1,194 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + + # Virtual Links (Networks) + + gtp_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_InvalidVfModUuIdAttr.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_InvalidVfModUuIdAttr.yml new file mode 100644 index 0000000000..f57a7d2300 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_InvalidVfModUuIdAttr.yml @@ -0,0 +1,194 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + + # Virtual Links (Networks) + + gtp_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModInvUUID.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModInvUUID.yml new file mode 100644 index 0000000000..4d50982f63 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModInvUUID.yml @@ -0,0 +1,194 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + + # Virtual Links (Networks) + + gtp_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelName.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelName.yml new file mode 100644 index 0000000000..4d50982f63 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelName.yml @@ -0,0 +1,194 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + + # Virtual Links (Networks) + + gtp_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelUUID.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelUUID.yml new file mode 100644 index 0000000000..4d50982f63 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelUUID.yml @@ -0,0 +1,194 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + + # Virtual Links (Networks) + + gtp_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelVersion.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelVersion.yml new file mode 100644 index 0000000000..4d50982f63 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelVersion.yml @@ -0,0 +1,194 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + + # Virtual Links (Networks) + + gtp_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testAllotedResourceWithDependingSerWithGroups/resource-AllottedResource-template_IpMux_WithGroups.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testAllotedResourceWithDependingSerWithGroups/resource-AllottedResource-template_IpMux_WithGroups.yml new file mode 100644 index 0000000000..282750351c --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testAllotedResourceWithDependingSerWithGroups/resource-AllottedResource-template_IpMux_WithGroups.yml @@ -0,0 +1,283 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Alloted resource: + file: resource-AllotedResource-template.yml +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + node_templates: + allotedresource1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 + UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa + customizationUUID: 1c217567-5093-41f5-86e6-22c97ef24e75 + version: '1.0' + name: Alloted resource + description: This is a VFC- Allotted resource + type: VFC + category: Allotted Resource + subcategory: Allotted Resource + properties: + role: name + ecomp_naming: + naming_policy: test + ecomp_generated_naming: false + supplemental_data: + Key1: key1 + providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c + min_instances: 1 + max_instances: 1 + providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa + providing_service_name: vVIGaaS + ecomp_homing: + instance_node_target: Test + homing_policy: Test + supplemental_data: + Key: key + ecomp_selected_instance_node_target: false + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + substitution_mappings: + node_type: org.openecomp.resource.vf.AllottedResource + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testAllotedResourceWithDependingSerWithGroups/service-ServiceWithAllottedResourceIpmux-template_WithGroups.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testAllotedResourceWithDependingSerWithGroups/service-ServiceWithAllottedResourceIpmux-template_WithGroups.yml new file mode 100644 index 0000000000..1fba2e727f --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testAllotedResourceWithDependingSerWithGroups/service-ServiceWithAllottedResourceIpmux-template_WithGroups.yml @@ -0,0 +1,62 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: faa4359b-6ecf-4eeb-9960-6440d4cf1f2f + UUID: 614316ee-94ae-41b3-b59a-46e87d3d91a5 + name: Service with allotted resource IPMUX + description: safa + type: Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false +imports: +- Allotted Resource: + file: resource-AllottedResource-template.yml +topology_template: + node_templates: + allottedresource1: + type: org.openecomp.resource.vf.AllottedResource + metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + customizationUUID: 958fb310-184f-463d-b634-1660a626f320 + version: '0.2' + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + groups: { + } + substitution_mappings: + node_type: org.openecomp.service.ServiceWithAllottedResourceIpmux + capabilities: + Allotted Resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Allotted Resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Allotted Resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration10/service_vmme_template_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration10/service_vmme_template_1.yml new file mode 100644 index 0000000000..4a16e555ff --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration10/service_vmme_template_1.yml @@ -0,0 +1,194 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + + # Virtual Links (Networks) + + gtp_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/resource-IpMuxDemux-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/resource-IpMuxDemux-template.yml new file mode 100644 index 0000000000..5b4ffd971e --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/resource-IpMuxDemux-template.yml @@ -0,0 +1,83 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: ec95fbf0-5d05-4fea-a11e-27869c0032e2 + UUID: 41e4949f-85b3-4bc5-b7a2-2c166bf87270 + name: IP_Mux_Demux + description: nbvnbb + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + resourceVendor: stella + resourceVendorRelease: '1.0' +imports: +- newAllotted: + file: resource-Newallotted-template.yml +topology_template: + inputs: + role: + type: string + ecomp_naming: + type: string + max_instances: + type: string + min_instances: + type: string + ecomp_homing: + type: string + node_templates: + allotedresource1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: cce8d00f-1a7a-439d-b186-207599f8bbf2 + UUID: 468a08a2-10a7-4ee7-86eb-dcf2e74a028f + customizationUUID: e7a3e375-9bec-4552-88d2-26cb5dcf580d + version: '1.0' + name: newAllotted + description: vcxvcx + type: VFC + category: Allotted Resource + subcategory: IP Mux Demux + properties: + ecomp_naming: + naming_policy: + get input: ecomp_naming + providing_service_invariant_uuid: 2bec5c69-b64e-4ffe-b74a-62f14d255d46 + min_instances: 1 + max_instances: 1 + providing_service_uuid: 8ca1e477-77ec-47ed-a498-303fd0de9080 + providing_service_name: ServiceAllMichael1801 + groups: { + } + substitution_mappings: + node_type: org.openecomp.resource.vf.IpMuxDemux + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/resource-TunnelXconn-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/resource-TunnelXconn-template.yml new file mode 100644 index 0000000000..434757d30e --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/resource-TunnelXconn-template.yml @@ -0,0 +1,83 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: fadbb726-37b6-4939-ba78-9e86974232c5 + UUID: 68d68207-007a-49f3-a9ae-5f88757d5061 + name: Tunnel_XConn + description: stella + type: VF + category: Allotted Resource + subcategory: Tunnel XConnect + resourceVendor: stella + resourceVendorRelease: '1.0' +imports: +- newAllotted: + file: resource-Newallotted-template.yml +topology_template: + inputs: + role: + type: string + ecomp_naming: + type: string + max_instances: + type: string + min_instances: + type: string + ecomp_homing: + type: string + node_templates: + allotedresource1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: cce8d00f-1a7a-439d-b186-207599f8bbf2 + UUID: 468a08a2-10a7-4ee7-86eb-dcf2e74a028f + customizationUUID: a92f5f2e-fe08-4711-84f6-2e64608aca13 + version: '1.0' + name: newAllotted + description: vcxvcx + type: VFC + category: Allotted Resource + subcategory: IP Mux Demux + properties: + ecomp_naming: + naming_policy: + get input: ecomp_naming + providing_service_invariant_uuid: c964ef13-9d61-4d1b-a1a6-7060f3d7ddb4 + min_instances: 1 + max_instances: 1 + providing_service_uuid: 3d6f84f5-84fd-441a-8fd8-401f71196712 + providing_service_name: ServiceSprint38stella + groups: { + } + substitution_mappings: + node_type: org.openecomp.resource.vf.TunnelXconn + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/service-Allottedipmux-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/service-Allottedipmux-template.yml new file mode 100644 index 0000000000..449e0925d5 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/service-Allottedipmux-template.yml @@ -0,0 +1,126 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 9c5b8e77-6ae1-4817-994f-a14a03635868 + UUID: 2722acbc-a8cb-4d73-ab14-9b2d79dc2131 + name: AllottedIPMux + description: cbvbv + type: Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false +imports: +- Tunnel_XConn: + file: resource-TunnelXconn-template.yml +- IP_Mux_Demux: + file: resource-IpMuxDemux-template.yml +topology_template: + node_templates: + Tunnel_XConn 3: + type: org.openecomp.resource.vf.TunnelXconn + metadata: + invariantUUID: fadbb726-37b6-4939-ba78-9e86974232c5 + UUID: 68d68207-007a-49f3-a9ae-5f88757d5061 + customizationUUID: ae051f74-0d64-40f8-877b-791330cd7801 + version: '1.0' + name: Tunnel_XConn + description: stella + type: VF + category: Allotted Resource + subcategory: Tunnel XConnect + IP_Mux_Demux 2: + type: org.openecomp.resource.vf.IpMuxDemux + metadata: + invariantUUID: ec95fbf0-5d05-4fea-a11e-27869c0032e2 + UUID: 41e4949f-85b3-4bc5-b7a2-2c166bf87270 + customizationUUID: 8cb6b8f7-a9bc-4745-92bd-f815f68fa6bc + version: '1.0' + name: IP_Mux_Demux + description: nbvnbb + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + IP_Mux_Demux 1: + type: org.openecomp.resource.vf.IpMuxDemux + metadata: + invariantUUID: ec95fbf0-5d05-4fea-a11e-27869c0032e2 + UUID: 41e4949f-85b3-4bc5-b7a2-2c166bf87270 + customizationUUID: 7801f43f-f3f6-453f-89ea-4c182c569ad6 + version: '1.0' + name: IP_Mux_Demux + description: nbvnbb + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + groups: { + } + substitution_mappings: + node_type: org.openecomp.service.Allottedipmux + capabilities: + IP_Mux_Demux 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Tunnel_XConn 3.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + IP_Mux_Demux 2.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Tunnel_XConn 3.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + IP_Mux_Demux 2.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + IP_Mux_Demux 2.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + IP_Mux_Demux 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + IP_Mux_Demux 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Tunnel_XConn 3.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration16/resource-AllottedResource-template_IpMux.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration16/resource-AllottedResource-template_IpMux.yml new file mode 100644 index 0000000000..84b412d591 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration16/resource-AllottedResource-template_IpMux.yml @@ -0,0 +1,78 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Alloted resource: + file: resource-AllotedResource-template.yml +topology_template: + node_templates: + allotedresource1: + type: org.openecomp.resource.vfc.AllottedResource123 + metadata: + invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 + UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa + customizationUUID: 1c217567-5093-41f5-86e6-22c97ef24e75 + version: '1.0' + name: Alloted resource + description: This is a VFC- Allotted resource + type: VFC + category: Allotted Resource123 + subcategory: Allotted Resource + properties: + role: name + ecomp_naming: + naming_policy: test + ecomp_generated_naming: false + supplemental_data: + Key1: key1 + max_instances: 1 + min_instances: 1 + ecomp_homing: + instance_node_target: Test + homing_policy: Test + supplemental_data: + Key: key + ecomp_selected_instance_node_target: false + groups: { + } + substitution_mappings: + node_type: org.openecomp.resource.vf.AllottedResource + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration16/service-ServiceWithAllottedResourceIpmux-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration16/service-ServiceWithAllottedResourceIpmux-template.yml new file mode 100644 index 0000000000..1fba2e727f --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration16/service-ServiceWithAllottedResourceIpmux-template.yml @@ -0,0 +1,62 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: faa4359b-6ecf-4eeb-9960-6440d4cf1f2f + UUID: 614316ee-94ae-41b3-b59a-46e87d3d91a5 + name: Service with allotted resource IPMUX + description: safa + type: Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false +imports: +- Allotted Resource: + file: resource-AllottedResource-template.yml +topology_template: + node_templates: + allottedresource1: + type: org.openecomp.resource.vf.AllottedResource + metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + customizationUUID: 958fb310-184f-463d-b634-1660a626f320 + version: '0.2' + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + groups: { + } + substitution_mappings: + node_type: org.openecomp.service.ServiceWithAllottedResourceIpmux + capabilities: + Allotted Resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Allotted Resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Allotted Resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/resource-AllottedResource1SameInvariant-IpMux-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/resource-AllottedResource1SameInvariant-IpMux-template.yml new file mode 100644 index 0000000000..2852d03568 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/resource-AllottedResource1SameInvariant-IpMux-template.yml @@ -0,0 +1,81 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Alloted resource: + file: resource-AllotedResource-template.yml +topology_template: + node_templates: + allotedresource1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 + UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa + customizationUUID: 1c217567-5093-41f5-86e6-22c97ef24e75 + version: '1.0' + name: Alloted resource + description: This is a VFC- Allotted resource + type: VFC + category: Allotted Resource + subcategory: Allotted Resource + properties: + role: name + ecomp_naming: + naming_policy: test + ecomp_generated_naming: false + supplemental_data: + Key1: key1 + providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c + min_instances: 1 + max_instances: 1 + providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa + providing_service_name: vVIGaaS + ecomp_homing: + instance_node_target: Test + homing_policy: Test + supplemental_data: + Key: key + ecomp_selected_instance_node_target: false + groups: { + } + substitution_mappings: + node_type: org.openecomp.resource.vf.AllottedResource + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/resource-AllottedResource2SameInvariant-IpMux-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/resource-AllottedResource2SameInvariant-IpMux-template.yml new file mode 100644 index 0000000000..0986300436 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/resource-AllottedResource2SameInvariant-IpMux-template.yml @@ -0,0 +1,81 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f64afdc3-6308-4f0c-a476-0d39c8a1fb4d + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Alloted resource: + file: resource-AllotedResource-template.yml +topology_template: + node_templates: + allotedresource1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 + UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa + customizationUUID: 1c217567-5093-41f5-86e6-22c97ef24e75 + version: '1.0' + name: Alloted resource + description: This is a VFC- Allotted resource + type: VFC + category: Allotted Resource + subcategory: Allotted Resource + properties: + role: name + ecomp_naming: + naming_policy: test + ecomp_generated_naming: false + supplemental_data: + Key1: key1 + providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c + min_instances: 1 + max_instances: 1 + providing_service_uuid: e24a509f-b611-4b30-b38c-bc7f11b679aa + providing_service_name: vVIGaaS + ecomp_homing: + instance_node_target: Test + homing_policy: Test + supplemental_data: + Key: key + ecomp_selected_instance_node_target: false + groups: { + } + substitution_mappings: + node_type: org.openecomp.resource.vf.AllottedResource + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/service-ServiceWithAllottedResourcesIpMuxSameInvariant-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/service-ServiceWithAllottedResourcesIpMuxSameInvariant-template.yml new file mode 100644 index 0000000000..efd2dea67a --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/service-ServiceWithAllottedResourcesIpMuxSameInvariant-template.yml @@ -0,0 +1,74 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: faa4359b-6ecf-4eeb-9960-6440d4cf1f2f + UUID: 614316ee-94ae-41b3-b59a-46e87d3d91a5 + name: Service with allotted resource IPMUX + description: safa + type: Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false +imports: +- Allotted Resource: + file: resource-AllottedResource-template.yml +topology_template: + node_templates: + allottedresource1: + type: org.openecomp.resource.vf.AllottedResource + metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + customizationUUID: 958fb310-184f-463d-b634-1660a626f320 + version: '0.2' + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + allottedresource2: + type: org.openecomp.resource.vf.AllottedResource + metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f64afdc3-6308-4f0c-a476-0d39c8a1fb4d + customizationUUID: 958fb310-184f-463d-b634-1660a626f320 + version: '0.3' + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + groups: { + } + substitution_mappings: + node_type: org.openecomp.service.ServiceWithAllottedResourceIpmux + capabilities: + Allotted Resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Allotted Resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Allotted Resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration18/resource-AllottedResourceSameInvariantSameVers-IpMux-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration18/resource-AllottedResourceSameInvariantSameVers-IpMux-template.yml new file mode 100644 index 0000000000..2852d03568 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration18/resource-AllottedResourceSameInvariantSameVers-IpMux-template.yml @@ -0,0 +1,81 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Alloted resource: + file: resource-AllotedResource-template.yml +topology_template: + node_templates: + allotedresource1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 + UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa + customizationUUID: 1c217567-5093-41f5-86e6-22c97ef24e75 + version: '1.0' + name: Alloted resource + description: This is a VFC- Allotted resource + type: VFC + category: Allotted Resource + subcategory: Allotted Resource + properties: + role: name + ecomp_naming: + naming_policy: test + ecomp_generated_naming: false + supplemental_data: + Key1: key1 + providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c + min_instances: 1 + max_instances: 1 + providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa + providing_service_name: vVIGaaS + ecomp_homing: + instance_node_target: Test + homing_policy: Test + supplemental_data: + Key: key + ecomp_selected_instance_node_target: false + groups: { + } + substitution_mappings: + node_type: org.openecomp.resource.vf.AllottedResource + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration18/service-ServiceWithAllottedResourcesIpMuxSameInvariantSameVers-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration18/service-ServiceWithAllottedResourcesIpMuxSameInvariantSameVers-template.yml new file mode 100644 index 0000000000..08c5329212 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration18/service-ServiceWithAllottedResourcesIpMuxSameInvariantSameVers-template.yml @@ -0,0 +1,74 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: faa4359b-6ecf-4eeb-9960-6440d4cf1f2f + UUID: 614316ee-94ae-41b3-b59a-46e87d3d91a5 + name: Service with allotted resource IPMUX + description: safa + type: Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false +imports: +- Allotted Resource: + file: resource-AllottedResource-template.yml +topology_template: + node_templates: + allottedresource1: + type: org.openecomp.resource.vf.AllottedResource + metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + customizationUUID: 958fb310-184f-463d-b634-1660a626f320 + version: '0.2' + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + allottedresource2: + type: org.openecomp.resource.vf.AllottedResource + metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + customizationUUID: 958fb310-184f-463d-b634-1660a626f320 + version: '0.2' + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + groups: { + } + substitution_mappings: + node_type: org.openecomp.service.ServiceWithAllottedResourceIpmux + capabilities: + Allotted Resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Allotted Resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Allotted Resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration2/Resource0-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration2/Resource0-template.yml new file mode 100644 index 0000000000..49666f9bae --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration2/Resource0-template.yml @@ -0,0 +1,24 @@ + # _______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 461a4839-2572-4dc1-b3be-dcb4c1908764 + UUID: bca09900-d37a-48db-8cd2-de014b2fdbba + name: resource_0 + description: description + type: VF + category: Generic + subcategory: Infrastructure + resourceVendor: vendor name + resourceVendorRelease: vendor release +topology_template: + substitution_mapping: + node_type: org.openecomp.resource.vf.Resource0 + # _______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration4/service_vmme_template_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration4/service_vmme_template_1.yml new file mode 100644 index 0000000000..76bb35ceec --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration4/service_vmme_template_1.yml @@ -0,0 +1,194 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vasf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + + # Virtual Links (Networks) + + gtp_net: + type: org.openecomp.resource.vsl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: org.openecomp.resource.vasl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: org.openecomp.resource.vasl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration5/service_vmme_template_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration5/service_vmme_template_1.yml new file mode 100644 index 0000000000..338f5511bf --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration5/service_vmme_template_1.yml @@ -0,0 +1,194 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + + # Virtual Links (Networks) + + gtp_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration6/Resource0-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration6/Resource0-template.yml new file mode 100644 index 0000000000..49666f9bae --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration6/Resource0-template.yml @@ -0,0 +1,24 @@ + # _______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 461a4839-2572-4dc1-b3be-dcb4c1908764 + UUID: bca09900-d37a-48db-8cd2-de014b2fdbba + name: resource_0 + description: description + type: VF + category: Generic + subcategory: Infrastructure + resourceVendor: vendor name + resourceVendorRelease: vendor release +topology_template: + substitution_mapping: + node_type: org.openecomp.resource.vf.Resource0 + # _______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration6/service_vmme_template_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration6/service_vmme_template_1.yml new file mode 100644 index 0000000000..4daeca3972 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration6/service_vmme_template_1.yml @@ -0,0 +1,194 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vsf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + + # Virtual Links (Networks) + + gtp_net: + type: org.openecomp.resource.vsdl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: org.openecomp.resource.vsdl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: org.openecomp.resource.vsdl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration8/service_vmme_template_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration8/service_vmme_template_1.yml new file mode 100644 index 0000000000..ff9e604bf3 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration8/service_vmme_template_1.yml @@ -0,0 +1,194 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + + # Virtual Links (Networks) + + gtp_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration9/service_vmme_template_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration9/service_vmme_template_1.yml new file mode 100644 index 0000000000..403ad87be0 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration9/service_vmme_template_1.yml @@ -0,0 +1,194 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + + # Virtual Links (Networks) + + gtp_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-IpMuxDemux-template_AllRes_VF.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-IpMuxDemux-template_AllRes_VF.yml new file mode 100644 index 0000000000..d8885bb84b --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-IpMuxDemux-template_AllRes_VF.yml @@ -0,0 +1,81 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 + UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 + name: IP_Mux_Demux + description: IP_Mux_Demux + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Allotedresource: + file: resource-Allotedresource-template.yml +topology_template: + inputs: + role: + type: string + ecomp_naming: + type: string + max_instances: + type: string + min_instances: + type: string + ecomp_homing: + type: string + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c + UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a + customizationUUID: 5eac2a36-bcb5-4158-ace4-802b81e87248 + version: '1.0' + name: Allotedresource + description: Allotedresource + type: VFC + category: Allotted Resource + subcategory: IP Mux Demux + properties: + ecomp_naming: + naming_policy: + get input: ecomp_naming + providing_service_invariant_uuid: e42ea8ff-1862-43f4-a597-4b885cf3c6e5 + min_instances: 1 + max_instances: 1 + providing_service_uuid: 2fb4b63d-7ec8-4fc0-98c7-a1c51fb4b794 + providing_service_name: vVIGaaS + substitution_mappings: + node_type: org.openecomp.resource.vf.IpMuxDemux + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-ServiceAdmin-template_AllRes_VF.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-ServiceAdmin-template_AllRes_VF.yml new file mode 100644 index 0000000000..549c18b55b --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-ServiceAdmin-template_AllRes_VF.yml @@ -0,0 +1,81 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 + UUID: a9c6246c-0807-4a43-a64c-442a170c2088 + name: service_admin + description: service_admin + type: VF + category: Allotted Resource + subcategory: Service admin + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Allotedresource: + file: resource-Allotedresource-template.yml +topology_template: + inputs: + role: + type: string + ecomp_naming: + type: string + max_instances: + type: string + min_instances: + type: string + ecomp_homing: + type: string + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c + UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a + customizationUUID: f61f785d-2c82-4d6d-9184-8cbdf2df4da0 + version: '1.0' + name: Allotedresource + description: Allotedresource + type: VFC + category: Allotted Resource + subcategory: Service admin + properties: + ecomp_naming: + naming_policy: + get input: ecomp_naming + providing_service_invariant_uuid: e42ea8ff-1862-43f4-a597-4b885cf3c6e5 + min_instances: 1 + max_instances: 1 + providing_service_uuid: 2fb4b63d-7ec8-4fc0-98c7-a1c51fb4b794 + providing_service_name: HNPortalaaS + substitution_mappings: + node_type: org.openecomp.resource.vf.ServiceAdmin + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-TunnelXconn-template_AllRes_VF.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-TunnelXconn-template_AllRes_VF.yml new file mode 100644 index 0000000000..1eb97a0976 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-TunnelXconn-template_AllRes_VF.yml @@ -0,0 +1,81 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 + UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb + name: Tunnel_XConn + description: Tunnel_XConn + type: VF + category: Allotted Resource + subcategory: Tunnel XConnect + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Allotedresource: + file: resource-Allotedresource-template.yml +topology_template: + inputs: + role: + type: string + ecomp_naming: + type: string + min_instances: + type: string + max_instances: + type: string + ecomp_homing: + type: string + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c + UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a + customizationUUID: 22ca20ca-1577-46d3-b3ef-77483cca37d6 + version: '1.0' + name: Allotedresource + description: Allotedresource + type: VFC + category: Allotted Resource + subcategory: Tunnel XConnect + properties: + ecomp_naming: + naming_policy: + get input: ecomp_naming + providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c + min_instances: 1 + max_instances: 1 + providing_service_uuid: 2fb4b63d-7ec8-4fc0-98c7-a1c51fb4b794 + providing_service_name: vVIGaaS + substitution_mappings: + node_type: org.openecomp.resource.vf.TunnelXconn + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-VhnfNonHeat-template_AllRes_VF.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-VhnfNonHeat-template_AllRes_VF.yml new file mode 100644 index 0000000000..8ec1c192ee --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-VhnfNonHeat-template_AllRes_VF.yml @@ -0,0 +1,24 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: f61adc31-6004-4377-a661-090f59e6b32a + UUID: 2118e830-5e0d-409a-9d7a-63b6a72d6f5f + name: vHNF non Heat + description: vHNF non Heat + type: VF + category: Generic + subcategory: Network Elements + resourceVendor: '1' + resourceVendorRelease: '1' +topology_template: + substitution_mappings: + node_type: org.openecomp.resource.vf.VhnfNonHeat +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/service-SdWan-template_AllRes_VF.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/service-SdWan-template_AllRes_VF.yml new file mode 100644 index 0000000000..bc3ab6dabb --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/service-SdWan-template_AllRes_VF.yml @@ -0,0 +1,233 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 3d8b7a76-7c47-4974-b5b9-e24c54b817a2 + UUID: eb31504f-9f60-4936-a2f2-8ac592b611a6 + name: SD-WAN + description: SD-WAN + type: Service + category: Network L4+ + serviceEcompNaming: false + serviceHoming: false +imports: +- service_admin: + file: resource-ServiceAdmin-template.yml +- Tunnel_XConn: + file: resource-TunnelXconn-template.yml +- vHNF non Heat: + file: resource-VhnfNonHeat-template.yml +- IP_Mux_Demux: + file: resource-IpMuxDemux-template.yml +topology_template: + node_templates: + Sec_IP_Mux_Demux: + type: org.openecomp.resource.vf.IpMuxDemux + metadata: + invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 + UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 + customizationUUID: f4b764bb-6721-4219-8c69-7ce61969f755 + version: '0.1' + name: IP_Mux_Demux + description: IP_Mux_Demux + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + Pri_Tunnel_XConn: + type: org.openecomp.resource.vf.TunnelXconn + metadata: + invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 + UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb + customizationUUID: 96d0bbf6-d9f7-441d-8f00-67d79dbf30de + version: '0.1' + name: Tunnel_XConn + description: Tunnel_XConn + type: VF + category: Allotted Resource + subcategory: Tunnel XConnect + Pri_service_admin: + type: org.openecomp.resource.vf.ServiceAdmin + metadata: + invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 + UUID: a9c6246c-0807-4a43-a64c-442a170c2088 + customizationUUID: 6b4a2a55-3b82-4799-8329-4fc2939fd5b5 + version: '0.1' + name: service_admin + description: service_admin + type: VF + category: Allotted Resource + subcategory: Service admin + Pri_IP_Mux_Demux: + type: org.openecomp.resource.vf.IpMuxDemux + metadata: + invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 + UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 + customizationUUID: d8f656d9-179d-4f02-9a46-8af7421eb2a0 + version: '0.1' + name: IP_Mux_Demux + description: IP_Mux_Demux + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + Sec_Tunnel_XConn: + type: org.openecomp.resource.vf.TunnelXconn + metadata: + invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 + UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb + customizationUUID: b432136d-0a2a-460b-a3da-f921e1e0dcfa + version: '0.1' + name: Tunnel_XConn + description: Tunnel_XConn + type: VF + category: Allotted Resource + subcategory: Tunnel XConnect + vHNF non Heat 22: + type: org.openecomp.resource.vf.VhnfNonHeat + metadata: + invariantUUID: f61adc31-6004-4377-a661-090f59e6b32a + UUID: 2118e830-5e0d-409a-9d7a-63b6a72d6f5f + customizationUUID: 9c7a5f7f-6b17-4066-a6f1-094ea925495b + version: '0.1' + name: vHNF non Heat + description: vHNF non Heat + type: VF + category: Generic + subcategory: Network Elements + Sec_service_admin: + type: org.openecomp.resource.vf.ServiceAdmin + metadata: + invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 + UUID: a9c6246c-0807-4a43-a64c-442a170c2088 + customizationUUID: 5a8ef05b-451f-40f4-9531-3ee00bd3c5c4 + version: '0.1' + name: service_admin + description: service_admin + type: VF + category: Allotted Resource + subcategory: Service admin + substitution_mappings: + node_type: org.openecomp.service.SdWan + capabilities: + Sec_service_admin.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Sec_IP_Mux_Demux.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Pri_service_admin.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Pri_IP_Mux_Demux.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Pri_Tunnel_XConn.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Sec_Tunnel_XConn.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Pri_service_admin.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Sec_Tunnel_XConn.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Sec_service_admin.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Pri_IP_Mux_Demux.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Pri_Tunnel_XConn.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Sec_service_admin.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Pri_service_admin.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Sec_IP_Mux_Demux.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Sec_IP_Mux_Demux.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Pri_Tunnel_XConn.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Sec_Tunnel_XConn.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Pri_IP_Mux_Demux.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-IpMuxDemux-template_WithOutDepSerId.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-IpMuxDemux-template_WithOutDepSerId.yml new file mode 100644 index 0000000000..2e06cf467b --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-IpMuxDemux-template_WithOutDepSerId.yml @@ -0,0 +1,80 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 + UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 + name: IP_Mux_Demux + description: IP_Mux_Demux + type: VF + category: Allotted Resource + subcategory: Allotted Resource + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Allotedresource: + file: resource-Allotedresource-template.yml +topology_template: + inputs: + role: + type: string + ecomp_naming: + type: string + max_instances: + type: string + min_instances: + type: string + ecomp_homing: + type: string + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c + UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a + customizationUUID: 5eac2a36-bcb5-4158-ace4-802b81e87248 + version: '1.0' + name: Allotedresource + description: Allotedresource + type: VFC + category: Allotted Resource + subcategory: Allotted Resource + properties: + ecomp_naming: + naming_policy: + get input: ecomp_naming + providing_service_invariant_uuid: + min_instances: 1 + max_instances: 1 + providing_service_uuid: + substitution_mappings: + node_type: org.openecomp.resource.vf.IpMuxDemux + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-ServiceAdmin-template_WithOutDepSerId.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-ServiceAdmin-template_WithOutDepSerId.yml new file mode 100644 index 0000000000..c8a641d1ac --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-ServiceAdmin-template_WithOutDepSerId.yml @@ -0,0 +1,81 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 + UUID: a9c6246c-0807-4a43-a64c-442a170c2088 + name: service_admin + description: service_admin + type: VF + category: Allotted Resource + subcategory: Allotted Resource + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Allotedresource: + file: resource-Allotedresource-template.yml +topology_template: + inputs: + role: + type: string + ecomp_naming: + type: string + max_instances: + type: string + min_instances: + type: string + ecomp_homing: + type: string + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c + UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a + customizationUUID: f61f785d-2c82-4d6d-9184-8cbdf2df4da0 + version: '1.0' + name: Allotedresource + description: Allotedresource + type: VFC + category: Allotted Resource + subcategory: Allotted Resource + properties: + ecomp_naming: + naming_policy: + get input: ecomp_naming + providing_service_invariant_uuid: + min_instances: 1 + max_instances: 1 + providing_service_uuid: + providing_service_name: HNPortalaaS + substitution_mappings: + node_type: org.openecomp.resource.vf.ServiceAdmin + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-TunnelXconn-template_WithOutDepSerId.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-TunnelXconn-template_WithOutDepSerId.yml new file mode 100644 index 0000000000..eb248d1d65 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-TunnelXconn-template_WithOutDepSerId.yml @@ -0,0 +1,81 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 + UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb + name: Tunnel_XConn + description: Tunnel_XConn + type: VF + category: Allotted Resource + subcategory: Allotted Resource + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Allotedresource: + file: resource-Allotedresource-template.yml +topology_template: + inputs: + role: + type: string + ecomp_naming: + type: string + min_instances: + type: string + max_instances: + type: string + ecomp_homing: + type: string + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c + UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a + customizationUUID: 22ca20ca-1577-46d3-b3ef-77483cca37d6 + version: '1.0' + name: Allotedresource + description: Allotedresource + type: VFC + category: Allotted Resource + subcategory: Allotted Resource + properties: + ecomp_naming: + naming_policy: + get input: ecomp_naming + providing_service_invariant_uuid: + min_instances: 1 + max_instances: 1 + providing_service_uuid: + providing_service_name: vVIGaaS + substitution_mappings: + node_type: org.openecomp.resource.vf.TunnelXconn + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-VhnfNonHeat-template_WithOutDepSerId.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-VhnfNonHeat-template_WithOutDepSerId.yml new file mode 100644 index 0000000000..8ec1c192ee --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-VhnfNonHeat-template_WithOutDepSerId.yml @@ -0,0 +1,24 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: f61adc31-6004-4377-a661-090f59e6b32a + UUID: 2118e830-5e0d-409a-9d7a-63b6a72d6f5f + name: vHNF non Heat + description: vHNF non Heat + type: VF + category: Generic + subcategory: Network Elements + resourceVendor: '1' + resourceVendorRelease: '1' +topology_template: + substitution_mappings: + node_type: org.openecomp.resource.vf.VhnfNonHeat +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/service-SdWan-template_WithOutDepSerId.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/service-SdWan-template_WithOutDepSerId.yml new file mode 100644 index 0000000000..51d8c2d8ba --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/service-SdWan-template_WithOutDepSerId.yml @@ -0,0 +1,233 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 3d8b7a76-7c47-4974-b5b9-e24c54b817a2 + UUID: eb31504f-9f60-4936-a2f2-8ac592b611a6 + name: SD-WAN + description: SD-WAN + type: Service + category: Network L4+ + serviceEcompNaming: false + serviceHoming: false +imports: +- service_admin: + file: resource-ServiceAdmin-template.yml +- Tunnel_XConn: + file: resource-TunnelXconn-template.yml +- vHNF non Heat: + file: resource-VhnfNonHeat-template.yml +- IP_Mux_Demux: + file: resource-IpMuxDemux-template.yml +topology_template: + node_templates: + Sec_IP_Mux_Demux: + type: org.openecomp.resource.vf.IpMuxDemux + metadata: + invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 + UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 + customizationUUID: f4b764bb-6721-4219-8c69-7ce61969f755 + version: '0.1' + name: IP_Mux_Demux + description: IP_Mux_Demux + type: VF + category: Allotted Resource + subcategory: Allotted Resource + Pri_Tunnel_XConn: + type: org.openecomp.resource.vf.TunnelXconn + metadata: + invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 + UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb + customizationUUID: 96d0bbf6-d9f7-441d-8f00-67d79dbf30de + version: '0.1' + name: Tunnel_XConn + description: Tunnel_XConn + type: VF + category: Allotted Resource + subcategory: Allotted Resource + Pri_service_admin: + type: org.openecomp.resource.vf.ServiceAdmin + metadata: + invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 + UUID: a9c6246c-0807-4a43-a64c-442a170c2088 + customizationUUID: 6b4a2a55-3b82-4799-8329-4fc2939fd5b5 + version: '0.1' + name: service_admin + description: service_admin + type: VF + category: Allotted Resource + subcategory: Allotted Resource + Pri_IP_Mux_Demux: + type: org.openecomp.resource.vf.IpMuxDemux + metadata: + invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 + UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 + customizationUUID: d8f656d9-179d-4f02-9a46-8af7421eb2a0 + version: '0.1' + name: IP_Mux_Demux + description: IP_Mux_Demux + type: VF + category: Allotted Resource + subcategory: Allotted Resource + Sec_Tunnel_XConn: + type: org.openecomp.resource.vf.TunnelXconn + metadata: + invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 + UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb + customizationUUID: b432136d-0a2a-460b-a3da-f921e1e0dcfa + version: '0.1' + name: Tunnel_XConn + description: Tunnel_XConn + type: VF + category: Allotted Resource + subcategory: Allotted Resource + vHNF non Heat 22: + type: org.openecomp.resource.vf.VhnfNonHeat + metadata: + invariantUUID: f61adc31-6004-4377-a661-090f59e6b32a + UUID: 2118e830-5e0d-409a-9d7a-63b6a72d6f5f + customizationUUID: 9c7a5f7f-6b17-4066-a6f1-094ea925495b + version: '0.1' + name: vHNF non Heat + description: vHNF non Heat + type: VF + category: Generic + subcategory: Network Elements + Sec_service_admin: + type: org.openecomp.resource.vf.ServiceAdmin + metadata: + invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 + UUID: a9c6246c-0807-4a43-a64c-442a170c2088 + customizationUUID: 5a8ef05b-451f-40f4-9531-3ee00bd3c5c4 + version: '0.1' + name: service_admin + description: service_admin + type: VF + category: Allotted Resource + subcategory: Allotted Resource + substitution_mappings: + node_type: org.openecomp.service.SdWan + capabilities: + Sec_service_admin.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Sec_IP_Mux_Demux.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Pri_service_admin.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Pri_IP_Mux_Demux.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Pri_Tunnel_XConn.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Sec_Tunnel_XConn.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Pri_service_admin.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Sec_Tunnel_XConn.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Sec_service_admin.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Pri_IP_Mux_Demux.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Pri_Tunnel_XConn.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Sec_service_admin.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Pri_service_admin.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Sec_IP_Mux_Demux.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Sec_IP_Mux_Demux.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Pri_Tunnel_XConn.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Sec_Tunnel_XConn.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Pri_IP_Mux_Demux.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidInvId/service_vmme_template_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidInvId/service_vmme_template_1.yml new file mode 100644 index 0000000000..50c4c8230a --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidInvId/service_vmme_template_1.yml @@ -0,0 +1,194 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: 7787da18-123 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + + # Virtual Links (Networks) + + gtp_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion1/service_vmme_template_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion1/service_vmme_template_1.yml new file mode 100644 index 0000000000..fbb1e62a89 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion1/service_vmme_template_1.yml @@ -0,0 +1,98 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 0.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion1/vf_vmme_template_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion1/vf_vmme_template_1.yml new file mode 100644 index 0000000000..6aee48b9d9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion1/vf_vmme_template_1.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion2/service_vmme_template_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion2/service_vmme_template_1.yml new file mode 100644 index 0000000000..94b6c9b29b --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion2/service_vmme_template_1.yml @@ -0,0 +1,98 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion2/vf_vmme_template_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion2/vf_vmme_template_1.yml new file mode 100644 index 0000000000..6aee48b9d9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion2/vf_vmme_template_1.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidUuId/service_vmme_template_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidUuId/service_vmme_template_1.yml new file mode 100644 index 0000000000..5edb3bf8af --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidUuId/service_vmme_template_1.yml @@ -0,0 +1,194 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + UUID: 7787da18-123 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + + # Virtual Links (Networks) + + gtp_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + category: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenNoResourceVersion/service_vmme_template_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenNoResourceVersion/service_vmme_template_1.yml new file mode 100644 index 0000000000..d50b285b70 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenNoResourceVersion/service_vmme_template_1.yml @@ -0,0 +1,98 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenNoResourceVersion/vf_vmme_template_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenNoResourceVersion/vf_vmme_template_1.yml new file mode 100644 index 0000000000..6aee48b9d9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testErrorWhenNoResourceVersion/vf_vmme_template_1.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-AllottedResource-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-AllottedResource-template.yml new file mode 100644 index 0000000000..c80e701913 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-AllottedResource-template.yml @@ -0,0 +1,78 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: Allotted Resource + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Alloted resource: + file: resource-AllotedResource-template.yml +topology_template: + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 + UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa + version: '1.0' + name: Alloted resource + description: This is a VFC- Allotted resource + type: VFC + category: Allotted Resource + subcategory: Allotted Resource + properties: + role: name + ecomp_naming: + naming_policy: test + ecomp_generated_naming: false + supplemental_data: + Key1: key1 + providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c + min_instances: 1 + max_instances: 1 + providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa + providing_service_name: vVIGaaS + ecomp_homing: + instance_node_target: Test + homing_policy: Test + supplemental_data: + Key: key + ecomp_selected_instance_node_target: false + substitution_mappings: + node_type: org.openecomp.resource.vf.AllottedResource + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-Extvl-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-Extvl-template.yml new file mode 100644 index 0000000000..aa32d4ae01 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-Extvl-template.yml @@ -0,0 +1,61 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf + UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 + name: ExtVL1 + description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks + type: VL + category: Generic + subcategory: Network Elements + resourceVendor: OPENECOMP (Tosca) + resourceVendorRelease: 1.0.0.wd03 +node_types: + org.openecomp.resource.vl.extVL: + derived_from: tosca.nodes.Root + description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks + properties: + physical_network: + type: org.openecomp.datatypes.network.PhysicalNetwork + network_role: + type: string + description: | + Unique label that defines the role that this network performs. example: vce oam network, vnat sr-iov1 network + network_assignments: + type: org.openecomp.datatypes.network.NetworkAssignments + network_flows: + type: org.openecomp.datatypes.network.NetworkFlows + vl_artifacts: + type: map + description: List of artifacts associated with the VL + entry_schema: + type: org.openecomp.datatypes.Artifact + network_scope: + type: string + description: | + Uniquely identifies the network scope. Valid values for the network scope includes: VF - VF-level network. Intra-VF network which connects the VFCs (VMs) inside the VF. SERVICE - Service-level network. Intra-Service network which connects the VFs within the service GLOBAL - Global network which can be shared by multiple services + network_ecomp_naming: + type: org.openecomp.datatypes.EcompNaming + network_type: + type: string + description: OPENECOMP supported network types. + network_technology: + type: string + description: OPENECOMP supported network technology + network_homing: + type: org.openecomp.datatypes.EcompHoming + capabilities: + virtual_linkable: + type: tosca.capabilities.network.Linkable + occurrences: + - 1 + - UNBOUNDED +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-Extvl-template_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-Extvl-template_1.yml new file mode 100644 index 0000000000..e474f9a637 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-Extvl-template_1.yml @@ -0,0 +1,61 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf + UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57433 + name: ExtVL2 + description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks + type: VL + category: Generic + subcategory: Network Elements + resourceVendor: OPENECOMP (Tosca) + resourceVendorRelease: 1.0.0.wd03 +node_types: + org.openecomp.resource.vl.extVL: + derived_from: tosca.nodes.Root + description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks + properties: + physical_network: + type: org.openecomp.datatypes.network.PhysicalNetwork + network_role: + type: string + description: | + Unique label that defines the role that this network performs. example: vce oam network, vnat sr-iov1 network + network_assignments: + type: org.openecomp.datatypes.network.NetworkAssignments + network_flows: + type: org.openecomp.datatypes.network.NetworkFlows + vl_artifacts: + type: map + description: List of artifacts associated with the VL + entry_schema: + type: org.openecomp.datatypes.Artifact + network_scope: + type: string + description: | + Uniquely identifies the network scope. Valid values for the network scope includes: VF - VF-level network. Intra-VF network which connects the VFCs (VMs) inside the VF. SERVICE - Service-level network. Intra-Service network which connects the VFs within the service GLOBAL - Global network which can be shared by multiple services + network_ecomp_naming: + type: org.openecomp.datatypes.EcompNaming + network_type: + type: string + description: OPENECOMP supported network types. + network_technology: + type: string + description: OPENECOMP supported network technology + network_homing: + type: org.openecomp.datatypes.EcompHoming + capabilities: + virtual_linkable: + type: tosca.capabilities.network.Linkable + occurrences: + - 1 + - UNBOUNDED +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/service_vmme_template_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/service_vmme_template_1.yml new file mode 100644 index 0000000000..c2b2875c75 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/service_vmme_template_1.yml @@ -0,0 +1,139 @@ +--- +description: "Service Template for deploing MME Service" +imports: + - + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + - + ExtVL: + file: resource-Extvl-template.yml + - + ? "Allotted Resource" + : + file: resource-AllottedResource-template.yml +metadata: + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + category: Mobility + description: vMME_Service + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + name: vMME_Service + serviceEcompNaming: false + serviceHoming: false + type: Service +topology_template: + groups: + external_networks: + members: + - sctp_a_net + - sctp_b_net + - gtp_net + properties: + availability_zone_count: 1 + contrail_service_instance: true + type: org.openecomp.groups.externalNetworks + inputs: + gtp_net_cidr: + default: 107.243.37.64/27 + description: "The GTP network cidr" + type: string + gtp_net_end_ip: + default: "107.243.37.94" + description: "The GTP network end ip" + type: string + gtp_net_gateway_ip: + default: "107.243.37.65" + description: "The GTP network gateway" + type: string + gtp_net_network_name: + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 + description: "The GTP network route targets" + type: string + gtp_net_route_targets: + default: "13979:105715" + description: "The GTP network route targets" + type: string + gtp_net_start_ip: + default: "107.243.37.67" + description: "The GTP network start ip" + type: string + mme_vf_deployment_node: + description: "The target LCP node for deployment of this VF instance" + type: string + mme_vf_instance_name: + description: "VF instance name" + type: string + node_templates: + ? "Allotted Resource 2" + : + metadata: + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + category: "Allotted Resource" + description: "This is a VF - Allotted resource" + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + name: "Allotted Resource" + subcategory: "Allotted Resource" + type: VF + version: "1.0" + type: org.openecomp.resource.vf.AllottedResource + ? "ExtVL 1" + : + metadata: + UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 + category: Generic + description: "OPENECOMP generic virtual link (network) base type for all other service-level and global networks" + invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf + name: ExtVL + subcategory: "Network Elements" + type: VL + version: "2.0" + type: org.openecomp.resource.vl.extVL + ? "ExtVL 2" + : + metadata: + UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57433 + category: Generic + description: "OPENECOMP generic virtual link (network) base type for all other service-level and global networks" + invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf + name: ExtVL + subcategory: "Network Elements" + type: VL + version: "4.0" + type: org.openecomp.resource.vl.extVL + + mme: + metadata: + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + resourceVendor: Ericsson + subcategory: Firewall + type: VF + version: 1.0 + properties: + vf_deployment_node: + get_input: vf_deployment_node + vf_ecomp_name: false + vf_homing: false + vf_instance_name: + get_input: vf_instance_name + requirements: + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vf.vmme + +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/vf_vmme_template_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/vf_vmme_template_1.yml new file mode 100644 index 0000000000..6aee48b9d9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/vf_vmme_template_1.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testWidgetinServiceTosca/ServiceMock-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testWidgetinServiceTosca/ServiceMock-template.yml new file mode 100644 index 0000000000..84ba6c9298 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testWidgetinServiceTosca/ServiceMock-template.yml @@ -0,0 +1,74 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: c2749b42-28db-45e0-ab55-b05d0118d91d + UUID: b8ff69ca-786d-479e-9f9c-217a90ee0ebc + name: service_mock + description: aaa + type: Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false +imports: +- Network: + file: NeutronNet-template.yml +- vadtran_Demo: + file: VadtranDemo-template.yml +- Port: + file: ContrailPort-template.yml +topology_template: + node_templates: + Port 1: + type: org.openecomp.resource.cp.nodes.heat.network.contrail.Port + metadata: + invariantUUID: fc94daa0-a1a9-405e-a84c-b15987f92357 + UUID: 4dd2144f-72d4-47de-b361-8ed51c33c4a8 + resourceCustomizationUUID: 6402d92d-0050-46a9-8202-623a46680ba7 + version: '1.0' + name: ContrailPort + description: Represents a logical entity that associates between Compute and Network normative types for contrail. + type: CP + category: Generic + subcategory: Network Elements + + vadtran_Demo 1: + type: org.openecomp.resource.vf.VadtranDemo + metadata: + invariantUUID: 886d689d-351d-485a-829c-d86ec2dde4c4 + UUID: 3d6e1e60-14ac-4665-83de-6e2c729f0222 + resourceCustomizationUUID: 8cc0b0f6-d0fd-4742-b054-8d1786e07ff8 + version: '1.0' + name: vadtran_Demo + description: test + type: VF + category: Generic + subcategory: Database + + groups: + vadtran_Demo..base_adtran_pmaa_heat_04..module-0: + type: org.openecomp.groups.VfModule + metadata: + vfModuleModelName: vadtran_Demo..base_adtran_pmaa_heat_04..module-0 + vfModuleModelCustomizationUUID: fbf41c77-6b84-4e77-ae26-d86ec2dde4c4 + vfModuleModelInvariantUUID: d84f61c9-160a-44b6-a008-6caadbb6c612 + vfModuleModelUUID: fbf41c77-a7ee-4203-ad6c-eeb8a4ad7178 + vfModuleModelVersion: '1' + properties: + vf_module_type: Base + vf_module_description: + volume_group: false + vf_module_label: + min_vf_module_instances: 2 + max_vf_module_instances: 2 + initial_count: 2 + + +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testWidgetinServiceTosca/VadtranDemo-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testWidgetinServiceTosca/VadtranDemo-template.yml new file mode 100644 index 0000000000..bddcf9f284 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/testWidgetinServiceTosca/VadtranDemo-template.yml @@ -0,0 +1,170 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 886d689d-351d-485a-829c-d86ec2dde4c4 + UUID: 3d6e1e60-14ac-4665-83de-6e2c729f0222 + name: vadtran_Demo + description: test + type: VF + category: Generic + subcategory: Database + resourceVendor: Test + resourceVendorRelease: '1.0' +imports: +- NeutronPort: + file: Neutronport-template.yml +- VadtranDemo.nodes.heat.vnf: + file: VadtrandemoNodesHeatVnf-template.yml +topology_template: + inputs: + pmaa_dpu_net_id: + type: string + default: bd3be094-ddf0-43b3-91e7-d424f09dd2b9 + description: PMAA DPU network ID + pmaa_dpu_fixed_ip: + type: string + default: 10.0.2.50 + description: PMAA fixed IP address for DPU network port + pmaa_flavor: + type: string + default: m1.medium + description: PMAA instance Flavor (RAM, DISK, vCPUs) + pmaa_image: + type: string + default: adtran_pmaa_ubuntu_multi + description: PMAA image for compute instance + pmaa_mgt_net_id: + type: string + default: 991cdd94-18ca-4bf8-a931-922a64500840 + description: PMAA management network + vnf_id: + type: string + default: pmaa_vnf_id + description: PMAA unique ID + pmaa_availability_zone: + type: string + default: nova + description: PMAA availability zone ID to deploy the instance + vnf_name: + type: string + default: pmaa + description: PMAA vnf name + pmaa_dpu_cidr: + type: string + default: 10.0.2.0/24 + description: PMAA DPU subnetwork CIDR address block + pmaa_dpu_subnet_id: + type: string + default: e848430b-e956-4b47-9cc8-f7a6ca2c790a + description: PMAA DPU subnetwork ID + pmaa_dpu_gateway: + type: string + default: 10.0.2.254 + description: PMAA DPU subnetwork gateway IP address + node_templates: + pmaa_mgt_port: + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + metadata: + invariantUUID: cba26d10-4613-4c82-9f9e-af95eaf959a3 + UUID: 2606755b-d301-45c6-900e-ca676cc9f348 + resourceCustomizationUUID: 6402d92d-0050-46a9-8202-f7a6ca2c790a + version: '1.0' + name: NeutronPort + description: Represents a logical entity that associates between Compute and Network normative types. + type: CP + category: Generic + subcategory: Network Elements + properties: + network: + get_input: pmaa_mgt_net_id + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: pmaa_server_0 + relationship: tosca.relationships.network.BindsTo + pmaa_dpu_port: + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + metadata: + invariantUUID: cba26d10-4613-4c82-9f9e-af95eaf959a3 + UUID: 2606755b-d301-45c6-900e-ca676cc9f348 + resourceCustomizationUUID: 6402d92d-4613-4c82-9f9e-f7a6ca2c790a + version: '1.0' + name: NeutronPort + description: Represents a logical entity that associates between Compute and Network normative types. + type: CP + category: Generic + subcategory: Network Elements + properties: + fixed_ips: + - ip_address: + get_input: pmaa_dpu_fixed_ip + network: + get_input: pmaa_dpu_net_id + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: pmaa_server_0 + relationship: tosca.relationships.network.BindsTo + pmaa_server_0: + type: org.openecomp.resource.vfc.VadtranDemo.abstact.nodes.heat.vnf + metadata: + invariantUUID: 660310f4-8851-46d3-9cb7-9f1188b43aa7 + UUID: 82150098-aead-4ae0-a3e0-d5273b4ab923 + resourceCustomizationUUID: 6402d92d-8851-46d3-9cb7-f7a6ca2c790a + version: '1.0' + name: VadtranDemo.nodes.heat.vnf + description: Not reusable inner VFC + type: VFC + category: Generic + subcategory: Abstract + properties: + flavor: + get_input: pmaa_flavor + image: + get_input: pmaa_image + availability_zone: + get_input: pmaa_availability_zone + metadata: + pmaa.sb_nic: + address: + get_input: pmaa_dpu_fixed_ip + cidr: + get_input: pmaa_dpu_cidr + gateway: + get_input: pmaa_dpu_gateway + user_data_format: + name: + get_input: vnf_name + groups: + vadtran_Demo..base_adtran_pmaa_heat_04..module-0: + type: org.openecomp.groups.VfModule + metadata: + vfModuleModelName: vadtran_Demo..base_adtran_pmaa_heat_04..module-0 + vfModuleModelInvariantUUID: d84f61c9-160a-44b6-a008-6caadbb6c612 + vfModuleModelUUID: fbf41c77-a7ee-4203-ad6c-eeb8a4ad7178 + vfModuleModelVersion: '1' + properties: + vf_module_type: Base + vf_module_description: + volume_group: false + base_adtran_pmaa_heat_04: + type: org.openecomp.groups.heat.HeatStack + members: + - pmaa_mgt_port + - pmaa_dpu_port + - pmaa_server_0 + metadata: + invariantUUID: d2e21beb-b7e4-44cf-bf6c-f8c8802fe532 + UUID: c9d6f49a-6785-4693-a921-d980e4d11aa4 + version: '1' + name: base_adtran_pmaa_heat_04 + + #_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_InvalidVfModInvUuIdAttr.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_InvalidVfModInvUuIdAttr.yml new file mode 100644 index 0000000000..7d3a420a00 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_InvalidVfModInvUuIdAttr.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc3333 + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_InvalidVfModUuIdAttr.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_InvalidVfModUuIdAttr.yml new file mode 100644 index 0000000000..a2d65041b0 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_InvalidVfModUuIdAttr.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: adf1a1- + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModInvUUID.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModInvUUID.yml new file mode 100644 index 0000000000..0961302ead --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModInvUUID.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelName.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelName.yml new file mode 100644 index 0000000000..2f5f4267b5 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelName.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelUUID.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelUUID.yml new file mode 100644 index 0000000000..7dec66c31b --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelUUID.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelVersion.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelVersion.yml new file mode 100644 index 0000000000..5ae33ed8ab --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelVersion.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/pom.xml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/pom.xml new file mode 100644 index 0000000000..4bdf5bc81e --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/pom.xml @@ -0,0 +1,67 @@ + + + 4.0.0 + + onap-sdc-artifact-generator-test + + + onap-common-lib + org.onap.sdc.common + 1.2.0-SNAPSHOT + ../../ + + + + + + + org.apache.maven.plugins + maven-shade-plugin + ${mvn.shade.version} + + + package + + shade + + + + + com.google.guava:* + + + + + + + + + + + + + org.testng + testng + 6.8.8 + + + junit + junit + 4.11 + + + org.onap.sdc.common + onap-sdc-artifact-generator-api + ${project.version} + + + + org.onap.sdc.common + onap-sdc-artifact-generator-core + ${project.version} + + + + diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/java/org/onap/sdc/generator/ArtifactGenerationServiceTest.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/java/org/onap/sdc/generator/ArtifactGenerationServiceTest.java new file mode 100644 index 0000000000..b11c33ec9f --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/java/org/onap/sdc/generator/ArtifactGenerationServiceTest.java @@ -0,0 +1,696 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator; + +import org.onap.sdc.generator.aai.model.*; +import org.onap.sdc.generator.aai.model.Service; +import org.onap.sdc.generator.aai.tosca.GroupDefinition; +import org.onap.sdc.generator.aai.tosca.NodeTemplate; +import org.onap.sdc.generator.aai.tosca.ToscaTemplate; +import org.onap.sdc.generator.aai.xml.*; +import org.onap.sdc.generator.aai.xml.Model; +import org.onap.sdc.generator.data.*; +import org.junit.Assert; + +import javax.xml.bind.JAXBContext; +import javax.xml.bind.JAXBException; +import javax.xml.bind.Unmarshaller; +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.*; +import java.util.Properties; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +@SuppressWarnings("Duplicates") +public class ArtifactGenerationServiceTest { + + public static final String RESOURCE_MAPPING_NOT_FOUND = "Resource mapping not found for "; + public static final String INV_UID = "-INV_UID"; + public static final String VF_MODULE_NAMESPACE = "org.openecomp.groups.VfModule"; + public static final String VF_MODULE_DESCRIPTION = "vf_module_description"; + public static final String CATEGORY = "category"; + static Map resourcesVersion = new HashMap<>(); + public static Properties properties = new Properties(); + + @SuppressWarnings("Since15") + public static void validateName(List artifactList) throws JAXBException { + for(Artifact artifact : artifactList){ + String xml = new String(Base64.getDecoder().decode(artifact.getPayload())); + Model model = getUnmarshalledArtifactModel(xml); + String xmlName = "AAI-"+ model.getModelVers().getModelVer().get(0).getModelName() + +"-"+model + .getModelType + ()+"-"+model.getModelVers().getModelVer().get(0) + .getModelVersion()+".xml"; + + Assert.assertEquals(true,artifact.getName().equals(xmlName)); + + } + } + + public static void checkArtifactName(String name){ + Assert.assertEquals(true,name.length()<=255); + } + + public static void checkArtifactLabel(String label){ + Pattern pattern = Pattern.compile("[a-zA-Z0-9-+\\s]+"); + Matcher matcher = pattern.matcher(label); + Assert.assertEquals(true,matcher.matches()); + } + + public static void checkArtifactDescription(String description){ + Pattern pattern = Pattern.compile("[a-zA-Z\\s\\t\\n]+"); + Matcher matcher = pattern.matcher(description); + Assert.assertEquals(true,matcher.matches()); + Assert.assertEquals(true,description.length()<=256); + + } + + public static void testResourceTosca(Iterator itr, Map + outputArtifactMap) { + while(itr.hasNext()){ + ToscaTemplate toscaTemplate = itr.next(); + String resourceVersion= resourcesVersion.get(toscaTemplate.getMetadata().get("UUID")); + toscaTemplate.getMetadata().put("version", resourceVersion); + if("VF".equals(toscaTemplate.getMetadata().get("type")) && !("Allotted Resource".equals + (toscaTemplate.getMetadata().get(CATEGORY))) ){ + testVfTosca(outputArtifactMap, toscaTemplate); + } else if("VF".equals(toscaTemplate.getMetadata().get("type")) && ("Allotted Resource".equals + (toscaTemplate.getMetadata().get(CATEGORY))) ){ + testAllottedResourceTosca(outputArtifactMap, toscaTemplate); + } else if("VL".equals(toscaTemplate.getMetadata().get("type"))){ + testL3NetworkResourceTosca(outputArtifactMap, toscaTemplate); + } + } + } + + public static void testVfTosca(Map outputArtifactMap , ToscaTemplate resourceTosca) { + + if (resourceTosca != null) { + Resource resource = new Resource(); + resource.populateModelIdentificationInformation(resourceTosca.getMetadata()); + String resourceNameVersionId = resource.getModelNameVersionId(); + Model resourceAAIModel = + getAAIModelByNameVersionId(resourceNameVersionId, outputArtifactMap); + if (resourceAAIModel != null) { + validateResourceModelMetadata(resource, resourceAAIModel); + //Validate Resource instance base widget + + ModelVer modelVersion = resourceAAIModel.getModelVers().getModelVer().get(0); + + List matchedVFBaseWidgetElements = + getModelElementbyRelationshipValue(modelVersion.getModelElements(), + Widget.getWidget(Widget.Type.VF).getId()); + validateMatchedModelElementsInService(matchedVFBaseWidgetElements, + Widget.getWidget(Widget.Type.VF).getName()); + + validateWidgetIds(matchedVFBaseWidgetElements, Widget.getWidget(Widget.Type.VF).getName(), + Widget.getWidget(Widget.Type.VF).getWidgetId()); + + ModelElements baseResourceWidgetModelElements = + matchedVFBaseWidgetElements.get(0).getModelElements(); + if (resourceTosca.getTopology_template() != null) { + Map groupIdTypeStore = getGroupsTypeStore(resourceTosca); + + if (baseResourceWidgetModelElements.getModelElement().size() != + groupIdTypeStore.size()) { + org.testng.Assert.fail("Missing VFModule in VF model.xml"); + } + + for (String key : groupIdTypeStore.keySet()) { + + List matchedResourceElements = + getModelElementbyRelationshipValue(baseResourceWidgetModelElements, key); + validateMatchedModelElementsInService(matchedResourceElements, + Widget.getWidget(Widget.Type.VFMODULE).getName()); + Model resourceAAIVFModel = getAAIModelByNameVersionId(key, outputArtifactMap); + Map vfModuleModelMetadata = + getVFModuleMetadataTosca(resourceTosca, key); + Map vfModuleMembers = getVFModuleMembersTosca(resourceTosca, key); + + validateVFModelMetadata(vfModuleModelMetadata, resourceAAIVFModel); + + + ModelVer modelVfVersion = resourceAAIVFModel.getModelVers().getModelVer().get(0); + + List matchedVFModuleBaseWidgetElements = + getModelElementbyRelationshipValue(modelVfVersion.getModelElements(), + Widget.getWidget(Widget.Type.VFMODULE).getId()); + validateMatchedModelElementsInService(matchedVFModuleBaseWidgetElements, + Widget.getWidget(Widget.Type.VFMODULE).getName()); + validateWidgetIds(matchedVFModuleBaseWidgetElements, Widget.getWidget(Widget.Type.VFMODULE) + .getName(), Widget.getWidget(Widget.Type.VFMODULE).getWidgetId()); + + ModelElements baseResourceVFModuleWidgetModelElements = + matchedVFModuleBaseWidgetElements.get(0).getModelElements(); + if (vfModuleMembers.containsKey("l3-network")) { + //Validate l3 + List matchedL3NetworkElements = + getModelElementbyRelationshipValue(baseResourceVFModuleWidgetModelElements, + Widget.getWidget(Widget.Type.L3_NET).getId()); + validateMatchedModelElementsInService(matchedL3NetworkElements, + Widget.getWidget(Widget.Type.L3_NET).getName()); + validateWidgetIds(matchedL3NetworkElements, Widget.getWidget(Widget.Type.L3_NET) + .getName(), Widget.getWidget(Widget.Type.L3_NET).getWidgetId()); + } + if (vfModuleMembers.containsKey("vserver")) { + //Validate vserver + List matchedVserverElements = + getModelElementbyRelationshipValue(baseResourceVFModuleWidgetModelElements, + Widget.getWidget(Widget.Type.VSERVER).getId()); + validateMatchedModelElementsInService(matchedVserverElements, + Widget.getWidget(Widget.Type.VSERVER).getName()); + ModelElements vserverWidgetModelElements = + matchedVserverElements.get(0).getModelElements(); + + validateWidgetIds(matchedVserverElements, Widget.getWidget(Widget.Type.VSERVER) + .getName(), Widget.getWidget(Widget.Type.VSERVER).getWidgetId()); + + + //Validate vserver->vfc + List matchedVfcElements = + getModelElementbyRelationshipValue(vserverWidgetModelElements, + Widget.getWidget(Widget.Type.VFC).getId()); + validateMatchedModelElementsInService(matchedVfcElements, + Widget.getWidget(Widget.Type.VFC).getName()); + validateWidgetIds(matchedVfcElements, Widget.getWidget(Widget.Type.VFC).getName(), + Widget.getWidget(Widget.Type.VFC).getWidgetId()); + + //Validate vserver->Image + List matchedImageElements = + getModelElementbyRelationshipValue(vserverWidgetModelElements, + Widget.getWidget(Widget.Type.IMAGE).getId()); + validateMatchedModelElementsInService(matchedImageElements, + Widget.getWidget(Widget.Type.IMAGE).getName()); + validateWidgetIds(matchedImageElements, Widget.getWidget(Widget.Type.IMAGE) + .getName(), Widget.getWidget(Widget.Type.IMAGE).getWidgetId()); + + + //Validate vserver->Flavor + List matchedFlavorElements = + getModelElementbyRelationshipValue(vserverWidgetModelElements, + Widget.getWidget(Widget.Type.FLAVOR).getId()); + validateMatchedModelElementsInService(matchedFlavorElements, + Widget.getWidget(Widget.Type.FLAVOR).getName()); + validateWidgetIds(matchedFlavorElements, Widget.getWidget(Widget.Type.FLAVOR).getName(), + Widget.getWidget(Widget.Type.FLAVOR).getWidgetId()); + + //Validate vserver->Tenant + List matchedTenantElements = + getModelElementbyRelationshipValue(vserverWidgetModelElements, + Widget.getWidget(Widget.Type.TENANT).getId()); + validateMatchedModelElementsInService(matchedTenantElements, + Widget.getWidget(Widget.Type.TENANT).getName()); + validateWidgetIds(matchedTenantElements, Widget.getWidget(Widget.Type.TENANT).getName(), + Widget.getWidget(Widget.Type.TENANT).getWidgetId()); + + //Validate vserver->l-interface + if (vfModuleMembers.containsKey("l-interface")) { + List matchedLinterfaceElements = + getModelElementbyRelationshipValue(vserverWidgetModelElements, + Widget.getWidget(Widget.Type.LINT).getId()); + validateMatchedModelElementsInService(matchedLinterfaceElements, + Widget.getWidget(Widget.Type.LINT).getName()); + validateWidgetIds(matchedLinterfaceElements, Widget.getWidget(Widget.Type.LINT).getName(), + Widget.getWidget(Widget.Type.LINT).getWidgetId()); + } + //Validate vserver->volume + if (vfModuleMembers.containsKey("volume")) { + List matchedVolumeElements = + getModelElementbyRelationshipValue(vserverWidgetModelElements, + Widget.getWidget(Widget.Type.VOLUME).getId()); + validateMatchedModelElementsInService(matchedVolumeElements, + Widget.getWidget(Widget.Type.VOLUME).getName()); + validateWidgetIds(matchedVolumeElements, Widget.getWidget(Widget.Type.VOLUME).getName(), + Widget.getWidget(Widget.Type.VOLUME).getWidgetId()); + } + } + } + } + } else { + System.out.println(RESOURCE_MAPPING_NOT_FOUND + resourceNameVersionId); + } + } + } + + public static void testAllottedResourceTosca(Map outputArtifactMap , ToscaTemplate + resourceTosca) { + + if (resourceTosca != null) { + Resource resource = new Resource(); + resource.populateModelIdentificationInformation(resourceTosca.getMetadata()); + String resourceNameVersionId = resource.getModelNameVersionId(); + Model resourceAAIModel = + getAAIModelByNameVersionId(resourceNameVersionId, outputArtifactMap); + if (resourceAAIModel != null) { + validateResourceModelMetadata(resource, resourceAAIModel); + //Validate Resource instance base widget + + ModelVer modelVersion = resourceAAIModel.getModelVers().getModelVer().get(0); + + List matchedVFBaseWidgetElements = + getModelElementbyRelationshipValue(modelVersion.getModelElements(), + Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getId()); + validateMatchedModelElementsInService(matchedVFBaseWidgetElements, + Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getName()); + + validateWidgetIds(matchedVFBaseWidgetElements, Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getName(), + Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getWidgetId()); + + validateWidgetIds(matchedVFBaseWidgetElements, Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getName(), + Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getWidgetId()); + + Map providingServiceDetails = getProvidingServiceDetails(resourceTosca); + + ModelElements containedModelElements = modelVersion.getModelElements().getModelElement(). + get(0).getModelElements(); + + org.testng.Assert.assertEquals(containedModelElements.getModelElement().get(0).getRelationshipList() + .getRelationship().get(0).getRelationshipData().get(0).getRelationshipValue(), + providingServiceDetails.get("providing_service_uuid")); + + org.testng.Assert.assertEquals(containedModelElements.getModelElement().get(0).getRelationshipList() + .getRelationship().get(0).getRelationshipData().get(1).getRelationshipValue(), + providingServiceDetails.get("providing_service_invariant_uuid")); + + + if("Allotted Resource".equals(resourceTosca.getMetadata().get(CATEGORY)) && + "Tunnel XConnect".equals(resourceTosca.getMetadata().get("subcategory"))) { + + List matchedTunnelXConnectWidgetElements = + getModelElementbyRelationshipValue(containedModelElements, + Widget.getWidget(Widget.Type.TUNNEL_XCONNECT).getId()); + validateMatchedModelElementsInService(matchedTunnelXConnectWidgetElements, + Widget.getWidget(Widget.Type.TUNNEL_XCONNECT).getName()); + + validateWidgetIds(matchedTunnelXConnectWidgetElements, Widget.getWidget(Widget.Type.TUNNEL_XCONNECT).getName(), + Widget.getWidget(Widget.Type.TUNNEL_XCONNECT).getWidgetId()); + } + + }else { + System.out.println(RESOURCE_MAPPING_NOT_FOUND + resourceNameVersionId); + } + } + } + + public static Map getProvidingServiceDetails(ToscaTemplate resourceTemplate) { + Set keys = resourceTemplate.getTopology_template().getNode_templates().keySet(); + + Map nodeProperties =null; + for(String key : keys) { + NodeTemplate node = resourceTemplate.getTopology_template().getNode_templates().get(key); + if(node.getType().contains("org.openecomp.resource.vfc") && + node.getMetadata().get(CATEGORY).equals("Allotted Resource")) { + nodeProperties = node.getProperties(); + } + } + + return nodeProperties; + } + + public static void testL3NetworkResourceTosca(Map outputArtifactMap , ToscaTemplate + resourceTosca) { + + if (resourceTosca != null) { + Resource resource = new Resource(); + resource.populateModelIdentificationInformation(resourceTosca.getMetadata()); + String resourceNameVersionId = resource.getModelNameVersionId(); + Model resourceAAIModel = + getAAIModelByNameVersionId(resourceNameVersionId, outputArtifactMap); + if (resourceAAIModel != null) { + validateResourceModelMetadata(resource, resourceAAIModel); + //Validate Resource instance base widget + + ModelVer modelVersion = resourceAAIModel.getModelVers().getModelVer().get(0); + + List matchedVFBaseWidgetElements = + getModelElementbyRelationshipValue(modelVersion.getModelElements(), + Widget.getWidget(Widget.Type.L3_NET).getId()); + validateMatchedModelElementsInService(matchedVFBaseWidgetElements, + Widget.getWidget(Widget.Type.L3_NET).getName()); + + validateWidgetIds(matchedVFBaseWidgetElements, Widget.getWidget(Widget.Type.L3_NET).getName(), + Widget.getWidget(Widget.Type.L3_NET).getWidgetId()); + + }else { + System.out.println(RESOURCE_MAPPING_NOT_FOUND + resourceNameVersionId); + } + } + } + + public static void testServiceTosca(Map outputArtifactMap,List + toscas) { + + ToscaTemplate serviceTosca = getServiceTosca(toscas); + if (serviceTosca == null) { + org.testng.Assert.fail("Service Tosca not found"); + } + serviceTosca.getMetadata().put("version", SampleJUnitTest.additionalParams.get( + AdditionalParams + .ServiceVersion.getName())); + Service service = new Service(); + service.populateModelIdentificationInformation(serviceTosca.getMetadata()); + String serviceNameVersionId = service.getModelNameVersionId(); + Model serviceAAIModel = getAAIModelByNameVersionId(serviceNameVersionId, outputArtifactMap); + validateServiceModelMetadata(service, serviceAAIModel); + //Validate Service instance base widget + ModelVer modelVersion = serviceAAIModel.getModelVers().getModelVer().get(0); + + List matchedServiceBaseWidgetElements = + getModelElementbyRelationshipValue( modelVersion.getModelElements(), + Widget.getWidget(Widget.Type.SERVICE).getId()); + validateMatchedModelElementsInService(matchedServiceBaseWidgetElements, + Widget.getWidget(Widget.Type.SERVICE).getName()); + + validateWidgetIds(matchedServiceBaseWidgetElements, Widget.getWidget(Widget.Type.SERVICE).getName(), + Widget.getWidget(Widget.Type.SERVICE).getWidgetId()); + + ModelElements baseServiceWidgetModelElements = + matchedServiceBaseWidgetElements.get(0).getModelElements(); + + + Map nodeTemplateIdTypeStore = getNodeTemplateTypeStore(serviceTosca); + if (nodeTemplateIdTypeStore != null) { + for (Map.Entry entry : nodeTemplateIdTypeStore.entrySet()) { + if (entry.getValue().contains("org.openecomp.resource.vf")) { + List matchedResourceElements = + getModelElementbyRelationshipValue(baseServiceWidgetModelElements, entry.getKey()); + if (entry.getValue().contains("org.openecomp.resource.vf.allottedResource")){ + validateMatchedModelElementsInService(matchedResourceElements, + Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getName()); + }else { + validateMatchedModelElementsInService(matchedResourceElements, + Widget.getWidget(Widget.Type.VF).getName()); + } + + //Validate uuid and invariantuuid are populated in model-ver.model-version-id and model.model-invariant-id + org.testng.Assert.assertEquals(matchedResourceElements.get(0).getRelationshipList() + .getRelationship().get(0) + .getRelationshipData().get(0).getRelationshipValue(),entry.getKey()); + + org.testng.Assert.assertEquals(matchedResourceElements.get(0).getRelationshipList().getRelationship().get(0) + .getRelationshipData().get(1).getRelationshipValue(), nodeTemplateIdTypeStore + .get(entry.getKey()+ INV_UID)); + } else if(entry.getValue().contains("org.openecomp.resource.vl")){ + //validate l3-network in service tosca + List matchedResourceElements = + getModelElementbyRelationshipValue(baseServiceWidgetModelElements, entry.getKey()); + validateMatchedModelElementsInService(matchedResourceElements, + Widget.getWidget(Widget.Type.L3_NET).getName()); + //Validate uuid and invariantuuid are populated in model-ver.model-version-id and model.model-invariant-id + org.testng.Assert.assertEquals(matchedResourceElements.get(0).getRelationshipList() + .getRelationship().get(0) + .getRelationshipData().get(0).getRelationshipValue(),entry.getKey()); + + org.testng.Assert.assertEquals(matchedResourceElements.get(0).getRelationshipList().getRelationship().get(0) + .getRelationshipData().get(1).getRelationshipValue(), nodeTemplateIdTypeStore + .get(entry.getKey() + INV_UID)); + } + } + } + } + + private static void validateWidgetIds(List matchedServiceBaseWidgetElements, + String widgetName, String widgetInvUuId) { + org.testng.Assert.assertEquals(matchedServiceBaseWidgetElements.get(0).getRelationshipList().getRelationship().get(0) + .getRelationshipData().get(0).getRelationshipValue(), properties.getProperty( + ArtifactType.AAI.name() + + ".model-version-id."+ widgetName)); + + org.testng.Assert.assertEquals(matchedServiceBaseWidgetElements.get(0).getRelationshipList().getRelationship().get(0) + .getRelationshipData().get(1).getRelationshipValue(), widgetInvUuId); + } + + + + private static void validateMatchedModelElementsInService(List matchedModelElements, String modelType) { + if (matchedModelElements.isEmpty()) { + Assert.fail(modelType + " not present "); + } + if (matchedModelElements.size() > 1) { + Assert.fail("More than one " + modelType + " present "); + } + } + + private static Map getNodeTemplateTypeStore(ToscaTemplate toscaTemplate) { + if (toscaTemplate.getTopology_template() != null) { + Map nodeTemplateMap = + toscaTemplate.getTopology_template().getNode_templates(); + Map nodeTemplateIdTypeStore = new LinkedHashMap<>(); + if (nodeTemplateMap != null) { + for (Map.Entry e : nodeTemplateMap.entrySet()) { + String uuid = e.getValue().getMetadata().get("resourceUUID"); + if (GeneratorUtil.isEmpty(uuid)) { + uuid = e.getValue().getMetadata().get("UUID"); + if (GeneratorUtil.isEmpty(uuid)) { + Assert.fail("UUID Not found"); + } + } + if(e.getValue().getType().contains("org.openecomp.resource.vf.")&& (e.getValue() + .getMetadata().get(CATEGORY).equals("Allotted Resource"))) + { + e.getValue().setType("org.openecomp.resource.vf.allottedResource"); + } + nodeTemplateIdTypeStore.put(uuid, e.getValue().getType()); + resourcesVersion.put(uuid,e.getValue().getMetadata().get + ("version")); + //Populate invraintUuId for V9 + String invUuId = e.getValue().getMetadata().get("invariantUUID"); + nodeTemplateIdTypeStore.put(uuid + INV_UID , invUuId); + } + } + return nodeTemplateIdTypeStore; + } else { + return null; + } + } + + + private static Map getGroupsTypeStore(ToscaTemplate toscaTemplate) { + if(toscaTemplate.getTopology_template() !=null) { + Map groupDefinitionMap = toscaTemplate.getTopology_template().getGroups(); + Map groupDefinitionIdTypeStore = new LinkedHashMap<>(); + if (groupDefinitionMap != null) { + for (Map.Entry e : groupDefinitionMap.entrySet()) { + if (e.getValue().getType().contains(VF_MODULE_NAMESPACE)) { + String uuid = e.getValue().getMetadata().get("vfModuleModelUUID"); + if (GeneratorUtil.isEmpty(uuid)) { + uuid = e.getValue().getMetadata().get("UUID"); + if (GeneratorUtil.isEmpty(uuid)) + Assert.fail("UUID Not found"); + } + groupDefinitionIdTypeStore.put(uuid, e.getValue().getType()); + } + } + } + return groupDefinitionIdTypeStore; + } + else { + return null; + } + } + + private static void validateServiceModelMetadata(Service serviceToscaModel, Model generatedAAIModel) { + Assert.assertEquals(serviceToscaModel.getModelNameVersionId(), generatedAAIModel + .getModelVers().getModelVer().get(0).getModelVersionId()); + Assert.assertEquals(serviceToscaModel.getModelId(), generatedAAIModel.getModelInvariantId()); + Assert.assertEquals(serviceToscaModel.getModelName(), generatedAAIModel.getModelVers() + .getModelVer().get(0).getModelName()); + Assert.assertEquals(serviceToscaModel.getModelVersion(), generatedAAIModel.getModelVers() + .getModelVer().get(0).getModelVersion()); + Assert.assertEquals(serviceToscaModel.getModelDescription(), generatedAAIModel.getModelVers() + .getModelVer().get(0).getModelDescription()); + } + + private static void validateResourceModelMetadata(Resource resouerceToscaModel, Model generatedAAIModel) { + Assert.assertEquals(resouerceToscaModel.getModelNameVersionId(), generatedAAIModel + .getModelVers().getModelVer().get(0).getModelVersionId()); + Assert.assertEquals(resouerceToscaModel.getModelId(), generatedAAIModel.getModelInvariantId()); + Assert.assertEquals(resouerceToscaModel.getModelName(), generatedAAIModel.getModelVers() + .getModelVer().get(0).getModelName()); + Assert.assertEquals(resouerceToscaModel.getModelVersion(), generatedAAIModel.getModelVers() + .getModelVer().get(0).getModelVersion()); + Assert.assertEquals(resouerceToscaModel.getModelDescription(), generatedAAIModel.getModelVers() + .getModelVer().get(0).getModelDescription()); + } + + private static void validateVFModelMetadata(Map vfModuleModelMetadata, Model generatedAAIModel) { + Assert.assertEquals(vfModuleModelMetadata.get("vfModuleModelUUID"), generatedAAIModel + .getModelVers().getModelVer().get(0).getModelVersionId()); + Assert.assertEquals(vfModuleModelMetadata.get("vfModuleModelInvariantUUID"), generatedAAIModel.getModelInvariantId()); + Assert.assertEquals(vfModuleModelMetadata.get("vfModuleModelName"), generatedAAIModel.getModelVers() + .getModelVer().get(0).getModelName()); + Assert.assertEquals(vfModuleModelMetadata.get("vfModuleModelVersion"), generatedAAIModel.getModelVers() + .getModelVer().get(0).getModelVersion()); + Assert.assertEquals(vfModuleModelMetadata.get(VF_MODULE_DESCRIPTION), generatedAAIModel.getModelVers() + .getModelVer().get(0).getModelDescription()); + + } + + private static Model getAAIModelByNameVersionId(String nameVersionId, + Map outputArtifactMap) { + return outputArtifactMap.get(nameVersionId); + } + + private static List getModelElementbyRelationshipValue(ModelElements modelElements, + String relationshipValue) { + List matchedModelElements = new ArrayList<>(); + if (modelElements != null) { + List modelElementList = modelElements.getModelElement(); + for (ModelElement element : modelElementList) { + List relationshipList = element.getRelationshipList().getRelationship(); + for (Relationship r : relationshipList) { + List relationshipDataList = r.getRelationshipData(); + for (RelationshipData relationshipData : relationshipDataList) { + if (relationshipData.getRelationshipValue().equals(relationshipValue)) + matchedModelElements.add(element); + } + } + } + } + return matchedModelElements; + } + + public static void populateAAIGeneratedModelStore(Map outputArtifactMap,List resultData) throws JAXBException { + for (Artifact outputArtifact : resultData) { + if (outputArtifact.getType().equals(ArtifactType.MODEL_INVENTORY_PROFILE.name())) { + byte[] decodedPayload = GeneratorUtil.decoder(outputArtifact.getPayload()); + Model aaiModel = getUnmarshalledArtifactModel(new String(decodedPayload)); + outputArtifactMap.put(aaiModel.getModelVers().getModelVer().get(0).getModelVersionId(), aaiModel); + } + } + } + + private static Model getUnmarshalledArtifactModel(String aaiModel) throws JAXBException { + JAXBContext jaxbContext; + + jaxbContext = JAXBContext.newInstance(Model.class); + Unmarshaller unmarshaller = jaxbContext.createUnmarshaller(); + + try (InputStream aaiModelStream = new ByteArrayInputStream(aaiModel.getBytes())) { + return (Model) unmarshaller.unmarshal(aaiModelStream); + } catch (IOException ignored) { /* ignore */ } + throw new RuntimeException("could not resolve artifact model"); + } + + /** + * Identify the service tosca artifact from the list of translated tosca inputs + * + * @param input List of translated {@link ToscaTemplate tosca} object models + * @return Identified service {@link ToscaTemplate tosca} + */ + private static ToscaTemplate getServiceTosca(List input) { + Iterator iter = input.iterator(); + while (iter.hasNext()) { + ToscaTemplate tosca = iter.next(); + if (tosca.isService()) { + iter.remove(); + return tosca; + } + } + return null; + } + + + private static Map getVFModuleMetadataTosca(ToscaTemplate toscaTemplate, String vfModuleModelUUID) { + Map groupDefinitionMap = toscaTemplate.getTopology_template().getGroups(); + Map vfModuleModelMetadata = new LinkedHashMap<>(); + for (Map.Entry e : groupDefinitionMap.entrySet()) { + if (e.getValue().getType().contains(VF_MODULE_NAMESPACE)) { + String uuid = e.getValue().getMetadata().get("vfModuleModelUUID"); + if (uuid == vfModuleModelUUID) { + vfModuleModelMetadata = e.getValue().getMetadata(); + vfModuleModelMetadata.put(VF_MODULE_DESCRIPTION, (String) e.getValue().getProperties().get(VF_MODULE_DESCRIPTION)); + } + } + } + return vfModuleModelMetadata; + } + + private static Map getVFModuleMembersTosca(ToscaTemplate toscaTemplate, String vfModuleModelUUID) { + Map groupDefinitionMap = toscaTemplate.getTopology_template().getGroups(); + Map nodeTemplateMaps = toscaTemplate.getTopology_template().getNode_templates(); + Map vfModuleMembers = new LinkedHashMap<>(); + List vfModuleModelMetadata; + for (Map.Entry e : groupDefinitionMap.entrySet()) { + if (e.getValue().getType().contains(VF_MODULE_NAMESPACE)) { + String uuid = e.getValue().getMetadata().get("vfModuleModelUUID"); + if (uuid == vfModuleModelUUID) { + vfModuleModelMetadata = e.getValue().getMembers(); + Iterator itr = vfModuleModelMetadata.iterator(); + while (itr.hasNext()) { + Object obj= itr.next(); + NodeTemplate nodeTemplate = nodeTemplateMaps.get(obj); + String nodetype = null; + if (nodeTemplate != null) + nodetype = nodeTemplate.getType(); + if (nodetype != null) { + String widgetType = membersType(nodetype); + if (widgetType != null) + vfModuleMembers.put(widgetType, obj); + } + } + + } + } + } + + return vfModuleMembers; + } + + + private static String membersType(String toscaType) { + String modelToBeReturned = null; + while (toscaType != null && toscaType.lastIndexOf('.') != -1 && modelToBeReturned == null) { + + switch (toscaType) { + + case "org.openecomp.resource.vfc": + modelToBeReturned = "vserver"; + break; + case "org.openecomp.resource.cp": + case "org.openecomp.cp": + modelToBeReturned = "l-interface"; + break; + case "org.openecomp.resource.vl": + modelToBeReturned = "l3-network"; + break; + case "org.openecomp.resource.vf": + modelToBeReturned = "generic-vnf"; + break; + case VF_MODULE_NAMESPACE: + modelToBeReturned = "vf-module"; + break; + case "org.openecomp.resource.vfc.nodes.heat.cinder": + modelToBeReturned = "volume"; + break; + default: + modelToBeReturned = null; + break; + } + + toscaType = toscaType.substring(0, toscaType.lastIndexOf(".")); + } + return modelToBeReturned; + } +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/java/org/onap/sdc/generator/SampleJUnitTest.java b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/java/org/onap/sdc/generator/SampleJUnitTest.java new file mode 100644 index 0000000000..9c4def4808 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/java/org/onap/sdc/generator/SampleJUnitTest.java @@ -0,0 +1,1607 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.generator; + +import org.onap.sdc.generator.data.AdditionalParams; +import org.onap.sdc.generator.data.Artifact; +import org.onap.sdc.generator.data.ArtifactType; +import org.onap.sdc.generator.data.GenerationData; +import org.onap.sdc.generator.data.GeneratorConstants; +import org.onap.sdc.generator.data.GeneratorUtil; +import org.onap.sdc.generator.data.GroupType; +import org.onap.sdc.generator.impl.ArtifactGenerationServiceImpl; +import org.onap.sdc.generator.aai.model.Widget; +import org.onap.sdc.generator.aai.tosca.ToscaTemplate; +import org.onap.sdc.generator.aai.xml.Model; +import org.onap.sdc.generator.data.*; + +import junit.framework.TestCase; +import org.junit.Assert; +import org.junit.Test; + +import java.io.*; +import java.util.*; + +import static org.onap.sdc.generator.ArtifactGenerationServiceTest.*; + +public class SampleJUnitTest extends TestCase { + + private static final String AAI_ARTIFACT_TYPE = ArtifactType.AAI.name(); + private static final String AAI_ARTIFACT_GROUP_TYPE = GroupType.DEPLOYMENT.name(); + private static final String GENERATOR_CONFIG = "{\"artifactTypes\": [\"OTHER\",\"AAI\"]}"; + private static final String ARTIFACT_GENERATOR_CONFIG = "artifactgenerator.config"; + private static final String CONFIG_PATH = "/qa-test-repo/jmeter3/apache-jmeter-3" + + ".0/lib/junit/"; + private static final String GENERATOR_AAI_CONFIGLPROP_NOT_FOUND = + "Cannot generate artifacts. Widget configuration not found for %s"; + private static final String GENERATOR_AAI_CONFIGFILE_NOT_FOUND = + "Cannot generate artifacts. Artifact Generator Configuration file not found at %s"; + private static final String GENERATOR_AAI_CONFIGLOCATION_NOT_FOUND = + "Cannot generate artifacts. artifactgenerator.config system property not configured"; + private static final String INVALID_VALUE_INVARIANT = + "Invalid value for mandatory attribute in Artifact"; + private static final String INVALID_VALUE_UUID = + "Invalid value for mandatory attribute in Artifact:"; + static final Map additionalParams = new HashMap<>(); + public static final String ARTIFACT_GENERATOR_PROPERTIES = "Artifact-Generator.properties"; + public static final String VF_VMME_TEMPLATE_NO_SYSTEM_PROP_CONFIGURED_YML = "vf_vmme_template_NoSystemPropConfigured.yml"; + public static final String SERVICE_VMME_TEMPLATE_NO_SYSTEM_PROP_CONFIGURED_YML = "service_vmme_template_NoSystemPropConfigured.yml"; + + static{ + additionalParams.put(AdditionalParams.ServiceVersion.getName(),"1.0"); + } + + public SampleJUnitTest(String name) throws IOException { + super(name); + System.setProperty(ARTIFACT_GENERATOR_CONFIG,CONFIG_PATH + ARTIFACT_GENERATOR_PROPERTIES); + loadConfig(ArtifactGenerationServiceTest.properties); + } + + private void loadConfig(Properties properties) throws IOException { + String configLocation = System.getProperty(ARTIFACT_GENERATOR_CONFIG); + if (configLocation != null) { + File file = new File(configLocation); + if (file.exists()) { + + try (InputStream fis = new FileInputStream(file)) { + properties.load(fis); + } + } + } + } + + public SampleJUnitTest() { + super(); + System.setProperty(ARTIFACT_GENERATOR_CONFIG,CONFIG_PATH + ARTIFACT_GENERATOR_PROPERTIES); + } + + @Test + public void testArtifactGenerationSingleVFSingleVFModule() { + try { + List inputArtifacts = new ArrayList(); + readPayloadFromResource(inputArtifacts, "vf_vmme_template_SingleVFVFMod.yml"); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_SingleVFVFMod.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap, resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap, toscas); + + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(5, data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationMissingVFInServiceTOSCA() { + try { + List inputArtifacts = new ArrayList(); + readPayloadFromResource(inputArtifacts, "service_vmme_template_MissingVFInServiceTOSCA.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap, resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap, toscas); + + Assert.assertEquals(3, data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationVerifySameStaticWidgetsForAllServices() { + try { + List inputArtifacts = new ArrayList(); + readPayloadFromResource(inputArtifacts, "vf_vmme_template_SameWidgets1.yml"); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_SameWidget1.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap, resultData); + + removeMockArtifact(data.getResultData().iterator()); + + + List inputArtifacts2 = new ArrayList(); + readPayloadFromResource(inputArtifacts2, "vf_vmme_template_SameWidgets2.yml"); + + readPayloadFromResource(inputArtifacts2, "service_vmme_template_SameWidget2.yml"); + ArtifactGenerationServiceImpl obj2 = new ArtifactGenerationServiceImpl(); + + GenerationData data2 = obj2.generateArtifact(inputArtifacts2, GENERATOR_CONFIG,additionalParams); + List resultData2 = data2.getResultData(); + + List toscas2 = new LinkedList(); + + for (Artifact inputArtifact : inputArtifacts2) { + toscas2.add(getToscaModel(inputArtifact)); + } + + Map outputArtifactMap2 = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap2, resultData2); + removeMockArtifact(data2.getResultData().iterator()); + + Map map = new HashMap<>(); + Iterator itr = data.getResultData().iterator(); + while(itr.hasNext()){ + Artifact artifact=itr.next(); + if(artifact.getLabel().contains("AAI-widget")){ + map.put(artifact.getName(),artifact.getChecksum()); + } + } + Map map2 = new HashMap<>(); + Iterator itr2 = data2.getResultData().iterator(); + while(itr2.hasNext()){ + Artifact artifact=itr2.next(); + if(artifact.getLabel().contains("AAI-widget")){ + map2.put(artifact.getName(),artifact.getChecksum()); + } + } + Assert.assertEquals(map.size(),map2.size()); + for(Map.Entry entry : map.entrySet()){ + Assert.assertEquals(entry.getValue(), map2.get(entry.getKey())); + } + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationMulVFModule() { + try { + List inputArtifacts = new ArrayList(); + readPayloadFromResource(inputArtifacts, "vf_vmme_template_MulVFVFMod.yml"); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_MulVFVFMod.yml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(3,data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationMulVFs() { + try { + List inputArtifacts = new ArrayList(); + + readPayloadFromResource(inputArtifacts, "CMAUI_VF.yaml"); + + readPayloadFromResource(inputArtifacts, "ECA_OAM_VF.yaml"); + + readPayloadFromResource(inputArtifacts, "MMSC_Sevice_07_25_16.yaml"); + + readPayloadFromResource(inputArtifacts, "MMSC_VF.yaml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(8,data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationDupVFUUID() { + try { + List inputArtifacts = new ArrayList(); + readPayloadFromResource(inputArtifacts, "vf_vmme_template_DupVFUUID.yml"); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_DupVFUUID.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(5,data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationDupVFModUUID() { + try { + List inputArtifacts = new ArrayList(); + readPayloadFromResource(inputArtifacts, "vf_vmme_template_DupVFModUUID.yml"); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_DupVFModUUID.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(5,data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationVerifyVFModWithoutVNFC() { + try { + List inputArtifacts = new ArrayList(); + readPayloadFromResource(inputArtifacts, "vf_vmme_template_VerifyVFModWithoutVNFC.yml"); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_VerifyVFModWithoutVNFC.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(5,data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationVerifyVFModWithInvalidMember() { + try { + List inputArtifacts = new ArrayList(); + readPayloadFromResource(inputArtifacts, "vf_vmme_template_VerifyVFModWithInvalidNo.yml"); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_VerifyVFModWithInvalidNo.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(5,data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationNullFields() { + try { + List inputArtifacts = new ArrayList(); + readPayloadFromResource(inputArtifacts, "vf_vmme_template_NullFields.yml"); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_NullFields.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + Assert.assertEquals(false,data.getErrorData().isEmpty()); + + Assert.assertEquals("Invalid Service/Resource definition mandatory attribute missing in Artifact: <"+inputArtifacts.get(0).getName()+">",data.getErrorData().get("AAI").get(0)); + + Assert.assertEquals(2,data.getResultData().size()); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationInCorrectYmlFormat() { + try { + List inputArtifacts = new ArrayList(); + + readPayloadFromResource(inputArtifacts, "CMAUI_VFInvalidFormat.yaml"); + + readPayloadFromResource(inputArtifacts, "ECA_OAM_VFInvalidFormat.yaml"); + + readPayloadFromResource(inputArtifacts, "MMSC_Sevice_07_25_16InvalidFormat.yaml"); + + readPayloadFromResource(inputArtifacts, "MMSC_VFInvalidFormat.yaml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + Assert.assertEquals(false,data.getErrorData().isEmpty()); + + Assert.assertEquals("Invalid format for Tosca YML : "+inputArtifacts.get(1).getName(),data.getErrorData().get("AAI").get(0)); + + Assert.assertEquals(2,data.getResultData().size()); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationMulComp() { + try { + List inputArtifacts = new ArrayList(); + readPayloadFromResource(inputArtifacts, "vf_vmme_template_MulComp.yml"); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_MulComp.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(5,data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationOrphan() { + try { + List inputArtifacts = new ArrayList(); + + readPayloadFromResource(inputArtifacts, "vf_vmme_template_Orphan.yml"); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_Orphan.yml"); + + readPayloadFromResource(inputArtifacts, "ECA_OAM_VFOrphan.yaml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(5,data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationMissingVFTemplate() { + try { + List inputArtifacts = new ArrayList(); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_MissingVFTemplate.yml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); + + + Assert.assertEquals(3,data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationMissingVFModule() { + try { + List inputArtifacts = new ArrayList(); + + readPayloadFromResource(inputArtifacts, "CMAUI_VFMissingVFModule.yaml"); + + readPayloadFromResource(inputArtifacts, "ECA_OAM_VFMissingVFModule.yaml"); + + readPayloadFromResource(inputArtifacts, "MMSC_Sevice_07_25_16MissingVFModule.yaml"); + + readPayloadFromResource(inputArtifacts, "MMSC_VFMissingVFModule.yaml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(8,data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationEmptyArtifact() { + try { + List inputArtifacts = new ArrayList(); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + Assert.assertEquals(false,data.getErrorData().isEmpty()); + Assert.assertEquals("Service tosca missing from list of input artifacts",data.getErrorData().get("AAI").get(0)); + + Assert.assertEquals(2,data.getResultData().size()); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationMissingConfigFile() { + try { + List inputArtifacts = new ArrayList(); + + readPayloadFromResource(inputArtifacts, "vf_vmme_template_SingleVFVFMod.yml"); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_SingleVFVFMod.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + + GenerationData data = obj.generateArtifact(inputArtifacts, "",additionalParams); + Assert.assertEquals(false,data.getErrorData().isEmpty()); + Assert.assertEquals("Invalid Client Configuration",data.getErrorData().get("ARTIFACT_GENERATOR_INVOCATION_ERROR").get(0)); + + Assert.assertEquals(0,data.getResultData().size()); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + + @Test + public void testArtifactGenerationWithNodeTemplates() { + try { + List inputArtifacts = new ArrayList(); + + readPayloadFromResource(inputArtifacts, "ServiceWithNodetemplate.yml"); + + readPayloadFromResource(inputArtifacts, "Resource0-template.yml"); + + readPayloadFromResource(inputArtifacts, "Resource1-template.yml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(5,data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationWithoutNodeTemplates() { + try { + List inputArtifacts = new ArrayList(); + + readPayloadFromResource(inputArtifacts, "Service0-template.yml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); + + + Assert.assertEquals(3,data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationWithArtifactNameAndDescMoreThan256() { + try { + List inputArtifacts = new ArrayList(); + + readPayloadFromResource(inputArtifacts, "Service0-templateMoreThan256.yml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); + + + Assert.assertEquals(3,data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + for(Artifact artifact : data.getResultData()){ + checkArtifactName(artifact.getName()); + checkArtifactLabel(artifact.getLabel()); + checkArtifactDescription(artifact.getDescription()); + + } + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationWithDifferentVersionOfSameVF() { + try { + List inputArtifacts = new ArrayList(); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_DiffVerOfSameVF.yml"); + + readPayloadFromResource(inputArtifacts, "vf_vmme_template_DiffVerOfSameVF_1.yml"); + + readPayloadFromResource(inputArtifacts, "vf_vmme_template_DiffVerOfSameVF_2.yml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(6,data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationWithDifferentVersionOfSameVFModWithSameInvId() { + try { + List inputArtifacts = new ArrayList(); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_DiffVerOfSameVFModWithSameInvId.yml"); + + readPayloadFromResource(inputArtifacts, "vf_vmme_template_DiffVerOfSameVFModWithSameInvId.yml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(6,data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationWithServiceContainingL3Network() { + try { + List inputArtifacts = new ArrayList(); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_WithL3Network.yml"); + + readPayloadFromResource(inputArtifacts, "vf_vmme_template_WithL3Network.yml"); + + readPayloadFromResource(inputArtifacts, "resource-AllottedResource-template_WithL3Network.yml"); + + readPayloadFromResource(inputArtifacts, "resource-Extvl-template_WithL3Network.yml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(7,data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationWithServiceContainingDupL3Network() { + try { + List inputArtifacts = new ArrayList(); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_WithDupL3Network.yml"); + + readPayloadFromResource(inputArtifacts, "vf_vmme_template_WithDupL3Network.yml"); + + readPayloadFromResource(inputArtifacts, "resource-AllottedResource-template_WithDupL3Network.yml"); + + readPayloadFromResource(inputArtifacts, "resource-Extvl-template_WithDupL3Network.yml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(7,data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationWithL3NetworkInVFMod() { + try { + List inputArtifacts = new ArrayList(); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_WithL3NetworkInVFMod.yml"); + + readPayloadFromResource(inputArtifacts, "vf_vmme_template_WithL3NetworkInVFMod.yml"); + + readPayloadFromResource(inputArtifacts, "resource-AllottedResource-template_WithL3NetworkInVFMod.yml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(6,data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationWithDiffVersionOfSameL3Network() { + try { + List inputArtifacts = new ArrayList(); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_WithDiffVersionOfSameL3Network.yml"); + + readPayloadFromResource(inputArtifacts, "vf_vmme_template_WithDiffVersionOfSameL3Network.yml"); + + readPayloadFromResource(inputArtifacts, "resource-AllottedResource-template_WithDiffVersionOfSameL3Network.yml"); + + readPayloadFromResource(inputArtifacts, "resource-Extvl-template_WithDiffVersionOfSameL3Network.yml"); + + readPayloadFromResource(inputArtifacts, "resource-Extvl-template_1_WithDiffVersionOfSameL3Network.yml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(8,data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationWithInvIdGreaterThanSpecifiedLimit() { + try { + List inputArtifacts = new ArrayList(); + readPayloadFromResource(inputArtifacts, "vf_vmme_template_WithInvIdGreaterThanSpecifiedLimit.yml"); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_WithInvIdGreaterThanSpecifiedLimit.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + Assert.assertEquals(false,data.getErrorData().isEmpty()); + + Assert.assertEquals(INVALID_VALUE_INVARIANT + ": <" +inputArtifacts.get(1).getName()+">",data.getErrorData().get("AAI").get(0)); + + Assert.assertEquals(2,data.getResultData().size()); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationWithInvIdLesserThanSpecifiedLimit() { + try { + List inputArtifacts = new ArrayList(); + readPayloadFromResource(inputArtifacts, "vf_vmme_template_WithInvIdLesserThanSpecifiedLimit.yml"); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_WithInvIdLesserThanSpecifiedLimit.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + Assert.assertEquals(false,data.getErrorData().isEmpty()); + + Assert.assertEquals(INVALID_VALUE_UUID + " <" + +inputArtifacts.get(1).getName()+">",data.getErrorData().get("AAI").get(0)); + + Assert.assertEquals(2,data.getResultData().size()); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + + @Test + public void testErrorWhenNoSystemPropConfigured() { + String configLoc = System.getProperty(ARTIFACT_GENERATOR_CONFIG); + try { + List inputArtifacts = new ArrayList(); + readPayloadFromResource(inputArtifacts, VF_VMME_TEMPLATE_NO_SYSTEM_PROP_CONFIGURED_YML); + + readPayloadFromResource(inputArtifacts, SERVICE_VMME_TEMPLATE_NO_SYSTEM_PROP_CONFIGURED_YML); + + System.clearProperty(ARTIFACT_GENERATOR_CONFIG); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + Assert.assertEquals(false,data.getErrorData().isEmpty()); + Assert.assertEquals(data.getErrorData(). + get("AAI").get(0), GENERATOR_AAI_CONFIGLOCATION_NOT_FOUND); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + finally{ + System.setProperty(ARTIFACT_GENERATOR_CONFIG,configLoc); + } + } + + @Test + public void testErrorWhenNoFileAtConfigLocation() { + String configLoc = System.getProperty(ARTIFACT_GENERATOR_CONFIG); + try { + List inputArtifacts = new ArrayList(); + readPayloadFromResource(inputArtifacts, VF_VMME_TEMPLATE_NO_SYSTEM_PROP_CONFIGURED_YML); + + readPayloadFromResource(inputArtifacts, SERVICE_VMME_TEMPLATE_NO_SYSTEM_PROP_CONFIGURED_YML); + + System.setProperty(ARTIFACT_GENERATOR_CONFIG,configLoc + File.separator + "testErrorWhenNoFileAtConfigLocation"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + Assert.assertEquals(data.getErrorData().isEmpty(),false); + Assert.assertEquals(data.getErrorData().get("AAI").get(0),String.format( + GENERATOR_AAI_CONFIGFILE_NOT_FOUND,System.getProperty + (ARTIFACT_GENERATOR_CONFIG))); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + finally{ + System.setProperty(ARTIFACT_GENERATOR_CONFIG,configLoc); + } + } + + @Test + public void testErrorWhenNoWidgetInConfig() throws IOException { + System.setProperty(ARTIFACT_GENERATOR_CONFIG,CONFIG_PATH+"Artifact-Generator1.properties"); + loadConfig(ArtifactGenerationServiceTest.properties); + try { + List inputArtifacts = new ArrayList(); + readPayloadFromResource(inputArtifacts, VF_VMME_TEMPLATE_NO_SYSTEM_PROP_CONFIGURED_YML); + + readPayloadFromResource(inputArtifacts, SERVICE_VMME_TEMPLATE_NO_SYSTEM_PROP_CONFIGURED_YML); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + String assertMsg = ArtifactType.AAI.name() + ".model-version-id." + Widget.getWidget + (Widget.Type.SERVICE).getName(); + + Assert.assertEquals(false,data.getErrorData().isEmpty()); + String errMsg = String.format(GENERATOR_AAI_CONFIGLPROP_NOT_FOUND,assertMsg); + Assert.assertEquals(data.getErrorData().get("AAI").get(0),errMsg); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } finally { + System.setProperty(ARTIFACT_GENERATOR_CONFIG, CONFIG_PATH + ARTIFACT_GENERATOR_PROPERTIES); + loadConfig(ArtifactGenerationServiceTest.properties); + } + } + + @Test + public void testArtifactGenerationWithUpdatedUUIDInConfig() throws IOException { + try { + List inputArtifacts = new ArrayList(); + readPayloadFromResource(inputArtifacts, "vf_vmme_template_WithUpdatedUUIDInConfig.yml"); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_WithUpdatedUUIDInConfig.yml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + List toscas = new LinkedList(); + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap, resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap, toscas); + testResourceTosca(toscas.iterator(), outputArtifactMap); + + System.setProperty(ARTIFACT_GENERATOR_CONFIG,CONFIG_PATH+"Artifact-Generator2.properties"); + loadConfig(ArtifactGenerationServiceTest.properties); + + List toscas2 = new LinkedList(); + for (Artifact inputArtifact : inputArtifacts) { + toscas2.add(getToscaModel(inputArtifact)); + } + GenerationData data2 = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + Map outputArtifactMap2 = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap2, + data2.getResultData()); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap2, toscas2); + testResourceTosca(toscas2.iterator(), outputArtifactMap2); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } finally { + System.setProperty(ARTIFACT_GENERATOR_CONFIG,CONFIG_PATH + ARTIFACT_GENERATOR_PROPERTIES); + loadConfig(ArtifactGenerationServiceTest.properties); + } + } + + @Test + public void testArtifactGenerationVerifyMandatoryParameterServiceVersion() { + try { + List inputArtifacts = new ArrayList(); + readPayloadFromResource(inputArtifacts, "vf_vmme_template_VerifyMandatoryParameterServiceVersion.yml"); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_VerifyMandatoryParameterServiceVersion.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, new HashMap()); + + Assert.assertEquals(data.getErrorData().isEmpty(),false); + Assert.assertEquals(data.getErrorData().get("AAI").get(0), + GeneratorConstants.GENERATOR_AAI_ERROR_MISSING_SERVICE_VERSION); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationVerifyServiceVersionFormat() { + try { + List inputArtifacts = new ArrayList(); + readPayloadFromResource(inputArtifacts, "vf_vmme_template_VerifyServiceVersionFormat.yml"); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_VerifyServiceVersionFormat.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + + additionalParams.put(AdditionalParams.ServiceVersion.getName(),"1"); + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + Assert.assertEquals(data.getErrorData().isEmpty(),false); + Assert.assertEquals(data.getErrorData().get("AAI").get(0), + GeneratorConstants.GENERATOR_AAI_INVALID_SERVICE_VERSION); + + additionalParams.put(AdditionalParams.ServiceVersion.getName(),"0.1"); + GenerationData data2 = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, + additionalParams); + Assert.assertEquals(data2.getErrorData().isEmpty(),false); + Assert.assertEquals(data2.getErrorData().get("AAI").get(0), + GeneratorConstants.GENERATOR_AAI_INVALID_SERVICE_VERSION); + + additionalParams.put(AdditionalParams.ServiceVersion.getName(),"0.0"); + GenerationData data3 = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, + additionalParams); + Assert.assertEquals(data3.getErrorData().isEmpty(),false); + Assert.assertEquals(data3.getErrorData().get("AAI").get(0), + GeneratorConstants.GENERATOR_AAI_INVALID_SERVICE_VERSION); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } finally{ + additionalParams.put(AdditionalParams.ServiceVersion.getName(),"1.0"); + } + } + + @Test + public void testArtifactGenerationVerifyServiceVersion() { + try { + List inputArtifacts = new ArrayList(); + readPayloadFromResource(inputArtifacts, "vf_vmme_template_VerifyServiceVersion.yml"); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_VerifyServiceVersion.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + additionalParams.put(AdditionalParams.ServiceVersion.getName(),"9.0"); + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap, resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap, toscas); + + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(5, data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } finally{ + additionalParams.put(AdditionalParams.ServiceVersion.getName(),"1.0"); + } + } + + + @Test + public void testArtifactGenerationVerifyResourceVersionFormat() { + try { + List inputArtifacts = new ArrayList(); + readPayloadFromResource(inputArtifacts, "vf_vmme_template_VerifyResourceVersionFormat.yml"); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_VerifyResourceVersionFormat1.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + + List toscas = new LinkedList(); + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + Assert.assertEquals(data.getErrorData().isEmpty(),false); + Assert.assertEquals(data.getErrorData().get("AAI").get(0), + String.format( + GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_RESOURCE_VERSION_IN_SERVICE_TOSCA, + toscas.get(0).getMetadata().get("UUID"))); + + inputArtifacts.remove(1); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_VerifyResourceVersionFormat2.yml"); + GenerationData data2 = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, + additionalParams); + Assert.assertEquals(data2.getErrorData().isEmpty(),false); + Assert.assertEquals(data2.getErrorData().get("AAI").get(0), + String.format( + GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_RESOURCE_VERSION_IN_SERVICE_TOSCA, + toscas.get(0).getMetadata().get("UUID"))); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationVerifyMandatoryParameterResourceVersion() { + try { + List inputArtifacts = new ArrayList(); + readPayloadFromResource(inputArtifacts, "vf_vmme_template_VerifyMandatoryParameterResourceVersion.yml"); + + readPayloadFromResource(inputArtifacts, "service_vmme_template_VerifyMandatoryParameterResourceVersion.yml"); + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + Assert.assertEquals(data.getErrorData().isEmpty(),false); + Assert.assertEquals(data.getErrorData().get("AAI").get(0),String.format( + GeneratorConstants.GENERATOR_AAI_ERROR_NULL_RESOURCE_VERSION_IN_SERVICE_TOSCA,toscas.get(0).getMetadata().get("UUID"))); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationWithoutAllottedResource() { + try { + List inputArtifacts = new ArrayList(); + + readPayloadFromResource(inputArtifacts, "service-ServiceWithAllottedResourceIpmux-template.yml"); + + readPayloadFromResource(inputArtifacts, "resource-AllottedResource-template_IpMux.yml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + Assert.assertEquals(data.getErrorData().isEmpty(),false); + Assert.assertEquals(data.getErrorData().get("AAI").get(0),String.format + (GeneratorConstants.GENERATOR_AAI_PROVIDING_SERVICE_MISSING, toscas.get(1).getModelId())); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationAllottedResourceIpmuxWithGroups() { + try { + List inputArtifacts = new ArrayList(); + + readPayloadFromResource(inputArtifacts, "service-ServiceWithAllottedResourceIpmux-template_WithGroups.yml"); + + readPayloadFromResource(inputArtifacts, "resource-AllottedResource-template_IpMux_WithGroups.yml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap, resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap, toscas); + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(5, data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationAllottedResourceIpmuxSameInvariantDiffVersion() { + try { + List inputArtifacts = new ArrayList(); + + readPayloadFromResource(inputArtifacts, "service-ServiceWithAllottedResourcesIpMuxSameInvariant-template.yml"); + + readPayloadFromResource(inputArtifacts, "resource-AllottedResource1SameInvariant-IpMux-template.yml"); + + readPayloadFromResource(inputArtifacts, "resource-AllottedResource2SameInvariant-IpMux-template.yml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap, resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap, toscas); + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(5, data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationAllottedResourceIpmuxSameInvariantSameVersion() { + try { + List inputArtifacts = new ArrayList(); + + readPayloadFromResource(inputArtifacts, "service-ServiceWithAllottedResourcesIpMuxSameInvariantSameVers-template.yml"); + + readPayloadFromResource(inputArtifacts, "resource-AllottedResourceSameInvariantSameVers-IpMux-template.yml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap, resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap, toscas); + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(4, data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationAllottedResourceWithIpMuxAndTunnelXConn() { + try { + List inputArtifacts = new ArrayList(); + + readPayloadFromResource(inputArtifacts, "service-Allottedipmux-template.yml"); + + readPayloadFromResource(inputArtifacts, "resource-IpMuxDemux-template.yml"); + + readPayloadFromResource(inputArtifacts, "resource-TunnelXconn-template.yml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap, resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap, toscas); + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(5, data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationAllottedResourceWithOutProvidingServiceId() { + try { + List inputArtifacts = new ArrayList(); + + readPayloadFromResource(inputArtifacts, "service-SdWan-template_WithOutDepSerId.yml"); + + readPayloadFromResource(inputArtifacts, "resource-VhnfNonHeat-template_WithOutDepSerId.yml"); + + readPayloadFromResource(inputArtifacts, "resource-TunnelXconn-template_WithOutDepSerId.yml"); + + readPayloadFromResource(inputArtifacts, "resource-ServiceAdmin-template_WithOutDepSerId.yml"); + + readPayloadFromResource(inputArtifacts, "resource-IpMuxDemux-template_WithOutDepSerId.yml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + Assert.assertEquals(data.getErrorData().isEmpty(),false); + Assert.assertEquals(data.getErrorData().get("AAI").get(0),String.format + (GeneratorConstants.GENERATOR_AAI_PROVIDING_SERVICE_METADATA_MISSING, toscas.get(2).getModelId())); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + @Test + public void testArtifactGenerationAllottedResourceWithVF() { + try { + List inputArtifacts = new ArrayList(); + + readPayloadFromResource(inputArtifacts, "service-SdWan-template_AllRes_VF.yml"); + + readPayloadFromResource(inputArtifacts, "resource-VhnfNonHeat-template_AllRes_VF.yml"); + + readPayloadFromResource(inputArtifacts, "resource-TunnelXconn-template_AllRes_VF.yml"); + + readPayloadFromResource(inputArtifacts, "resource-ServiceAdmin-template_AllRes_VF.yml"); + + readPayloadFromResource(inputArtifacts, "resource-IpMuxDemux-template_AllRes_VF.yml"); + + ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); + List toscas = new LinkedList(); + + GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); + for (Artifact inputArtifact : inputArtifacts) { + toscas.add(getToscaModel(inputArtifact)); + } + List resultData = data.getResultData(); + + Map outputArtifactMap = new HashMap<>(); + ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap, resultData); + ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap, toscas); + testResourceTosca(toscas.iterator(), outputArtifactMap); + + Assert.assertEquals(7, data.getResultData().size()); + + removeMockArtifact(data.getResultData().iterator()); + + ArtifactGenerationServiceTest.validateName(data.getResultData()); + } catch (Exception e) { + Assert.fail(e.getMessage()); + } + } + + public static void readPayload(List inputArtifacts,InputStream fis, String fileName) throws IOException { + byte[] payload = new byte[fis.available()]; + fis.read(payload); + String checksum = GeneratorUtil.checkSum(payload); + byte[] encodedPayload = GeneratorUtil.encode(payload); + Artifact artifact = new Artifact(AAI_ARTIFACT_TYPE, AAI_ARTIFACT_GROUP_TYPE, checksum, encodedPayload); + artifact.setName(fileName); + artifact.setLabel(fileName); + artifact.setDescription(fileName); + inputArtifacts.add(artifact); + } + + + /** + * Get the tosca java model from the tosca input artifact + * + * @param input Input tosca file and its metadata information as {@link Artifact} object + * @return Translated {@link ToscaTemplate tosca} object + * @throws SecurityException + */ + public static ToscaTemplate getToscaModel(Artifact input) { + byte[] decodedInput = GeneratorUtil.decoder(input.getPayload()); + String checksum = GeneratorUtil.checkSum(decodedInput); + if (checksum.equals(input.getChecksum())) { + try { + return GeneratorUtil.translateTosca(new String(decodedInput), ToscaTemplate.class); + } catch (Exception e) { + throw new IllegalArgumentException(String.format( + GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_TOSCA, input.getName())); + } + } else { + throw new SecurityException(String.format( + GeneratorConstants.GENERATOR_AAI_ERROR_CHECKSUM_MISMATCH, input.getName())); + } + } + + public static void removeMockArtifact(Iterator itr) { + while (itr.hasNext()){ + if(itr.next().getType().equals("OTHER")){ + itr.remove(); + } + } + } + + private void readPayloadFromResource(List inputArtifacts, String fileName) throws IOException { + + try (InputStream fis = SampleJUnitTest.class.getResourceAsStream("/" + fileName)) { + readPayload(inputArtifacts, fis, fileName); + } + } +} diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/CMAUI_VF.yaml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/CMAUI_VF.yaml new file mode 100644 index 0000000000..72bbca9a61 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/CMAUI_VF.yaml @@ -0,0 +1,92 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: vMMSC VF Topology Template + +metadata: + invariantUUID: dd4f3d68-1223-4a97-127c-11ab729d4da2 # generated by ASDC + UUID: 2a14db52-5116-d3af-1240-1236221cab8d # generated by ASDC + name: CMAUI VF + description: CMAUI MMSC VF + type: VF + category: Mobility + subCategory: MMSC + vendor: Nokia + vendorVersion: 5.0.2.5.37 + + + # reference to template definitions +imports: + - tosca_simple_profile_for_ecomp_1_0.yml + +topology_template: + + # This section provides the parameters which OPENECOMP is not providing values to during instantiation. + # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP + # during the orchestration + + inputes: + + node_templates: + + vCMAUI: # vMMSC VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 0a258d08-2223-4a97-127c-11ab729d2bc3 + UUID: 7214db52-1216-3aaf-1240-a236221ca404 + version: 1.0 + name: vMMC VFC + description: + type: VFC + category: Generic + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 6.0.2.14 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vCMAUI VFC + vfc_image_name: cmaui-5.0.2.5_v37.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + capabilities: + nfv_compute: + properties: + vfc_flavor: cmaui_flavor # from HEAT ENV + scaling: + properties: + min_instances: 2 + max_instances: 2 + + cmaui_oam: + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + + policies: + # Placement policy + - mmsc_anti_affinity_placement_policy: + type: org.openecomp.policy.Placement + + properties: + conatiner_type: compute + policy: anti_affinity + + target: [ vMMSC ] \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/CMAUI_VFInvalidFormat.yaml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/CMAUI_VFInvalidFormat.yaml new file mode 100644 index 0000000000..72bbca9a61 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/CMAUI_VFInvalidFormat.yaml @@ -0,0 +1,92 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: vMMSC VF Topology Template + +metadata: + invariantUUID: dd4f3d68-1223-4a97-127c-11ab729d4da2 # generated by ASDC + UUID: 2a14db52-5116-d3af-1240-1236221cab8d # generated by ASDC + name: CMAUI VF + description: CMAUI MMSC VF + type: VF + category: Mobility + subCategory: MMSC + vendor: Nokia + vendorVersion: 5.0.2.5.37 + + + # reference to template definitions +imports: + - tosca_simple_profile_for_ecomp_1_0.yml + +topology_template: + + # This section provides the parameters which OPENECOMP is not providing values to during instantiation. + # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP + # during the orchestration + + inputes: + + node_templates: + + vCMAUI: # vMMSC VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 0a258d08-2223-4a97-127c-11ab729d2bc3 + UUID: 7214db52-1216-3aaf-1240-a236221ca404 + version: 1.0 + name: vMMC VFC + description: + type: VFC + category: Generic + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 6.0.2.14 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vCMAUI VFC + vfc_image_name: cmaui-5.0.2.5_v37.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + capabilities: + nfv_compute: + properties: + vfc_flavor: cmaui_flavor # from HEAT ENV + scaling: + properties: + min_instances: 2 + max_instances: 2 + + cmaui_oam: + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + + policies: + # Placement policy + - mmsc_anti_affinity_placement_policy: + type: org.openecomp.policy.Placement + + properties: + conatiner_type: compute + policy: anti_affinity + + target: [ vMMSC ] \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/CMAUI_VFMissingVFModule.yaml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/CMAUI_VFMissingVFModule.yaml new file mode 100644 index 0000000000..72bbca9a61 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/CMAUI_VFMissingVFModule.yaml @@ -0,0 +1,92 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: vMMSC VF Topology Template + +metadata: + invariantUUID: dd4f3d68-1223-4a97-127c-11ab729d4da2 # generated by ASDC + UUID: 2a14db52-5116-d3af-1240-1236221cab8d # generated by ASDC + name: CMAUI VF + description: CMAUI MMSC VF + type: VF + category: Mobility + subCategory: MMSC + vendor: Nokia + vendorVersion: 5.0.2.5.37 + + + # reference to template definitions +imports: + - tosca_simple_profile_for_ecomp_1_0.yml + +topology_template: + + # This section provides the parameters which OPENECOMP is not providing values to during instantiation. + # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP + # during the orchestration + + inputes: + + node_templates: + + vCMAUI: # vMMSC VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 0a258d08-2223-4a97-127c-11ab729d2bc3 + UUID: 7214db52-1216-3aaf-1240-a236221ca404 + version: 1.0 + name: vMMC VFC + description: + type: VFC + category: Generic + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 6.0.2.14 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vCMAUI VFC + vfc_image_name: cmaui-5.0.2.5_v37.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + capabilities: + nfv_compute: + properties: + vfc_flavor: cmaui_flavor # from HEAT ENV + scaling: + properties: + min_instances: 2 + max_instances: 2 + + cmaui_oam: + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + + policies: + # Placement policy + - mmsc_anti_affinity_placement_policy: + type: org.openecomp.policy.Placement + + properties: + conatiner_type: compute + policy: anti_affinity + + target: [ vMMSC ] \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VF.yaml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VF.yaml new file mode 100644 index 0000000000..2cbc0e9b86 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VF.yaml @@ -0,0 +1,217 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: vECA VF Topology Template + +metadata: + invariantUUID: 3d4f3d68-d3a3-4f52-127c-ab188c9d4da2 # generated by ASDC + UUID: a2c4dc32-9c16-a3df-d2c0-e5ab221c69f0 # generated by ASDC + name: vECA VF + description: | + Performs intelligent adaptation of Multimedia Messages (MMs), and adaptation of individual media, + such as videos, audio files, images, animations, and text. Sits on the MM1 downlink path and performs + optimization offline. It intercepts the entire media and completes the optimizations before sending + the message to handsets. + type: VF + category: Mobility + subCategory: MMSC + vendor: Nokia + vendorVersion: 13 + + + # reference to template definitions +imports: + - tosca_simple_profile_for_ecomp_1_0.yml + +topology_template: + + # This section provides the parameters which OPENECOMP is not providing values to during instantiation. + # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP + # during the orchestration + + inputs: + + node_templates: + + vECA_OAM: # vECA OAM VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 12243d33-d3a3-4f42-770a-5710009d3baa + UUID: ab08dc12-0716-abcf-13c0-afd4111c69a0 + version: 1.0 + name: vECA_OAM VFC + description: ECA Management + type: VFC + category: Generic_VFC + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 13 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vECA_OAM VFC + vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + capabilities: + nfv_compute: + properties: + vfc_flavor: eca_oam_flavor # from HEAT ENV + scaling: + properties: + min_instances: 2 # set by service designer + max_instances: 2 # set by service designer + + vECA_ARB: # vECA ARB VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 0ab53d33-d3a3-4f42-770a-5710009d301a + UUID: 8808dc12-0716-abcf-23c0-afd4111c60d0 + version: 1.0 + name: vECA_ARB VFC + description: ECA Arbitrator + type: VFC + category: Generic_VFC + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 13 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vECA_ABR VFC + vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + + capabilities: + nfv_compute: + properties: + vfc_flavor: eca_arb_flavor # from HEAT ENV + scaling: + properties: + min_instances: 1 # set by service designer + max_instances: 1 # set by service designer + + # Internal VF Connection Points (VFCs connection points) + + eca_oam_oam: + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + eca_oam_internal: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + eca_arb_oam: + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + eca_arb_internal: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + groups: + + # VF Modules + + VFModuleECA_OAM_Base: + type: org.openecomp.groups.VfModule + + metadata: + vfModuleModelName: vECA::module-0 + vfModuleModelInvariantUUID: 13aba10a-f788-492f-9ea7-7ff91dd05aaa + vfModuleModelUUID: 1230ed1e-4bc7-4fc0-ba7e-cc7af6da7000 + vfModuleModelVersion: 1 + + properties: + vf_module_type: Base # set by service designer + vf_module_description: vECA Base VF Module # set by service designer + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + volume_group: false # from HEAT / service Designer + artifacts: # HEAT Templates + - 099a6909-290f-4293-a347-736f11b8ff18 + - 0db84f21-d298-4a4b-b11e-37b92a734066 + + members: + - vECA_OAM + - vECA_ARB + - eca_arb_internal + - eca_arb_oam + - eca_oam_oam + - eca_oam_internal + policies: + # Placement policy + - mmsc_anti_affinity_placement_policy: + type: org.openecomp.policy.Placement + + properties: + conatiner_type: compute + policy: anti_affinity + + target: [vECA_OAM, vECA_ARB ] \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFInvalidFormat.yaml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFInvalidFormat.yaml new file mode 100644 index 0000000000..5ef3805c30 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFInvalidFormat.yaml @@ -0,0 +1,217 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: vECA VF Topology Template + +metadata: + invariantUUID: 3d4f3d68-d3a3-4f52-127c-ab188c9d4da2 # generated by ASDC + UUID: a2c4dc32-9c16-a3df-d2c0-e5ab221c69f0 # generated by ASDC + name: vECA VF + description: | + Performs intelligent adaptation of Multimedia Messages (MMs), and adaptation of individual media, + such as videos, audio files, images, animations, and text. Sits on the MM1 downlink path and performs + optimization offline. It intercepts the entire media and completes the optimizations before sending + the message to handsets. + type: VF + category: Mobility + subCategory: MMSC + vendor: Nokia + vendorVersion: 13 + + + # reference to template definitions +imports: + - tosca_simple_profile_for_ecomp_1_0.yml + +topology_template: + + # This section provides the parameters which OPENECOMP is not providing values to during instantiation. + # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP + # during the orchestration + + inputs: + + node_templates: + + vECA_OAM: # vECA OAM VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 12243d33-d3a3-4f42-770a-5710009d3baa + UUID: ab08dc12-0716-abcf-13c0-afd4111c69a0 + version: 1.0 + name: vECA_OAM VFC + description: ECA Management + type: VFC + category: Generic_VFC + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 13 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vECA_OAM VFC + vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + capabilities: + nfv_compute: + properties: + vfc_flavor: eca_oam_flavor # from HEAT ENV + scaling: + properties: + min_instances: 2 # set by service designer + max_instances: 2 # set by service designer + + vECA_ARB: # vECA ARB VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 0ab53d33-d3a3-4f42-770a-5710009d301a + UUID: 8808dc12-0716-abcf-23c0-afd4111c60d0 + version: 1.0 + name: vECA_ARB VFC + description: ECA Arbitrator + type: VFC + category: Generic_VFC + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 13 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vECA_ABR VFC + vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + + capabilities: + nfv_compute: + properties: + vfc_flavor: eca_arb_flavor # from HEAT ENV + scaling: + properties: + min_instances: 1 # set by service designer + max_instances: 1 # set by service designer + + # Internal VF Connection Points (VFCs connection points) + + eca_oam_oam: + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + eca_oam_internal: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + eca_arb_oam: + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + eca_arb_internal: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + groups: + + # VF Modules + + VFModuleECA_OAM_Base: + type: org.openecomp.groups.VfModule + + metadata: + vfModuleModelName: vECA::module-0 + vfModuleModelInvariantUUID: 13aba10a-f788-492f-9ea7-7ff91dd05aaa + vfModuleModelUUID: 1230ed1e-4bc7-4fc0-ba7e-cc7af6da7000 + vfModuleModelVersion: 1 + + properties: + vf_module_type: Base # set by service designer + vf_module_description: vECA Base VF Module # set by service designer + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + volume_group: false # from HEAT / service Designer + artifacts: # HEAT Templates + - 099a6909-290f-4293-a347-736f11b8ff18 + - 0db84f21-d298-4a4b-b11e-37b92a734066 + + members: + - vECA_OAM + - vECA_ARB + - eca_arb_internal + - eca_arb_oam + - eca_oam_oam + - eca_oam_internal + policies: + # Placement policy + - mmsc_anti_affinity_placement_policy: + type: org.openecomp.policy.Placement + + properties: + conatiner_type: compute + policy: anti_affinity + + target: [vECA_OAM, vECA_ARB ] \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFMissingVFModule.yaml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFMissingVFModule.yaml new file mode 100644 index 0000000000..2cbc0e9b86 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFMissingVFModule.yaml @@ -0,0 +1,217 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: vECA VF Topology Template + +metadata: + invariantUUID: 3d4f3d68-d3a3-4f52-127c-ab188c9d4da2 # generated by ASDC + UUID: a2c4dc32-9c16-a3df-d2c0-e5ab221c69f0 # generated by ASDC + name: vECA VF + description: | + Performs intelligent adaptation of Multimedia Messages (MMs), and adaptation of individual media, + such as videos, audio files, images, animations, and text. Sits on the MM1 downlink path and performs + optimization offline. It intercepts the entire media and completes the optimizations before sending + the message to handsets. + type: VF + category: Mobility + subCategory: MMSC + vendor: Nokia + vendorVersion: 13 + + + # reference to template definitions +imports: + - tosca_simple_profile_for_ecomp_1_0.yml + +topology_template: + + # This section provides the parameters which OPENECOMP is not providing values to during instantiation. + # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP + # during the orchestration + + inputs: + + node_templates: + + vECA_OAM: # vECA OAM VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 12243d33-d3a3-4f42-770a-5710009d3baa + UUID: ab08dc12-0716-abcf-13c0-afd4111c69a0 + version: 1.0 + name: vECA_OAM VFC + description: ECA Management + type: VFC + category: Generic_VFC + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 13 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vECA_OAM VFC + vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + capabilities: + nfv_compute: + properties: + vfc_flavor: eca_oam_flavor # from HEAT ENV + scaling: + properties: + min_instances: 2 # set by service designer + max_instances: 2 # set by service designer + + vECA_ARB: # vECA ARB VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 0ab53d33-d3a3-4f42-770a-5710009d301a + UUID: 8808dc12-0716-abcf-23c0-afd4111c60d0 + version: 1.0 + name: vECA_ARB VFC + description: ECA Arbitrator + type: VFC + category: Generic_VFC + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 13 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vECA_ABR VFC + vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + + capabilities: + nfv_compute: + properties: + vfc_flavor: eca_arb_flavor # from HEAT ENV + scaling: + properties: + min_instances: 1 # set by service designer + max_instances: 1 # set by service designer + + # Internal VF Connection Points (VFCs connection points) + + eca_oam_oam: + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + eca_oam_internal: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + eca_arb_oam: + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + eca_arb_internal: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + groups: + + # VF Modules + + VFModuleECA_OAM_Base: + type: org.openecomp.groups.VfModule + + metadata: + vfModuleModelName: vECA::module-0 + vfModuleModelInvariantUUID: 13aba10a-f788-492f-9ea7-7ff91dd05aaa + vfModuleModelUUID: 1230ed1e-4bc7-4fc0-ba7e-cc7af6da7000 + vfModuleModelVersion: 1 + + properties: + vf_module_type: Base # set by service designer + vf_module_description: vECA Base VF Module # set by service designer + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + volume_group: false # from HEAT / service Designer + artifacts: # HEAT Templates + - 099a6909-290f-4293-a347-736f11b8ff18 + - 0db84f21-d298-4a4b-b11e-37b92a734066 + + members: + - vECA_OAM + - vECA_ARB + - eca_arb_internal + - eca_arb_oam + - eca_oam_oam + - eca_oam_internal + policies: + # Placement policy + - mmsc_anti_affinity_placement_policy: + type: org.openecomp.policy.Placement + + properties: + conatiner_type: compute + policy: anti_affinity + + target: [vECA_OAM, vECA_ARB ] \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFOrphan.yaml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFOrphan.yaml new file mode 100644 index 0000000000..d27bc63c35 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFOrphan.yaml @@ -0,0 +1,211 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: vECA VF Topology Template + +metadata: + invariantUUID: 3d4f3d68-d3a3-4f52-127c-ab188c9d4da2 # generated by ASDC + UUID: a2c4dc32-9c16-a3df-d2c0-e5ab221c69f0 # generated by ASDC + name: vECA VF + description: | + Performs intelligent adaptation of Multimedia Messages (MMs), and adaptation of individual media, + such as videos, audio files, images, animations, and text. Sits on the MM1 downlink path and performs + optimization offline. It intercepts the entire media and completes the optimizations before sending + the message to handsets. + type: VF + category: Mobility + subCategory: MMSC + vendor: Nokia + vendorVersion: 13 + + + # reference to template definitions +imports: + - tosca_simple_profile_for_ecomp_1_0.yml + +topology_template: + + # This section provides the parameters which OPENECOMP is not providing values to during instantiation. + # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP + # during the orchestration + + inputs: + + node_templates: + + vECA_OAM: # vECA OAM VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 12243d33-d3a3-4f42-770a-5710009d3baa + UUID: ab08dc12-0716-abcf-13c0-afd4111c69a0 + version: 1.0 + name: vECA_OAM VFC + description: ECA Management + type: VFC + category: Generic_VFC + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 13 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vECA_OAM VFC + vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + capabilities: + nfv_compute: + properties: + vfc_flavor: eca_oam_flavor # from HEAT ENV + scaling: + properties: + min_instances: 2 # set by service designer + max_instances: 2 # set by service designer + + vECA_ARB: # vECA ARB VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 0ab53d33-d3a3-4f42-770a-5710009d301a + UUID: 8808dc12-0716-abcf-23c0-afd4111c60d0 + version: 1.0 + name: vECA_ARB VFC + description: ECA Arbitrator + type: VFC + category: Generic_VFC + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 13 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vECA_ABR VFC + vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + capabilities: + nfv_compute: + properties: + vfc_flavor: eca_arb_flavor # from HEAT ENV + scaling: + properties: + min_instances: 1 # set by service designer + max_instances: 1 # set by service designer + + # Internal VF Connection Points (VFCs connection points) + + eca_oam_oam: + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + eca_oam_internal: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + eca_arb_oam: + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + eca_arb_internal: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + groups: + + # VF Modules + + VFModuleECA_OAM_Base: + type: org.openecomp.groups.VfModule + + metadata: + vfModuleModelName: vECA::module-0 + vfModuleModelInvariantUUID: 13aba10a-f788-492f-9ea7-7ff91dd05aaa + vfModuleModelUUID: 1230ed1e-4bc7-4fc0-ba7e-cc7af6da7000 + vfModuleModelVersion: 1 + + properties: + vf_module_type: Base # set by service designer + vf_module_description: vECA Base VF Module # set by service designer + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + volume_group: false # from HEAT / service Designer + artifacts: # HEAT Templates + - 099a6909-290f-4293-a347-736f11b8ff18 + - 0db84f21-d298-4a4b-b11e-37b92a734066 + + members: + - vECA_OAM + - vECA_ARB + - eca_arb_internal + - eca_arb_oam + - eca_oam_oam + - eca_oam_internal + policies: + # Placement policy + - mmsc_anti_affinity_placement_policy: + type: org.openecomp.policy.Placement + + properties: + conatiner_type: compute + policy: anti_affinity + + target: [vECA_OAM, vECA_ARB ] \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16.yaml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16.yaml new file mode 100644 index 0000000000..62daf34eab --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16.yaml @@ -0,0 +1,179 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: vMMSC Service Topology Template + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + name: vMMSC_Service + description: vMMSC Service + type: Service + category: Mobility + ecompNaming: false + homing: false + + # reference to template definitions +imports: + - tosca_simple_profile_for_ecomp_1_0.yml + - vmmsc_vf.yml + - veca_oam_vf.yml + - cmaui_vf.yml + - service_network.yml # + +topology_template: + + # This section provides the parameters which OPENECOMP is not providing values to during instantiation. + # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP + # during the orchestration + + inputes: + service_instance_name: + type: string + description: service instance name + service_deployment_node: + type: string + description: The target LCP node for deployment of this service instance + vMMSC_init_instances: + type: integer + description: The number of instances to instantiate + constraints: + - in_range: [1, 5] + vECA_OAM_init_instances: + type: integer + description: The number of instances to instantiate + constraints: + - in_range: [1, 3] + + node_templates: + + vMMSC: # vMMSC VNF + type: org.openecomp.resource.vf.Generic + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMMC VF + description: | + Delivers messages composed of text, images, and other media types (for example audio and video) + in an operator's network. It is responsible for storing and handling incoming and outgoing Multimedia + Messages (MMs); therefore, acting as an MMS Relay and MMS Server at the same time. + type: VF + category: Mobility + subCategory: MMC + vendor: Nokia + vendorVersion: 6.0.2.14 + + properties: + vf_ecomp_name: true + vf_instance_name: # to be set by OPENECOMP during instantiation + vf_homing: true + vf_deployment_node: # to be set by OPENECOMP during instantiation + min_instances: 1 + max_instances: 5 + init_instances: # number of instances to initialize. This number can be in the range of min_instances and max_instances. + # if no value provided use min_instances value. + + + vECA_OAM: # vECA VF + type: org.openecomp.resource.vf.Generic + + metadata: + invariantUUID: 3d4f3d68-d3a3-4f52-127c-ab188c9d4da2 # generated by ASDC + UUID: a2c4dc32-9c16-a3df-d2c0-e5ab221c69f0 # generated by ASDC + version: 1.0 # set by ASDC + name: vECA VF + description: | + Performs intelligent adaptation of Multimedia Messages (MMs), and adaptation of individual media, + such as videos, audio files, images, animations, and text. Sits on the MM1 downlink path and performs + optimization offline. It intercepts the entire media and completes the optimizations before sending + the message to handsets. + type: VF + category: Generic + resourceCategory: Mobility + subCategory: MMSC + vendor: Nokia + vendorVersion: 13 + + properties: + vf_ecomp_name: true + vf_instance_name: # to be set by OPENECOMP during instantiation + vf_homing: true + vf_deployment_node: # to be set by OPENECOMP during instantiation + min_instances: 1 + max_instances: 3 + + + + CMAUI: # CMAUI VF + type: org.openecomp.resource.vf.Generic + + metadata: + invariantUUID: dd4f3d68-1223-4a97-127c-11ab729d4da2 # generated by ASDC + UUID: 2a14db52-5116-d3af-1240-1236221cab8d # generated by ASDC + version: 1.0 # set by ASDC + name: CMAUI VF + description: CMAUI MMSC VF + type: VF + category: Generic + resourceCategory: Mobility + subCategory: MMSC + vendor: Nokia + vendorVersion: 5.0.2.5.37 + + properties: + vf_ecomp_name: true + vf_instance_name: # to be set by OPENECOMP during instantiation + vf_homing: true + vf_deployment_node: # to be set by OPENECOMP during instantiation + min_instances: 1 + max_instances: 1 + + + + # service level network + + eca_internal_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: ECA traffic network + description: ECA traffic network + type: VL + category: VL + vendor: Nokia + + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + network_name: # provided by OPENECOMP (SDNC) + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16InvalidFormat.yaml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16InvalidFormat.yaml new file mode 100644 index 0000000000..1df7c177fe --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16InvalidFormat.yaml @@ -0,0 +1,177 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: vMMSC Service Topology Template + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + name: vMMSC_Service + description: vMMSC Service + type: Service + category: Mobility + ecompNaming: false + homing: false + + # reference to template definitions +imports: + - tosca_simple_profile_for_ecomp_1_0.yml + - vmmsc_vf.yml + - veca_oam_vf.yml + - cmaui_vf.yml + - service_network.yml # + +topology_template: + + # This section provides the parameters which OPENECOMP is not providing values to during instantiation. + # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP + # during the orchestration + + inputes: + service_instance_name: + type: string + description: service instance name + service_deployment_node: + type: string + description: The target LCP node for deployment of this service instance + vMMSC_init_instances: + type: integer + description: The number of instances to instantiate + constraints: + - in_range: [1, 5] + vECA_OAM_init_instances: + type: integer + description: The number of instances to instantiate + constraints: + - in_range: [1, 3] + + node_templates: + + vMMSC: # vMMSC VNF + type: org.openecomp.resource.vf.Generic + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMMC VF + description: | + Delivers messages composed of text, images, and other media types (for example audio and video) + in an operator's network. It is responsible for storing and handling incoming and outgoing Multimedia + Messages (MMs); therefore, acting as an MMS Relay and MMS Server at the same time. + type: VF + category: Mobility + subCategory: MMC + vendor: Nokia + vendorVersion: 6.0.2.14 + + properties: + vf_ecomp_name: true + vf_instance_name: # to be set by OPENECOMP during instantiation + vf_homing: true + vf_deployment_node: # to be set by OPENECOMP during instantiation + min_instances: 1 + max_instances: 5 + init_instances: # number of instances to initialize. This number can be in the range of min_instances and max_instances. + # if no value provided use min_instances value. + + + vECA_OAM: # vECA VF + type: org.openecomp.resource.vf.Generic + + metadata: + invariantUUID: 3d4f3d68-d3a3-4f52-127c-ab188c9d4da2 # generated by ASDC + UUID: a2c4dc32-9c16-a3df-d2c0-e5ab221c69f0 # generated by ASDC + version: 1.0 # set by ASDC + name: vECA VF + description: | + Performs intelligent adaptation of Multimedia Messages (MMs), and adaptation of individual media, + such as videos, audio files, images, animations, and text. Sits on the MM1 downlink path and performs + optimization offline. It intercepts the entire media and completes the optimizations before sending + the message to handsets. + type: VF + category: Mobility + subCategory: MMSC + vendor: Nokia + vendorVersion: 13 + + properties: + vf_ecomp_name: true + vf_instance_name: # to be set by OPENECOMP during instantiation + vf_homing: true + vf_deployment_node: # to be set by OPENECOMP during instantiation + min_instances: 1 + max_instances: 3 + + + + CMAUI: # CMAUI VF + type: org.openecomp.resource.vf.Generic + + metadata: + invariantUUID: dd4f3d68-1223-4a97-127c-11ab729d4da2 # generated by ASDC + UUID: 2a14db52-5116-d3af-1240-1236221cab8d # generated by ASDC + version: 1.0 # set by ASDC + name: CMAUI VF + description: CMAUI MMSC VF + type: VF + category: Mobility + subCategory: MMSC + vendor: Nokia + vendorVersion: 5.0.2.5.37 + + properties: + vf_ecomp_name: true + vf_instance_name: # to be set by OPENECOMP during instantiation + vf_homing: true + vf_deployment_node: # to be set by OPENECOMP during instantiation + min_instances: 1 + max_instances: 1 + + + + # service level network + + eca_internal_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: ECA traffic network + description: ECA traffic network + type: VL + category: VL + vendor: Nokia + + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + network_name: # provided by OPENECOMP (SDNC) + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16MissingVFModule.yaml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16MissingVFModule.yaml new file mode 100644 index 0000000000..31d95200ad --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16MissingVFModule.yaml @@ -0,0 +1,177 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: vMMSC Service Topology Template + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + name: vMMSC_Service + description: vMMSC Service + type: Service + category: Mobility + ecompNaming: false + homing: false + + # reference to template definitions +imports: + - tosca_simple_profile_for_ecomp_1_0.yml + - vmmsc_vf.yml + - veca_oam_vf.yml + - cmaui_vf.yml + - service_network.yml # + +topology_template: + + # This section provides the parameters which OPENECOMP is not providing values to during instantiation. + # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP + # during the orchestration + + inputes: + service_instance_name: + type: string + description: service instance name + service_deployment_node: + type: string + description: The target LCP node for deployment of this service instance + vMMSC_init_instances: + type: integer + description: The number of instances to instantiate + constraints: + - in_range: [1, 5] + vECA_OAM_init_instances: + type: integer + description: The number of instances to instantiate + constraints: + - in_range: [1, 3] + + node_templates: + + vMMSC: # vMMSC VNF + type: org.openecomp.resource.vf.Generic + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMMC VF + description: | + Delivers messages composed of text, images, and other media types (for example audio and video) + in an operator's network. It is responsible for storing and handling incoming and outgoing Multimedia + Messages (MMs); therefore, acting as an MMS Relay and MMS Server at the same time. + type: VF + category: Mobility + subCategory: MMC + vendor: Nokia + vendorVersion: 6.0.2.14 + + properties: + vf_ecomp_name: true + vf_instance_name: # to be set by OPENECOMP during instantiation + vf_homing: true + vf_deployment_node: # to be set by OPENECOMP during instantiation + min_instances: 1 + max_instances: 5 + init_instances: # number of instances to initialize. This number can be in the range of min_instances and max_instances. + # if no value provided use min_instances value. + + + vECA_OAM: # vECA VF + type: org.openecomp.resource.vf.Generic + + metadata: + invariantUUID: 3d4f3d68-d3a3-4f52-127c-ab188c9d4da2 # generated by ASDC + UUID: a2c4dc32-9c16-a3df-d2c0-e5ab221c69f0 # generated by ASDC + version: 1.0 # set by ASDC + name: vECA VF + description: | + Performs intelligent adaptation of Multimedia Messages (MMs), and adaptation of individual media, + such as videos, audio files, images, animations, and text. Sits on the MM1 downlink path and performs + optimization offline. It intercepts the entire media and completes the optimizations before sending + the message to handsets. + type: VF + category: Mobility + subCategory: MMSC + vendor: Nokia + vendorVersion: 13 + + properties: + vf_ecomp_name: true + vf_instance_name: # to be set by OPENECOMP during instantiation + vf_homing: true + vf_deployment_node: # to be set by OPENECOMP during instantiation + min_instances: 1 + max_instances: 3 + + + + CMAUI: # CMAUI VF + type: org.openecomp.resource.vf.Generic + + metadata: + invariantUUID: dd4f3d68-1223-4a97-127c-11ab729d4da2 # generated by ASDC + UUID: 2a14db52-5116-d3af-1240-1236221cab8d # generated by ASDC + version: 1.0 # set by ASDC + name: CMAUI VF + description: CMAUI MMSC VF + type: VF + category: Mobility + subCategory: MMSC + vendor: Nokia + vendorVersion: 5.0.2.5.37 + + properties: + vf_ecomp_name: true + vf_instance_name: # to be set by OPENECOMP during instantiation + vf_homing: true + vf_deployment_node: # to be set by OPENECOMP during instantiation + min_instances: 1 + max_instances: 1 + + + + # service level network + + eca_internal_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: ECA traffic network + description: ECA traffic network + type: VL + category: VL + vendor: Nokia + + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + network_name: # provided by OPENECOMP (SDNC) + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_VF.yaml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_VF.yaml new file mode 100644 index 0000000000..7398e45e95 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_VF.yaml @@ -0,0 +1,976 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: vMMSC VF Topology Template + +metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + name: vMMC VF + description: | + Delivers messages composed of text, images, and other media types (for example audio and video) + in an operator's network. It is responsible for storing and handling incoming and outgoing Multimedia + Messages (MMs); therefore, acting as an MMS Relay and MMS Server at the same time. + type: VF + category: Mobility + subCategory: MMC + vendor: Nokia + vendorVersion: 6.0.2.14 + + + # reference to template definitions +imports: + - tosca_simple_profile_for_ecomp_1_0.yml + +topology_template: + + # This section provides the parameters which OPENECOMP is not providing values to during + # instantiation. + # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP + # during the orchestration + + inputs: + + node_templates: + + vMMSC: # vMMSC VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc + UUID: 2714db52-2116-a3af-1240-a236221ca004 + version: 1.0 + name: vMMC VFC + description: + type: VFC + category: Generic + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 6.0.2.14 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vMMSC VFC + vfc_image_name: mmsc-6.0.2_v14.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + capabilities: + nfv_compute: + properties: + vfc_flavor: mmsc_flavor # from HEAT ENV + scaling: + properties: + min_instances: 5 + max_instances: 5 + initial_instance: + + vNEMS_FE: # vNEMS VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc + UUID: 2714db52-2116-a3af-1240-a236221ca004 + version: 1.0 + name: vNEMS_FE VFC + description: | + Legacy support that makes it possible for subscribers without MMS-enabled phones to receive + multimedia messages (MMs) through a web or WAP interface. + E-mail smart push that lets subscribers send and receive MMs to and from the Internet (MM3 interface). + type: VFC + category: Generic_VFC + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 2.1.2.44 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vNEMS_FE VFC + vfc_image_name: nems-2.1.2_v44.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + + capabilities: + nfv_compute: + properties: + vfc_flavor: nems_fe_flavor # from HEAT ENV + scaling: + properties: + min_instances: 2 # set by service designer + max_instances: 4 # set by service designer + + vNEMS_BE: # vNEMS VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc + UUID: 2714db52-2116-a3af-1240-a236221ca004 + version: 1.0 + name: vNEMS_BE VFC + description: | + Legacy support that makes it possible for subscribers without MMS-enabled phones to receive + multimedia messages (MMs) through a web or WAP interface. + E-mail smart push that lets subscribers send and receive MMs to and from the Internet (MM3 interface). + type: VFC + category: Generic_VFC + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 2.1.2.44 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vNEMS_FE VFC + vfc_image_name: nems-2.1.2_v44.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + + capabilities: + nfv_compute: + properties: + vfc_flavor: nems_be_flavor # from HEAT ENV + scaling: + properties: + min_instances: 1 # set by service designer + max_instances: 2 # set by service designer + + vECA_TRX: # vNEMS VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc + UUID: 2714db52-2116-a3af-1240-a236221ca004 + version: 1.0 + name: vECA_TRX VFC + description: Traffic handling + type: VFC + category: Generic_VFC + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 13 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vECA_TRX VFC + vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + + capabilities: + nfv_compute: + properties: + vfc_flavor: eca_trx_flavor # from HEAT ENV + scaling: + properties: + min_instances: 20 # set by service designer + max_instances: 20 # set by service designer + + vLB: # F5 VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc + UUID: 2714db52-2116-a3af-1240-a236221ca004 + version: 1.0 + name: F5 LB VFC + description: Load Balancer + type: VFC + category: Generic + subCategory: Generic_VFC + vendor: F5 Networks + vendorVersion: 11.5.3.163 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: F5 VFC + vfc_image_name: F5-11_5_3-EngHF-34_163.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + + capabilities: + nfv_compute: + properties: + vfc_flavor: bigip_flavor # from HEAT ENV + scaling: + properties: + min_instances: 2 + max_instances: 2 + + # Internal VF Connection Points (VFCs connection points) + + mmsc_oam: # external OAM CP to mobility OAM network + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + + mmsc_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_fe_oam: # external OAM CP to mobility OAM network + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + + nems_fe_internal: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_fe_imap: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_fe_web: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_fe_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_be_oam: # external OAM CP to mobility OAM network + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + nems_be_internal: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_be_imap: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + eca_trx_oam: # external OAM CP to mobility OAM network + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + + eca_trx_internal: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + eca_trx_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_ha: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_mmsc_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_nems_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_nems_web: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_eca_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_oam: # external OAM CP to mobility OAM network + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + + lb_dmz_protected: # external CP to mobility DMZ protected network + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_core_direct: # external CP to mobility core direct network + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + # Intra-VF Virtual Links (Networks) + + mmsc_traffic_net: + type: org.openecomp.resource.vl.VL + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: MMSC traffic network + description: mmsc traffic network + type: VL + category: VL + vendor: Nokia + properties: + network_type: Tenant_Layer_3 + network_role: Intra-service + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.253.0.0/17 # HEAT ENV + gateway_ip: 169.253.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + nems_imap_net: + type: org.openecomp.resource.vl.VL + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: NEMS IMAP network + description: NEMS internal IMAP network + type: VL + category: VL + vendor: Nokia + + properties: + network_type: Tenant_Layer_3 + network_role: Intra-service + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.253.0.0/17 # HEAT ENV + gateway_ip: 169.253.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + nems_internal_net: + type: org.openecomp.resource.vl.VL + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: NEMS internal traffic network + description: NEMS internal traffic network + type: VL + category: VL + vendor: Nokia + + properties: + network_type: Tenant_Layer_3 + network_role: Intra-service + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.253.0.0/17 # HEAT ENV + gateway_ip: 169.253.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + nems_web_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: NEMS web network + description: nems web nwtwork + type: VL + category: VL + vendor: Nokia + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.255.0.0/17 # HEAT ENV + gateway_ip: 169.255.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + nems_traffic_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: NEMS traffic network + description: NEMS traffic network + type: VL + category: VL + vendor: Nokia + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + network_name: # provided by OPENECOMP (SDNC) + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + eca_traffic_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: ECA traffic network + description: ECA traffic network + type: VL + category: VL + vendor: Nokia + + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + network_name: # provided by OPENECOMP (SDNC) + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + eca_internal_net: + type: org.openecomp.resource.vl.VL + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: ECA internal traffic network + description: ECA internal traffic network + type: VL + category: VL + vendor: Nokia + + properties: + network_type: Tenant_Layer_3 + network_role: Intra-service + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.253.0.0/17 # HEAT ENV + gateway_ip: 169.253.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP # service level network + + lb_ha_net: + type: org.openecomp.resource.vl.VL + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: LB HA network + description: LB sync network + type: VL + category: VL + vendor: Nokia + properties: + network_type: Tenant_Layer_3 + network_role: Intra-service + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.253.0.0/17 # HEAT ENV + gateway_ip: 169.253.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + + groups: + + # Server Groups for applying placement policy + LbGroup: + type: tosca.groups.Root + members: [vLB] + + mmscGroup: + type: tosca.groups.Root + members: [vMMSC] + + nemas_feGroup: + type: tosca.groups.Root + members: [vNEMS_FE] + + eca_trxGroup: + type: tosca.groups.Root + members: [vECA_TRX] + + # VF Modules + VFModuleMMSC_Expansion: + type: org.openecomp.groups.VfModule + + metadata: + vfModuleModelName: vMMSC::module-1 + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelUUID: b020dd1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + + properties: + vf_module_type: Expansion # set by service designer + vf_module_description: vMMSC growth unit # set by service designer + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + volume_group: false # from HEAT / service Designer + artifacts: # HEAT Templates + - 099a6909-290f-4293-a347-736f11b8ff18 + - 0db84f21-d298-4a4b-b11e-37b92a734066 + + members: + - vMMSC + - vNEMS_FE + - vNEMS_BE + - vECA_TRX + - vLB + - mmsc_oam + - mmsc_traffic + - nems_fe_web + - mmsc_traffic_net + - nems_imap_net + - nems_internal_net + + + policies: + # Autoscaling policy + - mmsc_autoscale_policy: + type: org.openecomp.policy.Autoscaling + + properties: + min_instances: 1 + max_instances: 4 + increment: 1 + factor: bandwidth + threshold: 5 Gpbs + + target: [ VFModuleMMSC_Expansion ] + + # Placement policy + - mmsc_anti_affinity_placement_policy: + type: org.openecomp.policy.Placement + + properties: + conatiner_type: compute + policy: anti_affinity + + target: [ LbGroup, mmscGroup, nemas_feGroup, eca_trxGroup, eca_oamGroup, cmauiGroup ] \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_VFInvalidFormat.yaml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_VFInvalidFormat.yaml new file mode 100644 index 0000000000..4e99ade400 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_VFInvalidFormat.yaml @@ -0,0 +1,975 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: vMMSC VF Topology Template + +metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + name: vMMC VF + description: | + Delivers messages composed of text, images, and other media types (for example audio and video) + in an operator's network. It is responsible for storing and handling incoming and outgoing Multimedia + Messages (MMs); therefore, acting as an MMS Relay and MMS Server at the same time. + type: VF + category: Mobility + subCategory: MMC + vendor: Nokia + vendorVersion: 6.0.2.14 + + + # reference to template definitions +imports: + - tosca_simple_profile_for_ecomp_1_0.yml + +topology_template: + + # This section provides the parameters which OPENECOMP is not providing values to during instantiation. + # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP + # during the orchestration + + inputs: + + node_templates: + + vMMSC: # vMMSC VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc + UUID: 2714db52-2116-a3af-1240-a236221ca004 + version: 1.0 + name: vMMC VFC + description: + type: VFC + category: Generic + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 6.0.2.14 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vMMSC VFC + vfc_image_name: mmsc-6.0.2_v14.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + capabilities: + nfv_compute: + properties: + vfc_flavor: mmsc_flavor # from HEAT ENV + scaling: + properties: + min_instances: 5 + max_instances: 5 + initial_instance: + + vNEMS_FE: # vNEMS VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc + UUID: 2714db52-2116-a3af-1240-a236221ca004 + version: 1.0 + name: vNEMS_FE VFC + description: | + Legacy support that makes it possible for subscribers without MMS-enabled phones to receive + multimedia messages (MMs) through a web or WAP interface. + E-mail smart push that lets subscribers send and receive MMs to and from the Internet (MM3 interface). + type: VFC + category: Generic_VFC + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 2.1.2.44 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vNEMS_FE VFC + vfc_image_name: nems-2.1.2_v44.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + + capabilities: + nfv_compute: + properties: + vfc_flavor: nems_fe_flavor # from HEAT ENV + scaling: + properties: + min_instances: 2 # set by service designer + max_instances: 4 # set by service designer + + vNEMS_BE: # vNEMS VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc + UUID: 2714db52-2116-a3af-1240-a236221ca004 + version: 1.0 + name: vNEMS_BE VFC + description: | + Legacy support that makes it possible for subscribers without MMS-enabled phones to receive + multimedia messages (MMs) through a web or WAP interface. + E-mail smart push that lets subscribers send and receive MMs to and from the Internet (MM3 interface). + type: VFC + category: Generic_VFC + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 2.1.2.44 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vNEMS_FE VFC + vfc_image_name: nems-2.1.2_v44.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + + capabilities: + nfv_compute: + properties: + vfc_flavor: nems_be_flavor # from HEAT ENV + scaling: + properties: + min_instances: 1 # set by service designer + max_instances: 2 # set by service designer + + vECA_TRX: # vNEMS VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc + UUID: 2714db52-2116-a3af-1240-a236221ca004 + version: 1.0 + name: vECA_TRX VFC + description: Traffic handling + type: VFC + category: Generic_VFC + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 13 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vECA_TRX VFC + vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + + capabilities: + nfv_compute: + properties: + vfc_flavor: eca_trx_flavor # from HEAT ENV + scaling: + properties: + min_instances: 20 # set by service designer + max_instances: 20 # set by service designer + + vLB: # F5 VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc + UUID: 2714db52-2116-a3af-1240-a236221ca004 + version: 1.0 + name: F5 LB VFC + description: Load Balancer + type: VFC + category: Generic + subCategory: Generic_VFC + vendor: F5 Networks + vendorVersion: 11.5.3.163 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: F5 VFC + vfc_image_name: F5-11_5_3-EngHF-34_163.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + + capabilities: + nfv_compute: + properties: + vfc_flavor: bigip_flavor # from HEAT ENV + scaling: + properties: + min_instances: 2 + max_instances: 2 + + # Internal VF Connection Points (VFCs connection points) + + mmsc_oam: # external OAM CP to mobility OAM network + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + + mmsc_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_fe_oam: # external OAM CP to mobility OAM network + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + + nems_fe_internal: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_fe_imap: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_fe_web: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_fe_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_be_oam: # external OAM CP to mobility OAM network + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + nems_be_internal: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_be_imap: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + eca_trx_oam: # external OAM CP to mobility OAM network + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + + eca_trx_internal: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + eca_trx_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_ha: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_mmsc_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_nems_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_nems_web: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_eca_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_oam: # external OAM CP to mobility OAM network + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + + lb_dmz_protected: # external CP to mobility DMZ protected network + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_core_direct: # external CP to mobility core direct network + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + # Intra-VF Virtual Links (Networks) + + mmsc_traffic_net: + type: org.openecomp.resource.vl.VL + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: MMSC traffic network + description: mmsc traffic network + type: VL + category: VL + vendor: Nokia + properties: + network_type: Tenant_Layer_3 + network_role: Intra-service + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.253.0.0/17 # HEAT ENV + gateway_ip: 169.253.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + nems_imap_net: + type: org.openecomp.resource.vl.VL + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: NEMS IMAP network + description: NEMS internal IMAP network + type: VL + category: VL + vendor: Nokia + + properties: + network_type: Tenant_Layer_3 + network_role: Intra-service + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.253.0.0/17 # HEAT ENV + gateway_ip: 169.253.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + nems_internal_net: + type: org.openecomp.resource.vl.VL + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: NEMS internal traffic network + description: NEMS internal traffic network + type: VL + category: VL + vendor: Nokia + + properties: + network_type: Tenant_Layer_3 + network_role: Intra-service + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.253.0.0/17 # HEAT ENV + gateway_ip: 169.253.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + nems_web_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: NEMS web network + description: nems web nwtwork + type: VL + category: VL + vendor: Nokia + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.255.0.0/17 # HEAT ENV + gateway_ip: 169.255.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + nems_traffic_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: NEMS traffic network + description: NEMS traffic network + type: VL + category: VL + vendor: Nokia + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + network_name: # provided by OPENECOMP (SDNC) + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + eca_traffic_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: ECA traffic network + description: ECA traffic network + type: VL + category: VL + vendor: Nokia + + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + network_name: # provided by OPENECOMP (SDNC) + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + eca_internal_net: + type: org.openecomp.resource.vl.VL + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: ECA internal traffic network + description: ECA internal traffic network + type: VL + category: VL + vendor: Nokia + + properties: + network_type: Tenant_Layer_3 + network_role: Intra-service + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.253.0.0/17 # HEAT ENV + gateway_ip: 169.253.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP # service level network + + lb_ha_net: + type: org.openecomp.resource.vl.VL + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: LB HA network + description: LB sync network + type: VL + category: VL + vendor: Nokia + properties: + network_type: Tenant_Layer_3 + network_role: Intra-service + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.253.0.0/17 # HEAT ENV + gateway_ip: 169.253.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + + groups: + + # Server Groups for applying placement policy + LbGroup: + type: tosca.groups.Root + members: [vLB] + + mmscGroup: + type: tosca.groups.Root + members: [vMMSC] + + nemas_feGroup: + type: tosca.groups.Root + members: [vNEMS_FE] + + eca_trxGroup: + type: tosca.groups.Root + members: [vECA_TRX] + + # VF Modules + VFModuleMMSC_Expansion: + type: org.openecomp.groups.VfModule + + metadata: + vfModuleModelName: vMMSC::module-1 + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelUUID: b020dd1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + + properties: + vf_module_type: Expansion # set by service designer + vf_module_description: vMMSC growth unit # set by service designer + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + volume_group: false # from HEAT / service Designer + artifacts: # HEAT Templates + - 099a6909-290f-4293-a347-736f11b8ff18 + - 0db84f21-d298-4a4b-b11e-37b92a734066 + + members: + - vMMSC + - vNEMS_FE + - vNEMS_BE + - vECA_TRX + - vLB + - mmsc_oam + - mmsc_traffic + - nems_fe_web + - mmsc_traffic_net + - nems_imap_net + - nems_internal_net + + + policies: + # Autoscaling policy + - mmsc_autoscale_policy: + type: org.openecomp.policy.Autoscaling + + properties: + min_instances: 1 + max_instances: 4 + increment: 1 + factor: bandwidth + threshold: 5 Gpbs + + target: [ VFModuleMMSC_Expansion ] + + # Placement policy + - mmsc_anti_affinity_placement_policy: + type: org.openecomp.policy.Placement + + properties: + conatiner_type: compute + policy: anti_affinity + + target: [ LbGroup, mmscGroup, nemas_feGroup, eca_trxGroup, eca_oamGroup, cmauiGroup ] \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_VFMissingVFModule.yaml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_VFMissingVFModule.yaml new file mode 100644 index 0000000000..4e99ade400 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/MMSC_VFMissingVFModule.yaml @@ -0,0 +1,975 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: vMMSC VF Topology Template + +metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + name: vMMC VF + description: | + Delivers messages composed of text, images, and other media types (for example audio and video) + in an operator's network. It is responsible for storing and handling incoming and outgoing Multimedia + Messages (MMs); therefore, acting as an MMS Relay and MMS Server at the same time. + type: VF + category: Mobility + subCategory: MMC + vendor: Nokia + vendorVersion: 6.0.2.14 + + + # reference to template definitions +imports: + - tosca_simple_profile_for_ecomp_1_0.yml + +topology_template: + + # This section provides the parameters which OPENECOMP is not providing values to during instantiation. + # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP + # during the orchestration + + inputs: + + node_templates: + + vMMSC: # vMMSC VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc + UUID: 2714db52-2116-a3af-1240-a236221ca004 + version: 1.0 + name: vMMC VFC + description: + type: VFC + category: Generic + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 6.0.2.14 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vMMSC VFC + vfc_image_name: mmsc-6.0.2_v14.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + capabilities: + nfv_compute: + properties: + vfc_flavor: mmsc_flavor # from HEAT ENV + scaling: + properties: + min_instances: 5 + max_instances: 5 + initial_instance: + + vNEMS_FE: # vNEMS VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc + UUID: 2714db52-2116-a3af-1240-a236221ca004 + version: 1.0 + name: vNEMS_FE VFC + description: | + Legacy support that makes it possible for subscribers without MMS-enabled phones to receive + multimedia messages (MMs) through a web or WAP interface. + E-mail smart push that lets subscribers send and receive MMs to and from the Internet (MM3 interface). + type: VFC + category: Generic_VFC + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 2.1.2.44 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vNEMS_FE VFC + vfc_image_name: nems-2.1.2_v44.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + + capabilities: + nfv_compute: + properties: + vfc_flavor: nems_fe_flavor # from HEAT ENV + scaling: + properties: + min_instances: 2 # set by service designer + max_instances: 4 # set by service designer + + vNEMS_BE: # vNEMS VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc + UUID: 2714db52-2116-a3af-1240-a236221ca004 + version: 1.0 + name: vNEMS_BE VFC + description: | + Legacy support that makes it possible for subscribers without MMS-enabled phones to receive + multimedia messages (MMs) through a web or WAP interface. + E-mail smart push that lets subscribers send and receive MMs to and from the Internet (MM3 interface). + type: VFC + category: Generic_VFC + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 2.1.2.44 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vNEMS_FE VFC + vfc_image_name: nems-2.1.2_v44.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + + capabilities: + nfv_compute: + properties: + vfc_flavor: nems_be_flavor # from HEAT ENV + scaling: + properties: + min_instances: 1 # set by service designer + max_instances: 2 # set by service designer + + vECA_TRX: # vNEMS VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc + UUID: 2714db52-2116-a3af-1240-a236221ca004 + version: 1.0 + name: vECA_TRX VFC + description: Traffic handling + type: VFC + category: Generic_VFC + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 13 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vECA_TRX VFC + vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + + capabilities: + nfv_compute: + properties: + vfc_flavor: eca_trx_flavor # from HEAT ENV + scaling: + properties: + min_instances: 20 # set by service designer + max_instances: 20 # set by service designer + + vLB: # F5 VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc + UUID: 2714db52-2116-a3af-1240-a236221ca004 + version: 1.0 + name: F5 LB VFC + description: Load Balancer + type: VFC + category: Generic + subCategory: Generic_VFC + vendor: F5 Networks + vendorVersion: 11.5.3.163 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: F5 VFC + vfc_image_name: F5-11_5_3-EngHF-34_163.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + + capabilities: + nfv_compute: + properties: + vfc_flavor: bigip_flavor # from HEAT ENV + scaling: + properties: + min_instances: 2 + max_instances: 2 + + # Internal VF Connection Points (VFCs connection points) + + mmsc_oam: # external OAM CP to mobility OAM network + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + + mmsc_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_fe_oam: # external OAM CP to mobility OAM network + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + + nems_fe_internal: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_fe_imap: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_fe_web: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_fe_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_be_oam: # external OAM CP to mobility OAM network + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + nems_be_internal: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_be_imap: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + eca_trx_oam: # external OAM CP to mobility OAM network + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + + eca_trx_internal: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + eca_trx_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_ha: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_mmsc_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_nems_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_nems_web: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_eca_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_oam: # external OAM CP to mobility OAM network + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + + lb_dmz_protected: # external CP to mobility DMZ protected network + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_core_direct: # external CP to mobility core direct network + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + # Intra-VF Virtual Links (Networks) + + mmsc_traffic_net: + type: org.openecomp.resource.vl.VL + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: MMSC traffic network + description: mmsc traffic network + type: VL + category: VL + vendor: Nokia + properties: + network_type: Tenant_Layer_3 + network_role: Intra-service + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.253.0.0/17 # HEAT ENV + gateway_ip: 169.253.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + nems_imap_net: + type: org.openecomp.resource.vl.VL + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: NEMS IMAP network + description: NEMS internal IMAP network + type: VL + category: VL + vendor: Nokia + + properties: + network_type: Tenant_Layer_3 + network_role: Intra-service + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.253.0.0/17 # HEAT ENV + gateway_ip: 169.253.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + nems_internal_net: + type: org.openecomp.resource.vl.VL + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: NEMS internal traffic network + description: NEMS internal traffic network + type: VL + category: VL + vendor: Nokia + + properties: + network_type: Tenant_Layer_3 + network_role: Intra-service + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.253.0.0/17 # HEAT ENV + gateway_ip: 169.253.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + nems_web_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: NEMS web network + description: nems web nwtwork + type: VL + category: VL + vendor: Nokia + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.255.0.0/17 # HEAT ENV + gateway_ip: 169.255.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + nems_traffic_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: NEMS traffic network + description: NEMS traffic network + type: VL + category: VL + vendor: Nokia + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + network_name: # provided by OPENECOMP (SDNC) + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + eca_traffic_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: ECA traffic network + description: ECA traffic network + type: VL + category: VL + vendor: Nokia + + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + network_name: # provided by OPENECOMP (SDNC) + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + eca_internal_net: + type: org.openecomp.resource.vl.VL + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: ECA internal traffic network + description: ECA internal traffic network + type: VL + category: VL + vendor: Nokia + + properties: + network_type: Tenant_Layer_3 + network_role: Intra-service + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.253.0.0/17 # HEAT ENV + gateway_ip: 169.253.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP # service level network + + lb_ha_net: + type: org.openecomp.resource.vl.VL + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: LB HA network + description: LB sync network + type: VL + category: VL + vendor: Nokia + properties: + network_type: Tenant_Layer_3 + network_role: Intra-service + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.253.0.0/17 # HEAT ENV + gateway_ip: 169.253.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + + groups: + + # Server Groups for applying placement policy + LbGroup: + type: tosca.groups.Root + members: [vLB] + + mmscGroup: + type: tosca.groups.Root + members: [vMMSC] + + nemas_feGroup: + type: tosca.groups.Root + members: [vNEMS_FE] + + eca_trxGroup: + type: tosca.groups.Root + members: [vECA_TRX] + + # VF Modules + VFModuleMMSC_Expansion: + type: org.openecomp.groups.VfModule + + metadata: + vfModuleModelName: vMMSC::module-1 + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelUUID: b020dd1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + + properties: + vf_module_type: Expansion # set by service designer + vf_module_description: vMMSC growth unit # set by service designer + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + volume_group: false # from HEAT / service Designer + artifacts: # HEAT Templates + - 099a6909-290f-4293-a347-736f11b8ff18 + - 0db84f21-d298-4a4b-b11e-37b92a734066 + + members: + - vMMSC + - vNEMS_FE + - vNEMS_BE + - vECA_TRX + - vLB + - mmsc_oam + - mmsc_traffic + - nems_fe_web + - mmsc_traffic_net + - nems_imap_net + - nems_internal_net + + + policies: + # Autoscaling policy + - mmsc_autoscale_policy: + type: org.openecomp.policy.Autoscaling + + properties: + min_instances: 1 + max_instances: 4 + increment: 1 + factor: bandwidth + threshold: 5 Gpbs + + target: [ VFModuleMMSC_Expansion ] + + # Placement policy + - mmsc_anti_affinity_placement_policy: + type: org.openecomp.policy.Placement + + properties: + conatiner_type: compute + policy: anti_affinity + + target: [ LbGroup, mmscGroup, nemas_feGroup, eca_trxGroup, eca_oamGroup, cmauiGroup ] \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/Resource0-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/Resource0-template.yml new file mode 100644 index 0000000000..49666f9bae --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/Resource0-template.yml @@ -0,0 +1,24 @@ + # _______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 461a4839-2572-4dc1-b3be-dcb4c1908764 + UUID: bca09900-d37a-48db-8cd2-de014b2fdbba + name: resource_0 + description: description + type: VF + category: Generic + subcategory: Infrastructure + resourceVendor: vendor name + resourceVendorRelease: vendor release +topology_template: + substitution_mapping: + node_type: org.openecomp.resource.vf.Resource0 + # _______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/Resource1-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/Resource1-template.yml new file mode 100644 index 0000000000..3152660125 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/Resource1-template.yml @@ -0,0 +1,24 @@ + # _______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: af39c951-3a61-4324-9a1f-892a26f713fb + UUID: 438eecb8-bdf0-4356-b8f4-80dfcaafecbf + name: resource_1 + description: description + type: VF + category: Generic + subcategory: Infrastructure + resourceVendor: vendor name + resourceVendorRelease: vendor release +topology_template: + substitution_mapping: + node_type: org.openecomp.resource.vf.Resource1 + # _______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/Service0-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/Service0-template.yml new file mode 100644 index 0000000000..0ddab00927 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/Service0-template.yml @@ -0,0 +1,28 @@ + # _______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: ba65d050-f98a-4950-ab2f-3b6557d9476f + UUID: b79f52b8-57ab-43a0-a6d8-9db685f08073 + name: service_0 + description: desc + type: Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false +imports: + resource_0: + file: Resource0-template.yml + resource_1: + file: Resource1-template.yml +topology_template: + substitution_mapping: + node_type: org.openecomp.service.Service0 + # _______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/Service0-templateMoreThan256.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/Service0-templateMoreThan256.yml new file mode 100644 index 0000000000..0411603163 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/Service0-templateMoreThan256.yml @@ -0,0 +1,28 @@ + # _______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: ba65d050-f98a-4950-ab2f-3b6557d9476f + UUID: b79f52b8-57ab-43a0-a6d8-9db685f08073 + name: service_00bbbbbbbbbbbbbbbbbbbbbbbb_______________________bbbbbbbbbbbbb bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb + description: desc0123bbbbbbbbbbbbb______________bbbbbbbbbbbbbbbbbbbbbbbbbb bbbbbbbbbbbb_____________bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb + type: Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false +imports: + resource_0: + file: Resource0-template.yml + resource_1: + file: Resource1-template.yml +topology_template: + substitution_mapping: + node_type: org.openecomp.service.Service0 + # _______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/ServiceWithNodetemplate.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/ServiceWithNodetemplate.yml new file mode 100644 index 0000000000..b28bda56f9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/ServiceWithNodetemplate.yml @@ -0,0 +1,51 @@ + # _______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: ba65d050-f98a-4950-ab2f-3b6557d9476f + UUID: b79f52b8-57ab-43a0-a6d8-9db685f08073 + name: service_0 + description: desc + type: Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false +imports: + resource_0: + file: Resource0-template.yml + resource_1: + file: Resource1-template.yml +topology_template: + node_templates: + resource_1 2: + type: org.openecomp.resource.vf.Resource1 + metadata: + invariantUUID: af39c951-3a61-4324-9a1f-892a26f713fb + UUID: 438eecb8-bdf0-4356-b8f4-80dfcaafecbf + version: 1.0 + name: resource_1 + description: description + type: VF + category: Generic + subcategory: Infrastructure + resource_0 1: + type: org.openecomp.resource.vf.Resource0 + metadata: + invariantUUID: 461a4839-2572-4dc1-b3be-dcb4c1908764 + UUID: bca09900-d37a-48db-8cd2-de014b2fdbba + version: 1.0 + name: resource_0 + description: description + type: VF + category: Generic + subcategory: Infrastructure + substitution_mapping: + node_type: org.openecomp.service.Service0 + # _______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/aai/service_vmme_template_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/aai/service_vmme_template_1.yml new file mode 100644 index 0000000000..b3b7889453 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/aai/service_vmme_template_1.yml @@ -0,0 +1,193 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + serviceInvariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + serviceUUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + serviceVersion: 1.0 + serviceName: vMME_Service + serviceDescription: vMME_Service + serviceCategory: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + resourceInvariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + resourceUUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceversion: 1.0 + resourceName: vMME_VF + resourceDescription: vMME_VF + resourceType: VF + resourceCategry: Application L4+ + resourceSubcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + # Virtual Links (Networks) + + gtp_net: + type: org.openecomp.resource.vl.VL + metadata: + resourceInvariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + resourceUUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + resourceversion: 1.0 + resourceName: GTPNet + resourceDescription: GTP External Network + resourceType: VL + resourceCategry: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: org.openecomp.resource.vl.VL + metadata: + resourceInvariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + resourceUUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + resourceversion: 1.0 + resourceName: SCTPANet + resourceDescription: SCTP A External Network + resourceType: VL + resourceCategry: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: org.openecomp.resource.vl.VL + metadata: + resourceInvariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + resourceUUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + resourceversion: 1.0 + resourceName: SCTPBNet + resourceDescription: SCTP B External Network + resourceType: VL + resourceCategry: VL + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/aai/vf_vmme_template_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/aai/vf_vmme_template_1.yml new file mode 100644 index 0000000000..2a169e69f8 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/aai/vf_vmme_template_1.yml @@ -0,0 +1,1219 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: VF Template for pseodo vMME + +# metadata of the VF model +metadata: + resourceInvariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + resourceUUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceversion: 1.0 + resourceName: vMME_VF + resourceDescription: vMME_VF + resourceType: VF + resourceCategry: Application L4+ + resourceSubcategory: Firewall + resourceVendor: Ericsson + +# imports include all other tosca definitions that are required for this template +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml + +topology_template: + +# inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks) + inputs: + fsb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + fsb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + fsb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_FSB1_16ACP03.qcow2 + fsb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + fsb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB002 + fsb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + fsb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_FSB2_16ACP03.qcow2 + fsb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + defualt: m4.xlarge4 + ncb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + ncb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + ncb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_NCB1_16ACP03.qcow2 + ncb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + ncb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + ncb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + ncb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_NCB2_16ACP03.qcow2 + ncb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + gpb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + gpb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + gpb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_GPB1_16ACP03.qcow2 + gpb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + gpb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + gpb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + gpb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_GPB2_16ACP03.qcow2 + gpb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + vlc1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + vlc1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + vlc1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_VLC1_16ACP03.qcow2 + vlc1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + vlc2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + vlc2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + vlc2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_VLC2_16ACP03.qcow2 + vlc2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + + fsb1_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + fsb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + fsb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + fsb2_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + fsb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + fsb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + + ncb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + ncb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + ncb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + ncb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + gpb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + gpb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + gpb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + gpb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + vlc1_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_gtp_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_sctp_a_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_sctp_b_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + vlc1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + vlc2_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_gtp_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_sctp_a_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_sctp_b_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + vlc2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + Internal1_net_dhcp: + hidden: false + immutable: false + type: string + default: 'False' + Internal1_net_cidr: + hidden: false + immutable: false + type: string + default: 169.253.0.0/17 + Internal1_net_gateway_ip: + hidden: false + immutable: false + type: string + default: 169.253.0.3 + Internal2_net_dhcp: + hidden: false + immutable: false + type: string + default: 'False' + Internal2_net_cidr: + hidden: false + immutable: false + type: string + default: 169.255.0.0/17 + Internal2_net_gateway_ip: + hidden: false + immutable: false + type: string + default: 169.255.0.3 + network_deployment_node: + type: string + description: The target LCP node for deployment of this Network instance + oam_net_id: + hidden: false + immutable: false + type: string + description: uuid of oam network + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + + node_templates: + + # VFCs / VMs + FSB1: # VFC1 / VM1 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + resourceInvariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + resourceUUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceversion: 1.0 + resourceName: Nova Server + resourceDescription: VFC based on OpenStack Nova Server + resourceType: VFC + resourceCategry: Generic + resourceSubcategry: Infrastructure + resourceVendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: fsb1_vfc_instance_name} + vfc_type_tag: {get_input: fsb1_vfc_type_tag} + vfc_description: FSB1 + vfc_image_name: {get_input: fsb1_vfc_image_name} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: fsb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capabilty: + properties: + name: high_cpu + + + FSB2: # VFC2 / VM2 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + resourceInvariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + resourceUUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceversion: 1.0 + resourceName: Nova Server + resourceDescription: VFC based on OpenStack Nova Server + resourceType: VFC + resourceCategry: Generic + resourceSubcategry: Infrastructure + resourceVendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: fsb2_vfc_instance_name} + vfc_type_tag: {get_input: fsb2_vfc_type_tag} + vfc_description: FSB2 + vfc_image_name: {get_input: fsb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: fsb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + NCB1: # VFC3 / MV3 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + resourceInvariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + resourceUUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceversion: 1.0 + resourceName: Nova Server + resourceDescription: VFC based on OpenStack Nova Server + resourceType: VFC + resourceCategry: Generic + resourceSubcategry: Infrastructure + resourceVendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: ncb1_vfc_instance_name} + vfc_type_tag: {get_input: ncb1_vfc_type_tag} + vfc_description: NCB1 + vfc_image_name: {get_input: ncb1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: ncb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + NCB2: # VFC4 / VM4 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + resourceInvariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + resourceUUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceversion: 1.0 + resourceName: Nova Server + resourceDescription: VFC based on OpenStack Nova Server + resourceType: VFC + resourceCategry: Generic + resourceSubcategry: Infrastructure + resourceVendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: ncb2_vfc_instance_name} + vfc_type_tag: {get_input: ncb2_vfc_type_tag} + vfc_description: NCB2 + vfc_image_name: {get_input: ncb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: ncb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + GPB1: # VFC5 / VM5 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + resourceInvariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + resourceUUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceversion: 1.0 + resourceName: Nova Server + resourceDescription: VFC based on OpenStack Nova Server + resourceType: VFC + resourceCategry: Generic + resourceSubcategry: Infrastructure + resourceVendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: gpb1_vfc_instance_name} + vfc_type_tag: {get_input: gpb1_vfc_type_tag} + vfc_description: GPB1 + vfc_image_name: {get_input: gpb1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: gpb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + GPB2: # VFC6 / VM6 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + resourceInvariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + resourceUUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceversion: 1.0 + resourceName: Nova Server + resourceDescription: VFC based on OpenStack Nova Server + resourceType: VFC + resourceCategry: Generic + resourceSubcategry: Infrastructure + resourceVendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: gpb2_vfc_instance_name} + vfc_type_tag: {get_input: gpb2_vfc_type_tag} + vfc_description: GPB2 + vfc_image_name: {get_input: gpb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: gpb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + VLC1: # VFC7 / VM7 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + resourceInvariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + resourceUUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceversion: 1.0 + resourceName: Nova Server + resourceDescription: VFC based on OpenStack Nova Server + resourceType: VFC + resourceCategry: Generic + resourceSubcategry: Infrastructure + resourceVendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: vlc1_vfc_instance_name} + vfc_type_tag: {get_input: vlc1_vfc_type_tag} + vfc_description: VLC1 + vfc_image_name: {get_input: vlc1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: vlc1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + VLC2: # VFC8 / VM8 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + resourceInvariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + resourceUUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceversion: 1.0 + resourceName: Nova Server + resourceDescription: VFC based on OpenStack Nova Server + resourceType: VFC + resourceCategry: Generic + resourceSubcategry: Infrastructure + resourceVendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: vlc2_vfc_instance_name} + vfc_type_tag: {get_input: vlc2_vfc_type_tag} + vfc_description: VLC2 + vfc_image_name: {get_input: vlc2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: vlc2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + + # Connection Points + + fsb1_oam: # VFC1 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: fsb1_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + fsb1_internal1: # VFC1 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + fsb1_internal2: # VFC1 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + fsb2_oam: # VFC2 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: fsb2_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + fsb2_internal1: # VFC2 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + fsb2_internal2: # VFC2 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + ncb1_internal1: # VFC3 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + ncb1_internal2: # VFC3 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + ncb2_internal1: # VFC4 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + ncb2_internal2: # VFC4 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + gpb1_internal1: # VFC5 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + gpb1_internal2: # VFC5 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + gpb2_internal1: # VFC6 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + gpb2_internal2: # VFC6 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc1_oam: # VFC7 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc1_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + vlc1_internal2: # VFC7 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc1_sctp_a: # VFC7 eca_sctp_a CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_a_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_a_net + # relationship: tosca.relationships.network.BindsTo + + vlc1_sctp_b: # VFC7 eca_sctp_b CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_b_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_b_net + # relationship: tosca.relationships.network.BindsTo + + vlc1_gtp_net: # VFC7 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc1_gtp_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: gtp_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_oam: # VFC8 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + vlc2_internal1: # VFC8 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + vlc2_internal2: # VFC8 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc2_sctp_a: # VFC8 eca_sctp_a CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_a_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_a_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_sctp_b: # VFC8 eca_sctp_b CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_b_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_b_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_gtp_net: # VFC8 gtp CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_gtp_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: gtp_net + # relationship: tosca.relationships.network.BindsTo + + # Virtual Links (Networks) + + Internal1_net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + + metadata: + resourceInvariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + resourceUUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceversion: 1.0 + resourceName: Network + resourceDescription: Internal Network + resourceType: VL + resourceCategry: Generic + resourceSubcategory: Infrastructure + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_role: + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + ip_version: 4 + enable_dhcp: {get_input: Internal1_net_enable_dhcp} + cidr: {get_input: Internal1_net_cidr} + gateway_ip: {get_input: Internal1_net_gateway_ip} + + Internal2_net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + metadata: + resourceInvariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + resourceUUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceversion: 1.0 + resourceName: Network + resourceDescription: Internal Network + resourceType: VL + resourceCategry: Generic + resourceSubcategory: Infrastructure + resourceVendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_role: + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + ip_version: 4 + enable_dhcp: {get_input: Internal2_net_enable_dhcp} + cidr: {get_input: Internal2_net_cidr} + gateway_ip: {get_input: Internal2_net_gateway_ip} + + + oam_net: + type: org.openecomp.resource.vl.OAM + + metadata: + resourceInvariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + resourceUUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceversion: 2.0 + resourceName: Mobility OAM Network + resourceDescription: Mobility OAM Network + resourceType: VL + resourceCategry: VL + resourceVendor: AT&T + + properties: + network_type: vIPR_ATM_OAM + network_technology: Contrail + network_id: {get_input: oam_net_id} + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + + + groups: + + # VF Modules + vfmoduleVmmeModule-1: + type: org.openecomp.groups.VfModule + + metadata: + vfModuleModelName: vMME::module-1 + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + + properties: + vf_module_type: Expansion # set by service designer + vf_module_label: vMME Expansion VF Module # set by service designer + vf_module_description: vMME expansion VF Module # set by service designer + contrail_service_instance: true # from HEAT + availability_zone_count: 2 # from HEAT + volume_group: false # from HEAT / service Designer + artifacts: # HEAT Templates + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC2 + - oam_net + - vlc2_gtp_net + - Internal1_net + - fsb1_oam + - Internal2_net + + + + # HEAT Stacks + + vmme_small: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/vmme_small.yml + description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc + + members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, + fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2, + ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1, + gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, + vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ] + + vmme_small_create_fsb: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/vmme_small_create_fsb.yml + description: server template for vMME + + members: [ FSB1_volume, FSB2_volume ] + + policies: + # Autoscaling policy + - mme_autoscale_policy: + type: org.openecomp.policy.Autoscaling + properties: + min_instances: 1 + max_instances: 4 + increment: 1 + factor: cpu_load + threshold: 80% + + target: [ vfmoduleVmmeModule-1] + + + substitution_mapping: + type: org.openecomp.resource.vf.vmme + + requirements: + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_IpMux.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_IpMux.yml new file mode 100644 index 0000000000..030fa24603 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_IpMux.yml @@ -0,0 +1,78 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Alloted resource: + file: resource-AllotedResource-template.yml +topology_template: + node_templates: + allotedresource1: + type: org.openecomp.resource.vfc.AllottedResource1 + metadata: + invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 + UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa + customizationUUID: 1c217567-5093-41f5-86e6-22c97ef24e75 + version: '1.0' + name: Alloted resource + description: This is a VFC- Allotted resource + type: VFC + category: Allotted Resource1 + subcategory: Allotted Resource + properties: + role: name + ecomp_naming: + naming_policy: test + ecomp_generated_naming: false + supplemental_data: + Key1: key1 + max_instances: 1 + min_instances: 1 + ecomp_homing: + instance_node_target: Test + homing_policy: Test + supplemental_data: + Key: key + ecomp_selected_instance_node_target: false + groups: { + } + substitution_mappings: + node_type: org.openecomp.resource.vf.AllottedResource + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_IpMux_WithGroups.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_IpMux_WithGroups.yml new file mode 100644 index 0000000000..282750351c --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_IpMux_WithGroups.yml @@ -0,0 +1,283 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Alloted resource: + file: resource-AllotedResource-template.yml +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + node_templates: + allotedresource1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 + UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa + customizationUUID: 1c217567-5093-41f5-86e6-22c97ef24e75 + version: '1.0' + name: Alloted resource + description: This is a VFC- Allotted resource + type: VFC + category: Allotted Resource + subcategory: Allotted Resource + properties: + role: name + ecomp_naming: + naming_policy: test + ecomp_generated_naming: false + supplemental_data: + Key1: key1 + providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c + min_instances: 1 + max_instances: 1 + providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa + providing_service_name: vVIGaaS + ecomp_homing: + instance_node_target: Test + homing_policy: Test + supplemental_data: + Key: key + ecomp_selected_instance_node_target: false + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + substitution_mappings: + node_type: org.openecomp.resource.vf.AllottedResource + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithDiffVersionOfSameL3Network.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithDiffVersionOfSameL3Network.yml new file mode 100644 index 0000000000..c80e701913 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithDiffVersionOfSameL3Network.yml @@ -0,0 +1,78 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: Allotted Resource + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Alloted resource: + file: resource-AllotedResource-template.yml +topology_template: + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 + UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa + version: '1.0' + name: Alloted resource + description: This is a VFC- Allotted resource + type: VFC + category: Allotted Resource + subcategory: Allotted Resource + properties: + role: name + ecomp_naming: + naming_policy: test + ecomp_generated_naming: false + supplemental_data: + Key1: key1 + providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c + min_instances: 1 + max_instances: 1 + providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa + providing_service_name: vVIGaaS + ecomp_homing: + instance_node_target: Test + homing_policy: Test + supplemental_data: + Key: key + ecomp_selected_instance_node_target: false + substitution_mappings: + node_type: org.openecomp.resource.vf.AllottedResource + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithDupL3Network.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithDupL3Network.yml new file mode 100644 index 0000000000..c80e701913 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithDupL3Network.yml @@ -0,0 +1,78 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: Allotted Resource + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Alloted resource: + file: resource-AllotedResource-template.yml +topology_template: + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 + UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa + version: '1.0' + name: Alloted resource + description: This is a VFC- Allotted resource + type: VFC + category: Allotted Resource + subcategory: Allotted Resource + properties: + role: name + ecomp_naming: + naming_policy: test + ecomp_generated_naming: false + supplemental_data: + Key1: key1 + providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c + min_instances: 1 + max_instances: 1 + providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa + providing_service_name: vVIGaaS + ecomp_homing: + instance_node_target: Test + homing_policy: Test + supplemental_data: + Key: key + ecomp_selected_instance_node_target: false + substitution_mappings: + node_type: org.openecomp.resource.vf.AllottedResource + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithL3Network.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithL3Network.yml new file mode 100644 index 0000000000..c80e701913 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithL3Network.yml @@ -0,0 +1,78 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: Allotted Resource + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Alloted resource: + file: resource-AllotedResource-template.yml +topology_template: + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 + UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa + version: '1.0' + name: Alloted resource + description: This is a VFC- Allotted resource + type: VFC + category: Allotted Resource + subcategory: Allotted Resource + properties: + role: name + ecomp_naming: + naming_policy: test + ecomp_generated_naming: false + supplemental_data: + Key1: key1 + providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c + min_instances: 1 + max_instances: 1 + providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa + providing_service_name: vVIGaaS + ecomp_homing: + instance_node_target: Test + homing_policy: Test + supplemental_data: + Key: key + ecomp_selected_instance_node_target: false + substitution_mappings: + node_type: org.openecomp.resource.vf.AllottedResource + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithL3NetworkInVFMod.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithL3NetworkInVFMod.yml new file mode 100644 index 0000000000..c80e701913 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithL3NetworkInVFMod.yml @@ -0,0 +1,78 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: Allotted Resource + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Alloted resource: + file: resource-AllotedResource-template.yml +topology_template: + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 + UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa + version: '1.0' + name: Alloted resource + description: This is a VFC- Allotted resource + type: VFC + category: Allotted Resource + subcategory: Allotted Resource + properties: + role: name + ecomp_naming: + naming_policy: test + ecomp_generated_naming: false + supplemental_data: + Key1: key1 + providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c + min_instances: 1 + max_instances: 1 + providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa + providing_service_name: vVIGaaS + ecomp_homing: + instance_node_target: Test + homing_policy: Test + supplemental_data: + Key: key + ecomp_selected_instance_node_target: false + substitution_mappings: + node_type: org.openecomp.resource.vf.AllottedResource + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource1SameInvariant-IpMux-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource1SameInvariant-IpMux-template.yml new file mode 100644 index 0000000000..76ae589dd9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource1SameInvariant-IpMux-template.yml @@ -0,0 +1,81 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Alloted resource: + file: resource-AllotedResource-template.yml +topology_template: + node_templates: + allotedresource1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 + UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa + customizationUUID: 1c217567-5093-41f5-86e6-22c97ef24e75 + version: '1.0' + name: Alloted resource + description: This is a VFC- Allotted resource + type: VFC + category: Allotted Resource + subcategory: Allotted Resource + properties: + role: name + ecomp_naming: + naming_policy: test + ecomp_generated_naming: false + supplemental_data: + Key1: key1 + providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c + min_instances: 1 + max_instances: 1 + providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b678aa + providing_service_name: vVIGaaS + ecomp_homing: + instance_node_target: Test + homing_policy: Test + supplemental_data: + Key: key + ecomp_selected_instance_node_target: false + groups: { + } + substitution_mappings: + node_type: org.openecomp.resource.vf.AllottedResource + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource2SameInvariant-IpMux-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource2SameInvariant-IpMux-template.yml new file mode 100644 index 0000000000..afd085df89 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource2SameInvariant-IpMux-template.yml @@ -0,0 +1,81 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f64afdc3-6308-4f0c-a476-0d39c8a1fb4d + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Alloted resource: + file: resource-AllotedResource-template.yml +topology_template: + node_templates: + allotedresource1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 + UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa + customizationUUID: 1c217567-5093-41f5-86e6-22c97ef24e75 + version: '1.0' + name: Alloted resource + description: This is a VFC- Allotted resource + type: VFC + category: Allotted Resource + subcategory: Allotted Resource + properties: + role: name + ecomp_naming: + naming_policy: test + ecomp_generated_naming: false + supplemental_data: + Key1: key1 + providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c + min_instances: 1 + max_instances: 1 + providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa + providing_service_name: vVIGaaS + ecomp_homing: + instance_node_target: Test + homing_policy: Test + supplemental_data: + Key: key + ecomp_selected_instance_node_target: false + groups: { + } + substitution_mappings: + node_type: org.openecomp.resource.vf.AllottedResource + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResourceSameInvariantSameVers-IpMux-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResourceSameInvariantSameVers-IpMux-template.yml new file mode 100644 index 0000000000..2852d03568 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-AllottedResourceSameInvariantSameVers-IpMux-template.yml @@ -0,0 +1,81 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Alloted resource: + file: resource-AllotedResource-template.yml +topology_template: + node_templates: + allotedresource1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 + UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa + customizationUUID: 1c217567-5093-41f5-86e6-22c97ef24e75 + version: '1.0' + name: Alloted resource + description: This is a VFC- Allotted resource + type: VFC + category: Allotted Resource + subcategory: Allotted Resource + properties: + role: name + ecomp_naming: + naming_policy: test + ecomp_generated_naming: false + supplemental_data: + Key1: key1 + providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c + min_instances: 1 + max_instances: 1 + providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa + providing_service_name: vVIGaaS + ecomp_homing: + instance_node_target: Test + homing_policy: Test + supplemental_data: + Key: key + ecomp_selected_instance_node_target: false + groups: { + } + substitution_mappings: + node_type: org.openecomp.resource.vf.AllottedResource + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_1_WithDiffVersionOfSameL3Network.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_1_WithDiffVersionOfSameL3Network.yml new file mode 100644 index 0000000000..e474f9a637 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_1_WithDiffVersionOfSameL3Network.yml @@ -0,0 +1,61 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf + UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57433 + name: ExtVL2 + description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks + type: VL + category: Generic + subcategory: Network Elements + resourceVendor: OPENECOMP (Tosca) + resourceVendorRelease: 1.0.0.wd03 +node_types: + org.openecomp.resource.vl.extVL: + derived_from: tosca.nodes.Root + description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks + properties: + physical_network: + type: org.openecomp.datatypes.network.PhysicalNetwork + network_role: + type: string + description: | + Unique label that defines the role that this network performs. example: vce oam network, vnat sr-iov1 network + network_assignments: + type: org.openecomp.datatypes.network.NetworkAssignments + network_flows: + type: org.openecomp.datatypes.network.NetworkFlows + vl_artifacts: + type: map + description: List of artifacts associated with the VL + entry_schema: + type: org.openecomp.datatypes.Artifact + network_scope: + type: string + description: | + Uniquely identifies the network scope. Valid values for the network scope includes: VF - VF-level network. Intra-VF network which connects the VFCs (VMs) inside the VF. SERVICE - Service-level network. Intra-Service network which connects the VFs within the service GLOBAL - Global network which can be shared by multiple services + network_ecomp_naming: + type: org.openecomp.datatypes.EcompNaming + network_type: + type: string + description: OPENECOMP supported network types. + network_technology: + type: string + description: OPENECOMP supported network technology + network_homing: + type: org.openecomp.datatypes.EcompHoming + capabilities: + virtual_linkable: + type: tosca.capabilities.network.Linkable + occurrences: + - 1 + - UNBOUNDED +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithDiffVersionOfSameL3Network.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithDiffVersionOfSameL3Network.yml new file mode 100644 index 0000000000..aa32d4ae01 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithDiffVersionOfSameL3Network.yml @@ -0,0 +1,61 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf + UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 + name: ExtVL1 + description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks + type: VL + category: Generic + subcategory: Network Elements + resourceVendor: OPENECOMP (Tosca) + resourceVendorRelease: 1.0.0.wd03 +node_types: + org.openecomp.resource.vl.extVL: + derived_from: tosca.nodes.Root + description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks + properties: + physical_network: + type: org.openecomp.datatypes.network.PhysicalNetwork + network_role: + type: string + description: | + Unique label that defines the role that this network performs. example: vce oam network, vnat sr-iov1 network + network_assignments: + type: org.openecomp.datatypes.network.NetworkAssignments + network_flows: + type: org.openecomp.datatypes.network.NetworkFlows + vl_artifacts: + type: map + description: List of artifacts associated with the VL + entry_schema: + type: org.openecomp.datatypes.Artifact + network_scope: + type: string + description: | + Uniquely identifies the network scope. Valid values for the network scope includes: VF - VF-level network. Intra-VF network which connects the VFCs (VMs) inside the VF. SERVICE - Service-level network. Intra-Service network which connects the VFs within the service GLOBAL - Global network which can be shared by multiple services + network_ecomp_naming: + type: org.openecomp.datatypes.EcompNaming + network_type: + type: string + description: OPENECOMP supported network types. + network_technology: + type: string + description: OPENECOMP supported network technology + network_homing: + type: org.openecomp.datatypes.EcompHoming + capabilities: + virtual_linkable: + type: tosca.capabilities.network.Linkable + occurrences: + - 1 + - UNBOUNDED +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithDupL3Network.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithDupL3Network.yml new file mode 100644 index 0000000000..512d62bdaa --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithDupL3Network.yml @@ -0,0 +1,61 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf + UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 + name: ExtVL + description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks + type: VL + category: Generic + subcategory: Network Elements + resourceVendor: OPENECOMP (Tosca) + resourceVendorRelease: 1.0.0.wd03 +node_types: + org.openecomp.resource.vl.extVL: + derived_from: tosca.nodes.Root + description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks + properties: + physical_network: + type: org.openecomp.datatypes.network.PhysicalNetwork + network_role: + type: string + description: | + Unique label that defines the role that this network performs. example: vce oam network, vnat sr-iov1 network + network_assignments: + type: org.openecomp.datatypes.network.NetworkAssignments + network_flows: + type: org.openecomp.datatypes.network.NetworkFlows + vl_artifacts: + type: map + description: List of artifacts associated with the VL + entry_schema: + type: org.openecomp.datatypes.Artifact + network_scope: + type: string + description: | + Uniquely identifies the network scope. Valid values for the network scope includes: VF - VF-level network. Intra-VF network which connects the VFCs (VMs) inside the VF. SERVICE - Service-level network. Intra-Service network which connects the VFs within the service GLOBAL - Global network which can be shared by multiple services + network_ecomp_naming: + type: org.openecomp.datatypes.EcompNaming + network_type: + type: string + description: OPENECOMP supported network types. + network_technology: + type: string + description: OPENECOMP supported network technology + network_homing: + type: org.openecomp.datatypes.EcompHoming + capabilities: + virtual_linkable: + type: tosca.capabilities.network.Linkable + occurrences: + - 1 + - UNBOUNDED +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithL3Network.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithL3Network.yml new file mode 100644 index 0000000000..512d62bdaa --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithL3Network.yml @@ -0,0 +1,61 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf + UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 + name: ExtVL + description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks + type: VL + category: Generic + subcategory: Network Elements + resourceVendor: OPENECOMP (Tosca) + resourceVendorRelease: 1.0.0.wd03 +node_types: + org.openecomp.resource.vl.extVL: + derived_from: tosca.nodes.Root + description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks + properties: + physical_network: + type: org.openecomp.datatypes.network.PhysicalNetwork + network_role: + type: string + description: | + Unique label that defines the role that this network performs. example: vce oam network, vnat sr-iov1 network + network_assignments: + type: org.openecomp.datatypes.network.NetworkAssignments + network_flows: + type: org.openecomp.datatypes.network.NetworkFlows + vl_artifacts: + type: map + description: List of artifacts associated with the VL + entry_schema: + type: org.openecomp.datatypes.Artifact + network_scope: + type: string + description: | + Uniquely identifies the network scope. Valid values for the network scope includes: VF - VF-level network. Intra-VF network which connects the VFCs (VMs) inside the VF. SERVICE - Service-level network. Intra-Service network which connects the VFs within the service GLOBAL - Global network which can be shared by multiple services + network_ecomp_naming: + type: org.openecomp.datatypes.EcompNaming + network_type: + type: string + description: OPENECOMP supported network types. + network_technology: + type: string + description: OPENECOMP supported network technology + network_homing: + type: org.openecomp.datatypes.EcompHoming + capabilities: + virtual_linkable: + type: tosca.capabilities.network.Linkable + occurrences: + - 1 + - UNBOUNDED +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template.yml new file mode 100644 index 0000000000..5b4ffd971e --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template.yml @@ -0,0 +1,83 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: ec95fbf0-5d05-4fea-a11e-27869c0032e2 + UUID: 41e4949f-85b3-4bc5-b7a2-2c166bf87270 + name: IP_Mux_Demux + description: nbvnbb + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + resourceVendor: stella + resourceVendorRelease: '1.0' +imports: +- newAllotted: + file: resource-Newallotted-template.yml +topology_template: + inputs: + role: + type: string + ecomp_naming: + type: string + max_instances: + type: string + min_instances: + type: string + ecomp_homing: + type: string + node_templates: + allotedresource1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: cce8d00f-1a7a-439d-b186-207599f8bbf2 + UUID: 468a08a2-10a7-4ee7-86eb-dcf2e74a028f + customizationUUID: e7a3e375-9bec-4552-88d2-26cb5dcf580d + version: '1.0' + name: newAllotted + description: vcxvcx + type: VFC + category: Allotted Resource + subcategory: IP Mux Demux + properties: + ecomp_naming: + naming_policy: + get input: ecomp_naming + providing_service_invariant_uuid: 2bec5c69-b64e-4ffe-b74a-62f14d255d46 + min_instances: 1 + max_instances: 1 + providing_service_uuid: 8ca1e477-77ec-47ed-a498-303fd0de9080 + providing_service_name: ServiceAllMichael1801 + groups: { + } + substitution_mappings: + node_type: org.openecomp.resource.vf.IpMuxDemux + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template_AllRes_VF.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template_AllRes_VF.yml new file mode 100644 index 0000000000..d8885bb84b --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template_AllRes_VF.yml @@ -0,0 +1,81 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 + UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 + name: IP_Mux_Demux + description: IP_Mux_Demux + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Allotedresource: + file: resource-Allotedresource-template.yml +topology_template: + inputs: + role: + type: string + ecomp_naming: + type: string + max_instances: + type: string + min_instances: + type: string + ecomp_homing: + type: string + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c + UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a + customizationUUID: 5eac2a36-bcb5-4158-ace4-802b81e87248 + version: '1.0' + name: Allotedresource + description: Allotedresource + type: VFC + category: Allotted Resource + subcategory: IP Mux Demux + properties: + ecomp_naming: + naming_policy: + get input: ecomp_naming + providing_service_invariant_uuid: e42ea8ff-1862-43f4-a597-4b885cf3c6e5 + min_instances: 1 + max_instances: 1 + providing_service_uuid: 2fb4b63d-7ec8-4fc0-98c7-a1c51fb4b794 + providing_service_name: vVIGaaS + substitution_mappings: + node_type: org.openecomp.resource.vf.IpMuxDemux + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template_WithOutDepSerId.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template_WithOutDepSerId.yml new file mode 100644 index 0000000000..2e06cf467b --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template_WithOutDepSerId.yml @@ -0,0 +1,80 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 + UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 + name: IP_Mux_Demux + description: IP_Mux_Demux + type: VF + category: Allotted Resource + subcategory: Allotted Resource + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Allotedresource: + file: resource-Allotedresource-template.yml +topology_template: + inputs: + role: + type: string + ecomp_naming: + type: string + max_instances: + type: string + min_instances: + type: string + ecomp_homing: + type: string + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c + UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a + customizationUUID: 5eac2a36-bcb5-4158-ace4-802b81e87248 + version: '1.0' + name: Allotedresource + description: Allotedresource + type: VFC + category: Allotted Resource + subcategory: Allotted Resource + properties: + ecomp_naming: + naming_policy: + get input: ecomp_naming + providing_service_invariant_uuid: + min_instances: 1 + max_instances: 1 + providing_service_uuid: + substitution_mappings: + node_type: org.openecomp.resource.vf.IpMuxDemux + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-ServiceAdmin-template_AllRes_VF.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-ServiceAdmin-template_AllRes_VF.yml new file mode 100644 index 0000000000..549c18b55b --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-ServiceAdmin-template_AllRes_VF.yml @@ -0,0 +1,81 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 + UUID: a9c6246c-0807-4a43-a64c-442a170c2088 + name: service_admin + description: service_admin + type: VF + category: Allotted Resource + subcategory: Service admin + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Allotedresource: + file: resource-Allotedresource-template.yml +topology_template: + inputs: + role: + type: string + ecomp_naming: + type: string + max_instances: + type: string + min_instances: + type: string + ecomp_homing: + type: string + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c + UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a + customizationUUID: f61f785d-2c82-4d6d-9184-8cbdf2df4da0 + version: '1.0' + name: Allotedresource + description: Allotedresource + type: VFC + category: Allotted Resource + subcategory: Service admin + properties: + ecomp_naming: + naming_policy: + get input: ecomp_naming + providing_service_invariant_uuid: e42ea8ff-1862-43f4-a597-4b885cf3c6e5 + min_instances: 1 + max_instances: 1 + providing_service_uuid: 2fb4b63d-7ec8-4fc0-98c7-a1c51fb4b794 + providing_service_name: HNPortalaaS + substitution_mappings: + node_type: org.openecomp.resource.vf.ServiceAdmin + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-ServiceAdmin-template_WithOutDepSerId.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-ServiceAdmin-template_WithOutDepSerId.yml new file mode 100644 index 0000000000..c8a641d1ac --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-ServiceAdmin-template_WithOutDepSerId.yml @@ -0,0 +1,81 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 + UUID: a9c6246c-0807-4a43-a64c-442a170c2088 + name: service_admin + description: service_admin + type: VF + category: Allotted Resource + subcategory: Allotted Resource + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Allotedresource: + file: resource-Allotedresource-template.yml +topology_template: + inputs: + role: + type: string + ecomp_naming: + type: string + max_instances: + type: string + min_instances: + type: string + ecomp_homing: + type: string + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c + UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a + customizationUUID: f61f785d-2c82-4d6d-9184-8cbdf2df4da0 + version: '1.0' + name: Allotedresource + description: Allotedresource + type: VFC + category: Allotted Resource + subcategory: Allotted Resource + properties: + ecomp_naming: + naming_policy: + get input: ecomp_naming + providing_service_invariant_uuid: + min_instances: 1 + max_instances: 1 + providing_service_uuid: + providing_service_name: HNPortalaaS + substitution_mappings: + node_type: org.openecomp.resource.vf.ServiceAdmin + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template.yml new file mode 100644 index 0000000000..434757d30e --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template.yml @@ -0,0 +1,83 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: fadbb726-37b6-4939-ba78-9e86974232c5 + UUID: 68d68207-007a-49f3-a9ae-5f88757d5061 + name: Tunnel_XConn + description: stella + type: VF + category: Allotted Resource + subcategory: Tunnel XConnect + resourceVendor: stella + resourceVendorRelease: '1.0' +imports: +- newAllotted: + file: resource-Newallotted-template.yml +topology_template: + inputs: + role: + type: string + ecomp_naming: + type: string + max_instances: + type: string + min_instances: + type: string + ecomp_homing: + type: string + node_templates: + allotedresource1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: cce8d00f-1a7a-439d-b186-207599f8bbf2 + UUID: 468a08a2-10a7-4ee7-86eb-dcf2e74a028f + customizationUUID: a92f5f2e-fe08-4711-84f6-2e64608aca13 + version: '1.0' + name: newAllotted + description: vcxvcx + type: VFC + category: Allotted Resource + subcategory: IP Mux Demux + properties: + ecomp_naming: + naming_policy: + get input: ecomp_naming + providing_service_invariant_uuid: c964ef13-9d61-4d1b-a1a6-7060f3d7ddb4 + min_instances: 1 + max_instances: 1 + providing_service_uuid: 3d6f84f5-84fd-441a-8fd8-401f71196712 + providing_service_name: ServiceSprint38stella + groups: { + } + substitution_mappings: + node_type: org.openecomp.resource.vf.TunnelXconn + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template_AllRes_VF.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template_AllRes_VF.yml new file mode 100644 index 0000000000..1eb97a0976 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template_AllRes_VF.yml @@ -0,0 +1,81 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 + UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb + name: Tunnel_XConn + description: Tunnel_XConn + type: VF + category: Allotted Resource + subcategory: Tunnel XConnect + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Allotedresource: + file: resource-Allotedresource-template.yml +topology_template: + inputs: + role: + type: string + ecomp_naming: + type: string + min_instances: + type: string + max_instances: + type: string + ecomp_homing: + type: string + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c + UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a + customizationUUID: 22ca20ca-1577-46d3-b3ef-77483cca37d6 + version: '1.0' + name: Allotedresource + description: Allotedresource + type: VFC + category: Allotted Resource + subcategory: Tunnel XConnect + properties: + ecomp_naming: + naming_policy: + get input: ecomp_naming + providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c + min_instances: 1 + max_instances: 1 + providing_service_uuid: 2fb4b63d-7ec8-4fc0-98c7-a1c51fb4b794 + providing_service_name: vVIGaaS + substitution_mappings: + node_type: org.openecomp.resource.vf.TunnelXconn + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template_WithOutDepSerId.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template_WithOutDepSerId.yml new file mode 100644 index 0000000000..eb248d1d65 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template_WithOutDepSerId.yml @@ -0,0 +1,81 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 + UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb + name: Tunnel_XConn + description: Tunnel_XConn + type: VF + category: Allotted Resource + subcategory: Allotted Resource + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Allotedresource: + file: resource-Allotedresource-template.yml +topology_template: + inputs: + role: + type: string + ecomp_naming: + type: string + min_instances: + type: string + max_instances: + type: string + ecomp_homing: + type: string + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c + UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a + customizationUUID: 22ca20ca-1577-46d3-b3ef-77483cca37d6 + version: '1.0' + name: Allotedresource + description: Allotedresource + type: VFC + category: Allotted Resource + subcategory: Allotted Resource + properties: + ecomp_naming: + naming_policy: + get input: ecomp_naming + providing_service_invariant_uuid: + min_instances: 1 + max_instances: 1 + providing_service_uuid: + providing_service_name: vVIGaaS + substitution_mappings: + node_type: org.openecomp.resource.vf.TunnelXconn + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-VhnfNonHeat-template_AllRes_VF.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-VhnfNonHeat-template_AllRes_VF.yml new file mode 100644 index 0000000000..8ec1c192ee --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-VhnfNonHeat-template_AllRes_VF.yml @@ -0,0 +1,24 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: f61adc31-6004-4377-a661-090f59e6b32a + UUID: 2118e830-5e0d-409a-9d7a-63b6a72d6f5f + name: vHNF non Heat + description: vHNF non Heat + type: VF + category: Generic + subcategory: Network Elements + resourceVendor: '1' + resourceVendorRelease: '1' +topology_template: + substitution_mappings: + node_type: org.openecomp.resource.vf.VhnfNonHeat +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-VhnfNonHeat-template_WithOutDepSerId.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-VhnfNonHeat-template_WithOutDepSerId.yml new file mode 100644 index 0000000000..8ec1c192ee --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/resource-VhnfNonHeat-template_WithOutDepSerId.yml @@ -0,0 +1,24 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: f61adc31-6004-4377-a661-090f59e6b32a + UUID: 2118e830-5e0d-409a-9d7a-63b6a72d6f5f + name: vHNF non Heat + description: vHNF non Heat + type: VF + category: Generic + subcategory: Network Elements + resourceVendor: '1' + resourceVendorRelease: '1' +topology_template: + substitution_mappings: + node_type: org.openecomp.resource.vf.VhnfNonHeat +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-Allottedipmux-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-Allottedipmux-template.yml new file mode 100644 index 0000000000..449e0925d5 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-Allottedipmux-template.yml @@ -0,0 +1,126 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 9c5b8e77-6ae1-4817-994f-a14a03635868 + UUID: 2722acbc-a8cb-4d73-ab14-9b2d79dc2131 + name: AllottedIPMux + description: cbvbv + type: Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false +imports: +- Tunnel_XConn: + file: resource-TunnelXconn-template.yml +- IP_Mux_Demux: + file: resource-IpMuxDemux-template.yml +topology_template: + node_templates: + Tunnel_XConn 3: + type: org.openecomp.resource.vf.TunnelXconn + metadata: + invariantUUID: fadbb726-37b6-4939-ba78-9e86974232c5 + UUID: 68d68207-007a-49f3-a9ae-5f88757d5061 + customizationUUID: ae051f74-0d64-40f8-877b-791330cd7801 + version: '1.0' + name: Tunnel_XConn + description: stella + type: VF + category: Allotted Resource + subcategory: Tunnel XConnect + IP_Mux_Demux 2: + type: org.openecomp.resource.vf.IpMuxDemux + metadata: + invariantUUID: ec95fbf0-5d05-4fea-a11e-27869c0032e2 + UUID: 41e4949f-85b3-4bc5-b7a2-2c166bf87270 + customizationUUID: 8cb6b8f7-a9bc-4745-92bd-f815f68fa6bc + version: '1.0' + name: IP_Mux_Demux + description: nbvnbb + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + IP_Mux_Demux 1: + type: org.openecomp.resource.vf.IpMuxDemux + metadata: + invariantUUID: ec95fbf0-5d05-4fea-a11e-27869c0032e2 + UUID: 41e4949f-85b3-4bc5-b7a2-2c166bf87270 + customizationUUID: 7801f43f-f3f6-453f-89ea-4c182c569ad6 + version: '1.0' + name: IP_Mux_Demux + description: nbvnbb + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + groups: { + } + substitution_mappings: + node_type: org.openecomp.service.Allottedipmux + capabilities: + IP_Mux_Demux 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Tunnel_XConn 3.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + IP_Mux_Demux 2.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Tunnel_XConn 3.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + IP_Mux_Demux 2.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + IP_Mux_Demux 2.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + IP_Mux_Demux 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + IP_Mux_Demux 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Tunnel_XConn 3.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-SdWan-template_AllRes_VF.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-SdWan-template_AllRes_VF.yml new file mode 100644 index 0000000000..bc3ab6dabb --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-SdWan-template_AllRes_VF.yml @@ -0,0 +1,233 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 3d8b7a76-7c47-4974-b5b9-e24c54b817a2 + UUID: eb31504f-9f60-4936-a2f2-8ac592b611a6 + name: SD-WAN + description: SD-WAN + type: Service + category: Network L4+ + serviceEcompNaming: false + serviceHoming: false +imports: +- service_admin: + file: resource-ServiceAdmin-template.yml +- Tunnel_XConn: + file: resource-TunnelXconn-template.yml +- vHNF non Heat: + file: resource-VhnfNonHeat-template.yml +- IP_Mux_Demux: + file: resource-IpMuxDemux-template.yml +topology_template: + node_templates: + Sec_IP_Mux_Demux: + type: org.openecomp.resource.vf.IpMuxDemux + metadata: + invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 + UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 + customizationUUID: f4b764bb-6721-4219-8c69-7ce61969f755 + version: '0.1' + name: IP_Mux_Demux + description: IP_Mux_Demux + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + Pri_Tunnel_XConn: + type: org.openecomp.resource.vf.TunnelXconn + metadata: + invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 + UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb + customizationUUID: 96d0bbf6-d9f7-441d-8f00-67d79dbf30de + version: '0.1' + name: Tunnel_XConn + description: Tunnel_XConn + type: VF + category: Allotted Resource + subcategory: Tunnel XConnect + Pri_service_admin: + type: org.openecomp.resource.vf.ServiceAdmin + metadata: + invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 + UUID: a9c6246c-0807-4a43-a64c-442a170c2088 + customizationUUID: 6b4a2a55-3b82-4799-8329-4fc2939fd5b5 + version: '0.1' + name: service_admin + description: service_admin + type: VF + category: Allotted Resource + subcategory: Service admin + Pri_IP_Mux_Demux: + type: org.openecomp.resource.vf.IpMuxDemux + metadata: + invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 + UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 + customizationUUID: d8f656d9-179d-4f02-9a46-8af7421eb2a0 + version: '0.1' + name: IP_Mux_Demux + description: IP_Mux_Demux + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + Sec_Tunnel_XConn: + type: org.openecomp.resource.vf.TunnelXconn + metadata: + invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 + UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb + customizationUUID: b432136d-0a2a-460b-a3da-f921e1e0dcfa + version: '0.1' + name: Tunnel_XConn + description: Tunnel_XConn + type: VF + category: Allotted Resource + subcategory: Tunnel XConnect + vHNF non Heat 22: + type: org.openecomp.resource.vf.VhnfNonHeat + metadata: + invariantUUID: f61adc31-6004-4377-a661-090f59e6b32a + UUID: 2118e830-5e0d-409a-9d7a-63b6a72d6f5f + customizationUUID: 9c7a5f7f-6b17-4066-a6f1-094ea925495b + version: '0.1' + name: vHNF non Heat + description: vHNF non Heat + type: VF + category: Generic + subcategory: Network Elements + Sec_service_admin: + type: org.openecomp.resource.vf.ServiceAdmin + metadata: + invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 + UUID: a9c6246c-0807-4a43-a64c-442a170c2088 + customizationUUID: 5a8ef05b-451f-40f4-9531-3ee00bd3c5c4 + version: '0.1' + name: service_admin + description: service_admin + type: VF + category: Allotted Resource + subcategory: Service admin + substitution_mappings: + node_type: org.openecomp.service.SdWan + capabilities: + Sec_service_admin.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Sec_IP_Mux_Demux.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Pri_service_admin.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Pri_IP_Mux_Demux.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Pri_Tunnel_XConn.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Sec_Tunnel_XConn.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Pri_service_admin.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Sec_Tunnel_XConn.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Sec_service_admin.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Pri_IP_Mux_Demux.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Pri_Tunnel_XConn.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Sec_service_admin.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Pri_service_admin.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Sec_IP_Mux_Demux.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Sec_IP_Mux_Demux.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Pri_Tunnel_XConn.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Sec_Tunnel_XConn.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Pri_IP_Mux_Demux.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-SdWan-template_WithOutDepSerId.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-SdWan-template_WithOutDepSerId.yml new file mode 100644 index 0000000000..51d8c2d8ba --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-SdWan-template_WithOutDepSerId.yml @@ -0,0 +1,233 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: 3d8b7a76-7c47-4974-b5b9-e24c54b817a2 + UUID: eb31504f-9f60-4936-a2f2-8ac592b611a6 + name: SD-WAN + description: SD-WAN + type: Service + category: Network L4+ + serviceEcompNaming: false + serviceHoming: false +imports: +- service_admin: + file: resource-ServiceAdmin-template.yml +- Tunnel_XConn: + file: resource-TunnelXconn-template.yml +- vHNF non Heat: + file: resource-VhnfNonHeat-template.yml +- IP_Mux_Demux: + file: resource-IpMuxDemux-template.yml +topology_template: + node_templates: + Sec_IP_Mux_Demux: + type: org.openecomp.resource.vf.IpMuxDemux + metadata: + invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 + UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 + customizationUUID: f4b764bb-6721-4219-8c69-7ce61969f755 + version: '0.1' + name: IP_Mux_Demux + description: IP_Mux_Demux + type: VF + category: Allotted Resource + subcategory: Allotted Resource + Pri_Tunnel_XConn: + type: org.openecomp.resource.vf.TunnelXconn + metadata: + invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 + UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb + customizationUUID: 96d0bbf6-d9f7-441d-8f00-67d79dbf30de + version: '0.1' + name: Tunnel_XConn + description: Tunnel_XConn + type: VF + category: Allotted Resource + subcategory: Allotted Resource + Pri_service_admin: + type: org.openecomp.resource.vf.ServiceAdmin + metadata: + invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 + UUID: a9c6246c-0807-4a43-a64c-442a170c2088 + customizationUUID: 6b4a2a55-3b82-4799-8329-4fc2939fd5b5 + version: '0.1' + name: service_admin + description: service_admin + type: VF + category: Allotted Resource + subcategory: Allotted Resource + Pri_IP_Mux_Demux: + type: org.openecomp.resource.vf.IpMuxDemux + metadata: + invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 + UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 + customizationUUID: d8f656d9-179d-4f02-9a46-8af7421eb2a0 + version: '0.1' + name: IP_Mux_Demux + description: IP_Mux_Demux + type: VF + category: Allotted Resource + subcategory: Allotted Resource + Sec_Tunnel_XConn: + type: org.openecomp.resource.vf.TunnelXconn + metadata: + invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 + UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb + customizationUUID: b432136d-0a2a-460b-a3da-f921e1e0dcfa + version: '0.1' + name: Tunnel_XConn + description: Tunnel_XConn + type: VF + category: Allotted Resource + subcategory: Allotted Resource + vHNF non Heat 22: + type: org.openecomp.resource.vf.VhnfNonHeat + metadata: + invariantUUID: f61adc31-6004-4377-a661-090f59e6b32a + UUID: 2118e830-5e0d-409a-9d7a-63b6a72d6f5f + customizationUUID: 9c7a5f7f-6b17-4066-a6f1-094ea925495b + version: '0.1' + name: vHNF non Heat + description: vHNF non Heat + type: VF + category: Generic + subcategory: Network Elements + Sec_service_admin: + type: org.openecomp.resource.vf.ServiceAdmin + metadata: + invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 + UUID: a9c6246c-0807-4a43-a64c-442a170c2088 + customizationUUID: 5a8ef05b-451f-40f4-9531-3ee00bd3c5c4 + version: '0.1' + name: service_admin + description: service_admin + type: VF + category: Allotted Resource + subcategory: Allotted Resource + substitution_mappings: + node_type: org.openecomp.service.SdWan + capabilities: + Sec_service_admin.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Sec_IP_Mux_Demux.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Pri_service_admin.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Pri_IP_Mux_Demux.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Pri_Tunnel_XConn.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + Sec_Tunnel_XConn.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Pri_service_admin.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Sec_Tunnel_XConn.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Sec_service_admin.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Pri_IP_Mux_Demux.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Pri_Tunnel_XConn.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Sec_service_admin.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Pri_service_admin.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Sec_IP_Mux_Demux.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn + Sec_IP_Mux_Demux.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Pri_Tunnel_XConn.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Sec_Tunnel_XConn.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Pri_IP_Mux_Demux.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourceIpmux-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourceIpmux-template.yml new file mode 100644 index 0000000000..1fba2e727f --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourceIpmux-template.yml @@ -0,0 +1,62 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: faa4359b-6ecf-4eeb-9960-6440d4cf1f2f + UUID: 614316ee-94ae-41b3-b59a-46e87d3d91a5 + name: Service with allotted resource IPMUX + description: safa + type: Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false +imports: +- Allotted Resource: + file: resource-AllottedResource-template.yml +topology_template: + node_templates: + allottedresource1: + type: org.openecomp.resource.vf.AllottedResource + metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + customizationUUID: 958fb310-184f-463d-b634-1660a626f320 + version: '0.2' + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + groups: { + } + substitution_mappings: + node_type: org.openecomp.service.ServiceWithAllottedResourceIpmux + capabilities: + Allotted Resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Allotted Resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Allotted Resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourceIpmux-template_WithGroups.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourceIpmux-template_WithGroups.yml new file mode 100644 index 0000000000..1fba2e727f --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourceIpmux-template_WithGroups.yml @@ -0,0 +1,62 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: faa4359b-6ecf-4eeb-9960-6440d4cf1f2f + UUID: 614316ee-94ae-41b3-b59a-46e87d3d91a5 + name: Service with allotted resource IPMUX + description: safa + type: Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false +imports: +- Allotted Resource: + file: resource-AllottedResource-template.yml +topology_template: + node_templates: + allottedresource1: + type: org.openecomp.resource.vf.AllottedResource + metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + customizationUUID: 958fb310-184f-463d-b634-1660a626f320 + version: '0.2' + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + groups: { + } + substitution_mappings: + node_type: org.openecomp.service.ServiceWithAllottedResourceIpmux + capabilities: + Allotted Resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Allotted Resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Allotted Resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourcesIpMuxSameInvariant-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourcesIpMuxSameInvariant-template.yml new file mode 100644 index 0000000000..efd2dea67a --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourcesIpMuxSameInvariant-template.yml @@ -0,0 +1,74 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: faa4359b-6ecf-4eeb-9960-6440d4cf1f2f + UUID: 614316ee-94ae-41b3-b59a-46e87d3d91a5 + name: Service with allotted resource IPMUX + description: safa + type: Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false +imports: +- Allotted Resource: + file: resource-AllottedResource-template.yml +topology_template: + node_templates: + allottedresource1: + type: org.openecomp.resource.vf.AllottedResource + metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + customizationUUID: 958fb310-184f-463d-b634-1660a626f320 + version: '0.2' + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + allottedresource2: + type: org.openecomp.resource.vf.AllottedResource + metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f64afdc3-6308-4f0c-a476-0d39c8a1fb4d + customizationUUID: 958fb310-184f-463d-b634-1660a626f320 + version: '0.3' + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + groups: { + } + substitution_mappings: + node_type: org.openecomp.service.ServiceWithAllottedResourceIpmux + capabilities: + Allotted Resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Allotted Resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Allotted Resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourcesIpMuxSameInvariantSameVers-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourcesIpMuxSameInvariantSameVers-template.yml new file mode 100644 index 0000000000..08c5329212 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourcesIpMuxSameInvariantSameVers-template.yml @@ -0,0 +1,74 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: faa4359b-6ecf-4eeb-9960-6440d4cf1f2f + UUID: 614316ee-94ae-41b3-b59a-46e87d3d91a5 + name: Service with allotted resource IPMUX + description: safa + type: Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false +imports: +- Allotted Resource: + file: resource-AllottedResource-template.yml +topology_template: + node_templates: + allottedresource1: + type: org.openecomp.resource.vf.AllottedResource + metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + customizationUUID: 958fb310-184f-463d-b634-1660a626f320 + version: '0.2' + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + allottedresource2: + type: org.openecomp.resource.vf.AllottedResource + metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + customizationUUID: 958fb310-184f-463d-b634-1660a626f320 + version: '0.2' + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: IP Mux Demux + groups: { + } + substitution_mappings: + node_type: org.openecomp.service.ServiceWithAllottedResourceIpmux + capabilities: + Allotted Resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Allotted Resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Allotted Resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DiffVerOfSameVF.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DiffVerOfSameVF.yml new file mode 100644 index 0000000000..6a5af0d56b --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DiffVerOfSameVF.yml @@ -0,0 +1,112 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + mme1: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7fef + version: 2.0 + name: vMME_VF1 + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DiffVerOfSameVFModWithSameInvId.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DiffVerOfSameVFModWithSameInvId.yml new file mode 100644 index 0000000000..11ab6e1343 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DiffVerOfSameVFModWithSameInvId.yml @@ -0,0 +1,98 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DupVFModUUID.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DupVFModUUID.yml new file mode 100644 index 0000000000..e75f7ab1a8 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DupVFModUUID.yml @@ -0,0 +1,194 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + name: vMME_Service + description: vMME_Service + type: Service + category: Mobility + ecompNaming: false + homing: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + vendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + + # Virtual Links (Networks) + + gtp_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DupVFUUID.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DupVFUUID.yml new file mode 100644 index 0000000000..f92b048f5e --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DupVFUUID.yml @@ -0,0 +1,229 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + name: vMME_Service + description: vMME_Service + type: Service + category: Mobility + ecompNaming: false + homing: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + vendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + mme1: # vMME VNF1 + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF2 + description: vMME_VF2 + type: VF + category: Application L4+ + subcategory: Firewall + vendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + + # Virtual Links (Networks) + + gtp_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MissingVFInServiceTOSCA.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MissingVFInServiceTOSCA.yml new file mode 100644 index 0000000000..d112817569 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MissingVFInServiceTOSCA.yml @@ -0,0 +1,158 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + name: vMME_Service + type: Service + description: vMME_Service + category: Mobility + ecompNaming: false + homing: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + # Virtual Links (Networks) + + gtp_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + categry: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + categry: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + categry: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: abc.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MissingVFTemplate.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MissingVFTemplate.yml new file mode 100644 index 0000000000..81982bdf50 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MissingVFTemplate.yml @@ -0,0 +1,193 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + name: vMME_Service + description: vMME_Service + type: Service + category: Mobility + ecompNaming: false + homing: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: abc.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + vendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + # Virtual Links (Networks) + + gtp_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MulComp.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MulComp.yml new file mode 100644 index 0000000000..dd0a8eba3d --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MulComp.yml @@ -0,0 +1,193 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + name: vMME_Service + description: vMME_Service + type: Service + category: Mobility + ecompNaming: false + homing: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + vendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + # Virtual Links (Networks) + + gtp_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MulVFVFMod.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MulVFVFMod.yml new file mode 100644 index 0000000000..353a233d74 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MulVFVFMod.yml @@ -0,0 +1,194 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + version: 1.0 + name: vMME_Service + type: Service + description: vMME_Service + category: Mobility + ecompNaming: false + homing: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: abc.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + resourceSubcategory: Firewall + vendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + # Virtual Links (Networks) + + gtp_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: abc.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_NoSystemPropConfigured.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_NoSystemPropConfigured.yml new file mode 100644 index 0000000000..11ab6e1343 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_NoSystemPropConfigured.yml @@ -0,0 +1,98 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_NullFields.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_NullFields.yml new file mode 100644 index 0000000000..2ca342cd46 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_NullFields.yml @@ -0,0 +1,193 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: + name: vMME_Service + type: Service + description: vMME_Service + category: Mobility + ecompNaming: false + homing: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + vendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + # Virtual Links (Networks) + + gtp_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_Orphan.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_Orphan.yml new file mode 100644 index 0000000000..6ca0957b8f --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_Orphan.yml @@ -0,0 +1,229 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + name: vMME_Service + type: Service + description: vMME_Service + category: Mobility + ecompNaming: false + homing: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + vendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + mme1: # vMME VNF1 + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF2 + type: VF + category: Application L4+ + subcategory: Firewall + vendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + + # Virtual Links (Networks) + + gtp_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SameWidget1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SameWidget1.yml new file mode 100644 index 0000000000..d83e44be1c --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SameWidget1.yml @@ -0,0 +1,193 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e266f20c-5331-4245-9ad5-8861a73080b7 + UUID: 8887da18-7516-40cf-bec0-ebd4202c60f0 + name: vMME_Service + type: Service + description: vMME_Service + category: Mobility + ecompNaming: false + homing: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8753c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b031ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + categry: Application L4+ + subcategory: Firewall + vendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + # Virtual Links (Networks) + + gtp_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + categry: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + categry: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + categry: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SameWidget2.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SameWidget2.yml new file mode 100644 index 0000000000..989c623fd3 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SameWidget2.yml @@ -0,0 +1,193 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + name: vMME_Service + type: Service + description: vMME_Service + category: Mobility + ecompNaming: false + homing: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + categry: Application L4+ + subcategory: Firewall + vendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + # Virtual Links (Networks) + + gtp_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + categry: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + categry: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + categry: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SingleVFVFMod.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SingleVFVFMod.yml new file mode 100644 index 0000000000..0d586db1a8 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SingleVFVFMod.yml @@ -0,0 +1,98 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyMandatoryParameterResourceVersion.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyMandatoryParameterResourceVersion.yml new file mode 100644 index 0000000000..2d92782ce4 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyMandatoryParameterResourceVersion.yml @@ -0,0 +1,178 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: vMMSC Service Topology Template + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + name: vMMSC_Service + description: vMMSC Service + type: Service + category: Mobility + ecompNaming: false + homing: false + + # reference to template definitions +imports: + - tosca_simple_profile_for_ecomp_1_0.yml + - vmmsc_vf.yml + - veca_oam_vf.yml + - cmaui_vf.yml + - service_network.yml # + +topology_template: + + # This section provides the parameters which OPENECOMP is not providing values to during instantiation. + # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP + # during the orchestration + + inputes: + service_instance_name: + type: string + description: service instance name + service_deployment_node: + type: string + description: The target LCP node for deployment of this service instance + vMMSC_init_instances: + type: integer + description: The number of instances to instantiate + constraints: + - in_range: [1, 5] + vECA_OAM_init_instances: + type: integer + description: The number of instances to instantiate + constraints: + - in_range: [1, 3] + + node_templates: + + vMMSC: # vMMSC VNF + type: org.openecomp.resource.vf.Generic + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + name: vMMC VF + description: | + Delivers messages composed of text, images, and other media types (for example audio and video) + in an operator's network. It is responsible for storing and handling incoming and outgoing Multimedia + Messages (MMs); therefore, acting as an MMS Relay and MMS Server at the same time. + type: VF + category: Mobility + subCategory: MMC + vendor: Nokia + vendorVersion: 6.0.2.14 + + properties: + vf_ecomp_name: true + vf_instance_name: # to be set by OPENECOMP during instantiation + vf_homing: true + vf_deployment_node: # to be set by OPENECOMP during instantiation + min_instances: 1 + max_instances: 5 + init_instances: # number of instances to initialize. This number can be in the range of min_instances and max_instances. + # if no value provided use min_instances value. + + + vECA_OAM: # vECA VF + type: org.openecomp.resource.vf.Generic + + metadata: + invariantUUID: 3d4f3d68-d3a3-4f52-127c-ab188c9d4da2 # generated by ASDC + UUID: a2c4dc32-9c16-a3df-d2c0-e5ab221c69f0 # generated by ASDC + version: 1.0 # set by ASDC + name: vECA VF + description: | + Performs intelligent adaptation of Multimedia Messages (MMs), and adaptation of individual media, + such as videos, audio files, images, animations, and text. Sits on the MM1 downlink path and performs + optimization offline. It intercepts the entire media and completes the optimizations before sending + the message to handsets. + type: VF + category: Generic + resourceCategory: Mobility + subCategory: MMSC + vendor: Nokia + vendorVersion: 13 + + properties: + vf_ecomp_name: true + vf_instance_name: # to be set by OPENECOMP during instantiation + vf_homing: true + vf_deployment_node: # to be set by OPENECOMP during instantiation + min_instances: 1 + max_instances: 3 + + + + CMAUI: # CMAUI VF + type: org.openecomp.resource.vf.Generic + + metadata: + invariantUUID: dd4f3d68-1223-4a97-127c-11ab729d4da2 # generated by ASDC + UUID: 2a14db52-5116-d3af-1240-1236221cab8d # generated by ASDC + version: 1.0 # set by ASDC + name: CMAUI VF + description: CMAUI MMSC VF + type: VF + category: Generic + resourceCategory: Mobility + subCategory: MMSC + vendor: Nokia + vendorVersion: 5.0.2.5.37 + + properties: + vf_ecomp_name: true + vf_instance_name: # to be set by OPENECOMP during instantiation + vf_homing: true + vf_deployment_node: # to be set by OPENECOMP during instantiation + min_instances: 1 + max_instances: 1 + + + + # service level network + + eca_internal_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: ECA traffic network + description: ECA traffic network + type: VL + category: VL + vendor: Nokia + + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + network_name: # provided by OPENECOMP (SDNC) + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyMandatoryParameterServiceVersion.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyMandatoryParameterServiceVersion.yml new file mode 100644 index 0000000000..0d586db1a8 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyMandatoryParameterServiceVersion.yml @@ -0,0 +1,98 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyResourceVersionFormat1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyResourceVersionFormat1.yml new file mode 100644 index 0000000000..2e0d2d4bc7 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyResourceVersionFormat1.yml @@ -0,0 +1,98 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 9 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyResourceVersionFormat2.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyResourceVersionFormat2.yml new file mode 100644 index 0000000000..9ab98f3c01 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyResourceVersionFormat2.yml @@ -0,0 +1,98 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 0.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyServiceVersion.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyServiceVersion.yml new file mode 100644 index 0000000000..0d586db1a8 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyServiceVersion.yml @@ -0,0 +1,98 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyServiceVersionFormat.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyServiceVersionFormat.yml new file mode 100644 index 0000000000..0d586db1a8 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyServiceVersionFormat.yml @@ -0,0 +1,98 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyVFModWithInvalidNo.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyVFModWithInvalidNo.yml new file mode 100644 index 0000000000..ae7d9cec4a --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyVFModWithInvalidNo.yml @@ -0,0 +1,102 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + version: 1.0 + name: vMME_Service + type: Service + description: vMME_Service + category: Mobility + ecompNaming: false + homing: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + vendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + # Virtual Links (Networks) + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyVFModWithoutVNFC.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyVFModWithoutVNFC.yml new file mode 100644 index 0000000000..7789017a68 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyVFModWithoutVNFC.yml @@ -0,0 +1,193 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + name: vMME_Service + type: Service + description: vMME_Service + category: Mobility + ecompNaming: false + homing: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + vendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + + # Virtual Links (Networks) + + gtp_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + version: 1.0 + name: GTPNet + description: GTP External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: {get_input: gtp_net_network_name} + route_targets: {get_input: gtp_net_route_targets} + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: {get_input: gtp_net_cidr} + gateway_ip: {get_input: gtp_net_gateway_ip} + start_ip: {get_input: gtp_net_start_ip} + end_ip: {get_input: gtp_net_end_ip} + + sctp_a_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + version: 1.0 + name: SCTPANet + description: SCTP A External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + + sctp_b_net: + type: abc.openecomp.resource.vl.VL + metadata: + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + version: 1.0 + name: SCTPBNet + description: SCTP B External Network + type: VL + category: VL + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithDiffVersionOfSameL3Network.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithDiffVersionOfSameL3Network.yml new file mode 100644 index 0000000000..e4139550fe --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithDiffVersionOfSameL3Network.yml @@ -0,0 +1,235 @@ +--- +description: "Service Template for deploing MME Service" +imports: + - + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + - + ExtVL: + file: resource-Extvl-template.yml + - + ? "Allotted Resource" + : + file: resource-AllottedResource-template.yml +metadata: + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + category: Mobility + description: vMME_Service + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + name: vMME_Service + serviceEcompNaming: false + serviceHoming: false + type: Service +topology_template: + groups: + external_networks: + members: + - sctp_a_net + - sctp_b_net + - gtp_net + properties: + availability_zone_count: 1 + contrail_service_instance: true + type: org.openecomp.groups.externalNetworks + inputs: + gtp_net_cidr: + default: 107.243.37.64/27 + description: "The GTP network cidr" + type: string + gtp_net_end_ip: + default: "107.243.37.94" + description: "The GTP network end ip" + type: string + gtp_net_gateway_ip: + default: "107.243.37.65" + description: "The GTP network gateway" + type: string + gtp_net_network_name: + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 + description: "The GTP network route targets" + type: string + gtp_net_route_targets: + default: "13979:105715" + description: "The GTP network route targets" + type: string + gtp_net_start_ip: + default: "107.243.37.67" + description: "The GTP network start ip" + type: string + mme_vf_deployment_node: + description: "The target LCP node for deployment of this VF instance" + type: string + mme_vf_instance_name: + description: "VF instance name" + type: string + node_templates: + ? "Allotted Resource 2" + : + metadata: + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + category: "Allotted Resource" + description: "This is a VF - Allotted resource" + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + name: "Allotted Resource" + subcategory: "Allotted Resource" + type: VF + version: 1.0 + type: org.openecomp.resource.vf.AllottedResource + ? "ExtVL 1" + : + metadata: + UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 + category: Generic + description: "OPENECOMP generic virtual link (network) base type for all other service-level and global networks" + invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf + name: ExtVL + subcategory: "Network Elements" + type: VL + version: 2.0 + type: org.openecomp.resource.vl.extVL + ? "ExtVL 2" + : + metadata: + UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57433 + category: Generic + description: "OPENECOMP generic virtual link (network) base type for all other service-level and global networks" + invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf + name: ExtVL + subcategory: "Network Elements" + type: VL + version: 2.0 + type: org.openecomp.resource.vl.extVL + gtp_net: + metadata: + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + category: VL + description: "GTP External Network" + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + name: GTPNet + resourceVendor: AT&T + type: VL + version: 1.0 + properties: + contrail_virtual_network: + network_name: + get_input: gtp_net_network_name + route_targets: + get_input: gtp_net_route_targets + flow_pattern: E-LAN + l3_access_parameters: + cidr: + get_input: gtp_net_cidr + end_ip: + get_input: gtp_net_end_ip + gateway_ip: + get_input: gtp_net_gateway_ip + ip_version: 4 + start_ip: + get_input: gtp_net_start_ip + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_id: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: abc.openecomp.resource.vl.VL + mme: + metadata: + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + resourceVendor: Ericsson + subcategory: Firewall + type: VF + version: 1.0 + properties: + vf_deployment_node: + get_input: vf_deployment_node + vf_ecomp_name: false + vf_homing: false + vf_instance_name: + get_input: vf_instance_name + requirements: + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vf.vmme + sctp_a_net: + metadata: + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + category: VL + description: "SCTP A External Network" + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + name: SCTPANet + resourceVendor: AT&T + type: VL + version: 1.0 + properties: + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: "13979:105717" + flow_pattern: E-LAN + l3_access_parameters: + cidr: 107.243.37.0/27 + end_ip: "107.243.37.30" + gateway_ip: "107.243.37.1" + ip_version: 4 + start_ip: "107.243.37.3" + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: abc.openecomp.resource.vl.VL + sctp_b_net: + metadata: + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + category: VL + description: "SCTP B External Network" + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + name: SCTPBNet + resourceVendor: AT&T + type: VL + version: 1.0 + properties: + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: "13979:105719" + flow_pattern: E-LAN + l3_access_parameters: + cidr: 107.243.37.32/24 + end_ip: "107.243.37.62" + gateway_ip: "107.243.37.33" + ip_version: 4 + start_ip: "107.243.37.35" + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_id: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: abc.openecomp.resource.vl.VL +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithDupL3Network.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithDupL3Network.yml new file mode 100644 index 0000000000..c72aab10bc --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithDupL3Network.yml @@ -0,0 +1,235 @@ +--- +description: "Service Template for deploing MME Service" +imports: + - + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + - + ExtVL: + file: resource-Extvl-template.yml + - + ? "Allotted Resource" + : + file: resource-AllottedResource-template.yml +metadata: + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + category: Mobility + description: vMME_Service + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + name: vMME_Service + serviceEcompNaming: false + serviceHoming: false + type: Service +topology_template: + groups: + external_networks: + members: + - sctp_a_net + - sctp_b_net + - gtp_net + properties: + availability_zone_count: 1 + contrail_service_instance: true + type: org.openecomp.groups.externalNetworks + inputs: + gtp_net_cidr: + default: 107.243.37.64/27 + description: "The GTP network cidr" + type: string + gtp_net_end_ip: + default: "107.243.37.94" + description: "The GTP network end ip" + type: string + gtp_net_gateway_ip: + default: "107.243.37.65" + description: "The GTP network gateway" + type: string + gtp_net_network_name: + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 + description: "The GTP network route targets" + type: string + gtp_net_route_targets: + default: "13979:105715" + description: "The GTP network route targets" + type: string + gtp_net_start_ip: + default: "107.243.37.67" + description: "The GTP network start ip" + type: string + mme_vf_deployment_node: + description: "The target LCP node for deployment of this VF instance" + type: string + mme_vf_instance_name: + description: "VF instance name" + type: string + node_templates: + ? "Allotted Resource 2" + : + metadata: + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + category: "Allotted Resource" + description: "This is a VF - Allotted resource" + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + name: "Allotted Resource" + subcategory: "Allotted Resource" + type: VF + version: 1.0 + type: org.openecomp.resource.vf.AllottedResource + ? "ExtVL 1" + : + metadata: + UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 + category: Generic + description: "OPENECOMP generic virtual link (network) base type for all other service-level and global networks" + invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf + name: ExtVL + subcategory: "Network Elements" + type: VL + version: 2.0 + type: org.openecomp.resource.vl.extVL + ? "ExtVL 2" + : + metadata: + UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 + category: Generic + description: "OPENECOMP generic virtual link (network) base type for all other service-level and global networks" + invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf + name: ExtVL + subcategory: "Network Elements" + type: VL + version: 2.0 + type: org.openecomp.resource.vl.extVL + gtp_net: + metadata: + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + category: VL + description: "GTP External Network" + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + name: GTPNet + resourceVendor: AT&T + type: VL + version: 1.0 + properties: + contrail_virtual_network: + network_name: + get_input: gtp_net_network_name + route_targets: + get_input: gtp_net_route_targets + flow_pattern: E-LAN + l3_access_parameters: + cidr: + get_input: gtp_net_cidr + end_ip: + get_input: gtp_net_end_ip + gateway_ip: + get_input: gtp_net_gateway_ip + ip_version: 4 + start_ip: + get_input: gtp_net_start_ip + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_id: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: abc.openecomp.resource.vl.VL + mme: + metadata: + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + resourceVendor: Ericsson + subcategory: Firewall + type: VF + version: 1.0 + properties: + vf_deployment_node: + get_input: vf_deployment_node + vf_ecomp_name: false + vf_homing: false + vf_instance_name: + get_input: vf_instance_name + requirements: + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vf.vmme + sctp_a_net: + metadata: + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + category: VL + description: "SCTP A External Network" + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + name: SCTPANet + resourceVendor: AT&T + type: VL + version: 1.0 + properties: + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: "13979:105717" + flow_pattern: E-LAN + l3_access_parameters: + cidr: 107.243.37.0/27 + end_ip: "107.243.37.30" + gateway_ip: "107.243.37.1" + ip_version: 4 + start_ip: "107.243.37.3" + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: abc.openecomp.resource.vl.VL + sctp_b_net: + metadata: + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + category: VL + description: "SCTP B External Network" + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + name: SCTPBNet + resourceVendor: AT&T + type: VL + version: 1.0 + properties: + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: "13979:105719" + flow_pattern: E-LAN + l3_access_parameters: + cidr: 107.243.37.32/24 + end_ip: "107.243.37.62" + gateway_ip: "107.243.37.33" + ip_version: 4 + start_ip: "107.243.37.35" + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_id: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: abc.openecomp.resource.vl.VL +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithInvIdGreaterThanSpecifiedLimit.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithInvIdGreaterThanSpecifiedLimit.yml new file mode 100644 index 0000000000..37bada7396 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithInvIdGreaterThanSpecifiedLimit.yml @@ -0,0 +1,98 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b70 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithInvIdLesserThanSpecifiedLimit.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithInvIdLesserThanSpecifiedLimit.yml new file mode 100644 index 0000000000..15157e9076 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithInvIdLesserThanSpecifiedLimit.yml @@ -0,0 +1,98 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f00 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithL3Network.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithL3Network.yml new file mode 100644 index 0000000000..f262ef6e82 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithL3Network.yml @@ -0,0 +1,223 @@ +--- +description: "Service Template for deploing MME Service" +imports: + - + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + - + ExtVL: + file: resource-Extvl-template.yml + - + ? "Allotted Resource" + : + file: resource-AllottedResource-template.yml +metadata: + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + category: Mobility + description: vMME_Service + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + name: vMME_Service + serviceEcompNaming: false + serviceHoming: false + type: Service +topology_template: + groups: + external_networks: + members: + - sctp_a_net + - sctp_b_net + - gtp_net + properties: + availability_zone_count: 1 + contrail_service_instance: true + type: org.openecomp.groups.externalNetworks + inputs: + gtp_net_cidr: + default: 107.243.37.64/27 + description: "The GTP network cidr" + type: string + gtp_net_end_ip: + default: "107.243.37.94" + description: "The GTP network end ip" + type: string + gtp_net_gateway_ip: + default: "107.243.37.65" + description: "The GTP network gateway" + type: string + gtp_net_network_name: + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 + description: "The GTP network route targets" + type: string + gtp_net_route_targets: + default: "13979:105715" + description: "The GTP network route targets" + type: string + gtp_net_start_ip: + default: "107.243.37.67" + description: "The GTP network start ip" + type: string + mme_vf_deployment_node: + description: "The target LCP node for deployment of this VF instance" + type: string + mme_vf_instance_name: + description: "VF instance name" + type: string + node_templates: + ? "Allotted Resource 2" + : + metadata: + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + category: "Allotted Resource" + description: "This is a VF - Allotted resource" + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + name: "Allotted Resource" + subcategory: "Allotted Resource" + type: VF + version: 1.0 + type: org.openecomp.resource.vf.AllottedResource + ? "ExtVL 1" + : + metadata: + UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 + category: Generic + description: "OPENECOMP generic virtual link (network) base type for all other service-level and global networks" + invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf + name: ExtVL + subcategory: "Network Elements" + type: VL + version: 2.0 + type: org.openecomp.resource.vl.extVL + gtp_net: + metadata: + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + category: VL + description: "GTP External Network" + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + name: GTPNet + resourceVendor: AT&T + type: VL + version: 1.0 + properties: + contrail_virtual_network: + network_name: + get_input: gtp_net_network_name + route_targets: + get_input: gtp_net_route_targets + flow_pattern: E-LAN + l3_access_parameters: + cidr: + get_input: gtp_net_cidr + end_ip: + get_input: gtp_net_end_ip + gateway_ip: + get_input: gtp_net_gateway_ip + ip_version: 4 + start_ip: + get_input: gtp_net_start_ip + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_id: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: abc.openecomp.resource.vl.VL + mme: + metadata: + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + resourceVendor: Ericsson + subcategory: Firewall + type: VF + version: 1.0 + properties: + vf_deployment_node: + get_input: vf_deployment_node + vf_ecomp_name: false + vf_homing: false + vf_instance_name: + get_input: vf_instance_name + requirements: + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vf.vmme + sctp_a_net: + metadata: + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + category: VL + description: "SCTP A External Network" + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + name: SCTPANet + resourceVendor: AT&T + type: VL + version: 1.0 + properties: + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: "13979:105717" + flow_pattern: E-LAN + l3_access_parameters: + cidr: 107.243.37.0/27 + end_ip: "107.243.37.30" + gateway_ip: "107.243.37.1" + ip_version: 4 + start_ip: "107.243.37.3" + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: abc.openecomp.resource.vl.VL + sctp_b_net: + metadata: + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + category: VL + description: "SCTP B External Network" + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + name: SCTPBNet + resourceVendor: AT&T + type: VL + version: 1.0 + properties: + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: "13979:105719" + flow_pattern: E-LAN + l3_access_parameters: + cidr: 107.243.37.32/24 + end_ip: "107.243.37.62" + gateway_ip: "107.243.37.33" + ip_version: 4 + start_ip: "107.243.37.35" + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_id: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: abc.openecomp.resource.vl.VL +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithL3NetworkInVFMod.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithL3NetworkInVFMod.yml new file mode 100644 index 0000000000..1853802b80 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithL3NetworkInVFMod.yml @@ -0,0 +1,211 @@ +--- +description: "Service Template for deploing MME Service" +imports: + - + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + - + ExtVL: + file: resource-Extvl-template.yml + - + ? "Allotted Resource" + : + file: resource-AllottedResource-template.yml +metadata: + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + category: Mobility + description: vMME_Service + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + name: vMME_Service + serviceEcompNaming: false + serviceHoming: false + type: Service +topology_template: + groups: + external_networks: + members: + - sctp_a_net + - sctp_b_net + - gtp_net + properties: + availability_zone_count: 1 + contrail_service_instance: true + type: org.openecomp.groups.externalNetworks + inputs: + gtp_net_cidr: + default: 107.243.37.64/27 + description: "The GTP network cidr" + type: string + gtp_net_end_ip: + default: "107.243.37.94" + description: "The GTP network end ip" + type: string + gtp_net_gateway_ip: + default: "107.243.37.65" + description: "The GTP network gateway" + type: string + gtp_net_network_name: + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 + description: "The GTP network route targets" + type: string + gtp_net_route_targets: + default: "13979:105715" + description: "The GTP network route targets" + type: string + gtp_net_start_ip: + default: "107.243.37.67" + description: "The GTP network start ip" + type: string + mme_vf_deployment_node: + description: "The target LCP node for deployment of this VF instance" + type: string + mme_vf_instance_name: + description: "VF instance name" + type: string + node_templates: + ? "Allotted Resource 2" + : + metadata: + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + category: "Allotted Resource" + description: "This is a VF - Allotted resource" + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + name: "Allotted Resource" + subcategory: "Allotted Resource" + type: VF + version: 3.0 + type: org.openecomp.resource.vf.AllottedResource + gtp_net: + metadata: + UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 + category: VL + description: "GTP External Network" + invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 + name: GTPNet + resourceVendor: AT&T + type: VL + version: 1.0 + properties: + contrail_virtual_network: + network_name: + get_input: gtp_net_network_name + route_targets: + get_input: gtp_net_route_targets + flow_pattern: E-LAN + l3_access_parameters: + cidr: + get_input: gtp_net_cidr + end_ip: + get_input: gtp_net_end_ip + gateway_ip: + get_input: gtp_net_gateway_ip + ip_version: 4 + start_ip: + get_input: gtp_net_start_ip + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_id: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: abc.openecomp.resource.vl.VL + mme: + metadata: + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + resourceVendor: Ericsson + subcategory: Firewall + type: VF + version: 2.0 + properties: + vf_deployment_node: + get_input: vf_deployment_node + vf_ecomp_name: false + vf_homing: false + vf_instance_name: + get_input: vf_instance_name + requirements: + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vf.vmme + sctp_a_net: + metadata: + UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 + category: VL + description: "SCTP A External Network" + invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 + name: SCTPANet + resourceVendor: AT&T + type: VL + version: 1.0 + properties: + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 + route_targets: "13979:105717" + flow_pattern: E-LAN + l3_access_parameters: + cidr: 107.243.37.0/27 + end_ip: "107.243.37.30" + gateway_ip: "107.243.37.1" + ip_version: 4 + start_ip: "107.243.37.3" + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: abc.openecomp.resource.vl.VL + sctp_b_net: + metadata: + UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 + category: VL + description: "SCTP B External Network" + invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 + name: SCTPBNet + resourceVendor: AT&T + type: VL + version: 1.0 + properties: + contrail_virtual_network: + network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 + route_targets: "13979:105719" + flow_pattern: E-LAN + l3_access_parameters: + cidr: 107.243.37.32/24 + end_ip: "107.243.37.62" + gateway_ip: "107.243.37.33" + ip_version: 4 + start_ip: "107.243.37.35" + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_id: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: abc.openecomp.resource.vl.VL +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithUpdatedUUIDInConfig.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithUpdatedUUIDInConfig.yml new file mode 100644 index 0000000000..11ab6e1343 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithUpdatedUUIDInConfig.yml @@ -0,0 +1,98 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: Service Template for deploing MME Service + +metadata: + invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 + UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 + type: Service + name: vMME_Service + description: vMME_Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false + +imports: + vmmeToscaTemplate: + file: vf_vmme_template_1.yml + +topology_template: + + inputs: + mme_vf_instance_name: + type: string + description: VF instance name + mme_vf_deployment_node: + type: string + description: The target LCP node for deployment of this VF instance + gtp_net_network_name: + type: string + description: The GTP network route targets + default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV + gtp_net_route_targets: + type: string + description: The GTP network route targets + default: "13979:105715" # HEAT ENV + gtp_net_cidr: + type: string + description: The GTP network cidr + default: 107.243.37.64/27 # HEAT ENV + gtp_net_gateway_ip: + type: string + description: The GTP network gateway + default: 107.243.37.65 # HEAT ENV + gtp_net_start_ip: + type: string + description: The GTP network start ip + default: 107.243.37.67 # HEAT ENV + gtp_net_end_ip: + type: string + description: The GTP network end ip + default: 107.243.37.94 # HEAT ENV + # more inputs were removed for brevity + + node_templates: + + mme: # vMME VNF + type: org.openecomp.resource.vf.vmme + + metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + version: 1.0 + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: Ericsson + + properties: + vf_ecomp_name: false + vf_instance_name: { get_input: vf_instance_name } + vf_homing: false + vf_deployment_node: { get_input: vf_deployment_node } + + requirements: + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Bindable + node: sctp_a_net + relationship: tosca.relationships.network.BindsTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Bindable + node: sctp_b_net + relationship: tosca.relationships.network.BindsTo + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Bindable + node: gtp_net + relationship: tosca.relationships.network.BindsTo + + groups: + + external_networks: # vMME_External_Network + type: org.openecomp.groups.externalNetworks + properties: + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + + members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVFModWithSameInvId.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVFModWithSameInvId.yml new file mode 100644 index 0000000000..b6076b177d --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVFModWithSameInvId.yml @@ -0,0 +1,1353 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + + vfmoduleVmmeModule-2: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-2" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7fef + vfModuleModelVersion: 2 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVF_1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVF_1.yml new file mode 100644 index 0000000000..6aee48b9d9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVF_1.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVF_2.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVF_2.yml new file mode 100644 index 0000000000..1e67b68c8c --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVF_2.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF1 + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7fef + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DupVFModUUID.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DupVFModUUID.yml new file mode 100644 index 0000000000..b8e80df3eb --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DupVFModUUID.yml @@ -0,0 +1,1242 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: VF Template for pseodo vMME + +# metadata of the VF model +metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + vendor: Ericsson + +# imports include all other tosca definitions that are required for this template +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml + +topology_template: + +# inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks) + inputs: + fsb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + fsb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + fsb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_FSB1_16ACP03.qcow2 + fsb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + fsb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB002 + fsb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + fsb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_FSB2_16ACP03.qcow2 + fsb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + defualt: m4.xlarge4 + ncb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + ncb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + ncb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_NCB1_16ACP03.qcow2 + ncb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + ncb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + ncb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + ncb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_NCB2_16ACP03.qcow2 + ncb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + gpb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + gpb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + gpb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_GPB1_16ACP03.qcow2 + gpb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + gpb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + gpb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + gpb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_GPB2_16ACP03.qcow2 + gpb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + vlc1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + vlc1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + vlc1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_VLC1_16ACP03.qcow2 + vlc1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + vlc2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + vlc2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + vlc2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_VLC2_16ACP03.qcow2 + vlc2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + + fsb1_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + fsb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + fsb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + fsb2_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + fsb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + fsb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + + ncb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + ncb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + ncb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + ncb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + gpb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + gpb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + gpb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + gpb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + vlc1_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_gtp_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_sctp_a_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_sctp_b_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + vlc1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + vlc2_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_gtp_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_sctp_a_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_sctp_b_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + vlc2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + Internal1_net_dhcp: + hidden: false + immutable: false + type: string + default: 'False' + Internal1_net_cidr: + hidden: false + immutable: false + type: string + default: 169.253.0.0/17 + Internal1_net_gateway_ip: + hidden: false + immutable: false + type: string + default: 169.253.0.3 + Internal2_net_dhcp: + hidden: false + immutable: false + type: string + default: 'False' + Internal2_net_cidr: + hidden: false + immutable: false + type: string + default: 169.255.0.0/17 + Internal2_net_gateway_ip: + hidden: false + immutable: false + type: string + default: 169.255.0.3 + network_deployment_node: + type: string + description: The target LCP node for deployment of this Network instance + oam_net_id: + hidden: false + immutable: false + type: string + description: uuid of oam network + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + + node_templates: + + # VFCs / VMs + FSB1: # VFC1 / VM1 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: fsb1_vfc_instance_name} + vfc_type_tag: {get_input: fsb1_vfc_type_tag} + vfc_description: FSB1 + vfc_image_name: {get_input: fsb1_vfc_image_name} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: fsb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capabilty: + properties: + name: high_cpu + + + FSB2: # VFC2 / VM2 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: fsb2_vfc_instance_name} + vfc_type_tag: {get_input: fsb2_vfc_type_tag} + vfc_description: FSB2 + vfc_image_name: {get_input: fsb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: fsb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + NCB1: # VFC3 / MV3 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: ncb1_vfc_instance_name} + vfc_type_tag: {get_input: ncb1_vfc_type_tag} + vfc_description: NCB1 + vfc_image_name: {get_input: ncb1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: ncb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + NCB2: # VFC4 / VM4 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: ncb2_vfc_instance_name} + vfc_type_tag: {get_input: ncb2_vfc_type_tag} + vfc_description: NCB2 + vfc_image_name: {get_input: ncb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: ncb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + GPB1: # VFC5 / VM5 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: gpb1_vfc_instance_name} + vfc_type_tag: {get_input: gpb1_vfc_type_tag} + vfc_description: GPB1 + vfc_image_name: {get_input: gpb1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: gpb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + GPB2: # VFC6 / VM6 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: gpb2_vfc_instance_name} + vfc_type_tag: {get_input: gpb2_vfc_type_tag} + vfc_description: GPB2 + vfc_image_name: {get_input: gpb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: gpb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + VLC1: # VFC7 / VM7 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: vlc1_vfc_instance_name} + vfc_type_tag: {get_input: vlc1_vfc_type_tag} + vfc_description: VLC1 + vfc_image_name: {get_input: vlc1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: vlc1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + VLC2: # VFC8 / VM8 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: vlc2_vfc_instance_name} + vfc_type_tag: {get_input: vlc2_vfc_type_tag} + vfc_description: VLC2 + vfc_image_name: {get_input: vlc2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: vlc2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + + # Connection Points + + fsb1_oam: # VFC1 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: fsb1_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + fsb1_internal1: # VFC1 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + fsb1_internal2: # VFC1 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + fsb2_oam: # VFC2 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: fsb2_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + fsb2_internal1: # VFC2 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + fsb2_internal2: # VFC2 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + ncb1_internal1: # VFC3 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + ncb1_internal2: # VFC3 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + ncb2_internal1: # VFC4 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + ncb2_internal2: # VFC4 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + gpb1_internal1: # VFC5 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + gpb1_internal2: # VFC5 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + gpb2_internal1: # VFC6 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + gpb2_internal2: # VFC6 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc1_oam: # VFC7 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc1_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + vlc1_internal2: # VFC7 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc1_sctp_a: # VFC7 eca_sctp_a CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_a_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_a_net + # relationship: tosca.relationships.network.BindsTo + + vlc1_sctp_b: # VFC7 eca_sctp_b CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_b_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_b_net + # relationship: tosca.relationships.network.BindsTo + + vlc1_gtp_net: # VFC7 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc1_gtp_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: gtp_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_oam: # VFC8 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + vlc2_internal1: # VFC8 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + vlc2_internal2: # VFC8 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc2_sctp_a: # VFC8 eca_sctp_a CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_a_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_a_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_sctp_b: # VFC8 eca_sctp_b CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_b_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_b_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_gtp_net: # VFC8 gtp CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_gtp_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: gtp_net + # relationship: tosca.relationships.network.BindsTo + + # Virtual Links (Networks) + + Internal1_net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: Network + description: Internal Network + type: VL + category: Generic + subcategory: Infrastructure + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_role: + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + ip_version: 4 + enable_dhcp: {get_input: Internal1_net_enable_dhcp} + cidr: {get_input: Internal1_net_cidr} + gateway_ip: {get_input: Internal1_net_gateway_ip} + + Internal2_net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: Network + description: Internal Network + type: VL + category: Generic + subcategory: Infrastructure + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_role: + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + ip_version: 4 + enable_dhcp: {get_input: Internal2_net_enable_dhcp} + cidr: {get_input: Internal2_net_cidr} + gateway_ip: {get_input: Internal2_net_gateway_ip} + + + oam_net: + type: org.openecomp.resource.vl.OAM + + metadata: + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + version: 2.0 + name: Mobility OAM Network + description: Mobility OAM Network + type: VL + category: VL + vendor: AT&T + + properties: + network_type: vIPR_ATM_OAM + network_technology: Contrail + network_id: {get_input: oam_net_id} + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + + + groups: + + # VF Modules + vfmoduleVmmeModule-1: + type: org.openecomp.groups.VfModule + + metadata: + vfModuleModelName: vMME::module-1 + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + + properties: + vf_module_type: Expansion # set by service designer + vf_module_label: vMME Expansion VF Module # set by service designer + vf_module_description: vMME expansion VF Module # set by service designer + contrail_service_instance: true # from HEAT + availability_zone_count: 2 # from HEAT + volume_group: false # from HEAT / service Designer + artifacts: # HEAT Templates + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + + members: + - FSB1 + - FSB2 + - NCB1 + - oam_net + - vlc2_gtp_net + - VLC2 + + # VF Modules + vfmoduleVmmeModule-2: + type: org.openecomp.groups.VfModule + + metadata: + vfModuleModelName: vMME::module-2 + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + + properties: + vf_module_type: Expansion # set by service designer + vf_module_label: vMME Expansion VF Module # set by service designer + vf_module_description: vMME expansion VF Module # set by service designer + contrail_service_instance: true # from HEAT + availability_zone_count: 2 # from HEAT + volume_group: false # from HEAT / service Designer + artifacts: # HEAT Templates + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + + members: + - FSB1 + - FSB2 + - NCB1 + - oam_net + - vlc2_gtp_net + - VLC2 + + + # HEAT Stacks + + vmme_small: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/vmme_small.yml + description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc + + members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, + fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2, + ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1, + gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, + vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ] + + vmme_small_create_fsb: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/vmme_small_create_fsb.yml + description: server template for vMME + + members: [ FSB1_volume, FSB2_volume ] + + policies: + # Autoscaling policy + - mme_autoscale_policy: + type: org.openecomp.policy.Autoscaling + properties: + min_instances: 1 + max_instances: 4 + increment: 1 + factor: cpu_load + threshold: 80% + + target: [ vfmoduleVmmeModule-1] + + + substitution_mapping: + type: org.openecomp.resource.vf.vmme + + requirements: + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DupVFUUID.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DupVFUUID.yml new file mode 100644 index 0000000000..ef95a248b4 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DupVFUUID.yml @@ -0,0 +1,1217 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: VF Template for pseodo vMME + +# metadata of the VF model +metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + vendor: Ericsson + +# imports include all other tosca definitions that are required for this template +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml + +topology_template: + +# inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks) + inputs: + fsb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + fsb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + fsb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_FSB1_16ACP03.qcow2 + fsb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + fsb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB002 + fsb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + fsb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_FSB2_16ACP03.qcow2 + fsb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + defualt: m4.xlarge4 + ncb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + ncb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + ncb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_NCB1_16ACP03.qcow2 + ncb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + ncb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + ncb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + ncb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_NCB2_16ACP03.qcow2 + ncb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + gpb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + gpb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + gpb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_GPB1_16ACP03.qcow2 + gpb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + gpb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + gpb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + gpb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_GPB2_16ACP03.qcow2 + gpb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + vlc1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + vlc1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + vlc1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_VLC1_16ACP03.qcow2 + vlc1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + vlc2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + vlc2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + vlc2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_VLC2_16ACP03.qcow2 + vlc2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + + fsb1_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + fsb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + fsb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + fsb2_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + fsb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + fsb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + + ncb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + ncb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + ncb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + ncb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + gpb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + gpb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + gpb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + gpb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + vlc1_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_gtp_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_sctp_a_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_sctp_b_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + vlc1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + vlc2_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_gtp_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_sctp_a_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_sctp_b_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + vlc2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + Internal1_net_dhcp: + hidden: false + immutable: false + type: string + default: 'False' + Internal1_net_cidr: + hidden: false + immutable: false + type: string + default: 169.253.0.0/17 + Internal1_net_gateway_ip: + hidden: false + immutable: false + type: string + default: 169.253.0.3 + Internal2_net_dhcp: + hidden: false + immutable: false + type: string + default: 'False' + Internal2_net_cidr: + hidden: false + immutable: false + type: string + default: 169.255.0.0/17 + Internal2_net_gateway_ip: + hidden: false + immutable: false + type: string + default: 169.255.0.3 + network_deployment_node: + type: string + description: The target LCP node for deployment of this Network instance + oam_net_id: + hidden: false + immutable: false + type: string + description: uuid of oam network + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + + node_templates: + + # VFCs / VMs + FSB1: # VFC1 / VM1 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: fsb1_vfc_instance_name} + vfc_type_tag: {get_input: fsb1_vfc_type_tag} + vfc_description: FSB1 + vfc_image_name: {get_input: fsb1_vfc_image_name} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: fsb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capabilty: + properties: + name: high_cpu + + + FSB2: # VFC2 / VM2 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: fsb2_vfc_instance_name} + vfc_type_tag: {get_input: fsb2_vfc_type_tag} + vfc_description: FSB2 + vfc_image_name: {get_input: fsb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: fsb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + NCB1: # VFC3 / MV3 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: ncb1_vfc_instance_name} + vfc_type_tag: {get_input: ncb1_vfc_type_tag} + vfc_description: NCB1 + vfc_image_name: {get_input: ncb1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: ncb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + NCB2: # VFC4 / VM4 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: ncb2_vfc_instance_name} + vfc_type_tag: {get_input: ncb2_vfc_type_tag} + vfc_description: NCB2 + vfc_image_name: {get_input: ncb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: ncb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + GPB1: # VFC5 / VM5 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: gpb1_vfc_instance_name} + vfc_type_tag: {get_input: gpb1_vfc_type_tag} + vfc_description: GPB1 + vfc_image_name: {get_input: gpb1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: gpb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + GPB2: # VFC6 / VM6 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: gpb2_vfc_instance_name} + vfc_type_tag: {get_input: gpb2_vfc_type_tag} + vfc_description: GPB2 + vfc_image_name: {get_input: gpb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: gpb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + VLC1: # VFC7 / VM7 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: vlc1_vfc_instance_name} + vfc_type_tag: {get_input: vlc1_vfc_type_tag} + vfc_description: VLC1 + vfc_image_name: {get_input: vlc1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: vlc1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + VLC2: # VFC8 / VM8 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: vlc2_vfc_instance_name} + vfc_type_tag: {get_input: vlc2_vfc_type_tag} + vfc_description: VLC2 + vfc_image_name: {get_input: vlc2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: vlc2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + + # Connection Points + + fsb1_oam: # VFC1 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: fsb1_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + fsb1_internal1: # VFC1 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + fsb1_internal2: # VFC1 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + fsb2_oam: # VFC2 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: fsb2_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + fsb2_internal1: # VFC2 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + fsb2_internal2: # VFC2 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + ncb1_internal1: # VFC3 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + ncb1_internal2: # VFC3 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + ncb2_internal1: # VFC4 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + ncb2_internal2: # VFC4 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + gpb1_internal1: # VFC5 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + gpb1_internal2: # VFC5 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + gpb2_internal1: # VFC6 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + gpb2_internal2: # VFC6 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc1_oam: # VFC7 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc1_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + vlc1_internal2: # VFC7 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc1_sctp_a: # VFC7 eca_sctp_a CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_a_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_a_net + # relationship: tosca.relationships.network.BindsTo + + vlc1_sctp_b: # VFC7 eca_sctp_b CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_b_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_b_net + # relationship: tosca.relationships.network.BindsTo + + vlc1_gtp_net: # VFC7 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc1_gtp_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: gtp_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_oam: # VFC8 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + vlc2_internal1: # VFC8 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + vlc2_internal2: # VFC8 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc2_sctp_a: # VFC8 eca_sctp_a CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_a_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_a_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_sctp_b: # VFC8 eca_sctp_b CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_b_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_b_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_gtp_net: # VFC8 gtp CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_gtp_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: gtp_net + # relationship: tosca.relationships.network.BindsTo + + # Virtual Links (Networks) + + Internal1_net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: Network + description: Internal Network + type: VL + category: Generic + subcategory: Infrastructure + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_role: + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + ip_version: 4 + enable_dhcp: {get_input: Internal1_net_enable_dhcp} + cidr: {get_input: Internal1_net_cidr} + gateway_ip: {get_input: Internal1_net_gateway_ip} + + Internal2_net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: Network + description: Internal Network + type: VL + category: Generic + subcategory: Infrastructure + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_role: + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + ip_version: 4 + enable_dhcp: {get_input: Internal2_net_enable_dhcp} + cidr: {get_input: Internal2_net_cidr} + gateway_ip: {get_input: Internal2_net_gateway_ip} + + + oam_net: + type: org.openecomp.resource.vl.OAM + + metadata: + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + version: 2.0 + name: Mobility OAM Network + description: Mobility OAM Network + type: VL + category: VL + vendor: AT&T + + properties: + network_type: vIPR_ATM_OAM + network_technology: Contrail + network_id: {get_input: oam_net_id} + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + + + groups: + + # VF Modules + vfmoduleVmmeModule-1: + type: org.openecomp.groups.VfModule + + metadata: + vfModuleModelName: vMME::module-1 + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + + properties: + vf_module_type: Expansion # set by service designer + vf_module_label: vMME Expansion VF Module # set by service designer + vf_module_description: vMME expansion VF Module # set by service designer + contrail_service_instance: true # from HEAT + availability_zone_count: 2 # from HEAT + volume_group: false # from HEAT / service Designer + artifacts: # HEAT Templates + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC2 + - oam_net + - vlc2_gtp_net + - Internal1_net + - fsb1_oam + - Internal2_net + + + # HEAT Stacks + + vmme_small: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/vmme_small.yml + description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc + + members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, + fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2, + ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1, + gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, + vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ] + + vmme_small_create_fsb: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/vmme_small_create_fsb.yml + description: server template for vMME + + members: [ FSB1_volume, FSB2_volume ] + + policies: + # Autoscaling policy + - mme_autoscale_policy: + type: org.openecomp.policy.Autoscaling + properties: + min_instances: 1 + max_instances: 4 + increment: 1 + factor: cpu_load + threshold: 80% + + target: [ vfmoduleVmmeModule-1] + + + substitution_mapping: + type: org.openecomp.resource.vf.vmme + + requirements: + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_MulComp.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_MulComp.yml new file mode 100644 index 0000000000..62dee771dd --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_MulComp.yml @@ -0,0 +1,1218 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: VF Template for pseodo vMME + +# metadata of the VF model +metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + vendor: Ericsson + +# imports include all other tosca definitions that are required for this template +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml + +topology_template: + +# inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks) + inputs: + fsb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + fsb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + fsb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_FSB1_16ACP03.qcow2 + fsb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + fsb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB002 + fsb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + fsb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_FSB2_16ACP03.qcow2 + fsb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + defualt: m4.xlarge4 + ncb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + ncb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + ncb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_NCB1_16ACP03.qcow2 + ncb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + ncb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + ncb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + ncb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_NCB2_16ACP03.qcow2 + ncb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + gpb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + gpb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + gpb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_GPB1_16ACP03.qcow2 + gpb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + gpb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + gpb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + gpb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_GPB2_16ACP03.qcow2 + gpb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + vlc1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + vlc1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + vlc1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_VLC1_16ACP03.qcow2 + vlc1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + vlc2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + vlc2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + vlc2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_VLC2_16ACP03.qcow2 + vlc2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + + fsb1_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + fsb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + fsb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + fsb2_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + fsb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + fsb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + + ncb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + ncb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + ncb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + ncb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + gpb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + gpb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + gpb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + gpb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + vlc1_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_gtp_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_sctp_a_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_sctp_b_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + vlc1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + vlc2_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_gtp_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_sctp_a_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_sctp_b_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + vlc2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + Internal1_net_dhcp: + hidden: false + immutable: false + type: string + default: 'False' + Internal1_net_cidr: + hidden: false + immutable: false + type: string + default: 169.253.0.0/17 + Internal1_net_gateway_ip: + hidden: false + immutable: false + type: string + default: 169.253.0.3 + Internal2_net_dhcp: + hidden: false + immutable: false + type: string + default: 'False' + Internal2_net_cidr: + hidden: false + immutable: false + type: string + default: 169.255.0.0/17 + Internal2_net_gateway_ip: + hidden: false + immutable: false + type: string + default: 169.255.0.3 + network_deployment_node: + type: string + description: The target LCP node for deployment of this Network instance + oam_net_id: + hidden: false + immutable: false + type: string + description: uuid of oam network + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + + node_templates: + + # VFCs / VMs + FSB1: # VFC1 / VM1 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + subcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: fsb1_vfc_instance_name} + vfc_type_tag: {get_input: fsb1_vfc_type_tag} + vfc_description: FSB1 + vfc_image_name: {get_input: fsb1_vfc_image_name} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: fsb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capabilty: + properties: + name: high_cpu + + + FSB2: # VFC2 / VM2 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + subcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: fsb2_vfc_instance_name} + vfc_type_tag: {get_input: fsb2_vfc_type_tag} + vfc_description: FSB2 + vfc_image_name: {get_input: fsb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: fsb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + NCB1: # VFC3 / MV3 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + subcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: ncb1_vfc_instance_name} + vfc_type_tag: {get_input: ncb1_vfc_type_tag} + vfc_description: NCB1 + vfc_image_name: {get_input: ncb1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: ncb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + NCB2: # VFC4 / VM4 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + subcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: ncb2_vfc_instance_name} + vfc_type_tag: {get_input: ncb2_vfc_type_tag} + vfc_description: NCB2 + vfc_image_name: {get_input: ncb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: ncb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + GPB1: # VFC5 / VM5 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + subcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: gpb1_vfc_instance_name} + vfc_type_tag: {get_input: gpb1_vfc_type_tag} + vfc_description: GPB1 + vfc_image_name: {get_input: gpb1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: gpb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + GPB2: # VFC6 / VM6 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + subcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: gpb2_vfc_instance_name} + vfc_type_tag: {get_input: gpb2_vfc_type_tag} + vfc_description: GPB2 + vfc_image_name: {get_input: gpb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: gpb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + VLC1: # VFC7 / VM7 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + subcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: vlc1_vfc_instance_name} + vfc_type_tag: {get_input: vlc1_vfc_type_tag} + vfc_description: VLC1 + vfc_image_name: {get_input: vlc1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: vlc1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + VLC2: # VFC8 / VM8 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + subcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: vlc2_vfc_instance_name} + vfc_type_tag: {get_input: vlc2_vfc_type_tag} + vfc_description: VLC2 + vfc_image_name: {get_input: vlc2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: vlc2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + + # Connection Points + + fsb1_oam: # VFC1 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: fsb1_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + fsb1_internal1: # VFC1 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + fsb1_internal2: # VFC1 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + fsb2_oam: # VFC2 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: fsb2_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + fsb2_internal1: # VFC2 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + fsb2_internal2: # VFC2 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + ncb1_internal1: # VFC3 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + ncb1_internal2: # VFC3 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + ncb2_internal1: # VFC4 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + ncb2_internal2: # VFC4 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + gpb1_internal1: # VFC5 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + gpb1_internal2: # VFC5 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + gpb2_internal1: # VFC6 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + gpb2_internal2: # VFC6 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc1_oam: # VFC7 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc1_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + vlc1_internal2: # VFC7 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc1_sctp_a: # VFC7 eca_sctp_a CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_a_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_a_net + # relationship: tosca.relationships.network.BindsTo + + vlc1_sctp_b: # VFC7 eca_sctp_b CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_b_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_b_net + # relationship: tosca.relationships.network.BindsTo + + vlc1_gtp_net: # VFC7 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc1_gtp_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: gtp_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_oam: # VFC8 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + vlc2_internal1: # VFC8 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + vlc2_internal2: # VFC8 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc2_sctp_a: # VFC8 eca_sctp_a CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_a_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_a_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_sctp_b: # VFC8 eca_sctp_b CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_b_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_b_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_gtp_net: # VFC8 gtp CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_gtp_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: gtp_net + # relationship: tosca.relationships.network.BindsTo + + # Virtual Links (Networks) + + Internal1_net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: Network + description: Internal Network + type: VL + category: Generic + subcategory: Infrastructure + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_role: + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + ip_version: 4 + enable_dhcp: {get_input: Internal1_net_enable_dhcp} + cidr: {get_input: Internal1_net_cidr} + gateway_ip: {get_input: Internal1_net_gateway_ip} + + Internal2_net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: Network + description: Internal Network + type: VL + category: Generic + subcategory: Infrastructure + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_role: + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + ip_version: 4 + enable_dhcp: {get_input: Internal2_net_enable_dhcp} + cidr: {get_input: Internal2_net_cidr} + gateway_ip: {get_input: Internal2_net_gateway_ip} + + + oam_net: + type: org.openecomp.resource.vl.OAM + + metadata: + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + version: 2.0 + name: Mobility OAM Network + description: Mobility OAM Network + type: VL + category: VL + vendor: AT&T + + properties: + network_type: vIPR_ATM_OAM + network_technology: Contrail + network_id: {get_input: oam_net_id} + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + + + groups: + + # VF Modules + vfmoduleVmmeModule-1: + type: org.openecomp.groups.VfModule + + metadata: + vfModuleModelName: vMME::module-1 + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + + properties: + vf_module_type: Expansion # set by service designer + vf_module_label: vMME Expansion VF Module # set by service designer + vf_module_description: vMME expansion VF Module # set by service designer + contrail_service_instance: true # from HEAT + availability_zone_count: 2 # from HEAT + volume_group: false # from HEAT / service Designer + artifacts: # HEAT Templates + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC2 + - oam_net + - vlc2_gtp_net + - Internal1_net + - fsb1_oam + - Internal2_net + + + + # HEAT Stacks + + vmme_small: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/vmme_small.yml + description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc + + members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, + fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2, + ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1, + gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, + vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ] + + vmme_small_create_fsb: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/vmme_small_create_fsb.yml + description: server template for vMME + + members: [ FSB1_volume, FSB2_volume ] + + policies: + # Autoscaling policy + - mme_autoscale_policy: + type: org.openecomp.policy.Autoscaling + properties: + min_instances: 1 + max_instances: 4 + increment: 1 + factor: cpu_load + threshold: 80% + + target: [ vfmoduleVmmeModule-1] + + + substitution_mapping: + type: org.openecomp.resource.vf.vmme + + requirements: + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_MulVFVFMod.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_MulVFVFMod.yml new file mode 100644 index 0000000000..cef49ec97d --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_MulVFVFMod.yml @@ -0,0 +1,1251 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: VF Template for pseodo vMME + +# metadata of the VF model +metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + vendor: Ericsson + +# imports include all other tosca definitions that are required for this template +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml + +topology_template: + +# inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks) + inputs: + fsb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + fsb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + fsb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_FSB1_16ACP03.qcow2 + fsb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + fsb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB002 + fsb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + fsb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_FSB2_16ACP03.qcow2 + fsb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + defualt: m4.xlarge4 + ncb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + ncb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + ncb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_NCB1_16ACP03.qcow2 + ncb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + ncb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + ncb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + ncb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_NCB2_16ACP03.qcow2 + ncb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + gpb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + gpb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + gpb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_GPB1_16ACP03.qcow2 + gpb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + gpb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + gpb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + gpb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_GPB2_16ACP03.qcow2 + gpb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + vlc1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + vlc1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + vlc1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_VLC1_16ACP03.qcow2 + vlc1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + vlc2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + vlc2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + vlc2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_VLC2_16ACP03.qcow2 + vlc2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + + fsb1_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + fsb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + fsb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + fsb2_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + fsb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + fsb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + + ncb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + ncb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + ncb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + ncb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + gpb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + gpb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + gpb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + gpb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + vlc1_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_gtp_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_sctp_a_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_sctp_b_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + vlc1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + vlc2_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_gtp_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_sctp_a_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_sctp_b_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + vlc2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + Internal1_net_dhcp: + hidden: false + immutable: false + type: string + default: 'False' + Internal1_net_cidr: + hidden: false + immutable: false + type: string + default: 169.253.0.0/17 + Internal1_net_gateway_ip: + hidden: false + immutable: false + type: string + default: 169.253.0.3 + Internal2_net_dhcp: + hidden: false + immutable: false + type: string + default: 'False' + Internal2_net_cidr: + hidden: false + immutable: false + type: string + default: 169.255.0.0/17 + Internal2_net_gateway_ip: + hidden: false + immutable: false + type: string + default: 169.255.0.3 + network_deployment_node: + type: string + description: The target LCP node for deployment of this Network instance + oam_net_id: + hidden: false + immutable: false + type: string + description: uuid of oam network + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + + node_templates: + + # VFCs / VMs + FSB1: # VFC1 / VM1 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + subcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: fsb1_vfc_instance_name} + vfc_type_tag: {get_input: fsb1_vfc_type_tag} + vfc_description: FSB1 + vfc_image_name: {get_input: fsb1_vfc_image_name} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: fsb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capabilty: + properties: + name: high_cpu + + + FSB2: # VFC2 / VM2 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + subcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: fsb2_vfc_instance_name} + vfc_type_tag: {get_input: fsb2_vfc_type_tag} + vfc_description: FSB2 + vfc_image_name: {get_input: fsb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: fsb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + NCB1: # VFC3 / MV3 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + subcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: ncb1_vfc_instance_name} + vfc_type_tag: {get_input: ncb1_vfc_type_tag} + vfc_description: NCB1 + vfc_image_name: {get_input: ncb1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: ncb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + NCB2: # VFC4 / VM4 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + subcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: ncb2_vfc_instance_name} + vfc_type_tag: {get_input: ncb2_vfc_type_tag} + vfc_description: NCB2 + vfc_image_name: {get_input: ncb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: ncb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + GPB1: # VFC5 / VM5 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + subcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: gpb1_vfc_instance_name} + vfc_type_tag: {get_input: gpb1_vfc_type_tag} + vfc_description: GPB1 + vfc_image_name: {get_input: gpb1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: gpb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + GPB2: # VFC6 / VM6 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: gpb2_vfc_instance_name} + vfc_type_tag: {get_input: gpb2_vfc_type_tag} + vfc_description: GPB2 + vfc_image_name: {get_input: gpb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: gpb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + VLC1: # VFC7 / VM7 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: vlc1_vfc_instance_name} + vfc_type_tag: {get_input: vlc1_vfc_type_tag} + vfc_description: VLC1 + vfc_image_name: {get_input: vlc1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: vlc1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + VLC2: # VFC8 / VM8 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: vlc2_vfc_instance_name} + vfc_type_tag: {get_input: vlc2_vfc_type_tag} + vfc_description: VLC2 + vfc_image_name: {get_input: vlc2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: vlc2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + + # Connection Points + + fsb1_oam: # VFC1 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: fsb1_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + fsb1_internal1: # VFC1 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + fsb1_internal2: # VFC1 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + fsb2_oam: # VFC2 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: fsb2_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + fsb2_internal1: # VFC2 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + fsb2_internal2: # VFC2 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + ncb1_internal1: # VFC3 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + ncb1_internal2: # VFC3 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + ncb2_internal1: # VFC4 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + ncb2_internal2: # VFC4 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + gpb1_internal1: # VFC5 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + gpb1_internal2: # VFC5 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + gpb2_internal1: # VFC6 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + gpb2_internal2: # VFC6 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc1_oam: # VFC7 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc1_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + vlc1_internal2: # VFC7 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc1_sctp_a: # VFC7 eca_sctp_a CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_a_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_a_net + # relationship: tosca.relationships.network.BindsTo + + vlc1_sctp_b: # VFC7 eca_sctp_b CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_b_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_b_net + # relationship: tosca.relationships.network.BindsTo + + vlc1_gtp_net: # VFC7 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc1_gtp_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: gtp_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_oam: # VFC8 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + vlc2_internal1: # VFC8 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + vlc2_internal2: # VFC8 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc2_sctp_a: # VFC8 eca_sctp_a CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_a_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_a_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_sctp_b: # VFC8 eca_sctp_b CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_b_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_b_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_gtp_net: # VFC8 gtp CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_gtp_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: gtp_net + # relationship: tosca.relationships.network.BindsTo + + # Virtual Links (Networks) + + Internal1_net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: Network + description: Internal Network + type: VL + category: Generic + subcategory: Infrastructure + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_role: + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + ip_version: 4 + enable_dhcp: {get_input: Internal1_net_enable_dhcp} + cidr: {get_input: Internal1_net_cidr} + gateway_ip: {get_input: Internal1_net_gateway_ip} + + Internal2_net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: Network + description: Internal Network + type: VL + category: Generic + subcategory: Infrastructure + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_role: + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + ip_version: 4 + enable_dhcp: {get_input: Internal2_net_enable_dhcp} + cidr: {get_input: Internal2_net_cidr} + gateway_ip: {get_input: Internal2_net_gateway_ip} + + + oam_net: + type: org.openecomp.resource.vl.OAM + + metadata: + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + version: 2.0 + name: Mobility OAM Network + description: Mobility OAM Network + type: VL + category: VL + vendor: AT&T + + properties: + network_type: vIPR_ATM_OAM + network_technology: Contrail + network_id: {get_input: oam_net_id} + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + + + groups: + + # VF Modules + vfmoduleVmmeModule-1: + type: org.openecomp.groups.VfModule + + metadata: + vfModuleModelName: vMME::module-1 + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + + properties: + vf_module_type: Expansion # set by service designer + vf_module_label: vMME Expansion VF Module # set by service designer + vf_module_description: vMME expansion VF Module # set by service designer + contrail_service_instance: true # from HEAT + availability_zone_count: 2 # from HEAT + volume_group: false # from HEAT / service Designer + artifacts: # HEAT Templates + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC2 + - oam_net + - vlc2_gtp_net + - Internal1_net + - fsb1_oam + - Internal2_net + + # VF Modules + vfmoduleVmmeModule-2: + type: org.openecomp.groups.VfModule + + metadata: + vfModuleModelName: vMME::module-2 + vfModuleModelInvariantUUID: ttf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelUUID: tt20ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + + properties: + vf_module_type: Expansion # set by service designer + vf_module_label: vMME Expansion VF Module # set by service designer + vf_module_description: vMME expansion VF Module # set by service designer + contrail_service_instance: true # from HEAT + availability_zone_count: 2 # from HEAT + volume_group: false # from HEAT / service Designer + artifacts: # HEAT Templates + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC2 + - oam_net + - vlc2_gtp_net + - Internal1_net + - fsb1_oam + - Internal2_net + + + + # HEAT Stacks + + vmme_small: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/vmme_small.yml + description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc + + members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, + fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2, + ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1, + gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, + vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ] + + vmme_small_create_fsb: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/vmme_small_create_fsb.yml + description: server template for vMME + + members: [ FSB1_volume, FSB2_volume ] + + policies: + # Autoscaling policy + - mme_autoscale_policy: + type: org.openecomp.policy.Autoscaling + properties: + min_instances: 1 + max_instances: 4 + increment: 1 + factor: cpu_load + threshold: 80% + + target: [ vfmoduleVmmeModule-1] + + + substitution_mapping: + type: org.openecomp.resource.vf.vmme + + requirements: + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_NoSystemPropConfigured.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_NoSystemPropConfigured.yml new file mode 100644 index 0000000000..6aee48b9d9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_NoSystemPropConfigured.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_NullFields.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_NullFields.yml new file mode 100644 index 0000000000..25f6310896 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_NullFields.yml @@ -0,0 +1,1218 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: VF Template for pseodo vMME + +# metadata of the VF model +metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + vendor: Ericsson + +# imports include all other tosca definitions that are required for this template +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml + +topology_template: + +# inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks) + inputs: + fsb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + fsb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + fsb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_FSB1_16ACP03.qcow2 + fsb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + fsb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB002 + fsb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + fsb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_FSB2_16ACP03.qcow2 + fsb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + defualt: m4.xlarge4 + ncb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + ncb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + ncb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_NCB1_16ACP03.qcow2 + ncb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + ncb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + ncb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + ncb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_NCB2_16ACP03.qcow2 + ncb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + gpb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + gpb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + gpb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_GPB1_16ACP03.qcow2 + gpb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + gpb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + gpb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + gpb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_GPB2_16ACP03.qcow2 + gpb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + vlc1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + vlc1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + vlc1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_VLC1_16ACP03.qcow2 + vlc1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + vlc2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + vlc2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + vlc2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_VLC2_16ACP03.qcow2 + vlc2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + + fsb1_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + fsb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + fsb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + fsb2_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + fsb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + fsb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + + ncb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + ncb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + ncb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + ncb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + gpb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + gpb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + gpb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + gpb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + vlc1_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_gtp_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_sctp_a_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_sctp_b_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + vlc1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + vlc2_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_gtp_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_sctp_a_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_sctp_b_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + vlc2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + Internal1_net_dhcp: + hidden: false + immutable: false + type: string + default: 'False' + Internal1_net_cidr: + hidden: false + immutable: false + type: string + default: 169.253.0.0/17 + Internal1_net_gateway_ip: + hidden: false + immutable: false + type: string + default: 169.253.0.3 + Internal2_net_dhcp: + hidden: false + immutable: false + type: string + default: 'False' + Internal2_net_cidr: + hidden: false + immutable: false + type: string + default: 169.255.0.0/17 + Internal2_net_gateway_ip: + hidden: false + immutable: false + type: string + default: 169.255.0.3 + network_deployment_node: + type: string + description: The target LCP node for deployment of this Network instance + oam_net_id: + hidden: false + immutable: false + type: string + description: uuid of oam network + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + + node_templates: + + # VFCs / VMs + FSB1: # VFC1 / VM1 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: fsb1_vfc_instance_name} + vfc_type_tag: {get_input: fsb1_vfc_type_tag} + vfc_description: FSB1 + vfc_image_name: {get_input: fsb1_vfc_image_name} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: fsb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capabilty: + properties: + name: high_cpu + + + FSB2: # VFC2 / VM2 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: fsb2_vfc_instance_name} + vfc_type_tag: {get_input: fsb2_vfc_type_tag} + vfc_description: FSB2 + vfc_image_name: {get_input: fsb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: fsb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + NCB1: # VFC3 / MV3 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: ncb1_vfc_instance_name} + vfc_type_tag: {get_input: ncb1_vfc_type_tag} + vfc_description: NCB1 + vfc_image_name: {get_input: ncb1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: ncb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + NCB2: # VFC4 / VM4 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: ncb2_vfc_instance_name} + vfc_type_tag: {get_input: ncb2_vfc_type_tag} + vfc_description: NCB2 + vfc_image_name: {get_input: ncb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: ncb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + GPB1: # VFC5 / VM5 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: gpb1_vfc_instance_name} + vfc_type_tag: {get_input: gpb1_vfc_type_tag} + vfc_description: GPB1 + vfc_image_name: {get_input: gpb1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: gpb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + GPB2: # VFC6 / VM6 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: gpb2_vfc_instance_name} + vfc_type_tag: {get_input: gpb2_vfc_type_tag} + vfc_description: GPB2 + vfc_image_name: {get_input: gpb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: gpb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + VLC1: # VFC7 / VM7 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: vlc1_vfc_instance_name} + vfc_type_tag: {get_input: vlc1_vfc_type_tag} + vfc_description: VLC1 + vfc_image_name: {get_input: vlc1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: vlc1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + VLC2: # VFC8 / VM8 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: vlc2_vfc_instance_name} + vfc_type_tag: {get_input: vlc2_vfc_type_tag} + vfc_description: VLC2 + vfc_image_name: {get_input: vlc2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: vlc2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + + # Connection Points + + fsb1_oam: # VFC1 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: fsb1_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + fsb1_internal1: # VFC1 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + fsb1_internal2: # VFC1 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + fsb2_oam: # VFC2 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: fsb2_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + fsb2_internal1: # VFC2 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + fsb2_internal2: # VFC2 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + ncb1_internal1: # VFC3 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + ncb1_internal2: # VFC3 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + ncb2_internal1: # VFC4 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + ncb2_internal2: # VFC4 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + gpb1_internal1: # VFC5 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + gpb1_internal2: # VFC5 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + gpb2_internal1: # VFC6 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + gpb2_internal2: # VFC6 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc1_oam: # VFC7 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc1_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + vlc1_internal2: # VFC7 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc1_sctp_a: # VFC7 eca_sctp_a CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_a_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_a_net + # relationship: tosca.relationships.network.BindsTo + + vlc1_sctp_b: # VFC7 eca_sctp_b CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_b_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_b_net + # relationship: tosca.relationships.network.BindsTo + + vlc1_gtp_net: # VFC7 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc1_gtp_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: gtp_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_oam: # VFC8 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + vlc2_internal1: # VFC8 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + vlc2_internal2: # VFC8 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc2_sctp_a: # VFC8 eca_sctp_a CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_a_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_a_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_sctp_b: # VFC8 eca_sctp_b CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_b_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_b_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_gtp_net: # VFC8 gtp CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_gtp_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: gtp_net + # relationship: tosca.relationships.network.BindsTo + + # Virtual Links (Networks) + + Internal1_net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: Network + description: Internal Network + type: VL + category: Generic + subcategory: Infrastructure + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_role: + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + ip_version: 4 + enable_dhcp: {get_input: Internal1_net_enable_dhcp} + cidr: {get_input: Internal1_net_cidr} + gateway_ip: {get_input: Internal1_net_gateway_ip} + + Internal2_net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: Network + description: Internal Network + type: VL + category: Generic + subcategory: Infrastructure + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_role: + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + ip_version: 4 + enable_dhcp: {get_input: Internal2_net_enable_dhcp} + cidr: {get_input: Internal2_net_cidr} + gateway_ip: {get_input: Internal2_net_gateway_ip} + + + oam_net: + type: org.openecomp.resource.vl.OAM + + metadata: + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + version: 2.0 + name: Mobility OAM Network + description: Mobility OAM Network + type: VL + category: VL + vendor: AT&T + + properties: + network_type: vIPR_ATM_OAM + network_technology: Contrail + network_id: {get_input: oam_net_id} + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + + + groups: + + # VF Modules + vfmoduleVmmeModule-1: + type: org.openecomp.groups.VfModule + + metadata: + vfModuleModelName: vMME::module-1 + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + + properties: + vf_module_type: Expansion # set by service designer + vf_module_label: vMME Expansion VF Module # set by service designer + vf_module_description: vMME expansion VF Module # set by service designer + contrail_service_instance: true # from HEAT + availability_zone_count: 2 # from HEAT + volume_group: false # from HEAT / service Designer + artifacts: # HEAT Templates + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC2 + - oam_net + - vlc2_gtp_net + - Internal1_net + - fsb1_oam + - Internal2_net + + + + # HEAT Stacks + + vmme_small: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/vmme_small.yml + description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc + + members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, + fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2, + ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1, + gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, + vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ] + + vmme_small_create_fsb: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/vmme_small_create_fsb.yml + description: server template for vMME + + members: [ FSB1_volume, FSB2_volume ] + + policies: + # Autoscaling policy + - mme_autoscale_policy: + type: org.openecomp.policy.Autoscaling + properties: + min_instances: 1 + max_instances: 4 + increment: 1 + factor: cpu_load + threshold: 80% + + target: [ vfmoduleVmmeModule-1] + + + substitution_mapping: + type: org.openecomp.resource.vf.vmme + + requirements: + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_Orphan.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_Orphan.yml new file mode 100644 index 0000000000..652b487f60 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_Orphan.yml @@ -0,0 +1,1236 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: VF Template for pseodo vMME + +# metadata of the VF model +metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + vendor: Ericsson + +# imports include all other tosca definitions that are required for this template +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml + +topology_template: + +# inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks) + inputs: + fsb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + fsb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + fsb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_FSB1_16ACP03.qcow2 + fsb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + fsb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB002 + fsb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + fsb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_FSB2_16ACP03.qcow2 + fsb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + defualt: m4.xlarge4 + ncb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + ncb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + ncb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_NCB1_16ACP03.qcow2 + ncb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + ncb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + ncb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + ncb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_NCB2_16ACP03.qcow2 + ncb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + gpb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + gpb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + gpb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_GPB1_16ACP03.qcow2 + gpb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + gpb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + gpb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + gpb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_GPB2_16ACP03.qcow2 + gpb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + vlc1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + vlc1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + vlc1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_VLC1_16ACP03.qcow2 + vlc1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + vlc2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + vlc2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + vlc2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_VLC2_16ACP03.qcow2 + vlc2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + + fsb1_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + fsb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + fsb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + fsb2_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + fsb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + fsb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + + ncb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + ncb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + ncb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + ncb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + gpb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + gpb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + gpb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + gpb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + vlc1_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_gtp_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_sctp_a_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_sctp_b_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + vlc1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + vlc2_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_gtp_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_sctp_a_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_sctp_b_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + vlc2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + Internal1_net_dhcp: + hidden: false + immutable: false + type: string + default: 'False' + Internal1_net_cidr: + hidden: false + immutable: false + type: string + default: 169.253.0.0/17 + Internal1_net_gateway_ip: + hidden: false + immutable: false + type: string + default: 169.253.0.3 + Internal2_net_dhcp: + hidden: false + immutable: false + type: string + default: 'False' + Internal2_net_cidr: + hidden: false + immutable: false + type: string + default: 169.255.0.0/17 + Internal2_net_gateway_ip: + hidden: false + immutable: false + type: string + default: 169.255.0.3 + network_deployment_node: + type: string + description: The target LCP node for deployment of this Network instance + oam_net_id: + hidden: false + immutable: false + type: string + description: uuid of oam network + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + + node_templates: + + # VFCs / VMs + FSB1: # VFC1 / VM1 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + subcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: fsb1_vfc_instance_name} + vfc_type_tag: {get_input: fsb1_vfc_type_tag} + vfc_description: FSB1 + vfc_image_name: {get_input: fsb1_vfc_image_name} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: fsb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capabilty: + properties: + name: high_cpu + + + FSB2: # VFC2 / VM2 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + subcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: fsb2_vfc_instance_name} + vfc_type_tag: {get_input: fsb2_vfc_type_tag} + vfc_description: FSB2 + vfc_image_name: {get_input: fsb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: fsb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + NCB1: # VFC3 / MV3 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + subcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: ncb1_vfc_instance_name} + vfc_type_tag: {get_input: ncb1_vfc_type_tag} + vfc_description: NCB1 + vfc_image_name: {get_input: ncb1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: ncb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + NCB2: # VFC4 / VM4 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + subcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: ncb2_vfc_instance_name} + vfc_type_tag: {get_input: ncb2_vfc_type_tag} + vfc_description: NCB2 + vfc_image_name: {get_input: ncb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: ncb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + GPB1: # VFC5 / VM5 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + subcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: gpb1_vfc_instance_name} + vfc_type_tag: {get_input: gpb1_vfc_type_tag} + vfc_description: GPB1 + vfc_image_name: {get_input: gpb1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: gpb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + GPB2: # VFC6 / VM6 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + subcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: gpb2_vfc_instance_name} + vfc_type_tag: {get_input: gpb2_vfc_type_tag} + vfc_description: GPB2 + vfc_image_name: {get_input: gpb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: gpb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + VLC1: # VFC7 / VM7 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + subcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: vlc1_vfc_instance_name} + vfc_type_tag: {get_input: vlc1_vfc_type_tag} + vfc_description: VLC1 + vfc_image_name: {get_input: vlc1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: vlc1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + VLC2: # VFC8 / VM8 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + subcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: vlc2_vfc_instance_name} + vfc_type_tag: {get_input: vlc2_vfc_type_tag} + vfc_description: VLC2 + vfc_image_name: {get_input: vlc2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: vlc2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + + # Connection Points + + fsb1_oam: # VFC1 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: fsb1_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + fsb1_internal1: # VFC1 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + fsb1_internal2: # VFC1 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + fsb2_oam: # VFC2 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: fsb2_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + fsb2_internal1: # VFC2 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + fsb2_internal2: # VFC2 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + ncb1_internal1: # VFC3 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + ncb1_internal2: # VFC3 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + ncb2_internal1: # VFC4 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + ncb2_internal2: # VFC4 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + gpb1_internal1: # VFC5 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + gpb1_internal2: # VFC5 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + gpb2_internal1: # VFC6 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + gpb2_internal2: # VFC6 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc1_oam: # VFC7 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc1_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + vlc1_internal2: # VFC7 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc1_sctp_a: # VFC7 eca_sctp_a CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_a_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_a_net + # relationship: tosca.relationships.network.BindsTo + + vlc1_sctp_b: # VFC7 eca_sctp_b CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_b_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_b_net + # relationship: tosca.relationships.network.BindsTo + + vlc1_gtp_net: # VFC7 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc1_gtp_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: gtp_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_oam: # VFC8 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + vlc2_internal1: # VFC8 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + vlc2_internal2: # VFC8 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc2_sctp_a: # VFC8 eca_sctp_a CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_a_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_a_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_sctp_b: # VFC8 eca_sctp_b CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_b_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_b_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_gtp_net: # VFC8 gtp CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_gtp_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: gtp_net + # relationship: tosca.relationships.network.BindsTo + + # Virtual Links (Networks) + + Internal1_net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: Network + description: Internal Network + type: VL + category: Generic + subcategory: Infrastructure + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_role: + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + ip_version: 4 + enable_dhcp: {get_input: Internal1_net_enable_dhcp} + cidr: {get_input: Internal1_net_cidr} + gateway_ip: {get_input: Internal1_net_gateway_ip} + + Internal2_net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: Network + description: Internal Network + type: VL + category: Generic + subcategory: Infrastructure + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_role: + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + ip_version: 4 + enable_dhcp: {get_input: Internal2_net_enable_dhcp} + cidr: {get_input: Internal2_net_cidr} + gateway_ip: {get_input: Internal2_net_gateway_ip} + + + oam_net: + type: org.openecomp.resource.vl.OAM + + metadata: + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + version: 2.0 + name: Mobility OAM Network + description: Mobility OAM Network + type: VL + category: VL + vendor: AT&T + + properties: + network_type: vIPR_ATM_OAM + network_technology: Contrail + network_id: {get_input: oam_net_id} + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + + + groups: + + # VF Modules + vfmoduleVmmeModule-1: + type: org.openecomp.groups.VfModule + + metadata: + vfModuleModelName: vMME::module-1 + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelUUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + + properties: + vf_module_type: Expansion # set by service designer + vf_module_label: vMME Expansion VF Module # set by service designer + vf_module_description: vMME expansion VF Module # set by service designer + contrail_service_instance: true # from HEAT + availability_zone_count: 2 # from HEAT + volume_group: false # from HEAT / service Designer + artifacts: # HEAT Templates + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + + members: [FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2] + + members: + - FSB1 + - FSB2 + - NCB1 + + vfmoduleVmmeModule-1: + type: org.openecomp.groups.VfModule + + metadata: + vfModuleModelName: vMME::module-1 + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelUUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + + properties: + vf_module_type: Expansion # set by service designer + vf_module_label: vMME Expansion VF Module # set by service designer + vf_module_description: vMME expansion VF Module # set by service designer + contrail_service_instance: true # from HEAT + availability_zone_count: 2 # from HEAT + volume_group: false # from HEAT / service Designer + artifacts: # HEAT Templates + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + + members: + - FSB1 + - FSB2 + - NCB1 + + # HEAT Stacks + + vmme_small: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/vmme_small.yml + description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc + + members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, + fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2, + ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1, + gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, + vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ] + + vmme_small_create_fsb: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/vmme_small_create_fsb.yml + description: server template for vMME + + members: [ FSB1_volume, FSB2_volume ] + + policies: + # Autoscaling policy + - mme_autoscale_policy: + type: org.openecomp.policy.Autoscaling + properties: + min_instances: 1 + max_instances: 4 + increment: 1 + factor: cpu_load + threshold: 80% + + target: [ vfmoduleVmmeModule-1] + + + substitution_mapping: + type: org.openecomp.resource.vf.vmme + + requirements: + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SameWidgets1.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SameWidgets1.yml new file mode 100644 index 0000000000..8edeb07ad5 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SameWidgets1.yml @@ -0,0 +1,1218 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: VF Template for pseodo vMME + +# metadata of the VF model +metadata: + invariantUUID: b8753c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b031ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + name: vMME_VF + description: vMME_VF + type: VF + categry: Application L4+ + subcategory: Firewall + vendor: Ericsson + +# imports include all other tosca definitions that are required for this template +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml + +topology_template: + +# inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks) + inputs: + fsb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + fsb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + fsb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_FSB1_16ACP03.qcow2 + fsb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + fsb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB002 + fsb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + fsb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_FSB2_16ACP03.qcow2 + fsb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + defualt: m4.xlarge4 + ncb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + ncb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + ncb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_NCB1_16ACP03.qcow2 + ncb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + ncb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + ncb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + ncb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_NCB2_16ACP03.qcow2 + ncb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + gpb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + gpb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + gpb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_GPB1_16ACP03.qcow2 + gpb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + gpb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + gpb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + gpb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_GPB2_16ACP03.qcow2 + gpb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + vlc1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + vlc1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + vlc1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_VLC1_16ACP03.qcow2 + vlc1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + vlc2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + vlc2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + vlc2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_VLC2_16ACP03.qcow2 + vlc2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + + fsb1_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + fsb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + fsb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + fsb2_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + fsb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + fsb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + + ncb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + ncb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + ncb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + ncb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + gpb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + gpb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + gpb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + gpb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + vlc1_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_gtp_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_sctp_a_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_sctp_b_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + vlc1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + vlc2_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_gtp_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_sctp_a_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_sctp_b_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + vlc2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + Internal1_net_dhcp: + hidden: false + immutable: false + type: string + default: 'False' + Internal1_net_cidr: + hidden: false + immutable: false + type: string + default: 169.253.0.0/17 + Internal1_net_gateway_ip: + hidden: false + immutable: false + type: string + default: 169.253.0.3 + Internal2_net_dhcp: + hidden: false + immutable: false + type: string + default: 'False' + Internal2_net_cidr: + hidden: false + immutable: false + type: string + default: 169.255.0.0/17 + Internal2_net_gateway_ip: + hidden: false + immutable: false + type: string + default: 169.255.0.3 + network_deployment_node: + type: string + description: The target LCP node for deployment of this Network instance + oam_net_id: + hidden: false + immutable: false + type: string + description: uuid of oam network + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + + node_templates: + + # VFCs / VMs + FSB1: # VFC1 / VM1 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + categry: Generic + subcategry: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: fsb1_vfc_instance_name} + vfc_type_tag: {get_input: fsb1_vfc_type_tag} + vfc_description: FSB1 + vfc_image_name: {get_input: fsb1_vfc_image_name} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: fsb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capabilty: + properties: + name: high_cpu + + + FSB2: # VFC2 / VM2 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + categry: Generic + subcategry: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: fsb2_vfc_instance_name} + vfc_type_tag: {get_input: fsb2_vfc_type_tag} + vfc_description: FSB2 + vfc_image_name: {get_input: fsb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: fsb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + NCB1: # VFC3 / MV3 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + categry: Generic + subcategry: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: ncb1_vfc_instance_name} + vfc_type_tag: {get_input: ncb1_vfc_type_tag} + vfc_description: NCB1 + vfc_image_name: {get_input: ncb1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: ncb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + NCB2: # VFC4 / VM4 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + categry: Generic + subcategry: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: ncb2_vfc_instance_name} + vfc_type_tag: {get_input: ncb2_vfc_type_tag} + vfc_description: NCB2 + vfc_image_name: {get_input: ncb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: ncb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + GPB1: # VFC5 / VM5 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + categry: Generic + subcategry: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: gpb1_vfc_instance_name} + vfc_type_tag: {get_input: gpb1_vfc_type_tag} + vfc_description: GPB1 + vfc_image_name: {get_input: gpb1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: gpb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + GPB2: # VFC6 / VM6 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + categry: Generic + subcategry: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: gpb2_vfc_instance_name} + vfc_type_tag: {get_input: gpb2_vfc_type_tag} + vfc_description: GPB2 + vfc_image_name: {get_input: gpb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: gpb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + VLC1: # VFC7 / VM7 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + categry: Generic + subcategry: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: vlc1_vfc_instance_name} + vfc_type_tag: {get_input: vlc1_vfc_type_tag} + vfc_description: VLC1 + vfc_image_name: {get_input: vlc1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: vlc1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + VLC2: # VFC8 / VM8 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + categry: Generic + subcategry: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: vlc2_vfc_instance_name} + vfc_type_tag: {get_input: vlc2_vfc_type_tag} + vfc_description: VLC2 + vfc_image_name: {get_input: vlc2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: vlc2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + + # Connection Points + + fsb1_oam: # VFC1 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: fsb1_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + fsb1_internal1: # VFC1 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + fsb1_internal2: # VFC1 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + fsb2_oam: # VFC2 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: fsb2_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + fsb2_internal1: # VFC2 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + fsb2_internal2: # VFC2 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + ncb1_internal1: # VFC3 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + ncb1_internal2: # VFC3 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + ncb2_internal1: # VFC4 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + ncb2_internal2: # VFC4 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + gpb1_internal1: # VFC5 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + gpb1_internal2: # VFC5 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + gpb2_internal1: # VFC6 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + gpb2_internal2: # VFC6 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc1_oam: # VFC7 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc1_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + vlc1_internal2: # VFC7 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc1_sctp_a: # VFC7 eca_sctp_a CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_a_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_a_net + # relationship: tosca.relationships.network.BindsTo + + vlc1_sctp_b: # VFC7 eca_sctp_b CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_b_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_b_net + # relationship: tosca.relationships.network.BindsTo + + vlc1_gtp_net: # VFC7 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc1_gtp_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: gtp_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_oam: # VFC8 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + vlc2_internal1: # VFC8 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + vlc2_internal2: # VFC8 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc2_sctp_a: # VFC8 eca_sctp_a CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_a_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_a_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_sctp_b: # VFC8 eca_sctp_b CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_b_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_b_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_gtp_net: # VFC8 gtp CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_gtp_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: gtp_net + # relationship: tosca.relationships.network.BindsTo + + # Virtual Links (Networks) + + Internal1_net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: Network + description: Internal Network + type: VL + categry: Generic + subcategory: Infrastructure + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_role: + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + ip_version: 4 + enable_dhcp: {get_input: Internal1_net_enable_dhcp} + cidr: {get_input: Internal1_net_cidr} + gateway_ip: {get_input: Internal1_net_gateway_ip} + + Internal2_net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: Network + description: Internal Network + type: VL + categry: Generic + subcategory: Infrastructure + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_role: + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + ip_version: 4 + enable_dhcp: {get_input: Internal2_net_enable_dhcp} + cidr: {get_input: Internal2_net_cidr} + gateway_ip: {get_input: Internal2_net_gateway_ip} + + + oam_net: + type: org.openecomp.resource.vl.OAM + + metadata: + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + version: 2.0 + name: Mobility OAM Network + description: Mobility OAM Network + type: VL + categry: VL + vendor: AT&T + + properties: + network_type: vIPR_ATM_OAM + network_technology: Contrail + network_id: {get_input: oam_net_id} + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + + + groups: + + # VF Modules + vfmoduleVmmeModule-1: + type: org.openecomp.groups.VfModule + + metadata: + vfModuleModelName: vMME::module-1 + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + + properties: + vf_module_type: Expansion # set by service designer + vf_module_label: vMME Expansion VF Module # set by service designer + vf_module_description: vMME expansion VF Module # set by service designer + contrail_service_instance: true # from HEAT + availability_zone_count: 2 # from HEAT + volume_group: false # from HEAT / service Designer + artifacts: # HEAT Templates + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC2 + - oam_net + - vlc2_gtp_net + - Internal1_net + - fsb1_oam + - Internal2_net + + + + # HEAT Stacks + + vmme_small: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/vmme_small.yml + description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc + + members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, + fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2, + ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1, + gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, + vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ] + + vmme_small_create_fsb: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/vmme_small_create_fsb.yml + description: server template for vMME + + members: [ FSB1_volume, FSB2_volume ] + + policies: + # Autoscaling policy + - mme_autoscale_policy: + type: org.openecomp.policy.Autoscaling + properties: + min_instances: 1 + max_instances: 4 + increment: 1 + factor: cpu_load + threshold: 80% + + target: [ vfmoduleVmmeModule-1] + + + substitution_mapping: + type: org.openecomp.resource.vf.vmme + + requirements: + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SameWidgets2.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SameWidgets2.yml new file mode 100644 index 0000000000..cba91b2b3e --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SameWidgets2.yml @@ -0,0 +1,1218 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: VF Template for pseodo vMME + +# metadata of the VF model +metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + name: vMME_VF + description: vMME_VF + type: VF + categry: Application L4+ + subcategory: Firewall + vendor: Ericsson + +# imports include all other tosca definitions that are required for this template +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml + +topology_template: + +# inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks) + inputs: + fsb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + fsb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + fsb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_FSB1_16ACP03.qcow2 + fsb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + fsb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB002 + fsb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + fsb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_FSB2_16ACP03.qcow2 + fsb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + defualt: m4.xlarge4 + ncb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + ncb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + ncb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_NCB1_16ACP03.qcow2 + ncb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + ncb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + ncb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + ncb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_NCB2_16ACP03.qcow2 + ncb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + gpb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + gpb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + gpb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_GPB1_16ACP03.qcow2 + gpb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + gpb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + gpb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + gpb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_GPB2_16ACP03.qcow2 + gpb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + vlc1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + vlc1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + vlc1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_VLC1_16ACP03.qcow2 + vlc1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + vlc2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + vlc2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + vlc2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_VLC2_16ACP03.qcow2 + vlc2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + + fsb1_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + fsb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + fsb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + fsb2_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + fsb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + fsb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + + ncb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + ncb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + ncb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + ncb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + gpb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + gpb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + gpb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + gpb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + vlc1_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_gtp_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_sctp_a_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_sctp_b_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + vlc1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + vlc2_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_gtp_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_sctp_a_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_sctp_b_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + vlc2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + Internal1_net_dhcp: + hidden: false + immutable: false + type: string + default: 'False' + Internal1_net_cidr: + hidden: false + immutable: false + type: string + default: 169.253.0.0/17 + Internal1_net_gateway_ip: + hidden: false + immutable: false + type: string + default: 169.253.0.3 + Internal2_net_dhcp: + hidden: false + immutable: false + type: string + default: 'False' + Internal2_net_cidr: + hidden: false + immutable: false + type: string + default: 169.255.0.0/17 + Internal2_net_gateway_ip: + hidden: false + immutable: false + type: string + default: 169.255.0.3 + network_deployment_node: + type: string + description: The target LCP node for deployment of this Network instance + oam_net_id: + hidden: false + immutable: false + type: string + description: uuid of oam network + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + + node_templates: + + # VFCs / VMs + FSB1: # VFC1 / VM1 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + categry: Generic + subcategry: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: fsb1_vfc_instance_name} + vfc_type_tag: {get_input: fsb1_vfc_type_tag} + vfc_description: FSB1 + vfc_image_name: {get_input: fsb1_vfc_image_name} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: fsb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capabilty: + properties: + name: high_cpu + + + FSB2: # VFC2 / VM2 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + categry: Generic + subcategry: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: fsb2_vfc_instance_name} + vfc_type_tag: {get_input: fsb2_vfc_type_tag} + vfc_description: FSB2 + vfc_image_name: {get_input: fsb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: fsb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + NCB1: # VFC3 / MV3 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + categry: Generic + subcategry: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: ncb1_vfc_instance_name} + vfc_type_tag: {get_input: ncb1_vfc_type_tag} + vfc_description: NCB1 + vfc_image_name: {get_input: ncb1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: ncb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + NCB2: # VFC4 / VM4 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + categry: Generic + subcategry: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: ncb2_vfc_instance_name} + vfc_type_tag: {get_input: ncb2_vfc_type_tag} + vfc_description: NCB2 + vfc_image_name: {get_input: ncb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: ncb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + GPB1: # VFC5 / VM5 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + categry: Generic + subcategry: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: gpb1_vfc_instance_name} + vfc_type_tag: {get_input: gpb1_vfc_type_tag} + vfc_description: GPB1 + vfc_image_name: {get_input: gpb1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: gpb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + GPB2: # VFC6 / VM6 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + categry: Generic + subcategry: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: gpb2_vfc_instance_name} + vfc_type_tag: {get_input: gpb2_vfc_type_tag} + vfc_description: GPB2 + vfc_image_name: {get_input: gpb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: gpb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + VLC1: # VFC7 / VM7 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + categry: Generic + subcategry: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: vlc1_vfc_instance_name} + vfc_type_tag: {get_input: vlc1_vfc_type_tag} + vfc_description: VLC1 + vfc_image_name: {get_input: vlc1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: vlc1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + VLC2: # VFC8 / VM8 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + categry: Generic + subcategry: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: vlc2_vfc_instance_name} + vfc_type_tag: {get_input: vlc2_vfc_type_tag} + vfc_description: VLC2 + vfc_image_name: {get_input: vlc2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: vlc2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + + # Connection Points + + fsb1_oam: # VFC1 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: fsb1_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + fsb1_internal1: # VFC1 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + fsb1_internal2: # VFC1 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + fsb2_oam: # VFC2 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: fsb2_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + fsb2_internal1: # VFC2 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + fsb2_internal2: # VFC2 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + ncb1_internal1: # VFC3 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + ncb1_internal2: # VFC3 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + ncb2_internal1: # VFC4 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + ncb2_internal2: # VFC4 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + gpb1_internal1: # VFC5 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + gpb1_internal2: # VFC5 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + gpb2_internal1: # VFC6 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + gpb2_internal2: # VFC6 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc1_oam: # VFC7 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc1_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + vlc1_internal2: # VFC7 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc1_sctp_a: # VFC7 eca_sctp_a CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_a_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_a_net + # relationship: tosca.relationships.network.BindsTo + + vlc1_sctp_b: # VFC7 eca_sctp_b CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_b_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_b_net + # relationship: tosca.relationships.network.BindsTo + + vlc1_gtp_net: # VFC7 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc1_gtp_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: gtp_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_oam: # VFC8 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + vlc2_internal1: # VFC8 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + vlc2_internal2: # VFC8 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc2_sctp_a: # VFC8 eca_sctp_a CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_a_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_a_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_sctp_b: # VFC8 eca_sctp_b CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_b_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_b_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_gtp_net: # VFC8 gtp CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_gtp_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: gtp_net + # relationship: tosca.relationships.network.BindsTo + + # Virtual Links (Networks) + + Internal1_net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: Network + description: Internal Network + type: VL + categry: Generic + subcategory: Infrastructure + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_role: + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + ip_version: 4 + enable_dhcp: {get_input: Internal1_net_enable_dhcp} + cidr: {get_input: Internal1_net_cidr} + gateway_ip: {get_input: Internal1_net_gateway_ip} + + Internal2_net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: Network + description: Internal Network + type: VL + categry: Generic + subcategory: Infrastructure + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_role: + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + ip_version: 4 + enable_dhcp: {get_input: Internal2_net_enable_dhcp} + cidr: {get_input: Internal2_net_cidr} + gateway_ip: {get_input: Internal2_net_gateway_ip} + + + oam_net: + type: org.openecomp.resource.vl.OAM + + metadata: + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + version: 2.0 + name: Mobility OAM Network + description: Mobility OAM Network + type: VL + categry: VL + vendor: AT&T + + properties: + network_type: vIPR_ATM_OAM + network_technology: Contrail + network_id: {get_input: oam_net_id} + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + + + groups: + + # VF Modules + vfmoduleVmmeModule-1: + type: org.openecomp.groups.VfModule + + metadata: + vfModuleModelName: vMME::module-1 + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + + properties: + vf_module_type: Expansion # set by service designer + vf_module_label: vMME Expansion VF Module # set by service designer + vf_module_description: vMME expansion VF Module # set by service designer + contrail_service_instance: true # from HEAT + availability_zone_count: 2 # from HEAT + volume_group: false # from HEAT / service Designer + artifacts: # HEAT Templates + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC2 + - oam_net + - vlc2_gtp_net + - Internal1_net + - fsb1_oam + - Internal2_net + + + + # HEAT Stacks + + vmme_small: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/vmme_small.yml + description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc + + members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, + fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2, + ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1, + gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, + vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ] + + vmme_small_create_fsb: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/vmme_small_create_fsb.yml + description: server template for vMME + + members: [ FSB1_volume, FSB2_volume ] + + policies: + # Autoscaling policy + - mme_autoscale_policy: + type: org.openecomp.policy.Autoscaling + properties: + min_instances: 1 + max_instances: 4 + increment: 1 + factor: cpu_load + threshold: 80% + + target: [ vfmoduleVmmeModule-1] + + + substitution_mapping: + type: org.openecomp.resource.vf.vmme + + requirements: + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SingleVFVFMod.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SingleVFVFMod.yml new file mode 100644 index 0000000000..6aee48b9d9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SingleVFVFMod.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyMandatoryParameterResourceVersion.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyMandatoryParameterResourceVersion.yml new file mode 100644 index 0000000000..63fafc0fc1 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyMandatoryParameterResourceVersion.yml @@ -0,0 +1,975 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: vMMSC VF Topology Template + +metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + name: vMMC VF + description: | + Delivers messages composed of text, images, and other media types (for example audio and video) + in an operator's network. It is responsible for storing and handling incoming and outgoing Multimedia + Messages (MMs); therefore, acting as an MMS Relay and MMS Server at the same time. + type: VF + category: Mobility + subCategory: MMC + vendor: Nokia + vendorVersion: 6.0.2.14 + + + # reference to template definitions +imports: + - tosca_simple_profile_for_ecomp_1_0.yml + +topology_template: + + # This section provides the parameters which OPENECOMP is not providing values to during instantiation. + # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP + # during the orchestration + + inputs: + + node_templates: + + vMMSC: # vMMSC VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc + UUID: 2714db52-2116-a3af-1240-a236221ca004 + version: 1.0 + name: vMMC VFC + description: + type: VFC + category: Generic + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 6.0.2.14 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vMMSC VFC + vfc_image_name: mmsc-6.0.2_v14.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + capabilities: + nfv_compute: + properties: + vfc_flavor: mmsc_flavor # from HEAT ENV + scaling: + properties: + min_instances: 5 + max_instances: 5 + initial_instance: + + vNEMS_FE: # vNEMS VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc + UUID: 2714db52-2116-a3af-1240-a236221ca004 + version: 1.0 + name: vNEMS_FE VFC + description: | + Legacy support that makes it possible for subscribers without MMS-enabled phones to receive + multimedia messages (MMs) through a web or WAP interface. + E-mail smart push that lets subscribers send and receive MMs to and from the Internet (MM3 interface). + type: VFC + category: Generic_VFC + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 2.1.2.44 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vNEMS_FE VFC + vfc_image_name: nems-2.1.2_v44.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + + capabilities: + nfv_compute: + properties: + vfc_flavor: nems_fe_flavor # from HEAT ENV + scaling: + properties: + min_instances: 2 # set by service designer + max_instances: 4 # set by service designer + + vNEMS_BE: # vNEMS VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc + UUID: 2714db52-2116-a3af-1240-a236221ca004 + version: 1.0 + name: vNEMS_BE VFC + description: | + Legacy support that makes it possible for subscribers without MMS-enabled phones to receive + multimedia messages (MMs) through a web or WAP interface. + E-mail smart push that lets subscribers send and receive MMs to and from the Internet (MM3 interface). + type: VFC + category: Generic_VFC + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 2.1.2.44 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vNEMS_FE VFC + vfc_image_name: nems-2.1.2_v44.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + + capabilities: + nfv_compute: + properties: + vfc_flavor: nems_be_flavor # from HEAT ENV + scaling: + properties: + min_instances: 1 # set by service designer + max_instances: 2 # set by service designer + + vECA_TRX: # vNEMS VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc + UUID: 2714db52-2116-a3af-1240-a236221ca004 + version: 1.0 + name: vECA_TRX VFC + description: Traffic handling + type: VFC + category: Generic_VFC + subCategory: Generic_VFC + vendor: Nokia + vendorVersion: 13 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: vECA_TRX VFC + vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + + capabilities: + nfv_compute: + properties: + vfc_flavor: eca_trx_flavor # from HEAT ENV + scaling: + properties: + min_instances: 20 # set by service designer + max_instances: 20 # set by service designer + + vLB: # F5 VFC + type: org.openecomp.resource.vfc.Generic + + metadata: + invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc + UUID: 2714db52-2116-a3af-1240-a236221ca004 + version: 1.0 + name: F5 LB VFC + description: Load Balancer + type: VFC + category: Generic + subCategory: Generic_VFC + vendor: F5 Networks + vendorVersion: 11.5.3.163 + + properties: + vfc_ecomp_name: true + vfc_instance_name: # to be set by OPENECOMP during instantiation + vfc_type_tag: # from HEAT ENV + vfc_description: F5 VFC + vfc_image_name: F5-11_5_3-EngHF-34_163.qcow2 # from HEAT / HEAT ENV + vfc_availability_zone: + + + + capabilities: + nfv_compute: + properties: + vfc_flavor: bigip_flavor # from HEAT ENV + scaling: + properties: + min_instances: 2 + max_instances: 2 + + # Internal VF Connection Points (VFCs connection points) + + mmsc_oam: # external OAM CP to mobility OAM network + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + + mmsc_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_fe_oam: # external OAM CP to mobility OAM network + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + + nems_fe_internal: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_fe_imap: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_fe_web: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_fe_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_be_oam: # external OAM CP to mobility OAM network + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + nems_be_internal: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + nems_be_imap: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + eca_trx_oam: # external OAM CP to mobility OAM network + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + + eca_trx_internal: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + eca_trx_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_ha: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_mmsc_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_nems_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_nems_web: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_eca_traffic: + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_oam: # external OAM CP to mobility OAM network + type: org.openecomp.cp.OAM + + metadata: + invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC + UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC + version: 1.0 # set by ASDC + name: OAM CP + description: OAM CP + type: CP + category: CP + vendor: AT&T + + properties: + address_Info: + ip_address: # provided by OPENECOMP (SDNC) + + + + lb_dmz_protected: # external CP to mobility DMZ protected network + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + lb_core_direct: # external CP to mobility core direct network + type: org.openecomp.cp.CP + + metadata: + invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC + UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC + version: 1.0 # set by ASDC + name: VFC CP + description: VFC CP + type: CP + category: CP + vendor: AT&T + + properties: + address_info: + mac_address: # provided by OPENECOMP (SDNC) + + + + # Intra-VF Virtual Links (Networks) + + mmsc_traffic_net: + type: org.openecomp.resource.vl.VL + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: MMSC traffic network + description: mmsc traffic network + type: VL + category: VL + vendor: Nokia + properties: + network_type: Tenant_Layer_3 + network_role: Intra-service + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.253.0.0/17 # HEAT ENV + gateway_ip: 169.253.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + nems_imap_net: + type: org.openecomp.resource.vl.VL + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: NEMS IMAP network + description: NEMS internal IMAP network + type: VL + category: VL + vendor: Nokia + + properties: + network_type: Tenant_Layer_3 + network_role: Intra-service + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.253.0.0/17 # HEAT ENV + gateway_ip: 169.253.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + nems_internal_net: + type: org.openecomp.resource.vl.VL + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: NEMS internal traffic network + description: NEMS internal traffic network + type: VL + category: VL + vendor: Nokia + + properties: + network_type: Tenant_Layer_3 + network_role: Intra-service + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.253.0.0/17 # HEAT ENV + gateway_ip: 169.253.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + nems_web_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: NEMS web network + description: nems web nwtwork + type: VL + category: VL + vendor: Nokia + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.255.0.0/17 # HEAT ENV + gateway_ip: 169.255.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + nems_traffic_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: NEMS traffic network + description: NEMS traffic network + type: VL + category: VL + vendor: Nokia + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + network_name: # provided by OPENECOMP (SDNC) + route_targets: 13979:105717 + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.0/27 # HEAT ENV + gateway_ip: 107.243.37.1 # HEAT ENV + start_ip: 107.243.37.3 # HEAT ENV + end_ip: 107.243.37.30 # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + eca_traffic_net: + type: org.openecomp.resource.vl.VL + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: ECA traffic network + description: ECA traffic network + type: VL + category: VL + vendor: Nokia + + properties: + network_type: Tenant_Layer_3 + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + network_name: # provided by OPENECOMP (SDNC) + route_targets: 13979:105719 + network_id: + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 107.243.37.32/24 # HEAT ENV + gateway_ip: 107.243.37.33 # HEAT ENV + start_ip: 107.243.37.35 # HEAT ENV + end_ip: 107.243.37.62 # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + eca_internal_net: + type: org.openecomp.resource.vl.VL + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: ECA internal traffic network + description: ECA internal traffic network + type: VL + category: VL + vendor: Nokia + + properties: + network_type: Tenant_Layer_3 + network_role: Intra-service + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.253.0.0/17 # HEAT ENV + gateway_ip: 169.253.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP # service level network + + lb_ha_net: + type: org.openecomp.resource.vl.VL + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: LB HA network + description: LB sync network + type: VL + category: VL + vendor: Nokia + properties: + network_type: Tenant_Layer_3 + network_role: Intra-service + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input: network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + l3_access_parameters: + ip_version: 4 + cidr: 169.253.0.0/17 # HEAT ENV + gateway_ip: 169.253.0.3 # HEAT ENV + dhcp_enabled: false # HEAT ENV + capabilities: + virtual_linkable: + valid_source_types: org.openecomp.resource.cp.CP + + + groups: + + # Server Groups for applying placement policy + LbGroup: + type: tosca.groups.Root + members: [vLB] + + mmscGroup: + type: tosca.groups.Root + members: [vMMSC] + + nemas_feGroup: + type: tosca.groups.Root + members: [vNEMS_FE] + + eca_trxGroup: + type: tosca.groups.Root + members: [vECA_TRX] + + # VF Modules + VFModuleMMSC_Expansion: + type: org.openecomp.groups.VfModule + + metadata: + vfModuleModelName: vMMSC::module-1 + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelUUID: b020dd1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + + properties: + vf_module_type: Expansion # set by service designer + vf_module_description: vMMSC growth unit # set by service designer + contrail_service_instance: true # from HEAT + availability_zone_count: 1 # from HEAT + volume_group: false # from HEAT / service Designer + artifacts: # HEAT Templates + - 099a6909-290f-4293-a347-736f11b8ff18 + - 0db84f21-d298-4a4b-b11e-37b92a734066 + + members: + - vMMSC + - vNEMS_FE + - vNEMS_BE + - vECA_TRX + - vLB + - mmsc_oam + - mmsc_traffic + - nems_fe_web + - mmsc_traffic_net + - nems_imap_net + - nems_internal_net + + + policies: + # Autoscaling policy + - mmsc_autoscale_policy: + type: org.openecomp.policy.Autoscaling + + properties: + min_instances: 1 + max_instances: 4 + increment: 1 + factor: bandwidth + threshold: 5 Gpbs + + target: [ VFModuleMMSC_Expansion ] + + # Placement policy + - mmsc_anti_affinity_placement_policy: + type: org.openecomp.policy.Placement + + properties: + conatiner_type: compute + policy: anti_affinity + + target: [ LbGroup, mmscGroup, nemas_feGroup, eca_trxGroup, eca_oamGroup, cmauiGroup ] \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyMandatoryParameterServiceVersion.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyMandatoryParameterServiceVersion.yml new file mode 100644 index 0000000000..6aee48b9d9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyMandatoryParameterServiceVersion.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyResourceVersionFormat.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyResourceVersionFormat.yml new file mode 100644 index 0000000000..6aee48b9d9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyResourceVersionFormat.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyServiceVersion.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyServiceVersion.yml new file mode 100644 index 0000000000..6aee48b9d9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyServiceVersion.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyServiceVersionFormat.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyServiceVersionFormat.yml new file mode 100644 index 0000000000..6aee48b9d9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyServiceVersionFormat.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyVFModWithInvalidNo.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyVFModWithInvalidNo.yml new file mode 100644 index 0000000000..9cb7291603 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyVFModWithInvalidNo.yml @@ -0,0 +1,1208 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: VF Template for pseodo vMME + +# metadata of the VF model +metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + vendor: Ericsson + +# imports include all other tosca definitions that are required for this template +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml + +topology_template: + +# inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks) + inputs: + fsb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + fsb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + fsb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_FSB1_16ACP03.qcow2 + fsb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + fsb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB002 + fsb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + fsb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_FSB2_16ACP03.qcow2 + fsb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + defualt: m4.xlarge4 + ncb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + ncb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + ncb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_NCB1_16ACP03.qcow2 + ncb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + ncb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + ncb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + ncb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_NCB2_16ACP03.qcow2 + ncb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + gpb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + gpb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + gpb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_GPB1_16ACP03.qcow2 + gpb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + gpb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + gpb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + gpb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_GPB2_16ACP03.qcow2 + gpb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + vlc1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + vlc1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + vlc1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_VLC1_16ACP03.qcow2 + vlc1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + vlc2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + vlc2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + vlc2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_VLC2_16ACP03.qcow2 + vlc2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + + fsb1_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + fsb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + fsb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + fsb2_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + fsb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + fsb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + + ncb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + ncb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + ncb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + ncb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + gpb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + gpb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + gpb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + gpb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + vlc1_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_gtp_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_sctp_a_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_sctp_b_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + vlc1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + vlc2_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_gtp_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_sctp_a_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_sctp_b_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + vlc2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + Internal1_net_dhcp: + hidden: false + immutable: false + type: string + default: 'False' + Internal1_net_cidr: + hidden: false + immutable: false + type: string + default: 169.253.0.0/17 + Internal1_net_gateway_ip: + hidden: false + immutable: false + type: string + default: 169.253.0.3 + Internal2_net_dhcp: + hidden: false + immutable: false + type: string + default: 'False' + Internal2_net_cidr: + hidden: false + immutable: false + type: string + default: 169.255.0.0/17 + Internal2_net_gateway_ip: + hidden: false + immutable: false + type: string + default: 169.255.0.3 + network_deployment_node: + type: string + description: The target LCP node for deployment of this Network instance + oam_net_id: + hidden: false + immutable: false + type: string + description: uuid of oam network + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + + node_templates: + + # VFCs / VMs + FSB1: # VFC1 / VM1 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: fsb1_vfc_instance_name} + vfc_type_tag: {get_input: fsb1_vfc_type_tag} + vfc_description: FSB1 + vfc_image_name: {get_input: fsb1_vfc_image_name} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: fsb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capabilty: + properties: + name: high_cpu + + + FSB2: # VFC2 / VM2 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: fsb2_vfc_instance_name} + vfc_type_tag: {get_input: fsb2_vfc_type_tag} + vfc_description: FSB2 + vfc_image_name: {get_input: fsb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: fsb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + NCB1: # VFC3 / MV3 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: ncb1_vfc_instance_name} + vfc_type_tag: {get_input: ncb1_vfc_type_tag} + vfc_description: NCB1 + vfc_image_name: {get_input: ncb1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: ncb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + NCB2: # VFC4 / VM4 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: ncb2_vfc_instance_name} + vfc_type_tag: {get_input: ncb2_vfc_type_tag} + vfc_description: NCB2 + vfc_image_name: {get_input: ncb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: ncb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + GPB1: # VFC5 / VM5 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: gpb1_vfc_instance_name} + vfc_type_tag: {get_input: gpb1_vfc_type_tag} + vfc_description: GPB1 + vfc_image_name: {get_input: gpb1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: gpb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + GPB2: # VFC6 / VM6 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: gpb2_vfc_instance_name} + vfc_type_tag: {get_input: gpb2_vfc_type_tag} + vfc_description: GPB2 + vfc_image_name: {get_input: gpb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: gpb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + VLC1: # VFC7 / VM7 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: vlc1_vfc_instance_name} + vfc_type_tag: {get_input: vlc1_vfc_type_tag} + vfc_description: VLC1 + vfc_image_name: {get_input: vlc1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: vlc1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + VLC2: # VFC8 / VM8 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: vlc2_vfc_instance_name} + vfc_type_tag: {get_input: vlc2_vfc_type_tag} + vfc_description: VLC2 + vfc_image_name: {get_input: vlc2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: vlc2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + + # Connection Points + + fsb1_oam: # VFC1 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: fsb1_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + fsb1_internal1: # VFC1 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + fsb1_internal2: # VFC1 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + fsb2_oam: # VFC2 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: fsb2_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + fsb2_internal1: # VFC2 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + fsb2_internal2: # VFC2 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + ncb1_internal1: # VFC3 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + ncb1_internal2: # VFC3 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + ncb2_internal1: # VFC4 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + ncb2_internal2: # VFC4 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + gpb1_internal1: # VFC5 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + gpb1_internal2: # VFC5 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + gpb2_internal1: # VFC6 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + gpb2_internal2: # VFC6 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc1_oam: # VFC7 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc1_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + vlc1_internal2: # VFC7 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc1_sctp_a: # VFC7 eca_sctp_a CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_a_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_a_net + # relationship: tosca.relationships.network.BindsTo + + vlc1_sctp_b: # VFC7 eca_sctp_b CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_b_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_b_net + # relationship: tosca.relationships.network.BindsTo + + vlc1_gtp_net: # VFC7 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc1_gtp_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: gtp_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_oam: # VFC8 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + vlc2_internal1: # VFC8 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + vlc2_internal2: # VFC8 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc2_sctp_a: # VFC8 eca_sctp_a CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_a_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_a_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_sctp_b: # VFC8 eca_sctp_b CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_b_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_b_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_gtp_net: # VFC8 gtp CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_gtp_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: gtp_net + # relationship: tosca.relationships.network.BindsTo + + # Virtual Links (Networks) + + Internal1_net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: Network + description: Internal Network + type: VL + category: Generic + subcategory: Infrastructure + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_role: + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + ip_version: 4 + enable_dhcp: {get_input: Internal1_net_enable_dhcp} + cidr: {get_input: Internal1_net_cidr} + gateway_ip: {get_input: Internal1_net_gateway_ip} + + Internal2_net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: Network + description: Internal Network + type: VL + category: Generic + subcategory: Infrastructure + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_role: + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + ip_version: 4 + enable_dhcp: {get_input: Internal2_net_enable_dhcp} + cidr: {get_input: Internal2_net_cidr} + gateway_ip: {get_input: Internal2_net_gateway_ip} + + + oam_net: + type: org.openecomp.resource.vl.OAM + + metadata: + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + version: 2.0 + name: Mobility OAM Network + description: Mobility OAM Network + type: VL + category: VL + vendor: AT&T + + properties: + network_type: vIPR_ATM_OAM + network_technology: Contrail + network_id: {get_input: oam_net_id} + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + + + groups: + + # VF Modules + vfmoduleVmmeModule-1: + type: org.openecomp.groups.VfModule + + metadata: + vfModuleModelName: vMME::module-1 + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + + properties: + vf_module_type: Expansion # set by service designer + vf_module_label: vMME Expansion VF Module # set by service designer + vf_module_description: vMME expansion VF Module # set by service designer + contrail_service_instance: true # from HEAT + availability_zone_count: 2 # from HEAT + volume_group: false # from HEAT / service Designer + artifacts: # HEAT Templates + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + + members: + - INVALID_MEMBER + + + # HEAT Stacks + + vmme_small: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/vmme_small.yml + description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc + + members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, + fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2, + ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1, + gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, + vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ] + + vmme_small_create_fsb: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/vmme_small_create_fsb.yml + description: server template for vMME + + members: [ FSB1_volume, FSB2_volume ] + + policies: + # Autoscaling policy + - mme_autoscale_policy: + type: org.openecomp.policy.Autoscaling + properties: + min_instances: 1 + max_instances: 4 + increment: 1 + factor: cpu_load + threshold: 80% + + target: [ vfmoduleVmmeModule-1] + + + substitution_mapping: + type: org.openecomp.resource.vf.vmme + + requirements: + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyVFModWithoutVNFC.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyVFModWithoutVNFC.yml new file mode 100644 index 0000000000..b1784cf81f --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyVFModWithoutVNFC.yml @@ -0,0 +1,1218 @@ +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 + +description: VF Template for pseodo vMME + +# metadata of the VF model +metadata: + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + name: vMME_VF + description: vMME_VF + type: VF + category: Application L4+ + subcategory: Firewall + vendor: Ericsson + +# imports include all other tosca definitions that are required for this template +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml + +topology_template: + +# inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks) + inputs: + fsb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + fsb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + fsb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_FSB1_16ACP03.qcow2 + fsb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + fsb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB002 + fsb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + fsb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_FSB2_16ACP03.qcow2 + fsb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + defualt: m4.xlarge4 + ncb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + ncb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + ncb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_NCB1_16ACP03.qcow2 + ncb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + ncb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + ncb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + ncb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_NCB2_16ACP03.qcow2 + ncb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + gpb1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + gpb1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + gpb1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_GPB1_16ACP03.qcow2 + gpb1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + gpb2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + gpb2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + gpb2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_GPB2_16ACP03.qcow2 + gpb2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + vlc1_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + vlc1_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + vlc1_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_VLC1_16ACP03.qcow2 + vlc1_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + vlc2_vfc_instance_name: # from HEAT ENV + type: string + description: VFC instance name + default: ZRDM1MMEX36FSB001 + vlc2_vfc_type_tag: # from HEAT ENV + type: string + description: VFC type tag + vlc2_vfc_image_name: # from HEAT ENV + type: string + description: VFC image name + default: MME_VLC2_16ACP03.qcow2 + vlc2_vfc_flavor: # from HEAT ENV + type: string + description: VFC flavor + default: m4.xlarge4 + + fsb1_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + fsb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + fsb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + fsb2_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + fsb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + fsb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + + ncb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + ncb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + ncb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + ncb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + gpb1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + gpb1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + gpb2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + gpb2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + vlc1_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_gtp_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_sctp_a_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_sctp_b_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc1_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + vlc1_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + vlc2_oam_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_gtp_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_sctp_a_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_sctp_b_ip_address: # from HEAT ENV + type: string + description: OAM ip address + default: 107.250.172.221 + vlc2_internal1_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:80:37:0E:0B:12 + vlc2_internal2_mac_address: # from HEAT_ENV + type: string + description: Internal connection point mac_address + default: 00:81:37:0E:0B:12 + Internal1_net_dhcp: + hidden: false + immutable: false + type: string + default: 'False' + Internal1_net_cidr: + hidden: false + immutable: false + type: string + default: 169.253.0.0/17 + Internal1_net_gateway_ip: + hidden: false + immutable: false + type: string + default: 169.253.0.3 + Internal2_net_dhcp: + hidden: false + immutable: false + type: string + default: 'False' + Internal2_net_cidr: + hidden: false + immutable: false + type: string + default: 169.255.0.0/17 + Internal2_net_gateway_ip: + hidden: false + immutable: false + type: string + default: 169.255.0.3 + network_deployment_node: + type: string + description: The target LCP node for deployment of this Network instance + oam_net_id: + hidden: false + immutable: false + type: string + description: uuid of oam network + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + + node_templates: + + # VFCs / VMs + FSB1: # VFC1 / VM1 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: fsb1_vfc_instance_name} + vfc_type_tag: {get_input: fsb1_vfc_type_tag} + vfc_description: FSB1 + vfc_image_name: {get_input: fsb1_vfc_image_name} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: fsb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capabilty: + properties: + name: high_cpu + + + FSB2: # VFC2 / VM2 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: fsb2_vfc_instance_name} + vfc_type_tag: {get_input: fsb2_vfc_type_tag} + vfc_description: FSB2 + vfc_image_name: {get_input: fsb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: fsb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + NCB1: # VFC3 / MV3 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: ncb1_vfc_instance_name} + vfc_type_tag: {get_input: ncb1_vfc_type_tag} + vfc_description: NCB1 + vfc_image_name: {get_input: ncb1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: ncb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + NCB2: # VFC4 / VM4 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: ncb2_vfc_instance_name} + vfc_type_tag: {get_input: ncb2_vfc_type_tag} + vfc_description: NCB2 + vfc_image_name: {get_input: ncb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: ncb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + GPB1: # VFC5 / VM5 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: gpb1_vfc_instance_name} + vfc_type_tag: {get_input: gpb1_vfc_type_tag} + vfc_description: GPB1 + vfc_image_name: {get_input: gpb1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: gpb1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + GPB2: # VFC6 / VM6 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: gpb2_vfc_instance_name} + vfc_type_tag: {get_input: gpb2_vfc_type_tag} + vfc_description: GPB2 + vfc_image_name: {get_input: gpb2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: gpb2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + VLC1: # VFC7 / VM7 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: vlc1_vfc_instance_name} + vfc_type_tag: {get_input: vlc1_vfc_type_tag} + vfc_description: VLC1 + vfc_image_name: {get_input: vlc1_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: vlc1_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + VLC2: # VFC8 / VM8 + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + + metadata: + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + version: 1.0 + name: Nova Server + description: VFC based on OpenStack Nova Server + type: VFC + category: Generic + resourceSubcategory: Infrastructure + vendor: Ericsson + properties: + vfc_ecomp_name: false + vfc_instance_name: {get_input: vlc2_vfc_instance_name} + vfc_type_tag: {get_input: vlc2_vfc_type_tag} + vfc_description: VLC2 + vfc_image_name: {get_input: vlc2_vfc_image_name} + + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + capabilities: + nfv_compute: + properties: + vfc_flavor: {get_input: vlc2_vfc_flavor} + scaling_capability: + properties: + min_instances: 1 + max_instances: 1 + init_instances: 1 + monitoring_capability: + properties: + name: cpu_load + + + # Connection Points + + fsb1_oam: # VFC1 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: fsb1_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + fsb1_internal1: # VFC1 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + fsb1_internal2: # VFC1 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + fsb2_oam: # VFC2 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: fsb2_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + fsb2_internal1: # VFC2 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + fsb2_internal2: # VFC2 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: fsb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + ncb1_internal1: # VFC3 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + ncb1_internal2: # VFC3 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + ncb2_internal1: # VFC4 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + ncb2_internal2: # VFC4 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: ncb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + gpb1_internal1: # VFC5 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb1_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + gpb1_internal2: # VFC5 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + gpb2_internal1: # VFC6 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + gpb2_internal2: # VFC6 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: gpb2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc1_oam: # VFC7 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc1_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + vlc1_internal2: # VFC7 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc1_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc1_sctp_a: # VFC7 eca_sctp_a CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_a_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_a_net + # relationship: tosca.relationships.network.BindsTo + + vlc1_sctp_b: # VFC7 eca_sctp_b CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_b_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_b_net + # relationship: tosca.relationships.network.BindsTo + + vlc1_gtp_net: # VFC7 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc1_gtp_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: gtp_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_oam: # VFC8 OAM CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_oam_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + + vlc2_internal1: # VFC8 Internal1 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc2_internal1_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + + vlc2_internal2: # VFC8 Internal2 CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_info: + mac_address: {get_input: vlc2_internal2_mac_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + + vlc2_sctp_a: # VFC8 eca_sctp_a CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_a_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_a_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_sctp_b: # VFC8 eca_sctp_b CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_sctp_b_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: sctp_b_net + # relationship: tosca.relationships.network.BindsTo + + vlc2_gtp_net: # VFC8 gtp CP + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + address_Info: + ip_address: {get_input: vlc2_gtp_ip_address} + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + # - link: + # capability: tosca.capabilities.network.Bindable + # node: gtp_net + # relationship: tosca.relationships.network.BindsTo + + # Virtual Links (Networks) + + Internal1_net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: Network + description: Internal Network + type: VL + category: Generic + subcategory: Infrastructure + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_role: + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + ip_version: 4 + enable_dhcp: {get_input: Internal1_net_enable_dhcp} + cidr: {get_input: Internal1_net_cidr} + gateway_ip: {get_input: Internal1_net_gateway_ip} + + Internal2_net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + metadata: + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + version: 1.0 + name: Network + description: Internal Network + type: VL + category: Generic + subcategory: Infrastructure + vendor: AT&T + properties: + network_type: Tenant_Layer_3 + network_role: + network_technology: Contrail + network_ecomp_name: false + network_homing: false + network_deployment_node: { get_input : network_deployment_node } + contrail_virtual_network: + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_forwarding_mode: l2 + vn_shared: false + vn_external: false + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + ip_version: 4 + enable_dhcp: {get_input: Internal2_net_enable_dhcp} + cidr: {get_input: Internal2_net_cidr} + gateway_ip: {get_input: Internal2_net_gateway_ip} + + + oam_net: + type: org.openecomp.resource.vl.OAM + + metadata: + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + version: 2.0 + name: Mobility OAM Network + description: Mobility OAM Network + type: VL + category: VL + vendor: AT&T + + properties: + network_type: vIPR_ATM_OAM + network_technology: Contrail + network_id: {get_input: oam_net_id} + layer_protocol: IP + flow_pattern: E-LAN + test_access: none + + + groups: + + # VF Modules + vfmoduleVmmeModule-1: + type: org.openecomp.groups.VfModule + + metadata: + vfModuleModelName: vMME::module-1 + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + + properties: + vf_module_type: Expansion # set by service designer + vf_module_label: vMME Expansion VF Module # set by service designer + vf_module_description: vMME expansion VF Module # set by service designer + contrail_service_instance: true # from HEAT + availability_zone_count: 2 # from HEAT + volume_group: false # from HEAT / service Designer + artifacts: # HEAT Templates + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + + members: + - FSB1_NR + - FSB2_NR + - NCB1_NR + - NCB2_NR + - VLC2_NR + - oam_net + - vlc2_gtp_net + - Internal1_net + - fsb1_oam + - Internal2_net + + + + # HEAT Stacks + + vmme_small: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/vmme_small.yml + description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc + + members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, + fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2, + ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1, + gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, + vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ] + + vmme_small_create_fsb: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/vmme_small_create_fsb.yml + description: server template for vMME + + members: [ FSB1_volume, FSB2_volume ] + + policies: + # Autoscaling policy + - mme_autoscale_policy: + type: org.openecomp.policy.Autoscaling + properties: + min_instances: 1 + max_instances: 4 + increment: 1 + factor: cpu_load + threshold: 80% + + target: [ vfmoduleVmmeModule-1] + + + substitution_mapping: + type: org.openecomp.resource.vf.vmme + + requirements: + - vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo \ No newline at end of file diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithDiffVersionOfSameL3Network.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithDiffVersionOfSameL3Network.yml new file mode 100644 index 0000000000..6aee48b9d9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithDiffVersionOfSameL3Network.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithDupL3Network.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithDupL3Network.yml new file mode 100644 index 0000000000..6aee48b9d9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithDupL3Network.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithInvIdGreaterThanSpecifiedLimit.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithInvIdGreaterThanSpecifiedLimit.yml new file mode 100644 index 0000000000..6aee48b9d9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithInvIdGreaterThanSpecifiedLimit.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithInvIdLesserThanSpecifiedLimit.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithInvIdLesserThanSpecifiedLimit.yml new file mode 100644 index 0000000000..6aee48b9d9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithInvIdLesserThanSpecifiedLimit.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithL3Network.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithL3Network.yml new file mode 100644 index 0000000000..6aee48b9d9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithL3Network.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithL3NetworkInVFMod.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithL3NetworkInVFMod.yml new file mode 100644 index 0000000000..6aee48b9d9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithL3NetworkInVFMod.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithUpdatedUUIDInConfig.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithUpdatedUUIDInConfig.yml new file mode 100644 index 0000000000..6aee48b9d9 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithUpdatedUUIDInConfig.yml @@ -0,0 +1,1299 @@ +--- +description: "VF Template for pseodo vMME" +imports: + NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +metadata: + category: "Application L4+" + description: vMME_VF + invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 + name: vMME_VF + subcategory: Firewall + type: VF + UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + resourceVendor: Ericsson +topology_template: + groups: + vfmoduleVmmeModule-1: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + metadata: + vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c + vfModuleModelName: "vMME::module-1" + vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc + vfModuleModelVersion: 1 + properties: + artifacts: + - /Artifacts/vmme_small_create_fsb.yml + - /Artifacts/vmme_small.yml + availability_zone_count: 2 + contrail_service_instance: true + vf_module_description: "vMME expansion VF Module" + vf_module_label: "vMME Expansion VF Module" + vf_module_type: Expansion + volume_group: false + type: org.openecomp.groups.VfModule + vmme_small: + members: + - FSB1 + - FSB2 + - NCB1 + - NCB2 + - VLC1 + - VLC2 + - GPB1 + - GPB2 + - Internal1_net + - Internal2_net + - fsb1_oam + - fsb1_internal1 + - fsb1_internal2 + - fsb2_oam + - fsb2_internal2 + - ncb1_internal1 + - ncb1_internal2 + - ncb2_internal1 + - ncb2_internal2 + - gpb1_internal1 + - gpb1_internal2 + - gpb2_internal1 + - gpb2_internal2 + - vlc1_oam + - vlc1_internal1 + - vlc1_internal2 + - vlc1_sctp_a + - vlc1_sctp_b + - vlc1_gtp + - vlc2_oam + - vlc2_internal1 + - vlc2_internal2 + - vlc2_sctp_a + - vlc2_sctp_b + - vlc1_gtp + properties: + description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" + heat_file: ../Artifacts/vmme_small.yml + type: org.openecomp.groups.heat.HeatStack + vmme_small_create_fsb: + members: + - FSB1_volume + - FSB2_volume + properties: + description: "server template for vMME" + heat_file: ../Artifacts/vmme_small_create_fsb.yml + type: org.openecomp.groups.heat.HeatStack + inputs: + Internal1_net_cidr: + default: 169.253.0.0/17 + hidden: false + immutable: false + type: string + Internal1_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal1_net_gateway_ip: + default: "169.253.0.3" + hidden: false + immutable: false + type: string + Internal2_net_cidr: + default: 169.255.0.0/17 + hidden: false + immutable: false + type: string + Internal2_net_dhcp: + default: "False" + hidden: false + immutable: false + type: string + Internal2_net_gateway_ip: + default: "169.255.0.3" + hidden: false + immutable: false + type: string + fsb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + fsb1_vfc_image_name: + default: MME_FSB1_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + fsb1_vfc_type_tag: + description: "VFC type tag" + type: string + fsb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + fsb2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + fsb2_vfc_flavor: + defualt: m4.xlarge4 + description: "VFC flavor" + type: string + fsb2_vfc_image_name: + default: MME_FSB2_16ACP03.qcow2 + description: "VFC image name" + type: string + fsb2_vfc_instance_name: + default: ZRDM1MMEX36FSB002 + description: "VFC instance name" + type: string + fsb2_vfc_type_tag: + description: "VFC type tag" + type: string + gpb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb1_vfc_image_name: + default: MME_GPB1_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb1_vfc_type_tag: + description: "VFC type tag" + type: string + gpb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + gpb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + gpb2_vfc_image_name: + default: MME_GPB2_16ACP03.qcow2 + description: "VFC image name" + type: string + gpb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + gpb2_vfc_type_tag: + description: "VFC type tag" + type: string + ncb1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb1_vfc_image_name: + default: MME_NCB1_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb1_vfc_type_tag: + description: "VFC type tag" + type: string + ncb2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + ncb2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + ncb2_vfc_image_name: + default: MME_NCB2_16ACP03.qcow2 + description: "VFC image name" + type: string + ncb2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + ncb2_vfc_type_tag: + description: "VFC type tag" + type: string + network_deployment_node: + description: "The target LCP node for deployment of this Network instance" + type: string + oam_net_id: + default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 + description: "uuid of oam network" + hidden: false + immutable: false + type: string + vlc1_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc1_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc1_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc1_vfc_image_name: + default: MME_VLC1_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc1_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc1_vfc_type_tag: + description: "VFC type tag" + type: string + vlc2_gtp_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_internal1_mac_address: + default: "00:80:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_internal2_mac_address: + default: "00:81:37:0E:0B:12" + description: "Internal connection point mac_address" + type: string + vlc2_oam_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_a_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_sctp_b_ip_address: + default: "107.250.172.221" + description: "OAM ip address" + type: string + vlc2_vfc_flavor: + default: m4.xlarge4 + description: "VFC flavor" + type: string + vlc2_vfc_image_name: + default: MME_VLC2_16ACP03.qcow2 + description: "VFC image name" + type: string + vlc2_vfc_instance_name: + default: ZRDM1MMEX36FSB001 + description: "VFC instance name" + type: string + vlc2_vfc_type_tag: + description: "VFC type tag" + type: string + node_templates: + FSB1: + capabilities: + monitoring_capabilty: + properties: + name: high_cpu + nfv_compute: + properties: + vfc_flavor: + get_input: fsb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb1_vfc_image_name + vfc_instance_name: + get_input: fsb1_vfc_instance_name + vfc_type_tag: + get_input: fsb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + FSB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: fsb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: FSB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: fsb2_vfc_image_name + vfc_instance_name: + get_input: fsb2_vfc_instance_name + vfc_type_tag: + get_input: fsb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: fsb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb1_vfc_image_name + vfc_instance_name: + get_input: gpb1_vfc_instance_name + vfc_type_tag: + get_input: gpb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + GPB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: gpb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: GPB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: gpb2_vfc_image_name + vfc_instance_name: + get_input: gpb2_vfc_instance_name + vfc_type_tag: + get_input: gpb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: gpb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + Internal1_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal1_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 + vn_shared: false + enable_dhcp: + get_input: Internal1_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal1_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + Internal2_net: + metadata: + category: Generic + description: "Internal Network" + invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c + name: Network + subcategory: Infrastructure + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 + resourceVendor: AT&T + version: 1.0 + properties: + cidr: + get_input: Internal2_net_cidr + contrail_virtual_network: + vn_external: false + vn_forwarding_mode: l2 + vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 + vn_shared: false + enable_dhcp: + get_input: Internal2_net_enable_dhcp + flow_pattern: E-LAN + gateway_ip: + get_input: Internal2_net_gateway_ip + ip_version: 4 + layer_protocol: IP + network_deployment_node: + get_input: network_deployment_node + network_ecomp_name: false + network_homing: false + network_role: ~ + network_technology: Contrail + network_type: Tenant_Layer_3 + test_access: none + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + NCB1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB1 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb1_vfc_image_name + vfc_instance_name: + get_input: ncb1_vfc_instance_name + vfc_type_tag: + get_input: ncb1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + NCB2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: ncb2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: NCB2 + vfc_ecomp_name: false + vfc_image_name: + get_input: ncb2_vfc_image_name + vfc_instance_name: + get_input: ncb2_vfc_instance_name + vfc_type_tag: + get_input: ncb2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: ncb2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC1: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc1_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC1 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc1_vfc_image_name + vfc_instance_name: + get_input: vlc1_vfc_instance_name + vfc_type_tag: + get_input: vlc1_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc1_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + VLC2: + capabilities: + monitoring_capability: + properties: + name: cpu_load + nfv_compute: + properties: + vfc_flavor: + get_input: vlc2_vfc_flavor + scaling_capability: + properties: + init_instances: 1 + max_instances: 1 + min_instances: 1 + metadata: + category: Generic + description: "VFC based on OpenStack Nova Server" + invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 + name: "Nova Server" + subcategory: Infrastructure + type: VFC + UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 + resourceVendor: Ericsson + version: 1.0 + properties: + vfc_description: VLC2 + vfc_ecomp_name: false + vfc_image_name: + get_input: vlc2_vfc_image_name + vfc_instance_name: + get_input: vlc2_vfc_instance_name + vfc_type_tag: + get_input: vlc2_vfc_type_tag + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_oam + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal1 + relationship: tosca.relationships.network.BindsTo + - + binding: + capability: tosca.capabilities.network.Bindable + node: vlc2_internal2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + fsb1_internal1: + properties: + address_info: + mac_address: + get_input: fsb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_internal2: + properties: + address_info: + mac_address: + get_input: fsb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb1_oam: + properties: + address_Info: + ip_address: + get_input: fsb1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal1: + properties: + address_info: + mac_address: + get_input: fsb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_internal2: + properties: + address_info: + mac_address: + get_input: fsb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + fsb2_oam: + properties: + address_Info: + ip_address: + get_input: fsb2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: FSB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal1: + properties: + address_info: + mac_address: + get_input: gpb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb1_internal2: + properties: + address_info: + mac_address: + get_input: gpb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal1: + properties: + address_info: + mac_address: + get_input: gpb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + gpb2_internal2: + properties: + address_info: + mac_address: + get_input: gpb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: GPB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal1: + properties: + address_info: + mac_address: + get_input: ncb1_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb1_internal2: + properties: + address_info: + mac_address: + get_input: ncb1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal1: + properties: + address_info: + mac_address: + get_input: ncb2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + ncb2_internal2: + properties: + address_info: + mac_address: + get_input: ncb2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: NCB2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + oam_net: + metadata: + category: VL + description: "Mobility OAM Network" + invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a + name: "Mobility OAM Network" + type: VL + UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc + resourceVendor: AT&T + version: 2.0 + properties: + flow_pattern: E-LAN + layer_protocol: IP + network_id: + get_input: oam_net_id + network_technology: Contrail + network_type: vIPR_ATM_OAM + test_access: none + type: org.openecomp.resource.vl.OAM + vlc1_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc1_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_internal2: + properties: + address_info: + mac_address: + get_input: vlc1_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_oam: + properties: + address_Info: + ip_address: + get_input: vlc1_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc1_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC1 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_gtp_net: + properties: + address_Info: + ip_address: + get_input: vlc2_gtp_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal1: + properties: + address_info: + mac_address: + get_input: vlc2_internal1_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal1_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_internal2: + properties: + address_info: + mac_address: + get_input: vlc2_internal2_mac_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: Internal2_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_oam: + properties: + address_Info: + ip_address: + get_input: vlc2_oam_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + - + link: + capability: tosca.capabilities.network.Bindable + node: oam_net + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_a: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_a_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + vlc2_sctp_b: + properties: + address_Info: + ip_address: + get_input: vlc2_sctp_b_ip_address + requirements: + - + binding: + capability: tosca.capabilities.network.Bindable + node: VLC2 + relationship: tosca.relationships.network.BindsTo + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + policies: + - + mme_autoscale_policy: + properties: + factor: cpu_load + increment: 1 + max_instances: 4 + min_instances: 1 + threshold: 80% + target: + - vfmoduleVmmeModule-1 + type: org.openecomp.policy.Autoscaling + substitution_mapping: + requirements: + - + vlc1_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc2_gtp_net.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_a.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - + vlc1_sctp_b.link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + type: org.openecomp.resource.vf.vmme +tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/onap-sdc-artifact-generator-lib/pom.xml b/common/onap-sdc-artifact-generator-lib/pom.xml new file mode 100644 index 0000000000..05a01c2407 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/pom.xml @@ -0,0 +1,24 @@ + + 4.0.0 + + onap-sdc-artifact-generator-lib + org.onap.sdc.common + onap-sdc-artifact-generator-lib + pom + + + org.onap.sdc.common + onap-common-lib + 1.2.0-SNAPSHOT + .. + + + + + onap-sdc-artifact-generator-api + onap-sdc-artifact-generator-core + onap-sdc-artifact-generator-test + + + diff --git a/common/onap-tosca-datatype/pom.xml b/common/onap-tosca-datatype/pom.xml new file mode 100644 index 0000000000..b183d06aec --- /dev/null +++ b/common/onap-tosca-datatype/pom.xml @@ -0,0 +1,29 @@ + + + 4.0.0 + + org.onap.sdc.common + onap-tosca-datatype + + + onap-common-lib + org.onap.sdc.common + 1.2.0-SNAPSHOT + .. + + + + + org.yaml + snakeyaml + 1.17 + + + org.apache.commons + commons-collections4 + ${commons.collections.version} + + + diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/ActivityDefinition.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/ActivityDefinition.java new file mode 100644 index 0000000000..538ed37409 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/ActivityDefinition.java @@ -0,0 +1,41 @@ +package org.onap.sdc.tosca.datatypes.model; + +public class ActivityDefinition { + + private String delegate; + private String set_state; + private String call_operation; + private String inline; + + public String getDelegate() { + return delegate; + } + + public void setDelegate(String delegate) { + this.delegate = delegate; + } + + public String getSet_state() { + return set_state; + } + + public void setSet_state(String set_state) { + this.set_state = set_state; + } + + public String getCall_operation() { + return call_operation; + } + + public void setCall_operation(String call_operation) { + this.call_operation = call_operation; + } + + public String getInline() { + return inline; + } + + public void setInline(String inline) { + this.inline = inline; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/ArtifactDefinition.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/ArtifactDefinition.java new file mode 100644 index 0000000000..b3aae7e75e --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/ArtifactDefinition.java @@ -0,0 +1,71 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + + + +public class ArtifactDefinition { + private String type; + private String file; + private String repository; + private String description; + private String deploy_path; + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getFile() { + return file; + } + + public void setFile(String file) { + this.file = file; + } + + public String getRepository() { + return repository; + } + + public void setRepository(String repository) { + this.repository = repository; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDeploy_path() { + return deploy_path; + } + + public void setDeploy_path(String deploy_path) { + this.deploy_path = deploy_path; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/ArtifactType.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/ArtifactType.java new file mode 100644 index 0000000000..1dff6b9e8d --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/ArtifactType.java @@ -0,0 +1,94 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + +import java.util.List; +import java.util.Map; + + + +public class ArtifactType { + + private String derived_from; + private String version; + private Map metadata; + private String description; + private String mime_type; + private List file_ext; + private Map properties; + + + public String getDerived_from() { + return derived_from; + } + + public void setDerived_from(String derived_from) { + this.derived_from = derived_from; + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public Map getMetadata() { + return metadata; + } + + public void setMetadata(Map metadata) { + this.metadata = metadata; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getMime_type() { + return mime_type; + } + + public void setMime_type(String mime_type) { + this.mime_type = mime_type; + } + + public List getFile_ext() { + return file_ext; + } + + public void setFile_ext(List file_ext) { + this.file_ext = file_ext; + } + + public Map getProperties() { + return properties; + } + + public void setProperties(Map properties) { + this.properties = properties; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/AttributeDefinition.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/AttributeDefinition.java new file mode 100644 index 0000000000..aefe987402 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/AttributeDefinition.java @@ -0,0 +1,88 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + +import java.util.Objects; + +public class AttributeDefinition { + + private String type; + private String description; + private Object _default; + private Status status; + private EntrySchema entry_schema; + + public AttributeDefinition() { + status = Status.SUPPORTED; + } + + public EntrySchema getEntry_schema() { + return entry_schema; + } + + public void setEntry_schema(EntrySchema entry_schema) { + this.entry_schema = entry_schema; + } + + public Status getStatus() { + return status; + } + + public void setStatus(Status status) { + this.status = status; + } + + public Object get_default() { + return _default; + } + + public void set_default(Object _default) { + this._default = _default; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + @Override + public AttributeDefinition clone() { + AttributeDefinition attributeDefinition = new AttributeDefinition(); + attributeDefinition.setType(this.getType()); + attributeDefinition.setDescription(this.getDescription()); + attributeDefinition.set_default(this.get_default()); + attributeDefinition.setStatus(this.getStatus()); + attributeDefinition.setEntry_schema( + Objects.isNull(this.getEntry_schema()) ? null : this.getEntry_schema().clone()); + return attributeDefinition; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/CapabilityAssignment.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/CapabilityAssignment.java new file mode 100644 index 0000000000..bed4e8c6b0 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/CapabilityAssignment.java @@ -0,0 +1,47 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + +import java.util.Map; + + + +public class CapabilityAssignment { + + private Map properties; + private Map attributes; + + public Map getProperties() { + return properties; + } + + public void setProperties(Map properties) { + this.properties = properties; + } + + public Map getAttributes() { + return attributes; + } + + public void setAttributes(Map attributes) { + this.attributes = attributes; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/CapabilityDefinition.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/CapabilityDefinition.java new file mode 100644 index 0000000000..0eb205b3fd --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/CapabilityDefinition.java @@ -0,0 +1,112 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + +import org.onap.sdc.tosca.services.DataModelCloneUtil; + +import java.util.List; +import java.util.Map; + +public class CapabilityDefinition { + + private String type; + private String description; + private Map properties; + private Map attributes; + private List valid_source_types; + private Object[] occurrences; + + + /** + * Constructor. + */ + public CapabilityDefinition() { + occurrences = new Object[2]; + occurrences[0] = 1; + occurrences[1] = "UNBOUNDED"; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Map getProperties() { + return properties; + } + + public void setProperties(Map properties) { + this.properties = properties; + } + + public Map getAttributes() { + return attributes; + } + + public void setAttributes(Map attributes) { + this.attributes = attributes; + } + + public List getValid_source_types() { + return valid_source_types; + } + + public void setValid_source_types(List valid_source_types) { + this.valid_source_types = valid_source_types; + } + + public Object[] getOccurrences() { + return occurrences; + } + + public void setOccurrences(Object[] occurrences) { + this.occurrences = occurrences; + } + + @Override + public CapabilityDefinition clone() { + CapabilityDefinition capabilityDefinition = new CapabilityDefinition(); + capabilityDefinition + .setOccurrences(new Object[]{this.getOccurrences()[0], this.getOccurrences()[1]}); + capabilityDefinition + .setProperties(DataModelCloneUtil.clonePropertyDefinitions(this.getProperties())); + capabilityDefinition.setType(this.getType()); + capabilityDefinition + .setAttributes(DataModelCloneUtil.cloneAttributeDefinitions(this.getAttributes())); + capabilityDefinition.setDescription(this.getDescription()); + capabilityDefinition + .setValid_source_types(DataModelCloneUtil.cloneValidSourceTypes(this.getValid_source_types())); + return capabilityDefinition; + + } + +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/CapabilityFilterDefinition.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/CapabilityFilterDefinition.java new file mode 100644 index 0000000000..83f9d2576b --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/CapabilityFilterDefinition.java @@ -0,0 +1,37 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + +import java.util.List; + + + +public class CapabilityFilterDefinition { + List properties; + + public List getProperties() { + return properties; + } + + public void setProperties(List properties) { + this.properties = properties; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/CapabilityType.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/CapabilityType.java new file mode 100644 index 0000000000..a6368f8a6f --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/CapabilityType.java @@ -0,0 +1,84 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + +import java.util.List; +import java.util.Map; + + + +public class CapabilityType { + + private String derived_from; + private String version; + private String description; + private Map properties; + private Map attributes; + private List valid_source_types; + + public String getDerived_from() { + return derived_from; + } + + public void setDerived_from(String derived_from) { + this.derived_from = derived_from; + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Map getProperties() { + return properties; + } + + public void setProperties(Map properties) { + this.properties = properties; + } + + public Map getAttributes() { + return attributes; + } + + public void setAttributes(Map attributes) { + this.attributes = attributes; + } + + public List getValid_source_types() { + return valid_source_types; + } + + public void setValid_source_types(List valid_source_types) { + this.valid_source_types = valid_source_types; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Constraint.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Constraint.java new file mode 100644 index 0000000000..a21e31b387 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Constraint.java @@ -0,0 +1,179 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + +import java.util.ArrayList; +import java.util.List; + +public class Constraint { + private Object equal; + private Object greater_or_equal; + private Object greater_than; + private Object less_than; + private Object less_or_equal; + private Object[] in_range; + private List valid_values; + private Integer length; + private Integer min_length; + private Integer max_length; + private Object pattern; + + public Constraint() { + } + + public Object getGreater_or_equal() { + return greater_or_equal; + } + + public void setGreater_or_equal(Object greater_or_equal) { + this.greater_or_equal = greater_or_equal; + } + + public Object getEqual() { + return equal; + } + + public void setEqual(Object equal) { + this.equal = equal; + } + + public Object getGreater_than() { + return greater_than; + } + + public void setGreater_than(Object greater_than) { + this.greater_than = greater_than; + } + + public Object getLess_than() { + return less_than; + } + + public void setLess_than(Object less_than) { + this.less_than = less_than; + } + + public Object getLess_or_equal() { + return less_or_equal; + } + + public void setLess_or_equal(Object less_or_equal) { + this.less_or_equal = less_or_equal; + } + + public Object[] getIn_range() { + return in_range; + } + + /** + * Sets in_range attribute. + * @param in_range. + */ + public void setIn_range(Object[] in_range) { + this.in_range = new Object[2]; + this.in_range[0] = in_range[0]; + this.in_range[1] = in_range[1]; + } + + public List getValid_values() { + return valid_values; + } + + public void setValid_values(List valid_values) { + this.valid_values = valid_values; + } + + /** + * Add Valid value + * @param validValue object. + */ + public void addValidValue(Object validValue) { + if (this.valid_values == null) { + this.valid_values = new ArrayList<>(); + } + valid_values.add(validValue); + } + + public Integer getLength() { + return length; + } + + public void setLength(Integer length) { + this.length = length; + } + + public Integer getMin_length() { + return min_length; + } + + public void setMin_length(Integer min_length) { + this.min_length = min_length; + } + + public Integer getMax_length() { + return max_length; + } + + public void setMax_length(Integer max_length) { + this.max_length = max_length; + } + + public Object getPattern() { + return pattern; + } + + public void setPattern(Object pattern) { + this.pattern = pattern; + } + + @Override + public Constraint clone() { + Constraint constraint = new Constraint(); + constraint.setEqual(this.getEqual()); + constraint.setGreater_or_equal(this.getGreater_or_equal()); + constraint.setGreater_than(this.getGreater_than()); + cloneInRange(constraint); + constraint.setLength(this.getLength()); + constraint.setLess_or_equal(this.getLess_or_equal()); + constraint.setLess_than(this.getLess_than()); + constraint.setMax_length(this.getMax_length()); + constraint.setMin_length(this.getMin_length()); + constraint.setPattern(this.getPattern()); + cloneValidValues(constraint); + + return constraint; + } + + private void cloneInRange(Constraint constraint) { + if (this.getIn_range() != null) { + constraint.setIn_range(new Object[]{this.getIn_range()[0], this.getIn_range()[1]}); + } + } + + private void cloneValidValues(Constraint constraint) { + if (this.getValid_values() != null) { + constraint.setValid_values(new ArrayList<>()); + for (Object entry : this.getValid_values()) { + constraint.getValid_values().add(entry); + } + } + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Credential.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Credential.java new file mode 100644 index 0000000000..fdfbcbe280 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Credential.java @@ -0,0 +1,55 @@ +package org.onap.sdc.tosca.datatypes.model; + +import java.util.Map; + +public class Credential { + private String protocol; + private String token_type; + private String token; + private Map keys; + private String user; + + public Credential(){ + this.token_type = "password"; + } + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public String getToken_type() { + return token_type; + } + + public void setToken_type(String token_type) { + this.token_type = token_type; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + + public Map getKeys() { + return keys; + } + + public void setKeys(Map keys) { + this.keys = keys; + } + + public String getUser() { + return user; + } + + public void setUser(String user) { + this.user = user; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/DataType.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/DataType.java new file mode 100644 index 0000000000..bf318a7d3e --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/DataType.java @@ -0,0 +1,132 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + +import java.util.List; +import java.util.Map; + +public class DataType { + + private String derived_from; + private String version; + Map metadata; + private String description; + private List constraints; + private Map properties; + + /** + * Gets derived from. + * + * @return the derived from + */ + public String getDerived_from() { + return derived_from; + } + + /** + * Sets derived from. + * + * @param derived_from the derived from + */ + public void setDerived_from(String derived_from) { + this.derived_from = derived_from; + } + + /** + * Gets version. + * + * @return the version + */ + public String getVersion() { + return version; + } + + /** + * Sets version. + * + * @param version the version + */ + public void setVersion(String version) { + this.version = version; + } + + public Map getMetadata() { + return metadata; + } + + public void setMetadata(Map metadata) { + this.metadata = metadata; + } + + /** + * Gets description. + * + * @return the description + */ + public String getDescription() { + return description; + } + + /** + * Sets description. + * + * @param description the description + */ + public void setDescription(String description) { + this.description = description; + } + + /** + * Gets constraints. + * + * @return the constraints + */ + public List getConstraints() { + return constraints; + } + + /** + * Sets constraints. + * + * @param constraints the constraints + */ + public void setConstraints(List constraints) { + this.constraints = constraints; + } + + /** + * Gets properties. + * + * @return the properties + */ + public Map getProperties() { + return properties; + } + + /** + * Sets properties. + * + * @param properties the properties + */ + public void setProperties(Map properties) { + this.properties = properties; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/DefinitionOfDataType.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/DefinitionOfDataType.java new file mode 100644 index 0000000000..e249cd5335 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/DefinitionOfDataType.java @@ -0,0 +1,96 @@ +/* + * Copyright © 2016-2018 European Support Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.onap.sdc.tosca.datatypes.model; + +import java.util.List; + +public class DefinitionOfDataType { + + protected String type; + protected String description; + protected Object value; + protected Boolean required; + protected Object _default; + protected Status status; + protected List constraints; + protected EntrySchema entry_schema; + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Object getValue() { + return value; + } + + public void setValue(Object value) { + this.value = value; + } + + public Boolean getRequired() { + return required; + } + + public void setRequired(Boolean required) { + this.required = required; + } + + public Object get_default() { + return _default; + } + + public void set_default(Object _default) { + this._default = _default; + } + + public Status getStatus() { + return status; + } + + public void setStatus(Status status) { + this.status = status; + } + + public List getConstraints() { + return constraints; + } + + public void setConstraints(List constraints) { + this.constraints = constraints; + } + + public EntrySchema getEntry_schema() { + return entry_schema; + } + + public void setEntry_schema(EntrySchema entry_schema) { + this.entry_schema = entry_schema; + } + +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Directive.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Directive.java new file mode 100644 index 0000000000..749044bf8e --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Directive.java @@ -0,0 +1,42 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + + + +public enum Directive { + + + SELECTABLE("selectable"), + SUBSTITUTABLE("substitutable"); + + private String displayName; + + Directive(String displayName) { + this.displayName = displayName; + } + + public String getDisplayName() { + return displayName; + } + + +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/EntrySchema.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/EntrySchema.java new file mode 100644 index 0000000000..0b826e22cd --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/EntrySchema.java @@ -0,0 +1,65 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + +import org.onap.sdc.tosca.services.DataModelCloneUtil; + +import java.util.List; + +public class EntrySchema { + + private String description; + private String type; + private List constraints; + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public List getConstraints() { + return constraints; + } + + public void setConstraints(List constraints) { + this.constraints = constraints; + } + + @Override + public EntrySchema clone() { + EntrySchema entrySchema = new EntrySchema(); + entrySchema.setDescription(this.getDescription()); + entrySchema.setType(this.getType()); + entrySchema.setConstraints(DataModelCloneUtil.cloneConstraints(this.getConstraints())); + return entrySchema; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/EventFilter.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/EventFilter.java new file mode 100644 index 0000000000..273a64f5af --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/EventFilter.java @@ -0,0 +1,32 @@ +package org.onap.sdc.tosca.datatypes.model; + +public class EventFilter { + + private String node; + private String requirement; + private String capability; + + public String getNode() { + return node; + } + + public void setNode(String node) { + this.node = node; + } + + public String getRequirement() { + return requirement; + } + + public void setRequirement(String requirement) { + this.requirement = requirement; + } + + public String getCapability() { + return capability; + } + + public void setCapability(String capability) { + this.capability = capability; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/GroupDefinition.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/GroupDefinition.java new file mode 100644 index 0000000000..e2002bf22e --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/GroupDefinition.java @@ -0,0 +1,85 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + +import java.util.List; +import java.util.Map; + + + +public class GroupDefinition { + + private String type; + private String description; + private Map metadata; + private Map properties; + private List members; + private Map interfaces; + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Map getProperties() { + return properties; + } + + public void setProperties(Map properties) { + this.properties = properties; + } + + public List getMembers() { + return members; + } + + public void setMembers(List members) { + this.members = members; + } + + public Map getMetadata() { + return metadata; + } + + public void setMetadata(Map metadata) { + this.metadata = metadata; + } + + public Map getInterfaces() { + return interfaces; + } + + public void setInterfaces( + Map interfaces) { + this.interfaces = interfaces; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/GroupType.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/GroupType.java new file mode 100644 index 0000000000..611b1bf447 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/GroupType.java @@ -0,0 +1,113 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + +import java.util.List; +import java.util.Map; + + + +public class GroupType { + + private String derived_from; + private String version; + private Map metadata; + private String description; + private Map properties; + private List members; + private List> requirements; + private Map capabilities; + private Map interfaces; + + public String getDerived_from() { + return derived_from; + } + + public void setDerived_from(String derived_from) { + this.derived_from = derived_from; + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public Map getMetadata() { + return metadata; + } + + public void setMetadata(Map metadata) { + this.metadata = metadata; + } + + public List> getRequirements() { + return requirements; + } + + public void setRequirements( + List> requirements) { + this.requirements = requirements; + } + + public Map getCapabilities() { + return capabilities; + } + + public void setCapabilities( + Map capabilities) { + this.capabilities = capabilities; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Map getProperties() { + return properties; + } + + public void setProperties(Map properties) { + this.properties = properties; + } + + public List getMembers() { + return members; + } + + public void setMembers(List members) { + this.members = members; + } + + public Map getInterfaces() { + return interfaces; + } + + public void setInterfaces(Map interfaces) { + this.interfaces = interfaces; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Implementation.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Implementation.java new file mode 100644 index 0000000000..00c0833956 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Implementation.java @@ -0,0 +1,62 @@ +/* + * Copyright © 2016-2018 European Support Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.onap.sdc.tosca.datatypes.model; + +import java.util.HashSet; +import java.util.List; +import java.util.Objects; + + +public class Implementation { + + private String primary; + private List dependencies; + + public String getPrimary() { + return primary; + } + + public void setPrimary(String primary) { + this.primary = primary; + } + + public List getDependencies() { + return dependencies; + } + + public void setDependencies(List dependencies) { + this.dependencies = dependencies; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Implementation)) { + return false; + } + Implementation that = (Implementation) o; + return Objects.equals(primary, that.primary) && + Objects.equals(new HashSet<>(dependencies), new HashSet<>(that.dependencies)); + } + + @Override + public int hashCode() { + return Objects.hash(primary, dependencies); + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Import.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Import.java new file mode 100644 index 0000000000..604607c11e --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Import.java @@ -0,0 +1,63 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + + + +public class Import { + + private String file; + private String repository; + private String namespace_uri; + private String namespace_prefix; + + public String getFile() { + return file; + } + + public void setFile(String file) { + this.file = file; + } + + public String getRepository() { + return repository; + } + + public void setRepository(String repository) { + this.repository = repository; + } + + public String getNamespace_uri() { + return namespace_uri; + } + + public void setNamespace_uri(String namespace_uri) { + this.namespace_uri = namespace_uri; + } + + public String getNamespace_prefix() { + return namespace_prefix; + } + + public void setNamespace_prefix(String namespace_prefix) { + this.namespace_prefix = namespace_prefix; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/InterfaceDefinition.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/InterfaceDefinition.java new file mode 100644 index 0000000000..28e871a454 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/InterfaceDefinition.java @@ -0,0 +1,25 @@ +/* + * Copyright © 2016-2018 European Support Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.sdc.tosca.datatypes.model; + +import java.util.Map; + +public abstract class InterfaceDefinition { + + protected Map operations; + + public abstract void addOperation(String operationName, OperationDefinition operationDefinition); +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/InterfaceDefinitionTemplate.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/InterfaceDefinitionTemplate.java new file mode 100644 index 0000000000..a39221fe39 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/InterfaceDefinitionTemplate.java @@ -0,0 +1,74 @@ +/* + * Copyright © 2016-2018 European Support Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.onap.sdc.tosca.datatypes.model; + +import org.apache.commons.collections4.MapUtils; + +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +public class InterfaceDefinitionTemplate extends InterfaceDefinition { + + private Map inputs; + private Map operations; + + public Map getInputs() { + return inputs; + } + + public void setInputs( + Map inputs) { + this.inputs = inputs; + } + + public Map getOperations() { + return operations; + } + + public void addOperation(String operationName, OperationDefinitionTemplate operation) { + if(MapUtils.isEmpty(this.operations)) { + this.operations = new HashMap<>(); + } + + this.operations.put(operationName, operation); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InterfaceDefinitionTemplate)) { + return false; + } + InterfaceDefinitionTemplate that = (InterfaceDefinitionTemplate) o; + return Objects.equals(inputs, that.inputs) && + Objects.equals(operations, that.operations); + } + + @Override + public int hashCode() { + + return Objects.hash(inputs, operations); + } + + @Override + public void addOperation(String operationName, OperationDefinition operationDefinition) { + addOperation(operationName, (OperationDefinitionTemplate)operationDefinition); + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/InterfaceDefinitionType.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/InterfaceDefinitionType.java new file mode 100644 index 0000000000..800786c1af --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/InterfaceDefinitionType.java @@ -0,0 +1,98 @@ +/* + * Copyright © 2016-2018 European Support Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +package org.onap.sdc.tosca.datatypes.model; + +import org.apache.commons.collections4.MapUtils; + +import java.util.HashMap; +import java.util.Map; + +public class InterfaceDefinitionType extends InterfaceDefinition { + + private String type; + private Map inputs; + protected Map operations; + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public Map getInputs() { + return inputs; + } + + public void setInputs( + Map inputs) { + this.inputs = inputs; + } + + public Map getOperations() { + return operations; + } + + public void setOperations( + Map operations) { + this.operations = operations; + } + + public void addOperation(String operationName, OperationDefinitionType operation) { + if(MapUtils.isEmpty(this.operations)) { + this.operations = new HashMap<>(); + } + + this.operations.put(operationName, operation); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InterfaceDefinitionType)) { + return false; + } + + InterfaceDefinitionType that = (InterfaceDefinitionType) o; + + if (getType() != null ? !getType().equals(that.getType()) : that.getType() != null) { + return false; + } + if (getInputs() != null ? !getInputs().equals(that.getInputs()) : that.getInputs() != null) { + return false; + } + return getOperations() != null ? getOperations().equals(that.getOperations()) + : that.getOperations() == null; + } + + @Override + public int hashCode() { + int result = getType() != null ? getType().hashCode() : 0; + result = 31 * result + (getInputs() != null ? getInputs().hashCode() : 0); + result = 31 * result + (getOperations() != null ? getOperations().hashCode() : 0); + return result; + } + + @Override + public void addOperation(String operationName, OperationDefinition operationDefinition) { + addOperation(operationName, (OperationDefinitionType)operationDefinition); + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/InterfaceType.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/InterfaceType.java new file mode 100644 index 0000000000..d89aa9fd82 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/InterfaceType.java @@ -0,0 +1,116 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + +import org.apache.commons.collections4.MapUtils; + +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +public class InterfaceType { + private String derived_from; + private String version; + private Map metadata; + private String description; + private Map inputs; + private Map operations; + + public Map getInputs() { + return inputs; + } + + public void setInputs( + Map inputs) { + this.inputs = inputs; + } + + public String getDerived_from() { + return derived_from; + } + + public void setDerived_from(String derived_from) { + this.derived_from = derived_from; + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public Map getMetadata() { + return metadata; + } + + public void setMetadata(Map metadata) { + this.metadata = metadata; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Map getOperations() { + return operations; + } + + public void setOperations( + Map operations) { + this.operations = operations; + } + + public void addOperation(String operationName, OperationDefinition operationDefinition) { + if(MapUtils.isEmpty(this.operations)){ + this.operations = new HashMap<>(); + } + this.operations.put(operationName, operationDefinition); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InterfaceType)) { + return false; + } + InterfaceType that = (InterfaceType) o; + return Objects.equals(derived_from, that.derived_from) && + Objects.equals(version, that.version) && + Objects.equals(metadata, that.metadata) && + Objects.equals(description, that.description) && + Objects.equals(inputs, that.inputs) && + Objects.equals(operations, that.operations); + } + + @Override + public int hashCode() { + + return Objects.hash(derived_from, version, metadata, description, inputs, operations); + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/NodeFilter.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/NodeFilter.java new file mode 100644 index 0000000000..692d7e47ee --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/NodeFilter.java @@ -0,0 +1,49 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + +import java.util.List; +import java.util.Map; + + + +public class NodeFilter { + + Map> properties; + Map capabilities; + + public Map> getProperties() { + + return properties; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map getCapabilities() { + return capabilities; + } + + public void setCapabilities(Map capabilities) { + this.capabilities = capabilities; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/NodeTemplate.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/NodeTemplate.java new file mode 100644 index 0000000000..258a7ec2cd --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/NodeTemplate.java @@ -0,0 +1,177 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + +import org.onap.sdc.tosca.services.YamlUtil; + +import java.util.List; +import java.util.Map; +import java.util.Objects; + + +public class NodeTemplate implements Template { + + private String type; + private String description; + private Map metadata; + private List directives; + private Map properties; + private Map attributes; + private List> requirements; + private Map capabilities; + private Map interfaces; + private Map artifacts; + private NodeFilter node_filter; + private String copy; + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Map getMetadata() { + return metadata; + } + + public void setMetadata(Map metadata) { + this.metadata = metadata; + } + + public List getDirectives() { + return directives; + } + + public void setDirectives(List directives) { + this.directives = directives; + } + + public Map getProperties() { + return properties; + } + + public void setProperties(Map properties) { + this.properties = properties; + } + + public Map getAttributes() { + return attributes; + } + + public void setAttributes(Map attributes) { + this.attributes = attributes; + } + + public List> getRequirements() { + return requirements; + } + + public void setRequirements(List> requirements) { + this.requirements = requirements; + } + + public Map getCapabilities() { + return capabilities; + } + + public void setCapabilities(Map capabilities) { + this.capabilities = capabilities; + } + + public Map getInterfaces() { + return interfaces; + } + + public void setInterfaces(Map interfaces) { + this.interfaces = interfaces; + } + + public Map getArtifacts() { + return artifacts; + } + + public void setArtifacts(Map artifacts) { + this.artifacts = artifacts; + } + + public NodeFilter getNode_filter() { + return node_filter; + } + + public void setNode_filter(NodeFilter node_filter) { + this.node_filter = node_filter; + } + + public String getCopy() { + return copy; + } + + public void setCopy(String copy) { + this.copy = copy; + } + + @Override + public NodeTemplate clone() { + YamlUtil yamlUtil = new YamlUtil(); + return yamlUtil.yamlToObject(yamlUtil.objectToYaml(this), NodeTemplate.class); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NodeTemplate)) { + return false; + } + NodeTemplate that = (NodeTemplate) o; + return Objects.equals(type, that.type) && + Objects.equals(description, that.description) && + Objects.equals(metadata, that.metadata) && + Objects.equals(directives, that.directives) && + Objects.equals(properties, that.properties) && + Objects.equals(attributes, that.attributes) && + Objects.equals(requirements, that.requirements) && + Objects.equals(capabilities, that.capabilities) && + Objects.equals(interfaces, that.interfaces) && + Objects.equals(artifacts, that.artifacts) && + Objects.equals(node_filter, that.node_filter) && + Objects.equals(copy, that.copy); + } + + @Override + public int hashCode() { + + return Objects + .hash(type, description, metadata, directives, properties, attributes, requirements, + capabilities, interfaces, artifacts, node_filter, copy); + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/NodeType.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/NodeType.java new file mode 100644 index 0000000000..767e8a6668 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/NodeType.java @@ -0,0 +1,134 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + +import java.util.List; +import java.util.Map; + +public class NodeType { + + private String derived_from; + private String version; + private Map metadata; + private String description; + private Map properties; + private Map attributes; + private List> requirements; + private Map capabilities; + private Map interfaces; + private Map artifacts; + + + public String getDerived_from() { + return derived_from; + } + + public void setDerived_from(String derived_from) { + this.derived_from = derived_from; + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public Map getMetadata() { + return metadata; + } + + public void setMetadata(Map metadata) { + this.metadata = metadata; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Map getProperties() { + return properties; + } + + public void setProperties(Map properties) { + this.properties = properties; + } + + public Map getAttributes() { + return attributes; + } + + public void setAttributes(Map attributes) { + this.attributes = attributes; + } + + public List> getRequirements() { + return requirements; + } + + public void setRequirements(List> requirements) { + this.requirements = requirements; + } + + public Map getCapabilities() { + return capabilities; + } + + public void setCapabilities(Map capabilities) { + this.capabilities = capabilities; + } + + public Map getInterfaces() { + return interfaces; + } + + public void setInterfaces(Map interfaces) { + this.interfaces = interfaces; + } + + public Map getArtifacts() { + return artifacts; + } + + public void setArtifacts(Map artifacts) { + this.artifacts = artifacts; + } + + @Override + public NodeType clone() { + NodeType clone = new NodeType(); + clone.setCapabilities(this.getCapabilities()); + clone.setDerived_from(this.getDerived_from()); + clone.setProperties(this.getProperties()); + clone.setRequirements(this.getRequirements()); + clone.setDescription(this.getDescription()); + clone.setAttributes(this.getAttributes()); + clone.setInterfaces(this.getInterfaces()); + clone.setVersion(this.getVersion()); + clone.setArtifacts(this.getArtifacts()); + return clone; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/OperationDefinition.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/OperationDefinition.java new file mode 100644 index 0000000000..c166588985 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/OperationDefinition.java @@ -0,0 +1,34 @@ +package org.onap.sdc.tosca.datatypes.model; + +import java.util.Objects; + +public class OperationDefinition { + + protected String description; + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OperationDefinition)) { + return false; + } + OperationDefinition that = (OperationDefinition) o; + return Objects.equals(description, that.description); + } + + @Override + public int hashCode() { + + return Objects.hash(description); + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/OperationDefinitionTemplate.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/OperationDefinitionTemplate.java new file mode 100644 index 0000000000..16e45393cf --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/OperationDefinitionTemplate.java @@ -0,0 +1,61 @@ +/* + * Copyright © 2016-2018 European Support Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.onap.sdc.tosca.datatypes.model; + +import java.util.Map; +import java.util.Objects; + +public class OperationDefinitionTemplate extends OperationDefinition { + + private Implementation implementation; + private Map inputs; + + public Implementation getImplementation() { + return implementation; + } + + public void setImplementation(Implementation implementation) { + this.implementation = implementation; + } + + public Map getInputs() { + return inputs; + } + + public void setInputs(Map inputs) { + this.inputs = inputs; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OperationDefinitionTemplate)) { + return false; + } + OperationDefinitionTemplate that = (OperationDefinitionTemplate) o; + return Objects.equals(implementation, that.implementation) && + Objects.equals(inputs, that.inputs); + } + + @Override + public int hashCode() { + + return Objects.hash(implementation, inputs); + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/OperationDefinitionType.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/OperationDefinitionType.java new file mode 100644 index 0000000000..5b87d49055 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/OperationDefinitionType.java @@ -0,0 +1,62 @@ +/* + * Copyright © 2016-2018 European Support Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.onap.sdc.tosca.datatypes.model; + +import java.util.Map; +import java.util.Objects; + +public class OperationDefinitionType extends OperationDefinition { + + private String implementation; + private Map inputs; + + public String getImplementation() { + return implementation; + } + + public void setImplementation(String implementation) { + this.implementation = implementation; + } + + public Map getInputs() { + return inputs; + } + + public void setInputs( + Map inputs) { + this.inputs = inputs; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OperationDefinitionType)) { + return false; + } + OperationDefinitionType that = (OperationDefinitionType) o; + return Objects.equals(implementation, that.implementation) && + Objects.equals(inputs, that.inputs); + } + + @Override + public int hashCode() { + + return Objects.hash(implementation, inputs); + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/ParameterDefinition.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/ParameterDefinition.java new file mode 100644 index 0000000000..7426c33010 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/ParameterDefinition.java @@ -0,0 +1,22 @@ +/* + * Copyright © 2016-2018 European Support Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.onap.sdc.tosca.datatypes.model; + + +public class ParameterDefinition extends DefinitionOfDataType { + +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/PolicyDefinition.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/PolicyDefinition.java new file mode 100644 index 0000000000..e1c2fb468c --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/PolicyDefinition.java @@ -0,0 +1,72 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + +import java.util.List; +import java.util.Map; + +public class PolicyDefinition implements Template { + private String type; + private String description; + private Map metadata; + private Map properties; + private List targets; + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Map getMetadata() { + return metadata; + } + + public void setMetadata(Map metadata) { + this.metadata = metadata; + } + + public Map getProperties() { + return properties; + } + + public void setProperties(Map properties) { + this.properties = properties; + } + + public List getTargets() { + return targets; + } + + public void setTargets(List targets) { + this.targets = targets; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/PolicyType.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/PolicyType.java new file mode 100644 index 0000000000..54d52cceec --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/PolicyType.java @@ -0,0 +1,94 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + +import java.util.List; +import java.util.Map; + + + +public class PolicyType { + + private String derived_from; + private String version; + private Map metadata; + private String description; + private Map properties; + private List targets; + private List triggers; + + public String getDerived_from() { + return derived_from; + } + + public void setDerived_from(String derived_from) { + this.derived_from = derived_from; + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Map getProperties() { + return properties; + } + + public void setProperties(Map properties) { + this.properties = properties; + } + + public List getTargets() { + return targets; + } + + public void setTargets(List targets) { + this.targets = targets; + } + + public Map getMetadata() { + return metadata; + } + + public void setMetadata(Map metadata) { + this.metadata = metadata; + } + + public List getTriggers() { + return triggers; + } + + public void setTriggers( + List triggers) { + this.triggers = triggers; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/PreconditionDefinition.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/PreconditionDefinition.java new file mode 100644 index 0000000000..8bd5c540b0 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/PreconditionDefinition.java @@ -0,0 +1,32 @@ +package org.onap.sdc.tosca.datatypes.model; + +public class PreconditionDefinition { + + private String target; + private String target_relationship; + private Constraint condition; + + public String getTarget() { + return target; + } + + public void setTarget(String target) { + this.target = target; + } + + public String getTarget_relationship() { + return target_relationship; + } + + public void setTarget_relationship(String target_relationship) { + this.target_relationship = target_relationship; + } + + public Constraint getCondition() { + return condition; + } + + public void setCondition(Constraint condition) { + this.condition = condition; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/PropertyDefinition.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/PropertyDefinition.java new file mode 100644 index 0000000000..58c4a75347 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/PropertyDefinition.java @@ -0,0 +1,45 @@ +/* + * Copyright © 2016-2018 European Support Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.onap.sdc.tosca.datatypes.model; + +import org.onap.sdc.tosca.services.DataModelCloneUtil; + +import java.util.Objects; + +public class PropertyDefinition extends DefinitionOfDataType { + + public PropertyDefinition() { + this.status = Status.SUPPORTED; + this.required = true; + } + + @Override + public PropertyDefinition clone() { + PropertyDefinition propertyDefinition = new PropertyDefinition(); + propertyDefinition.setType(this.getType()); + propertyDefinition.setDescription(this.getDescription()); + propertyDefinition.setRequired(this.getRequired()); + propertyDefinition.set_default(this.get_default()); + propertyDefinition.setStatus(this.getStatus()); + propertyDefinition.setEntry_schema( + Objects.isNull(this.getEntry_schema()) ? null : this.getEntry_schema().clone()); + propertyDefinition.setConstraints(DataModelCloneUtil.cloneConstraints(this.getConstraints())); + return propertyDefinition; + } + + +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/PropertyType.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/PropertyType.java new file mode 100644 index 0000000000..d08a1271e3 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/PropertyType.java @@ -0,0 +1,94 @@ +/* + * Copyright © 2016-2018 European Support Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.onap.sdc.tosca.datatypes.model; + +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Set; + +public enum PropertyType { + + STRING("string"), + INTEGER("integer"), + FLOAT("float"), + BOOLEAN("boolean"), + TIMESTAMP("timestamp"), + NULL("null"), + MAP("map"), + LIST("list"), + SCALAR_UNIT_SIZE("scalar-unit.size"), + SCALAR_UNIT_FREQUENCY("scalar-unit.frequency"); + + private static final Map mMap = + Collections.unmodifiableMap(initializeMapping()); + private static final Set simplePropertyTypes = + Collections.unmodifiableSet(initializeSimplePropertyTypes()); + private String displayName; + + PropertyType(String displayName) { + + this.displayName = displayName; + } + + /** + * Initilize property type display name mapping. + * @return Map + */ + public static Map initializeMapping() { + Map typeMap = new HashMap<>(); + for (PropertyType v : PropertyType.values()) { + typeMap.put(v.displayName, v); + } + return typeMap; + } + + /** + * Get Property type by display name. + * @param displayName + * @return PropertyType + */ + public static PropertyType getPropertyTypeByDisplayName(String displayName) { + if (mMap == null) { + initializeMapping(); + } + if (mMap.containsKey(displayName)) { + return mMap.get(displayName); + } + return null; + } + + private static Set initializeSimplePropertyTypes() { + Set simplePropertyTypes = new HashSet<>(4); + simplePropertyTypes.add(STRING.getDisplayName().toLowerCase()); + simplePropertyTypes.add(INTEGER.getDisplayName().toLowerCase()); + simplePropertyTypes.add(FLOAT.getDisplayName().toLowerCase()); + simplePropertyTypes.add(BOOLEAN.getDisplayName().toLowerCase()); + return simplePropertyTypes; + } + + public static Set getSimplePropertyTypes() { + return simplePropertyTypes; + } + + public String getDisplayName() { + return displayName; + } + + +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/RelationshipTemplate.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/RelationshipTemplate.java new file mode 100644 index 0000000000..d9a81137f0 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/RelationshipTemplate.java @@ -0,0 +1,110 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + +import java.util.Map; + + + +public class RelationshipTemplate implements Template { + + private String type; + private String description; + private Map metadata; + private Map properties; + private Map attributes; + private Map requirements; + private Map capabilities; + private Map interfaces; + private String copy; + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Map getMetadata() { + return metadata; + } + + public void setMetadata(Map metadata) { + this.metadata = metadata; + } + + public Map getProperties() { + return properties; + } + + public void setProperties(Map properties) { + this.properties = properties; + } + + public Map getAttributes() { + return attributes; + } + + public void setAttributes(Map attributes) { + this.attributes = attributes; + } + + public Map getRequirements() { + return requirements; + } + + public void setRequirements(Map requirements) { + this.requirements = requirements; + } + + public Map getCapabilities() { + return capabilities; + } + + public void setCapabilities(Map capabilities) { + this.capabilities = capabilities; + } + + public Map getInterfaces() { + return interfaces; + } + + public void setInterfaces(Map interfaces) { + this.interfaces = interfaces; + } + + public String getCopy() { + return copy; + } + + public void setCopy(String copy) { + this.copy = copy; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/RelationshipType.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/RelationshipType.java new file mode 100644 index 0000000000..dacd5bcddf --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/RelationshipType.java @@ -0,0 +1,102 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + +import java.util.List; +import java.util.Map; + +public class RelationshipType { + + private String derived_from; + private String version; + private Map metadata; + private String description; + private Map properties; + private Map attributes; + private Map interfaces; + private List valid_target_types; + //An optional list of one or more names of Capability Types that are valid targets + // for this relationship + + public String getDerived_from() { + return derived_from; + } + + public void setDerived_from(String derived_from) { + this.derived_from = derived_from; + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public Map getMetadata() { + return metadata; + } + + public void setMetadata(Map metadata) { + this.metadata = metadata; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Map getProperties() { + return properties; + } + + public void setProperties(Map properties) { + this.properties = properties; + } + + public Map getAttributes() { + return attributes; + } + + public void setAttributes(Map attributes) { + this.attributes = attributes; + } + + public Map getInterfaces() { + return interfaces; + } + + public void setInterfaces(Map interfaces) { + this.interfaces = interfaces; + } + + public List getValid_target_types() { + return valid_target_types; + } + + public void setValid_target_types(List valid_target_types) { + this.valid_target_types = valid_target_types; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Repository.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Repository.java new file mode 100644 index 0000000000..a9328234d1 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Repository.java @@ -0,0 +1,32 @@ +package org.onap.sdc.tosca.datatypes.model; + +public class Repository { + + private String description; + private String url; + private Credential credential; + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public Credential getCredential() { + return credential; + } + + public void setCredential(Credential credential) { + this.credential = credential; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/RequirementAssignment.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/RequirementAssignment.java new file mode 100644 index 0000000000..0cd15e5549 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/RequirementAssignment.java @@ -0,0 +1,71 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + + +public class RequirementAssignment { + + private String capability; + private String node; + private String relationship; + private NodeFilter node_filter; + private Object[] occurrences; + + public String getCapability() { + return capability; + } + + public void setCapability(String capability) { + this.capability = capability; + } + + public String getNode() { + return node; + } + + public void setNode(String node) { + this.node = node; + } + + public String getRelationship() { + return relationship; + } + + public void setRelationship(String relationship) { + this.relationship = relationship; + } + + public NodeFilter getNode_filter() { + return node_filter; + } + + public void setNode_filter(NodeFilter node_filter) { + this.node_filter = node_filter; + } + + public Object[] getOccurrences() { + return occurrences; + } + + public void setOccurrences(Object[] occurrences) { + this.occurrences = occurrences; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/RequirementDefinition.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/RequirementDefinition.java new file mode 100644 index 0000000000..cc8b6f6166 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/RequirementDefinition.java @@ -0,0 +1,83 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + + +public class RequirementDefinition { + + private String capability; + private String node; + private String relationship; + private Object[] occurrences; + + /** + * Instantiates a new Requirement definition. + */ + public RequirementDefinition() { + occurrences = new Object[2]; + occurrences[0] = 1; + occurrences[1] = 1; + } + + public String getCapability() { + return capability; + } + + public void setCapability(String capability) { + this.capability = capability; + } + + public String getNode() { + return node; + } + + public void setNode(String node) { + this.node = node; + } + + public String getRelationship() { + return relationship; + } + + public void setRelationship(String relationship) { + this.relationship = relationship; + } + + public Object[] getOccurrences() { + return occurrences; + } + + public void setOccurrences(Object[] occurrences) { + this.occurrences = occurrences; + } + + @Override + public RequirementDefinition clone() { + RequirementDefinition requirementDefinition = new RequirementDefinition(); + requirementDefinition.setNode(this.getNode()); + requirementDefinition.setRelationship(this.getRelationship()); + requirementDefinition.setCapability(this.getCapability()); + requirementDefinition + .setOccurrences(new Object[]{this.getOccurrences()[0], this.getOccurrences()[1]}); + return requirementDefinition; + } + +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Scalar.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Scalar.java new file mode 100644 index 0000000000..302ba4808c --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Scalar.java @@ -0,0 +1,36 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + + + +public class Scalar { + + private Float value; + + public Float getValue() { + return value; + } + + public void setValue(Float value) { + this.value = value; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/ServiceTemplate.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/ServiceTemplate.java new file mode 100644 index 0000000000..8ffc1f601e --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/ServiceTemplate.java @@ -0,0 +1,184 @@ +/* + * Copyright © 2016-2018 European Support Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.onap.sdc.tosca.datatypes.model; + +import org.apache.commons.collections4.MapUtils; +import org.onap.sdc.tosca.datatypes.model.heatextend.AnnotationType; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + + +public class ServiceTemplate implements Template { + + private String tosca_definitions_version; + private Map metadata; + private Object dsl_definitions; + private Map repositories; + private String description; + private List> imports; + private Map artifact_types; + private Map data_types; + private Map capability_types; + private Map interface_types; + private Map relationship_types; + private Map node_types; + private Map group_types; + private Map policy_types; + private Map annotation_types; + private TopologyTemplate topology_template; + + public String getTosca_definitions_version() { + return tosca_definitions_version; + } + + public void setTosca_definitions_version(String tosca_definitions_version) { + this.tosca_definitions_version = tosca_definitions_version; + } + + public Map getMetadata() { + return metadata; + } + + public void setMetadata(Map metadata) { + this.metadata = metadata; + } + + public Object getDsl_definitions() { + return dsl_definitions; + } + + public void setDsl_definitions(Object dsl_definitions) { + this.dsl_definitions = dsl_definitions; + } + + public Map getRepositories() { + return repositories; + } + + public void setRepositories( + Map repositories) { + this.repositories = repositories; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public List> getImports() { + return imports; + } + + public void setImports( + List> imports) { + this.imports = imports; + } + + public Map getArtifact_types() { + return artifact_types; + } + + public void setArtifact_types(Map artifact_types) { + this.artifact_types = artifact_types; + } + + public Map getData_types() { + return data_types; + } + + public void setData_types(Map data_types) { + this.data_types = data_types; + } + + public Map getCapability_types() { + return capability_types; + } + + public void setCapability_types(Map capability_types) { + this.capability_types = capability_types; + } + + public Map getRelationship_types() { + return relationship_types; + } + + public void setRelationship_types(Map relationship_types) { + this.relationship_types = relationship_types; + } + + public Map getNode_types() { + return node_types; + } + + public void setNode_types(Map node_types) { + this.node_types = node_types; + } + + public Map getGroup_types() { + return group_types; + } + + public void setGroup_types(Map group_types) { + this.group_types = group_types; + } + + public Map getInterface_types() { + return interface_types; + } + + public void setInterface_types(Map interface_types) { + this.interface_types = interface_types; + } + + public void addInterfaceType(String interfaceKey, InterfaceType interfaceType) { + if (MapUtils.isEmpty(this.interface_types)) { + this.interface_types = new HashMap<>(); + } + + this.interface_types.put(interfaceKey, interfaceType); + } + + public Map getPolicy_types() { + return policy_types; + } + + public void setPolicy_types(Map policy_types) { + this.policy_types = policy_types; + } + + public TopologyTemplate getTopology_template() { + return topology_template; + } + + public void setTopology_template(TopologyTemplate topology_template) { + this.topology_template = topology_template; + } + + public Map getAnnotation_types() { + return annotation_types; + } + + public void setAnnotation_types(Map annotation_types) { + this.annotation_types = annotation_types; + } + +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Status.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Status.java new file mode 100644 index 0000000000..c0f6d874d7 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Status.java @@ -0,0 +1,42 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + + + +public enum Status { + + SUPPORTED("supported"), + UNSUPPORTED("unsupported"), + EXPERIMENTAL("experimental"), + DEPRECATED("deprecated"),; + private String displayName; + + Status(String displayName) { + this.displayName = displayName; + } + + public String getDisplayName() { + return displayName; + } + + +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/StepDefinition.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/StepDefinition.java new file mode 100644 index 0000000000..660b31c5e4 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/StepDefinition.java @@ -0,0 +1,71 @@ +package org.onap.sdc.tosca.datatypes.model; + +import java.util.List; + +public class StepDefinition { + + private String target; + private String target_relationship; + private String operation_host; + private List filter; + private List activities; + private String on_success; + private String on_failure; + + + public String getTarget() { + return target; + } + + public void setTarget(String target) { + this.target = target; + } + + public String getTarget_relationship() { + return target_relationship; + } + + public void setTarget_relationship(String target_relationship) { + this.target_relationship = target_relationship; + } + + public String getOperation_host() { + return operation_host; + } + + public void setOperation_host(String operation_host) { + this.operation_host = operation_host; + } + + public List getFilter() { + return filter; + } + + public void setFilter(List filter) { + this.filter = filter; + } + + public List getActivities() { + return activities; + } + + public void setActivities(List activities) { + this.activities = activities; + } + + public String getOn_success() { + return on_success; + } + + public void setOn_success(String on_success) { + this.on_success = on_success; + } + + public String getOn_failure() { + return on_failure; + } + + public void setOn_failure(String on_failure) { + this.on_failure = on_failure; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/SubstitutionMapping.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/SubstitutionMapping.java new file mode 100644 index 0000000000..3669ae1df4 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/SubstitutionMapping.java @@ -0,0 +1,54 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + +import java.util.List; +import java.util.Map; + +public class SubstitutionMapping { + private String node_type; + private Map> capabilities; + private Map> requirements; + + public String getNode_type() { + return node_type; + } + + public void setNode_type(String node_type) { + this.node_type = node_type; + } + + public Map> getRequirements() { + return requirements; + } + + public void setRequirements(Map> requirements) { + this.requirements = requirements; + } + + public Map> getCapabilities() { + return capabilities; + } + + public void setCapabilities(Map> capabilities) { + this.capabilities = capabilities; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Template.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Template.java new file mode 100644 index 0000000000..490881688e --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Template.java @@ -0,0 +1,24 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + +public interface Template { +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/TimeInterval.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/TimeInterval.java new file mode 100644 index 0000000000..6e39ec67e3 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/TimeInterval.java @@ -0,0 +1,24 @@ +package org.onap.sdc.tosca.datatypes.model; + +import java.sql.Timestamp; + +public class TimeInterval { + private Timestamp start_time; + private Timestamp end_time; + + public Timestamp getStart_time() { + return start_time; + } + + public void setStart_time(Timestamp start_time) { + this.start_time = start_time; + } + + public Timestamp getEnd_time() { + return end_time; + } + + public void setEnd_time(Timestamp end_time) { + this.end_time = end_time; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/TopologyTemplate.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/TopologyTemplate.java new file mode 100644 index 0000000000..fde5f41bd2 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/TopologyTemplate.java @@ -0,0 +1,124 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +public class TopologyTemplate { + + private String description; + private Map inputs; + private Map node_templates; + private Map relationship_templates; + private Map groups; + private Map outputs; + private SubstitutionMapping substitution_mappings; + private Map policies; + private List workflows; + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Map getInputs() { + return inputs; + } + + public void setInputs(Map inputs) { + this.inputs = inputs; + } + + public Map getNode_templates() { + return node_templates; + } + + public void setNode_templates(Map node_templates) { + this.node_templates = node_templates; + } + + public Map getRelationship_templates() { + return relationship_templates; + } + + public void setRelationship_templates(Map relationship_templates) { + this.relationship_templates = relationship_templates; + } + + public Map getGroups() { + return groups; + } + + public void setGroups(Map groups) { + this.groups = groups; + } + + /** + * Add group. + * + * @param groupKey the group key + * @param groupDefinition the group definition + */ + public void addGroup(String groupKey, GroupDefinition groupDefinition) { + if (Objects.isNull(this.groups)) { + this.groups = new HashMap<>(); + } + this.groups.put(groupKey, groupDefinition); + } + + public Map getOutputs() { + return outputs; + } + + public void setOutputs(Map outputs) { + this.outputs = outputs; + } + + public SubstitutionMapping getSubstitution_mappings() { + return substitution_mappings; + } + + public void setSubstitution_mappings(SubstitutionMapping substitution_mappings) { + this.substitution_mappings = substitution_mappings; + } + + public Map getPolicies() { + return policies; + } + + public void setPolicies(Map policies) { + this.policies = policies; + } + + public List getWorkflows() { + return workflows; + } + + public void setWorkflows(List workflows) { + this.workflows = workflows; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Trigger.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Trigger.java new file mode 100644 index 0000000000..92f3b30183 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Trigger.java @@ -0,0 +1,97 @@ +package org.onap.sdc.tosca.datatypes.model; + +public class Trigger { + + private String description; + private String event_type; + private TimeInterval schedule; + private EventFilter target_filter; + private Constraint condition; + private Constraint constraint; + private String period; + private int evaluations; + private String method; + //action - String or operation? + private Object action; + + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getEvent_type() { + return event_type; + } + + public void setEvent_type(String event_type) { + this.event_type = event_type; + } + + public TimeInterval getSchedule() { + return schedule; + } + + public void setSchedule(TimeInterval schedule) { + this.schedule = schedule; + } + + public EventFilter getTarget_filter() { + return target_filter; + } + + public void setTarget_filter(EventFilter target_filter) { + this.target_filter = target_filter; + } + + public Constraint getCondition() { + return condition; + } + + public void setCondition(Constraint condition) { + this.condition = condition; + } + + public Constraint getConstraint() { + return constraint; + } + + public void setConstraint(Constraint constraint) { + this.constraint = constraint; + } + + public String getPeriod() { + return period; + } + + public void setPeriod(String period) { + this.period = period; + } + + public int getEvaluations() { + return evaluations; + } + + public void setEvaluations(int evaluations) { + this.evaluations = evaluations; + } + + public String getMethod() { + return method; + } + + public void setMethod(String method) { + this.method = method; + } + + public Object getAction() { + return action; + } + + public void setAction(Object action) { + this.action = action; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/WorkflowDefinition.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/WorkflowDefinition.java new file mode 100644 index 0000000000..deacc77767 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/WorkflowDefinition.java @@ -0,0 +1,55 @@ +package org.onap.sdc.tosca.datatypes.model; + +import java.util.List; +import java.util.Map; + +public class WorkflowDefinition { + private String description; + private Map metadata; + private Map inputs; + private List preconditions; + private Map steps; + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Map getMetadata() { + return metadata; + } + + public void setMetadata(Map metadata) { + this.metadata = metadata; + } + + public Map getInputs() { + return inputs; + } + + public void setInputs( + Map inputs) { + this.inputs = inputs; + } + + public List getPreconditions() { + return preconditions; + } + + public void setPreconditions( + List preconditions) { + this.preconditions = preconditions; + } + + public Map getSteps() { + return steps; + } + + public void setSteps( + Map steps) { + this.steps = steps; + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/heatextend/AnnotationDefinition.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/heatextend/AnnotationDefinition.java new file mode 100644 index 0000000000..8734dbcf07 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/heatextend/AnnotationDefinition.java @@ -0,0 +1,42 @@ +/* + * Copyright © 2016-2017 European Support Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.onap.sdc.tosca.datatypes.model.heatextend; + +import java.util.Map; + +public class AnnotationDefinition { + + private String type; + private Map properties; + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public Map getProperties() { + return properties; + } + + public void setProperties(Map properties) { + this.properties = properties; + } + +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/heatextend/AnnotationType.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/heatextend/AnnotationType.java new file mode 100644 index 0000000000..f2d124ac18 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/heatextend/AnnotationType.java @@ -0,0 +1,53 @@ +/* + * Copyright © 2018 European Support Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + package org.onap.sdc.tosca.datatypes.model.heatextend; + + import org.onap.sdc.tosca.datatypes.model.PropertyDefinition; + + import java.util.Map; + + public class AnnotationType { + + private String version; + private String description; + private Map properties; + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Map getProperties() { + return properties; + } + + public void setProperties(Map properties) { + this.properties = properties; + } + + } \ No newline at end of file diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/heatextend/ParameterDefinitionExt.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/heatextend/ParameterDefinitionExt.java new file mode 100644 index 0000000000..dccb200148 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/heatextend/ParameterDefinitionExt.java @@ -0,0 +1,61 @@ +/* + * Copyright © 2016-2017 European Support Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.onap.sdc.tosca.datatypes.model.heatextend; + +import org.onap.sdc.tosca.datatypes.model.ParameterDefinition; +import java.util.Map; + +public class ParameterDefinitionExt extends ParameterDefinition { + + private String label; + private Boolean hidden; + private Boolean immutable; + private Map annotations; + + public String getLabel() { + return label; + } + + public void setLabel(String label) { + this.label = label; + } + + public Boolean getHidden() { + return hidden; + } + + public void setHidden(Boolean hidden) { + this.hidden = hidden; + } + + public Boolean getImmutable() { + return immutable; + } + + public void setImmutable(Boolean immutable) { + this.immutable = immutable; + } + + public Map getAnnotations() { + return annotations; + } + + public void setAnnotations(Map annotations) { + this.annotations = annotations; + } + +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/heatextend/PropertyTypeExt.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/heatextend/PropertyTypeExt.java new file mode 100644 index 0000000000..34d91cbb51 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/heatextend/PropertyTypeExt.java @@ -0,0 +1,85 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.datatypes.model.heatextend; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; + +/** + * The enum Property type ext. + */ +public enum PropertyTypeExt { + + /** + * Json property type ext. + */ + JSON("json"); + + private static final Map mMap = + Collections.unmodifiableMap(initializeMapping()); + private String displayName; + + PropertyTypeExt(String displayName) { + + this.displayName = displayName; + } + + /** + * Initialize mapping map. + * + * @return the map + */ + public static Map initializeMapping() { + Map typeMap = new HashMap(); + for (PropertyTypeExt v : PropertyTypeExt.values()) { + typeMap.put(v.displayName, v); + } + return typeMap; + } + + /** + * Gets property type by display name. + * + * @param displayName the display name + * @return the property type by display name + */ + public static PropertyTypeExt getPropertyTypeByDisplayName(String displayName) { + if (mMap == null) { + initializeMapping(); + } + if (mMap.containsKey(displayName)) { + return mMap.get(displayName); + } + return null; + } + + /** + * Gets display name. + * + * @return the display name + */ + public String getDisplayName() { + return displayName; + } + + +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/services/DataModelCloneUtil.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/services/DataModelCloneUtil.java new file mode 100644 index 0000000000..f2868449c7 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/services/DataModelCloneUtil.java @@ -0,0 +1,103 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.sdc.tosca.services; + + +import org.onap.sdc.tosca.datatypes.model.AttributeDefinition; +import org.onap.sdc.tosca.datatypes.model.Constraint; +import org.onap.sdc.tosca.datatypes.model.PropertyDefinition; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +public class DataModelCloneUtil { + + /** + * Clone constraints list. + * + * @param constraints the constraints + * @return the list + */ + public static List cloneConstraints(List constraints) { + + if (constraints == null) { + return null; + } + return constraints.stream().map(Constraint::clone).collect(Collectors.toList()); + } + + /** + * Clone property definitions map. + * + * @param propertyDefinitions the property definitions + * @return the map + */ + public static Map clonePropertyDefinitions( + Map propertyDefinitions) { + + if (propertyDefinitions == null) { + return null; + } + Map clonedProperties = new HashMap<>(); + for (String propertyKey : propertyDefinitions.keySet()) { + clonedProperties.put(propertyKey, propertyDefinitions.get(propertyKey).clone()); + } + + return clonedProperties; + } + + /** + * Clone attribute definitions map. + * + * @param attributeDefinitions the attribute definitions + * @return the map + */ + public static Map cloneAttributeDefinitions( + Map attributeDefinitions) { + + if (attributeDefinitions == null) { + return null; + } + Map clonedAttributeDefinitions = new HashMap<>(); + for (String attributeKey : attributeDefinitions.keySet()) { + clonedAttributeDefinitions.put(attributeKey, attributeDefinitions.get(attributeKey).clone()); + } + + return clonedAttributeDefinitions; + } + + /** + * Clone valid source types list. + * + * @param validSourceTypes the valid source types + * @return the list + */ + public static List cloneValidSourceTypes(List validSourceTypes) { + + if (validSourceTypes == null) { + return null; + } + + return validSourceTypes.stream().collect(Collectors.toList()); + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/services/ToscaExtensionYamlUtil.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/services/ToscaExtensionYamlUtil.java new file mode 100644 index 0000000000..efd4982541 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/services/ToscaExtensionYamlUtil.java @@ -0,0 +1,86 @@ +/* + * Copyright © 2016-2017 European Support Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.onap.sdc.tosca.services; + +import org.yaml.snakeyaml.constructor.Constructor; +import org.yaml.snakeyaml.introspector.Property; +import org.yaml.snakeyaml.introspector.PropertyUtils; +import org.yaml.snakeyaml.nodes.MappingNode; +import org.yaml.snakeyaml.nodes.NodeId; + +import java.beans.IntrospectionException; + + +public class ToscaExtensionYamlUtil extends YamlUtil { + + @Override + public Constructor getConstructor(Class typClass) { + return new ToscaWithHeatExtensionConstructor(typClass); + } + + @Override + protected PropertyUtils getPropertyUtils() { + return new ToscaPropertyUtilsWithHeatExtension(); + } + + public class ToscaPropertyUtilsWithHeatExtension extends MyPropertyUtils { + @Override + public Property getProperty(Class type, String name) + throws IntrospectionException { + Class classType = type; + try { + if (type + .equals(Class.forName("org.onap.sdc.tosca.datatypes.model.ParameterDefinition"))) { + classType = Class + .forName("org.onap.sdc.tosca.datatypes.model.heatextend.ParameterDefinitionExt"); + } + } catch (ClassNotFoundException ex) { + throw new RuntimeException(ex); + } + return super.getProperty(classType, name); + } + } + + protected class ToscaWithHeatExtensionConstructor extends StrictMapAppenderConstructor { + public ToscaWithHeatExtensionConstructor(Class theRoot) { + super(theRoot); + yamlClassConstructors.put(NodeId.mapping, new MyPersistentObjectConstruct()); + } + + class MyPersistentObjectConstruct extends Constructor.ConstructMapping { + @Override + protected Object constructJavaBean2ndStep(MappingNode node, Object object) { + Class type = node.getType(); + try { + if (type.equals( + Class.forName("org.onap.sdc.tosca.datatypes.model.ParameterDefinition"))) { + Class extendHeatClass = Class.forName( + "org.onap.sdc.tosca.datatypes.model.heatextend.ParameterDefinitionExt"); + Object extendHeatObject = extendHeatClass.newInstance(); + // create JavaBean + return super.constructJavaBean2ndStep(node, extendHeatObject); + } else { + // create JavaBean + return super.constructJavaBean2ndStep(node, object); + } + } catch (ClassNotFoundException | InstantiationException | IllegalAccessException ex) { + throw new RuntimeException(ex); + } + } + } + } +} diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/services/YamlUtil.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/services/YamlUtil.java new file mode 100644 index 0000000000..4030d3acd1 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/services/YamlUtil.java @@ -0,0 +1,272 @@ +/* + * Copyright © 2016-2017 European Support Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.onap.sdc.tosca.services; + +import org.yaml.snakeyaml.DumperOptions; +import org.yaml.snakeyaml.TypeDescription; +import org.yaml.snakeyaml.Yaml; +import org.yaml.snakeyaml.constructor.Constructor; +import org.yaml.snakeyaml.introspector.BeanAccess; +import org.yaml.snakeyaml.introspector.Property; +import org.yaml.snakeyaml.introspector.PropertyUtils; +import org.yaml.snakeyaml.nodes.MappingNode; +import org.yaml.snakeyaml.nodes.NodeTuple; +import org.yaml.snakeyaml.nodes.Tag; +import org.yaml.snakeyaml.parser.ParserException; +import org.yaml.snakeyaml.representer.Representer; + +import java.beans.IntrospectionException; +import java.io.IOException; +import java.io.InputStream; +import java.util.AbstractMap; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.Map; +import java.util.Set; + +/** + * The type Yaml util. + */ +@SuppressWarnings("unchecked") +public class YamlUtil { + + private static final String DEFAULT = "default"; + private static final String DEFAULT_STR = "_default"; + + /** + * Yaml to object t. + * + * @param the type parameter + * @param yamlContent the yaml content + * @param typClass the t class + * @return the t + */ + public T yamlToObject(String yamlContent, Class typClass) { + Constructor constructor = getConstructor(typClass); + constructor.setPropertyUtils(getPropertyUtils()); + TypeDescription yamlFileDescription = new TypeDescription(typClass); + constructor.addTypeDescription(yamlFileDescription); + Yaml yaml = new Yaml(constructor); + T yamlObj = (T) yaml.load(yamlContent); + //noinspection ResultOfMethodCallIgnored + yamlObj.toString(); + return yamlObj; + } + + public InputStream loadYamlFileIs(String yamlFullFileName) { + return YamlUtil.class.getResourceAsStream(yamlFullFileName); + } + + /** + * Yaml to object t. + * + * @param the type parameter + * @param yamlContent the yaml content + * @param typClass the t class + * @return the t + */ + public T yamlToObject(InputStream yamlContent, Class typClass) { + try { + Constructor constructor = getConstructor(typClass); + constructor.setPropertyUtils(getPropertyUtils()); + TypeDescription yamlFileDescription = new TypeDescription(typClass); + constructor.addTypeDescription(yamlFileDescription); + Yaml yaml = new Yaml(constructor); + T yamlObj = (T) yaml.load(yamlContent); + if (yamlObj != null) { + //noinspection ResultOfMethodCallIgnored + yamlObj.toString(); + return yamlObj; + } else { + throw new RuntimeException(); + } + } catch (Exception exception) { + throw new RuntimeException(exception); + } finally { + try { + if (yamlContent != null) { + yamlContent.close(); + } + } catch (IOException ignore) { + //do nothing + } + } + } + + + /** + * Gets constructor. + * + * @param the type parameter + * @param typClass the t class + * @return the constructor + */ + public Constructor getConstructor(Class typClass) { + return new StrictMapAppenderConstructor(typClass); + } + + /** + * Gets property utils. + * + * @return the property utils + */ + protected PropertyUtils getPropertyUtils() { + return new MyPropertyUtils(); + } + + + /** + * Yaml to map map. + * + * @param yamlContent the yaml content + * @return the map + */ + public Map> yamlToMap(InputStream yamlContent) { + Yaml yaml = new Yaml(); + return (Map>) yaml.load(yamlContent); + } + + /** + * Object to yaml string. + * @param obj the obj + * @return the string + */ + public String objectToYaml(Object obj) { + DumperOptions options = new DumperOptions(); + options.setPrettyFlow(true); + options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK); + Representer representer = new CustomRepresenter(); + representer.addClassTag(obj.getClass(), Tag.MAP); + representer.setPropertyUtils(new MyPropertyUtils()); + + Yaml yaml = new Yaml(representer, options); + return yaml.dump(obj); + } + + /** + * Is yaml file content valid boolean. + * + * @param yamlFullFileName the yaml full file name + * @return the boolean + */ + public boolean isYamlFileContentValid(String yamlFullFileName) { + Yaml yaml = new Yaml(); + try { + Object loadResult = yaml.load(yamlFullFileName); + return loadResult != null; + } catch (Exception exception) { + return false; + } + } + + + private class CustomRepresenter extends Representer { + @Override + protected MappingNode representJavaBean(Set properties, Object javaBean) { + //remove the bean type from the output yaml (!! ...) + if (!classTags.containsKey(javaBean.getClass())) { + addClassTag(javaBean.getClass(), Tag.MAP); + } + + return super.representJavaBean(properties, javaBean); + } + + @Override + protected NodeTuple representJavaBeanProperty(Object javaBean, Property property, + Object propertyValue, Tag customTag) { + if (propertyValue == null) { + return null; + } else { + NodeTuple defaultNode = + super.representJavaBeanProperty(javaBean, property, propertyValue, customTag); + + return DEFAULT_STR.equals(property.getName()) + ? new NodeTuple(representData(DEFAULT), defaultNode.getValueNode()) + : defaultNode; + } + } + } + + + /** + * The type My property utils. + */ + public class MyPropertyUtils extends PropertyUtils { + //Unsorted properties + @Override + protected Set createPropertySet(Class type, BeanAccess bnAccess) + throws IntrospectionException { + return new LinkedHashSet<>(getPropertiesMap(type, + BeanAccess.FIELD).values()); + } + + @Override + public Property getProperty(Class type, String name) throws IntrospectionException { + String updatedName = name; + if (DEFAULT.equals(updatedName)) { + updatedName = DEFAULT_STR; + } + return super.getProperty(type, updatedName); + } + + } + + /** + * The type Strict map appender constructor. + */ + protected class StrictMapAppenderConstructor extends Constructor { + + /** + * Instantiates a new Strict map appender constructor. + * + * @param theRoot the the root + */ + public StrictMapAppenderConstructor(Class theRoot) { + super(theRoot); + } + + @Override + protected Map createDefaultMap() { + final Map delegate = super.createDefaultMap(); + return new AbstractMap() { + @Override + public Object put(Object key, Object value) { + if (delegate.containsKey(key)) { + throw new IllegalStateException("duplicate key: " + key); + } + return delegate.put(key, value); + } + + @Override + public Set> entrySet() { + return delegate.entrySet(); + } + }; + } + + @Override + protected Map constructMapping(MappingNode node) { + try { + return super.constructMapping(node); + } catch (IllegalStateException exception) { + throw new ParserException("while parsing MappingNode", + node.getStartMark(), exception.getMessage(), + node.getEndMark()); + } + } + } +} diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/onap/_index.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/onap/_index.yml new file mode 100644 index 0000000000..145766b3b0 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/onap/_index.yml @@ -0,0 +1,35 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: onap/_index.yml + version: '1.0' + + +imports: +- tosca_index: + file: ../tosca/_index.yml +- capabilities: + file: capabilities.yml +- nodes: + file: nodes.yml +- relationships: + file: relationships.yml +- groups: + file: groups.yml +- data: + file: data.yml + diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/onap/capabilities.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/onap/capabilities.yml new file mode 100644 index 0000000000..3a7104fd9d --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/onap/capabilities.yml @@ -0,0 +1,74 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: onap/capabilities.yml + version: '1.0' + +imports: +- onap_index: + file: _index.yml + +capability_types: + + tosca.capabilities.nfv.VirtualLinkable: + derived_from: tosca.capabilities.Root + + tosca.capabilities.nfv.Metric: + derived_from: tosca.capabilities.Root + + tosca.capabilities.nfv.VirtualBindable: + derived_from: tosca.capabilities.Root + + tosca.capabilities.nfv.VirtualCompute: + derived_from: tosca.capabilities.Root + properties: + virtual_memory: + type: tosca.datatypes.nfv.VirtualMemory + requested_additional_capabilities: + entry_schema: + type: tosca.datatypes.nfv.RequestedAdditionalCapability + required: false + type: map + virtual_cpu: + type: tosca.datatypes.nfv.VirtualCpu + + tosca.capabilities.nfv.VirtualStorage: + derived_from: tosca.capabilities.Root + + tosca.capabilities.nfv.Forwarder: + derived_from: tosca.capabilities.Root + + tosca.capabilities.nfv.ext.Compute.Container.Architecture: + derived_from: tosca.capabilities.Root + properties: + num_cpus: + required: false + type: string + flavor_extra_specs: + entry_schema: + type: string + required: false + type: map + mem_size: + required: false + type: string + + tosca.capabilities.nfv.ext.ImageFile: + derived_from: tosca.capabilities.Root + + tosca.capabilities.nfv.ext.LocalAttachment: + derived_from: tosca.capabilities.Root \ No newline at end of file diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/onap/data.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/onap/data.yml new file mode 100644 index 0000000000..de251c3843 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/onap/data.yml @@ -0,0 +1,215 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: onap/data.yml + version: '1.0' + +imports: +- onap_index: + file: _index.yml + +data_types: + + tosca.datatypes.nfv.RequestedAdditionalCapability: + derived_from: tosca.datatypes.Root + properties: + support_mandatory: + type: boolean + required: true + min_requested_additional_capability_version: + type: string + required: false + preferred_requested_additional_capability_version: + type: string + required: false + requested_additional_capability_name: + type: string + required: true + target_performance_parameters: + type: map + entry_schema: + type: string + required: true + tosca.datatypes.nfv.VirtualMemory: + derived_from: tosca.datatypes.Root + properties: + virtual_mem_size: + type: string + required: true + virtual_mem_oversubscription_policy: + type: string + required: false + numa_enabled: + type: boolean + required: false + tosca.datatypes.nfv.VirtualCpu: + derived_from: tosca.datatypes.Root + properties: + cpu_architecture: + type: string + required: false + num_virtual_cpu: + type: integer + required: true + virtual_cpu_clock: + type: scalar-unit.frequency + required: false + virtual_cpu_oversubscription_policy: + type: string + required: false + virtual_cpu_pinning: + type: tosca.datatypes.nfv.VirtualCpuPinning + required: false + tosca.datatypes.nfv.VirtualCpuPinning: + derived_from: tosca.datatypes.Root + properties: + cpu_pinning_policy: + type: string + constraints: + - valid_values: [ static, dynamic ] + required: false + cpu_pinning_map: + type: map + entry_schema: + type: string + required: false + tosca.datatypes.nfv.VnfcConfigurableProperties: + properties: + additional_vnfc_configurable_properties: + entry_schema: + type: string + required: false + type: map + tosca.datatypes.nfv.L3AddressData: + properties: + number_of_ip_address: + required: false + type: integer + ip_address_assignment: + type: boolean + ip_address_type: + constraints: + - valid_values: + - ipv4 + - ipv6 + required: false + type: string + floating_ip_activated: + type: string + tosca.datatypes.nfv.VirtualNetworkInterfaceRequirements: + properties: + name: + required: false + type: string + support_mandatory: + type: boolean + description: + required: false + type: string + requirement: + entry_schema: + type: string + type: map + tosca.datatype.nfv.AddressData: + properties: + address_type: + constraints: + - valid_values: + - mac_address + - ip_address + type: string + l2_address_data: + required: false + type: tosca.datatypes.nfv.L2AddressData + l3_address_data: + required: false + type: tosca.datatypes.nfv.L3AddressData + tosca.datatypes.nfv.L2AddressData: {} + tosca.datatypes.nfv.ConnectivityType: + properties: + layer_protocol: + constraints: + - valid_values: + - ethernet + - mpls + - odu2 + - ipv4 + - ipv6 + - pseudo_wire + type: string + flow_pattern: + required: false + type: string + tosca.datatypes.nfv.ext.FloatingIP: + properties: + external_network: + required: false + type: string + ip_address: + required: false + type: string + tosca.datatypes.nfv.ext.AddressPairs: + properties: + ip: + required: false + type: string + mac: + required: false + type: string + tosca.datatypes.nfv.ext.InjectData: + properties: + file_name: + required: false + type: string + file_data: + required: false + type: string + tosca.datatypes.nfv.ext.zte.WatchDog: + properties: + enable_delay: + required: false + type: integer + action: + required: false + type: string + tosca.datatypes.nfv.ext.LocalAffinityOrAntiAffinityRule: + properties: + scope: + required: false + type: string + affinity_antiaffinity: + required: false + type: string + tosca.datatypes.nfv.ext.LocationInfo: + properties: + availability_zone: + required: false + type: string + vimid: + required: false + type: integer + tenant: + required: false + type: string + tosca.datatypes.nfv.ext.HostRouteInfo: + properties: + destination: + required: false + type: string + nexthop: + required: false + type: string \ No newline at end of file diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/onap/nodes.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/onap/nodes.yml new file mode 100644 index 0000000000..643f731f09 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/onap/nodes.yml @@ -0,0 +1,583 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: onap/nodes.yml + version: '1.0' + +imports: +- onap_index: + file: _index.yml + +node_types: + + tosca.nodes.nfv.NS.vEPC_NS: + derived_from: tosca.nodes.nfv.NS + properties: + vendor: + default: ChinaMobile + required: false + type: string + csarVersion: + default: v1.0 + required: false + type: string + name: + default: vEPC_NS + required: false + type: string + csarProvider: + default: ChinaMobile + required: false + type: string + id: + default: vEPC_NS + required: false + type: string + version: + default: v1.0 + required: false + type: string + csarType: + default: NSAR + required: false + type: string + requirements: + - virtualLink: + capability: tosca.capabilities.nfv.VirtualLinkable + occurrences: + - 0 + - UNBOUNDED + + tosca.nodes.nfv.NS.vIMS_NS: + derived_from: tosca.nodes.nfv.NS + properties: + vendor: + default: ChinaMobile + required: false + type: string + csarVersion: + default: v1.0 + required: false + type: string + name: + default: vIMS_NS + required: false + type: string + csarProvider: + default: ChinaMobile + required: false + type: string + id: + default: vIMS_NS + required: false + type: string + version: + default: v1.0 + required: false + type: string + csarType: + default: NSAR + required: false + type: string + requirements: + - virtualLink: + capability: tosca.capabilities.nfv.VirtualLinkable + occurrences: + - 0 + - UNBOUNDED + + tosca.nodes.nfv.NS: + derived_from: tosca.nodes.Root + properties: + vendor: + required: false + type: string + name: + required: false + type: string + id: + required: false + type: string + version: + required: false + type: string + requirements: + - virtualLink: + capability: tosca.capabilities.nfv.VirtualLinkable + occurrences: + - 0 + - UNBOUNDED + + tosca.nodes.nfv.VDU.Compute: + attributes: + private_address: + type: string + public_address: + type: string + networks: + type: string + ports: + type: string + capabilities: + scalable: + type: tosca.capabilities.Scalable + virtual_compute: + type: tosca.capabilities.nfv.VirtualCompute + endpoint: + type: tosca.capabilities.Endpoint.Admin + os: + type: tosca.capabilities.OperatingSystem + virtual_binding: + type: tosca.capabilities.nfv.VirtualBindable + host: + type: tosca.capabilities.Container + binding: + type: tosca.capabilities.network.Bindable + monitoring_parameter: + type: tosca.capabilities.nfv.Metric + derived_from: tosca.nodes.Root + properties: + configurable_properties: + entry_schema: + type: tosca.datatypes.nfv.VnfcConfigurableProperties + type: map + name: + type: string + nfvi_constraints: + entry_schema: + type: string + required: false + type: list + descrption: + type: string + boot_order: + entry_schema: + type: string + required: false + type: list + requirements: + - local_storage: + capability: tosca.capabilities.Attachment + occurrences: + - 0 + - UNBOUNDED + - virtual_storage: + capability: tosca.capabilities.nfv.VirtualStorage + occurrences: + - 0 + - UNBOUNDED + + tosca.nodes.nfv.VDU.VirtualStorage: + capabilities: + virtual_storage: + type: tosca.capabilities.nfv.VirtualStorage + derived_from: tosca.nodes.Root + properties: + id: + type: string + size_of_storage: + type: string + rdma_enabled: + required: false + type: boolean + type_of_storage: + type: string + + tosca.nodes.nfv.VduCpd: + derived_from: tosca.nodes.Root + properties: + virtual_network_interface_requirements: + entry_schema: + type: tosca.datatypes.nfv.VirtualNetworkInterfaceRequirements + required: false + type: list + role: + constraints: + - valid_values: + - root + - leaf + required: false + type: string + bitrate_requirement: + required: false + type: integer + description: + required: false + type: string + layer_protocol: + constraints: + - valid_values: + - ethernet + - mpls + - odu2 + - ipv4 + - ipv6 + - pseudo_wire + type: string + address_data: + entry_schema: + type: tosca.datatype.nfv.AddressData + required: false + type: list + requirements: + - virtual_binding: + capability: tosca.capabilities.nfv.VirtualBindable + occurrences: + - 0 + - UNBOUNDED + - virtual_link: + capability: tosca.capabilities.nfv.VirtualBindable + occurrences: + - 0 + - UNBOUNDED + tosca.nodes.nfv.ext.ImageFile: + capabilities: + guest_os: + type: tosca.capabilities.nfv.ext.GuestOs + image_fle: + type: tosca.capabilities.nfv.ext.ImageFile + derived_from: tosca.nodes.Root + properties: + file_url: + required: false + type: string + container_type: + required: false + type: string + name: + required: false + type: string + disk_format: + required: false + type: string + version: + required: false + type: string + tosca.nodes.nfv.ext.LocalStorage: + capabilities: + local_attachment: + type: tosca.capabilities.nfv.ext.LocalAttachment + derived_from: tosca.nodes.Root + properties: + size: + required: false + type: string + disk_type: + required: false + type: string + tosca.nodes.nfv.ext.zte.CP: + capabilities: + forwarder: + type: tosca.capabilities.nfv.Forwarder + derived_from: tosca.nodes.Root + properties: + guest_os_mtu: + required: false + type: integer + bandwidth: + required: false + type: integer + interface_name: + required: false + type: string + allowed_address_pairs: + entry_schema: + type: tosca.datatypes.nfv.ext.AddressPairs + required: false + type: list + ip_address: + required: false + type: string + bond: + required: false + type: string + proxiedVNFs: + entry_schema: + type: string + required: false + type: list + sfc_encapsulation: + required: false + type: string + floating_ip_address: + required: false + type: tosca.datatypes.nfv.ext.FloatingIP + service_ip_address: + required: false + type: string + mac_address: + required: false + type: string + proxiedVNFtype: + required: false + type: string + macbond: + required: false + type: string + vnic_type: + required: false + type: string + direction: + required: false + type: string + order: + required: false + type: integer + requirements: + - forwarder: + capability: tosca.capabilities.nfv.Forwarder + occurrences: + - 0 + - UNBOUNDED + - virtualbinding: + capability: tosca.capabilities.nfv.VirtualBindable + occurrences: + - 0 + - UNBOUNDED + - virtualLink: + capability: tosca.capabilities.nfv.VirtualBindable + occurrences: + - 0 + - UNBOUNDED + tosca.nodes.nfv.ext.zte.VDU: + capabilities: + scalable: + type: tosca.capabilities.Scalable + monitoring_parameter: + type: tosca.capabilities.nfv.Metric + nfv_compute: + type: tosca.capabilities.nfv.ext.Compute.Container.Architecture + virtualbinding: + type: tosca.capabilities.nfv.VirtualBindable + derived_from: tosca.nodes.Root + properties: + manual_scale_select_vim: + required: false + type: boolean + vdu_type: + required: false + type: string + watchdog: + required: false + type: tosca.datatypes.nfv.ext.zte.WatchDog + name: + required: false + type: string + local_affinity_antiaffinity_rule: + required: false + type: tosca.datatypes.nfv.ext.LocalAffinityOrAntiAffinityRule + support_scaling: + required: false + type: boolean + storage_policy: + required: false + type: string + key_vdu: + required: false + type: boolean + location_info: + required: false + type: tosca.datatypes.nfv.ext.LocationInfo + inject_data_list: + entry_schema: + type: tosca.datatypes.nfv.ext.InjectData + required: false + type: list + requirements: + - guest_os: + capability: tosca.capabilities.nfv.ext.GuestOs + occurrences: + - 0 + - UNBOUNDED + - local_storage: + capability: tosca.capabilities.nfv.ext.LocalAttachment + occurrences: + - 0 + - UNBOUNDED + - volume_storage: + capability: tosca.capabilities.Attachment + occurrences: + - 0 + - UNBOUNDED + - dependency: + capability: tosca.capabilities.Node + occurrences: + - 0 + - UNBOUNDED + tosca.nodes.nfv.ext.zte.VL: + capabilities: + virtual_linkable: + type: tosca.capabilities.nfv.VirtualLinkable + derived_from: tosca.nodes.Root + properties: + segmentation_id: + required: false + type: string + network_name: + required: false + type: string + is_predefined: + required: false + type: boolean + mtu: + required: false + type: integer + dns_nameservers: + entry_schema: + type: string + required: false + type: list + physical_network: + required: false + type: string + dhcp_enabled: + required: false + type: boolean + network_id: + required: false + type: string + host_routes: + entry_schema: + type: tosca.datatypes.nfv.ext.HostRouteInfo + required: false + type: list + ip_version: + required: false + type: integer + vendor: + required: false + type: string + name: + required: false + type: string + start_ip: + required: false + type: string + vlan_transparent: + required: false + type: boolean + cidr: + required: false + type: string + gateway_ip: + required: false + type: string + network_type: + required: false + type: string + end_ip: + required: false + type: string + location_info: + required: false + type: tosca.datatypes.nfv.ext.LocationInfo + tosca.nodes.nfv.ext.zte.VNF: + capabilities: + forwarder: + type: tosca.capabilities.nfv.Forwarder + derived_from: tosca.nodes.Root + properties: + request_reclassification: + required: false + type: boolean + domain_type: + required: false + type: string + nsh_aware: + required: false + type: boolean + plugin_info: + required: false + type: string + adjust_vnf_capacity: + required: false + type: boolean + vnfd_version: + required: false + type: string + vmnumber_overquota_alarm: + required: false + type: boolean + custom_properties: + entry_schema: + type: string + required: false + type: map + version: + required: false + type: string + cross_dc: + required: false + type: boolean + script_info: + required: false + type: string + vendor: + required: false + type: string + is_shared: + required: false + type: boolean + name: + required: false + type: string + vnf_extend_type: + required: false + type: string + id: + required: false + type: string + vnf_type: + required: false + type: string + is_sfc_proxy: + required: false + type: boolean + requirements: + - forwarder: + capability: tosca.capabilities.nfv.Forwarder + occurrences: + - 0 + - UNBOUNDED + - virtualLink: + capability: tosca.capabilities.nfv.VirtualLinkable + occurrences: + - 0 + - UNBOUNDED + + tosca.nodes.nfv.VnfVirtualLinkDesc: + capabilities: + monitoring_parameters: + type: tosca.capabilities.nfv.Metric + virtual_linkable: + type: tosca.capabilities.nfv.VirtualLinkable + derived_from: tosca.nodes.Root + properties: + vl_flavours: + entry_schema: + type: string + type: map + description: + required: false + type: string + test_access: + entry_schema: + type: string + required: false + type: list + connectivity_type: + type: tosca.datatypes.nfv.ConnectivityType \ No newline at end of file diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/onap/relationships.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/onap/relationships.yml new file mode 100644 index 0000000000..a8230c5b56 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/onap/relationships.yml @@ -0,0 +1,38 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: onap/relationships.yml + version: '1.0' + +imports: +- onap_index: + file: _index.yml + +relationship_types: + + tosca.relationships.nfv.VDU.AttachedTo: + derived_from: tosca.relationships.Root + properties: + location: + required: false + type: string + + tosca.relationships.nfv.VirtualBindsTo: + derived_from: tosca.relationships.Root + + tosca.relationships.nfv.VirtualLinksTo: + derived_from: tosca.relationships.Root \ No newline at end of file diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/_index.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/_index.yml new file mode 100644 index 0000000000..fa37f50d8a --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/_index.yml @@ -0,0 +1,30 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: openecomp-heat/_index.yml + version: '1.0' + + +imports: +- openecomp_index: + file: ../openecomp/_index.yml +- nodes: + file: nodes.yml +- groups: + file: groups.yml +- data: + file: data.yml \ No newline at end of file diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/data.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/data.yml new file mode 100644 index 0000000000..bc1f5efd68 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/data.yml @@ -0,0 +1,817 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: openecomp-heat/data.yml + version: '1.0' + +imports: +- heat_index: + file: _index.yml + +data_types: + + org.openecomp.datatypes.heat.network.AddressPair: + derived_from: tosca.datatypes.Root + description: MAC/IP address pairs + properties: + mac_address: + description: MAC address + type: string + status: SUPPORTED + required: false + ip_address: + description: IP address + type: string + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.novaServer.network.PortExtraProperties: + derived_from: tosca.datatypes.Root + description: Nova server network expand properties for port + properties: + port_security_enabled: + description: Flag to enable/disable port security on the port + type: boolean + status: SUPPORTED + required: false + mac_address: + description: MAC address to give to this port + type: string + status: SUPPORTED + required: false + admin_state_up: + description: The administrative state of this port + type: boolean + status: SUPPORTED + default: true + required: false + qos_policy: + description: The name or ID of QoS policy to attach to this port + type: string + status: SUPPORTED + required: false + allowed_address_pairs: + description: Additional MAC/IP address pairs allowed to pass through the port + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.AddressPair + required: false + binding:vnic_type: + description: The vnic type to be bound on the neutron port + type: string + status: SUPPORTED + required: false + constraints: + - valid_values: + - macvtap + - direct + - normal + value_specs: + description: Extra parameters to include in the request + type: map + status: SUPPORTED + entry_schema: + type: string + default: {} + required: false + + org.openecomp.datatypes.heat.contrailV2.network.rule.SrcPortPairs: + derived_from: tosca.datatypes.Root + description: source port pairs + properties: + network_policy_entries_policy_rule_src_ports_start_port: + description: Start port + type: string + status: SUPPORTED + required: false + network_policy_entries_policy_rule_src_ports_end_port: + description: End port + type: string + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPair: + derived_from: tosca.datatypes.Root + description: Virtual Machine Sub Interface Address Pair. + properties: + address_mode: + description: Address Mode. + type: string + status: SUPPORTED + required: false + ip: + description: IP. + type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPairIp + status: SUPPORTED + required: false + mac: + description: Mac. + type: string + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.contrailV2.network.rule.DstVirtualNetwork: + derived_from: tosca.datatypes.Root + description: destination addresses + properties: + network_policy_entries_policy_rule_dst_addresses_virtual_network: + description: Destination addresses Virtual network + type: string + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.contrailV2.network.rule.Rule: + derived_from: tosca.datatypes.Root + description: policy rule + properties: + network_policy_entries_policy_rule_dst_addresses: + description: Destination addresses + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrailV2.network.rule.DstVirtualNetwork + required: false + network_policy_entries_policy_rule_dst_ports: + description: Destination ports + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrailV2.network.rule.DstPortPairs + required: false + network_policy_entries_policy_rule_protocol: + description: Protocol + type: string + status: SUPPORTED + required: false + network_policy_entries_policy_rule_src_addresses: + description: Source addresses + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrailV2.network.rule.SrcVirtualNetwork + required: false + network_policy_entries_policy_rule_direction: + description: Direction + type: string + status: SUPPORTED + required: false + network_policy_entries_policy_rule_src_ports: + description: Source ports + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrailV2.network.rule.SrcPortPairs + required: false + network_policy_entries_policy_rule_action_list: + description: Action list + type: org.openecomp.datatypes.heat.contrailV2.network.rule.ActionList + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.network.neutron.SecurityRules.Rule: + derived_from: tosca.datatypes.Root + description: Rules Pairs + properties: + remote_group_id: + description: The remote group ID to be associated with this security group rule + type: string + status: SUPPORTED + required: false + protocol: + description: The protocol that is matched by the security group rule + type: string + status: SUPPORTED + required: false + constraints: + - valid_values: + - tcp + - udp + - icmp + ethertype: + description: Ethertype of the traffic + type: string + status: SUPPORTED + default: IPv4 + required: false + constraints: + - valid_values: + - IPv4 + - IPv6 + port_range_max: + description: 'The maximum port number in the range that is matched by the + security group rule. ' + type: integer + status: SUPPORTED + required: false + constraints: + - in_range: + - 0 + - 65535 + remote_ip_prefix: + description: The remote IP prefix (CIDR) to be associated with this security group rule + type: string + status: SUPPORTED + required: false + remote_mode: + description: Whether to specify a remote group or a remote IP prefix + type: string + status: SUPPORTED + default: remote_ip_prefix + required: false + constraints: + - valid_values: + - remote_ip_prefix + - remote_group_id + direction: + description: The direction in which the security group rule is applied + type: string + status: SUPPORTED + default: ingress + required: false + constraints: + - valid_values: + - egress + - ingress + port_range_min: + description: The minimum port number in the range that is matched by the security group rule. + type: integer + status: SUPPORTED + required: false + constraints: + - in_range: + - 0 + - 65535 + + org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.ref.data.IpamSubnet: + derived_from: tosca.datatypes.Root + description: Network Ipam Ref Data Subnet + properties: + network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len: + description: Network ipam refs data ipam subnets ip prefix len + type: string + status: SUPPORTED + required: false + network_ipam_refs_data_ipam_subnets_subnet_ip_prefix: + description: Network ipam refs data ipam subnets ip prefix + type: string + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.Properties: + derived_from: tosca.datatypes.Root + description: Virtual Machine Sub Interface VLAN Properties. + properties: + sub_interface_vlan_tag: + description: Sub Interface VLAN Tag. + type: string + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPairIp: + derived_from: tosca.datatypes.Root + description: Virtual Machine Sub Interface Address Pair IP. + properties: + ip_prefix: + description: IP Prefix. + type: string + status: SUPPORTED + required: false + ip_prefix_len: + description: IP Prefix Len. + type: integer + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.contrailV2.network.rule.SrcVirtualNetwork: + derived_from: tosca.datatypes.Root + description: source addresses + properties: + network_policy_entries_policy_rule_src_addresses_virtual_network: + description: Source addresses Virtual network + type: string + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.contrailV2.network.rule.ActionList: + derived_from: tosca.datatypes.Root + description: Action List + properties: + network_policy_entries_policy_rule_action_list_simple_action: + description: Simple Action + type: string + status: SUPPORTED + required: false + network_policy_entries_policy_rule_action_list_apply_service: + description: Apply Service + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + + org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.IpamRefData: + derived_from: tosca.datatypes.Root + description: Network Ipam Ref Data + properties: + network_ipam_refs_data_ipam_subnets: + description: Network ipam refs data ipam subnets + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.ref.data.IpamSubnetList + required: false + + org.openecomp.datatypes.heat.FileInfo: + derived_from: tosca.datatypes.Root + description: Heat File Info + properties: + file: + description: The required URI string (relative or absolute) which can be used to locate the file + type: string + status: SUPPORTED + required: true + file_type: + description: The type of the file + type: string + status: SUPPORTED + required: true + constraints: + - valid_values: + - base + - env + - volume + - network + + org.openecomp.datatypes.heat.network.contrail.InterfaceData: + derived_from: tosca.datatypes.Root + description: Interface Data + properties: + static_routes: + description: An ordered list of static routes to be added to this interface + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.contrail.port.StaticRoute + required: false + virtual_network: + description: Virtual Network for this interface + type: string + status: SUPPORTED + required: true + allowed_address_pairs: + description: List of allowed address pair for this interface + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.contrail.AddressPair + required: false + ip_address: + description: IP for this interface + type: string + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.RefData: + derived_from: tosca.datatypes.Root + description: network policy refs data + properties: + network_policy_refs_data_sequence: + description: Network Policy ref data sequence + type: org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.RefDataSequence + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.contrailV2.network.rule.DstPortPairs: + derived_from: tosca.datatypes.Root + description: destination port pairs + properties: + network_policy_entries_policy_rule_dst_ports_start_port: + description: Start port + type: string + status: SUPPORTED + required: false + network_policy_entries_policy_rule_dst_ports_end_port: + description: End port + type: string + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.network.AllocationPool: + derived_from: tosca.datatypes.Root + description: The start and end addresses for the allocation pool + properties: + start: + description: Start address for the allocation pool + type: string + status: SUPPORTED + required: false + end: + description: End address for the allocation pool + type: string + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.contrail.network.rule.PortPairs: + derived_from: tosca.datatypes.Root + description: source and destination port pairs + properties: + start_port: + description: Start port + type: string + status: SUPPORTED + required: false + end_port: + description: End port + type: string + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.contrail.network.rule.VirtualNetwork: + derived_from: tosca.datatypes.Root + description: source and destination addresses + properties: + virtual_network: + description: Virtual network + type: string + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.contrail.network.rule.RuleList: + derived_from: tosca.datatypes.Root + description: list of policy rules + properties: + policy_rule: + description: Contrail network rule + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrail.network.rule.Rule + required: false + + org.openecomp.datatypes.heat.network.contrail.AddressPair: + derived_from: tosca.datatypes.Root + description: Address Pair + properties: + address_mode: + description: Address mode active-active or active-standy + type: string + status: SUPPORTED + required: false + constraints: + - valid_values: + - active-active + - active-standby + prefix: + description: IP address prefix + type: string + status: SUPPORTED + required: false + mac_address: + description: Mac address + type: string + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.MacAddress: + derived_from: tosca.datatypes.Root + description: Virtual Machine Sub Interface Mac Address. + properties: + mac_address: + description: Mac Addresses List. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + + org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.ref.data.IpamSubnetList: + derived_from: tosca.datatypes.Root + description: Network Ipam Ref Data Subnet List + properties: + network_ipam_refs_data_ipam_subnets_subnet: + description: Network ipam refs data ipam subnets + type: org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.ref.data.IpamSubnet + status: SUPPORTED + required: false + network_ipam_refs_data_ipam_subnets_addr_from_start: + description: Network ipam refs data ipam subnets addr from start + type: string + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.contrailV2.network.rule.RuleList: + derived_from: tosca.datatypes.Root + description: list of policy rules + properties: + network_policy_entries_policy_rule: + description: Contrail network rule + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrailV2.network.rule.Rule + required: false + + org.openecomp.datatypes.heat.novaServer.network.AddressInfo: + derived_from: tosca.datatypes.network.NetworkInfo + description: Network addresses with corresponding port id + properties: + port_id: + description: Port id + type: string + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPairs: + derived_from: tosca.datatypes.Root + description: Virtual Machine Sub Interface Address Pairs. + properties: + allowed_address_pair: + description: Addresses pair List. + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPair + required: false + + org.openecomp.datatypes.heat.neutron.port.FixedIps: + derived_from: tosca.datatypes.Root + description: subnet/ip_address + properties: + subnet: + description: Subnet in which to allocate the IP address for this port + type: string + status: SUPPORTED + required: false + ip_address: + description: IP address desired in the subnet for this port + type: string + status: SUPPORTED + required: false + subnet_id: + type: string + description: Subnet in which to allocate the IP address for this port + required: false + status: SUPPORTED + + + org.openecomp.datatypes.heat.contrailV2.virtual.machine.interface.Properties: + derived_from: tosca.datatypes.Root + description: Virtual Machine Interface Properties. + properties: + service_interface_type: + description: Service Interface Type. + type: string + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.network.subnet.HostRoute: + derived_from: tosca.datatypes.Root + description: Host route info for the subnet + properties: + destination: + description: The destination for static route + type: string + status: SUPPORTED + required: false + nexthop: + description: The next hop for the destination + type: string + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.network.contrail.port.StaticRoute: + derived_from: tosca.datatypes.Root + description: static route + properties: + prefix: + description: Route prefix + type: string + status: SUPPORTED + required: false + next_hop: + description: Next hop + type: string + status: SUPPORTED + required: false + next_hop_type: + description: Next hop type + type: string + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.substitution.SubstitutionFiltering: + derived_from: tosca.datatypes.Root + description: Substitution Filter + properties: + substitute_service_template: + description: Substitute Service Template + type: string + status: SUPPORTED + required: true + index_value: + description: Index value of the substitution service template runtime instance + type: integer + status: SUPPORTED + default: 0 + required: false + constraints: + - greater_or_equal: 0 + count: + description: Count + type: integer + status: SUPPORTED + default: 1 + required: false + scaling_enabled: + description: Indicates whether service scaling is enabled + type: boolean + status: SUPPORTED + default: true + required: false + mandatory: + description: Mandatory + type: boolean + status: SUPPORTED + default: true + required: false + + org.openecomp.datatypes.heat.network.neutron.Subnet: + derived_from: tosca.datatypes.Root + description: A subnet represents an IP address block that can be used for assigning IP addresses to virtual instances + properties: + tenant_id: + description: The ID of the tenant who owns the network + type: string + status: SUPPORTED + required: false + enable_dhcp: + description: Set to true if DHCP is enabled and false if DHCP is disabled + type: boolean + status: SUPPORTED + default: true + required: false + ipv6_address_mode: + description: IPv6 address mode + type: string + status: SUPPORTED + required: false + constraints: + - valid_values: + - dhcpv6-stateful + - dhcpv6-stateless + - slaac + ipv6_ra_mode: + description: IPv6 RA (Router Advertisement) mode + type: string + status: SUPPORTED + required: false + constraints: + - valid_values: + - dhcpv6-stateful + - dhcpv6-stateless + - slaac + value_specs: + description: Extra parameters to include in the request + type: map + status: SUPPORTED + entry_schema: + type: string + default: {} + required: false + allocation_pools: + description: The start and end addresses for the allocation pools + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.AllocationPool + required: false + subnetpool: + description: The name or ID of the subnet pool + type: string + status: SUPPORTED + required: false + dns_nameservers: + description: A specified set of DNS name servers to be used + type: list + status: SUPPORTED + entry_schema: + type: string + default: [] + required: false + host_routes: + description: The gateway IP address + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.subnet.HostRoute + required: false + ip_version: + description: The gateway IP address + type: integer + status: SUPPORTED + default: 4 + required: false + constraints: + - valid_values: + - 4 + - 6 + name: + description: The name of the subnet + type: string + status: SUPPORTED + required: false + prefixlen: + description: Prefix length for subnet allocation from subnet pool + type: integer + status: SUPPORTED + required: false + constraints: + - greater_or_equal: 0 + cidr: + description: The CIDR + type: string + status: SUPPORTED + required: false + gateway_ip: + description: The gateway IP address + type: string + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.contrail.network.rule.Rule: + derived_from: tosca.datatypes.Root + description: policy rule + properties: + src_ports: + description: Source ports + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrail.network.rule.PortPairs + required: false + protocol: + description: Protocol + type: string + status: SUPPORTED + required: false + dst_addresses: + description: Destination addresses + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrail.network.rule.VirtualNetwork + required: false + apply_service: + description: Service to apply + type: string + status: SUPPORTED + required: false + dst_ports: + description: Destination ports + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrail.network.rule.PortPairs + required: false + src_addresses: + description: Source addresses + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrail.network.rule.VirtualNetwork + required: false + direction: + description: Direction + type: string + status: SUPPORTED + required: false + + org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.RefDataSequence: + derived_from: tosca.datatypes.Root + description: network policy refs data sequence + properties: + network_policy_refs_data_sequence_major: + description: Network Policy ref data sequence Major + type: integer + status: SUPPORTED + required: false + network_policy_refs_data_sequence_minor: + description: Network Policy ref data sequence Minor + type: integer + status: SUPPORTED + required: false diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/groups.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/groups.yml new file mode 100644 index 0000000000..ded2373e50 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/groups.yml @@ -0,0 +1,40 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: openecomp-heat/groups.yml + version: '1.0' + +imports: +- heat_index: + file: _index.yml + +group_types: + + org.openecomp.groups.heat.HeatStack: + derived_from: org.openecomp.groups.VfModule + description: Grouped all heat resources which are in the same heat stack + properties: + heat_file: + description: Heat file which associate to this group/heat stack + type: string + status: SUPPORTED + required: true + description: + description: group description + type: string + status: SUPPORTED + required: true diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/nodes.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/nodes.yml new file mode 100644 index 0000000000..9abb964661 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/nodes.yml @@ -0,0 +1,1292 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: openecomp-heat/nodes.yml + version: '1.0' + +imports: +- heat_index: + file: _index.yml + +node_types: + + org.openecomp.resource.abstract.nodes.contrail.AbstractSubstitute: + derived_from: org.openecomp.resource.abstract.nodes.AbstractSubstitute + properties: + availability_zone: + description: Availability zone to create servers in + type: string + status: SUPPORTED + required: false + static_routes_list: + description: Static routes enabled + type: list + status: SUPPORTED + entry_schema: + type: boolean + required: false + availability_zone_enable: + description: Indicates availability zone is enabled + type: boolean + status: SUPPORTED + default: false + required: false + service_template_name: + description: Service template name + type: string + status: SUPPORTED + required: false + ordered_interfaces: + description: Indicates if service interface are ordered + type: boolean + status: SUPPORTED + default: false + required: false + flavor: + description: flavor + type: string + status: SUPPORTED + required: false + image_name: + description: Image name + type: string + status: SUPPORTED + required: true + service_type: + description: Service type + type: string + status: SUPPORTED + required: true + constraints: + - valid_values: + - firewall + - analyzer + - source-nat + - loadbalancer + service_interface_type_list: + description: List of interface types + type: list + status: SUPPORTED + entry_schema: + type: string + constraints: + - valid_values: + - management + - left + - right + - other + required: true + service_instance_name: + description: Service instance name + type: string + status: SUPPORTED + required: true + interface_list: + description: List of interfaces + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.contrail.InterfaceData + required: false + service_mode: + description: Service mode + type: string + status: SUPPORTED + required: true + constraints: + - valid_values: + - transparent + - in-network + - in-network-nat + shared_ip_list: + description: Shared ips enabled + type: list + status: SUPPORTED + entry_schema: + type: boolean + required: false + attributes: + tenant_id: + description: Tenant id of the Service Instance + type: string + status: SUPPORTED + fq_name: + description: The FQ name of the service instance + type: string + status: SUPPORTED + service_template_name: + description: Service Template of the Service Instance + type: string + status: SUPPORTED + show: + description: All attributes + type: string + status: SUPPORTED + active_vms: + description: Number of service VMs active for this Service Instance + type: string + status: SUPPORTED + service_instance_name: + description: The name of the service instance + type: string + status: SUPPORTED + virtual_machines: + description: Service VMs for the Service Instance + type: string + status: SUPPORTED + status: + description: Status of the service instance + type: string + status: SUPPORTED + + + org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface: + derived_from: org.openecomp.resource.cp.nodes.network.Port + properties: + name: + description: Virtual Machine Interface name + type: string + status: SUPPORTED + required: false + security_group_refs: + description: List of security groups. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + virtual_network_refs: + description: List of virtual networks. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + virtual_machine_interface_properties: + description: virtual machine interface properties. + type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.interface.Properties + status: SUPPORTED + required: false + port_tuple_refs: + description: List of port tuples. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + virtual_machine_interface_mac_addresses: + description: List of mac addresses. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + virtual_machine_interface_allowed_address_pairs: + description: Virtual Machine Interface allowed address pairs. + type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPairs + status: SUPPORTED + required: false + + attributes: + fq_name: + description: The FQ name of the Virtual Network. + type: string + status: SUPPORTED + show: + description: All attributes. + type: string + status: SUPPORTED + capabilities: + binding: + type: tosca.capabilities.network.Bindable + occurrences: + - 0 + - UNBOUNDED + valid_source_types: + - org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface + - org.openecomp.resource.cp.nodes.heat.network.v2.contrailV2.VLANSubInterface + + + org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules: + derived_from: tosca.nodes.Root + properties: + entries: + description: A symbolic name for this contrail network rule + type: org.openecomp.datatypes.heat.contrail.network.rule.RuleList + status: SUPPORTED + required: false + name: + description: A symbolic name for this contrail network rule + type: string + status: SUPPORTED + required: false + attributes: + tenant_id: + description: tenant_id + type: string + status: SUPPORTED + fq_name: + description: fq_name + type: string + status: SUPPORTED + show: + description: All attributes. + type: string + status: SUPPORTED + rules: + description: List of rules + type: list + status: SUPPORTED + entry_schema: + type: string + requirements: + - network: + capability: tosca.capabilities.Attachment + node: tosca.nodes.network.Network + relationship: org.openecomp.relationships.AttachesTo + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules: + derived_from: tosca.nodes.Root + properties: + description: + description: Description of the security group + type: string + status: SUPPORTED + required: false + name: + description: A symbolic name for this security group, which is not required to be unique. + type: string + status: SUPPORTED + required: false + rules: + description: List of security group rules + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.neutron.SecurityRules.Rule + required: false + attributes: + show: + description: Detailed information about resource + type: string + status: SUPPORTED + requirements: + - port: + capability: tosca.capabilities.Attachment + node: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + relationship: org.openecomp.relationships.AttachesTo + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork: + derived_from: org.openecomp.resource.vl.nodes.network.Network + properties: + shared: + description: Is virtual network shared + type: string + status: SUPPORTED + required: false + forwarding_mode: + description: forwarding mode of the virtual network + type: string + status: SUPPORTED + required: false + external: + description: Is virtual network external + type: string + status: SUPPORTED + required: false + allow_transit: + description: Whether this network should be transitive. + type: string + status: SUPPORTED + required: false + flood_unknown_unicast: + description: flood L2 packets on network + type: string + status: SUPPORTED + required: false + route_targets: + description: route targets associated with the virtual network + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + subnets: + description: Network related subnets + type: map + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.neutron.Subnet + required: false + attributes: + fq_name: + description: fq_name + type: string + status: SUPPORTED + show: + description: All attributes. + type: string + status: SUPPORTED + subnets_name: + description: Subnets name of this network + type: list + status: SUPPORTED + entry_schema: + type: string + subnets_show: + description: Detailed information about each subnet + type: map + status: SUPPORTED + entry_schema: + type: string + subnets: + description: Network related subnets + type: map + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.neutron.Subnet + capabilities: + attachment: + type: tosca.capabilities.Attachment + occurrences: + - 1 + - UNBOUNDED + + org.openecomp.resource.vfc.nodes.heat.nova.Server: + derived_from: org.openecomp.resource.vfc.nodes.Compute + properties: + admin_pass: + description: The administrator password for the server + type: string + status: SUPPORTED + required: false + availability_zone: + description: Availability zone to create servers in + type: string + status: SUPPORTED + required: false + image: + description: The ID or name of the image to boot with + type: string + status: SUPPORTED + required: false + image_update_policy: + description: Policy on how to apply an image-id update + type: string + status: SUPPORTED + default: REBUILD + required: false + constraints: + - valid_values: + - REBUILD_PRESERVE_EPHEMERAL + - REPLACE + - REBUILD + metadata: + description: Arbitrary JSON metadata to store for this server + type: json + status: SUPPORTED + required: false + contrail_service_instance_ind: + description: Nova server related to service instance indicator + type: boolean + status: SUPPORTED + default: false + required: false + user_data_update_policy: + description: Policy on how to apply a user_data update + type: string + status: SUPPORTED + default: REPLACE + required: false + constraints: + - valid_values: + - REPLACE + - IGNORE + flavor_update_policy: + description: Policy on how to apply a flavor update + type: string + status: SUPPORTED + default: RESIZE + required: false + constraints: + - valid_values: + - RESIZE + - REPLACE + user_data: + description: User data script to be executed by cloud-init + type: string + status: SUPPORTED + default: '' + required: false + flavor: + description: The ID or name of the flavor to boot onto + type: string + status: SUPPORTED + required: true + key_name: + description: Name of keypair to inject into the server + type: string + status: SUPPORTED + required: false + reservation_id: + description: A UUID for the set of servers being requested + type: string + status: SUPPORTED + required: false + security_groups: + description: List of security group names or IDs + type: list + status: SUPPORTED + entry_schema: + type: string + default: [] + required: false + config_drive: + description: enable config drive on the server + type: boolean + status: SUPPORTED + required: false + personality: + description: A map of files to create/overwrite on the server upon boot + type: map + status: SUPPORTED + entry_schema: + type: string + default: {} + required: false + software_config_transport: + description: How the server should receive the metadata required for software configuration + type: string + status: SUPPORTED + default: POLL_SERVER_CFN + required: false + constraints: + - valid_values: + - POLL_SERVER_CFN + - POLL_SERVER_HEAT + - POLL_TEMP_URL + - ZAQAR_MESSAGE + user_data_format: + description: How the user_data should be formatted for the server + type: string + status: SUPPORTED + default: HEAT_CFNTOOLS + required: false + constraints: + - valid_values: + - SOFTWARE_CONFIG + - RAW + - HEAT_CFNTOOLS + diskConfig: + description: Control how the disk is partitioned when the server is created + type: string + status: SUPPORTED + required: false + constraints: + - valid_values: + - AUTO + - MANUAL + name: + description: Server name + type: string + status: SUPPORTED + required: false + scheduler_hints: + description: Arbitrary key-value pairs specified by the client to help boot a server + type: map + status: SUPPORTED + entry_schema: + type: string + required: false + attributes: + accessIPv4: + description: The manually assigned alternative public IPv4 address of the server + type: string + status: SUPPORTED + addresses: + description: A dict of all network addresses with corresponding port_id + type: map + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.novaServer.network.AddressInfo + accessIPv6: + description: The manually assigned alternative public IPv6 address of the server + type: string + status: SUPPORTED + instance_name: + description: AWS compatible instance name + type: string + status: SUPPORTED + name: + description: Name of the server + type: string + status: SUPPORTED + show: + description: Detailed information about resource + type: string + status: SUPPORTED + console_urls: + description: URLs of servers consoles + type: string + status: SUPPORTED + + org.openecomp.resource.vfc.rules.nodes.heat.network.contrailV2.NetworkRules: + derived_from: tosca.nodes.Root + properties: + name: + description: A symbolic name for this contrail v2 network rule + type: string + status: SUPPORTED + required: false + network_policy_entries: + description: A symbolic name for this contrail v2 network rule + type: org.openecomp.datatypes.heat.contrailV2.network.rule.RuleList + status: SUPPORTED + required: false + attributes: + fq_name: + description: fq_name + type: string + status: SUPPORTED + requirements: + - network: + capability: tosca.capabilities.Attachment + node: tosca.nodes.network.Network + relationship: org.openecomp.relationships.AttachesTo + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.resource.cp.nodes.heat.network.neutron.Port: + derived_from: org.openecomp.resource.cp.nodes.network.Port + properties: + port_security_enabled: + description: Flag to enable/disable port security on the network + type: boolean + status: SUPPORTED + required: false + device_id: + description: Device ID of this port + type: string + status: SUPPORTED + required: false + qos_policy: + description: The name or ID of QoS policy to attach to this network + type: string + status: SUPPORTED + required: false + allowed_address_pairs: + description: Additional MAC/IP address pairs allowed to pass through the port + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.AddressPair + required: false + binding:vnic_type: + description: The vnic type to be bound on the neutron port + type: string + status: SUPPORTED + required: false + constraints: + - valid_values: + - macvtap + - direct + - normal + value_specs: + description: Extra parameters to include in the request + type: map + status: SUPPORTED + entry_schema: + type: string + default: {} + required: false + device_owner: + description: Name of the network owning the port + type: string + status: SUPPORTED + required: false + network: + description: Network this port belongs to + type: string + status: SUPPORTED + required: false + replacement_policy: + description: Policy on how to respond to a stack-update for this resource + type: string + status: SUPPORTED + default: AUTO + required: false + constraints: + - valid_values: + - REPLACE_ALWAYS + - AUTO + security_groups: + description: List of security group names or IDs + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + fixed_ips: + description: Desired IPs for this port + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.neutron.port.FixedIps + required: false + mac_address: + description: MAC address to give to this port + type: string + status: SUPPORTED + required: false + admin_state_up: + description: A boolean value specifying the administrative status of the network + type: boolean + status: SUPPORTED + default: true + required: false + name: + description: A symbolic name for this port + type: string + status: SUPPORTED + required: false + attributes: + tenant_id: + description: Tenant owning the port + type: string + status: SUPPORTED + network_id: + description: Unique identifier for the network owning the port + type: string + status: SUPPORTED + qos_policy_id: + description: The QoS policy ID attached to this network + type: string + status: SUPPORTED + show: + description: Detailed information about resource + type: string + status: SUPPORTED + subnets: + description: Subnets of this network + type: list + status: SUPPORTED + entry_schema: + type: string + status: + description: The status of the network + type: string + status: SUPPORTED + capabilities: + attachment: + type: tosca.capabilities.Attachment + occurrences: + - 1 + - UNBOUNDED + binding: + type: tosca.capabilities.network.Bindable + occurrences: + - 0 + - UNBOUNDED + valid_source_types: + - org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface + - org.openecomp.resource.cp.nodes.heat.network.v2.contrailV2.VLANSubInterface + + org.openecomp.resource.vl.nodes.heat.network.neutron.Net: + derived_from: org.openecomp.resource.vl.nodes.network.Network + properties: + dhcp_agent_ids: + description: The IDs of the DHCP agent to schedule the network + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + tenant_id: + description: The ID of the tenant which will own the network + type: string + status: SUPPORTED + required: false + port_security_enabled: + description: Flag to enable/disable port security on the network + type: boolean + status: SUPPORTED + required: false + shared: + description: Whether this network should be shared across all tenants + type: boolean + status: SUPPORTED + default: false + required: false + admin_state_up: + description: A boolean value specifying the administrative status of the network + type: boolean + status: SUPPORTED + default: true + required: false + qos_policy: + description: The name or ID of QoS policy to attach to this network + type: string + status: SUPPORTED + required: false + subnets: + description: Network related subnets + type: map + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.neutron.Subnet + required: false + value_specs: + description: Extra parameters to include in the request + type: map + status: SUPPORTED + entry_schema: + type: string + default: {} + required: false + attributes: + qos_policy_id: + description: The QoS policy ID attached to this network + type: string + status: SUPPORTED + show: + description: Detailed information about resource + type: string + status: SUPPORTED + subnets_name: + description: Subnets name of this network + type: list + status: SUPPORTED + entry_schema: + type: string + subnets: + description: Network related subnets + type: map + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.neutron.Subnet + mtu: + description: The maximum transmission unit size(in bytes) for the network + type: scalar-unit.size + status: SUPPORTED + status: + description: The status of the network + type: string + status: SUPPORTED + capabilities: + attachment: + type: tosca.capabilities.Attachment + occurrences: + - 1 + - UNBOUNDED + + org.openecomp.resource.cp.nodes.heat.network.contrail.Port: + derived_from: org.openecomp.resource.cp.nodes.network.Port + properties: + static_routes: + description: An ordered list of static routes to be added to this interface + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.contrail.port.StaticRoute + required: false + virtual_network: + description: Virtual Network for this interface + type: string + status: SUPPORTED + required: true + static_route: + description: Static route enabled + type: boolean + status: SUPPORTED + default: false + required: false + allowed_address_pairs: + description: List of allowed address pair for this interface + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.contrail.AddressPair + required: false + shared_ip: + description: Shared ip enabled + type: boolean + status: SUPPORTED + default: false + required: false + ip_address: + description: IP for this interface + type: string + status: SUPPORTED + required: false + interface_type: + description: Interface type + type: string + status: SUPPORTED + required: true + constraints: + - valid_values: + - management + - left + - right + - other + attributes: + fq_name: + description: fq_name + type: string + status: SUPPORTED + + org.openecomp.resource.vfc.nodes.heat.contrail.Compute: + derived_from: org.openecomp.resource.vfc.nodes.Compute + properties: + flavor: + description: flavor + type: string + status: SUPPORTED + required: false + image_name: + description: Image name + type: string + status: SUPPORTED + required: true + availability_zone: + description: Availability zone to create servers in + type: string + status: SUPPORTED + required: false + service_type: + description: Service type + type: string + status: SUPPORTED + required: true + constraints: + - valid_values: + - firewall + - analyzer + - source-nat + - loadbalancer + availability_zone_enable: + description: Indicates availability zone is enabled + type: boolean + status: SUPPORTED + default: false + required: false + service_template_name: + description: Service template name + type: string + status: SUPPORTED + required: false + service_instance_name: + description: Service instance name + type: string + status: SUPPORTED + required: true + service_mode: + description: Service mode + type: string + status: SUPPORTED + required: true + constraints: + - valid_values: + - transparent + - in-network + - in-network-nat + attributes: + tenant_id: + description: Tenant id of the VM + type: string + status: SUPPORTED + fq_name: + description: fq_name + type: string + status: SUPPORTED + show: + description: All attributes + type: string + status: SUPPORTED + active_vms: + description: Number of active VMs + type: string + status: SUPPORTED + virtual_machines: + description: VMs of this compute + type: string + status: SUPPORTED + status: + description: status of the compute + type: string + status: SUPPORTED + + org.openecomp.resource.cp.nodes.heat.network.v2.contrailV2.VLANSubInterface: + derived_from: org.openecomp.resource.cp.nodes.network.v2.SubInterface + properties: + virtual_machine_interface_refs: + description: List of virtual machine interface. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + name: + description: Virtual Machine Sub Interface VLAN name + type: string + status: SUPPORTED + required: false + virtual_network_refs: + description: List of virtual networks. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + virtual_machine_interface_properties: + description: virtual machine interface properties. + type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.Properties + status: SUPPORTED + required: false + virtual_machine_interface_allowed_address_pairs: + description: Virtual Machine Sub Interface allowed address pairs. + type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPairs + status: SUPPORTED + required: false + virtual_machine_interface_mac_addresses: + description: List of mac addresses. + type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.MacAddress + status: SUPPORTED + required: false + security_group_refs: + description: List of security groups. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + port_tuple_refs: + description: List of port tuples. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + attributes: + fq_name: + description: The FQ name of the Virtual Network. + type: string + status: SUPPORTED + show: + description: All attributes. + type: string + status: SUPPORTED + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: org.openecomp.resource.cp.nodes.network.Port + relationship: tosca.relationships.network.BindsTo + occurrences: + - 1 + - 1 + + org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface: + derived_from: org.openecomp.resource.cp.nodes.network.SubInterface + properties: + virtual_machine_interface_refs: + description: List of virtual machine interface. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + name: + description: Virtual Machine Sub Interface VLAN name + type: string + status: SUPPORTED + required: false + virtual_network_refs: + description: List of virtual networks. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + virtual_machine_interface_properties: + description: virtual machine interface properties. + type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.Properties + status: SUPPORTED + required: false + virtual_machine_interface_allowed_address_pairs: + description: Virtual Machine Sub Interface allowed address pairs. + type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPairs + status: SUPPORTED + required: false + virtual_machine_interface_mac_addresses: + description: List of mac addresses. + type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.MacAddress + status: SUPPORTED + required: false + security_group_refs: + description: List of security groups. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + port_tuple_refs: + description: List of port tuples. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + attributes: + fq_name: + description: The FQ name of the Virtual Network. + type: string + status: SUPPORTED + show: + description: All attributes. + type: string + status: SUPPORTED + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: org.openecomp.resource.cp.nodes.network.Port + relationship: tosca.relationships.network.BindsTo + occurrences: + - 1 + - 1 + + org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork: + derived_from: org.openecomp.resource.vl.nodes.network.Network + properties: + network_ipam_refs_data: + description: IPAM references Data + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.IpamRefData + required: false + network_policy_refs_data: + description: Policy references data + type: list + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.RefData + required: false + network_ipam_refs: + description: IPAM references + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + network_policy_refs: + description: Policy references + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + subnets: + description: Network related subnets + type: map + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.neutron.Subnet + required: false + attributes: + fq_name: + description: fq_name + type: string + status: SUPPORTED + subnets_name: + description: Subnets name of this network + type: list + status: SUPPORTED + entry_schema: + type: string + subnets_show: + description: Detailed information about each subnet + type: map + status: SUPPORTED + entry_schema: + type: string + subnets: + description: Network related subnets + type: map + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.neutron.Subnet + capabilities: + attachment: + type: tosca.capabilities.Attachment + occurrences: + - 1 + - UNBOUNDED + + org.openecomp.resource.vfc.nodes.heat.cinder.Volume: + derived_from: org.openecomp.resource.vfc.nodes.volume + properties: + availability_zone: + description: The availability zone in which the volume will be created + type: string + status: SUPPORTED + required: false + image: + description: If specified, the name or ID of the image to create the volume from + type: string + status: SUPPORTED + required: false + metadata: + description: Key/value pairs to associate with the volume + type: map + status: SUPPORTED + entry_schema: + type: string + required: false + volume_type: + description: If specified, the type of volume to use, mapping to a specific backend + type: string + status: SUPPORTED + required: false + description: + description: A description of the volume + type: string + status: SUPPORTED + required: false + device_type: + description: Device type + type: string + status: SUPPORTED + required: false + constraints: + - valid_values: + - cdrom + - disk + disk_bus: + description: 'Bus of the device: hypervisor driver chooses a suitable default + if omitted' + type: string + status: SUPPORTED + required: false + constraints: + - valid_values: + - ide + - lame_bus + - scsi + - usb + - virtio + backup_id: + description: If specified, the backup to create the volume from + type: string + status: SUPPORTED + required: false + source_volid: + description: If specified, the volume to use as source + type: string + status: SUPPORTED + required: false + boot_index: + description: Integer used for ordering the boot disks + type: integer + status: SUPPORTED + required: false + size: + description: The requested storage size (default unit is MB) + type: scalar-unit.size + status: SUPPORTED + required: false + constraints: + - greater_or_equal: 1 GB + read_only: + description: Enables or disables read-only access mode of volume + type: boolean + status: SUPPORTED + required: false + name: + description: A name used to distinguish the volume + type: string + status: SUPPORTED + required: false + scheduler_hints: + description: Arbitrary key-value pairs specified by the client to help the Cinder scheduler creating a volume + type: map + status: SUPPORTED + entry_schema: + type: string + required: false + swap_size: + description: The size of the swap, in MB + type: scalar-unit.size + status: SUPPORTED + required: false + delete_on_termination: + description: Indicate whether the volume should be deleted when the server is terminated + type: boolean + status: SUPPORTED + required: false + multiattach: + description: Whether allow the volume to be attached more than once + type: boolean + status: SUPPORTED + required: false + attributes: + display_description: + description: Description of the volume + type: string + status: SUPPORTED + attachments: + description: The list of attachments of the volume + type: string + status: SUPPORTED + entry_schema: + type: string + encrypted: + description: Boolean indicating if the volume is encrypted or not + type: boolean + status: SUPPORTED + show: + description: Detailed information about resource + type: string + status: SUPPORTED + created_at: + description: The timestamp indicating volume creation + type: timestamp + status: SUPPORTED + display_name: + description: Name of the volume + type: string + status: SUPPORTED + metadata_values: + description: Key/value pairs associated with the volume in raw dict form + type: map + status: SUPPORTED + entry_schema: + type: string + bootable: + description: Boolean indicating if the volume can be booted or not + type: boolean + status: SUPPORTED + status: + description: The current status of the volume + type: string + status: SUPPORTED diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/_index.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/_index.yml new file mode 100644 index 0000000000..244a048653 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/_index.yml @@ -0,0 +1,31 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: openecomp-inventory/_index.yml + version: '1.0' + +imports: +- openecomp_index: + file: ../openecomp/_index.yml +- nodes: + file: nodes.yml +- capabilities: + file: capabilities.yml +- data: + file: data.yml +- relationships: + file: relationships.yml \ No newline at end of file diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/capabilities.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/capabilities.yml new file mode 100644 index 0000000000..823e131761 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/capabilities.yml @@ -0,0 +1,85 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: openecomp-inventory/capabilities.yml + version: '1.0' + +imports: +- inventory_index: + file: _index.yml + +capability_types: + + org.openecomp.capabilities.inventory.Multiuse: + derived_from: tosca.capabilities.Node + description: Auto-generated from OXM. + + org.openecomp.capabilities.inventory.Bindable: + derived_from: tosca.capabilities.Node + description: Auto-generated from OXM. + + org.openecomp.capabilities.inventory.Composite: + derived_from: tosca.capabilities.Node + description: Auto-generated from OXM. + + org.openecomp.capabilities.inventory.Belonging: + derived_from: tosca.capabilities.Node + description: Auto-generated from OXM. + + org.openecomp.capabilities.inventory.Attachment: + derived_from: tosca.capabilities.Node + description: Auto-generated from OXM. + + org.openecomp.capabilities.inventory.Applicable: + derived_from: tosca.capabilities.Node + description: Auto-generated from OXM. + + org.openecomp.capabilities.inventory.Existable: + derived_from: tosca.capabilities.Node + description: Auto-generated from OXM. + + org.openecomp.capabilities.inventory.Locates: + derived_from: tosca.capabilities.Node + description: Auto-generated from OXM. + + org.openecomp.capabilities.inventory.Linkable: + derived_from: tosca.capabilities.Node + description: Auto-generated from OXM. + + org.openecomp.capabilities.inventory.Node: + derived_from: tosca.capabilities.Node + description: Auto-generated from OXM. + + org.openecomp.capabilities.inventory.Container: + derived_from: tosca.capabilities.Node + description: Auto-generated from OXM. + + org.openecomp.capabilities.inventory.Composeable: + derived_from: tosca.capabilities.Node + description: Auto-generated from OXM. + + org.openecomp.capabilities.inventory.Allot: + derived_from: tosca.capabilities.Node + description: Auto-generated from OXM. + + org.openecomp.capabilities.inventory.Origin: + derived_from: tosca.capabilities.Node + description: Auto-generated from OXM. + + org.openecomp.capabilities.inventory.Bridgeable: + derived_from: tosca.capabilities.Node + description: Auto-generated from OXM. diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/data.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/data.yml new file mode 100644 index 0000000000..4bbd1335af --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/data.yml @@ -0,0 +1,209 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: openecomp-inventory/data.yml + version: '1.0' + +imports: +- inventory_index: + file: _index.yml + + +data_types: + + org.openecomp.datatypes.inventory.CloudInfrastructure: + description: Namespace for cloud infrastructure. + attributes: + complexes: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.cloud.infrastructure.Complex + annotations: + max_query_depth: 0 + cloud_regions: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion + annotations: + max_query_depth: 0 + network_profiles: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.cloud.infrastructure.NetworkProfile + pservers: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.cloud.infrastructure.Pserver + annotations: + max_query_depth: 0 + virtual_data_centers: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.cloud.infrastructure.VirtualDataCenter + + org.openecomp.datatypes.inventory.RelatedToProperty: + attributes: + property_key: + description: Key part of a key/value pair + type: string + property_value: + description: Value part of a key/value pair + type: string + + org.openecomp.datatypes.inventory.Network: + description: Namespace for network inventory resources. + attributes: + logical_links: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.network.LogicalLink + site_pair_sets: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.network.SitePairSet + vpn_bindings: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.network.VpnBinding + vpls_pes: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.network.VplsPe + multicast_configurations: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.network.MulticastConfiguration + vces: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.network.Vce + vpes: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.network.Vpe + vnfcs: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.network.Vnfc + l3_networks: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.network.L3Network + network_policies: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.network.NetworkPolicy + generic_vnfs: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.network.GenericVnf + annotations: + max_query_depth: 0 + lag_links: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.network.LagLink + newvces: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.network.Newvce + pnfs: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.network.Pnf + annotations: + max_query_depth: 0 + physical_links: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.network.PhysicalLink + annotations: + max_query_depth: 0 + ipsec_configurations: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.network.IpsecConfiguration + route_table_references: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.network.RouteTableReference + instance_groups: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.network.InstanceGroup + zones: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.network.Zone + + org.openecomp.datatypes.inventory.Relationship: + attributes: + related_to: + description: A keyword provided by A&AI to indicate type of node. + type: string + related_link: + description: URL to the object in A&AI. + type: string + relationship_data: + type: org.openecomp.datatypes.inventory.RelationshipData + occurrences: + - 0 + - UNBOUNDED + related_to_property: + type: org.openecomp.datatypes.inventory.RelatedToProperty + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.datatypes.inventory.Business: + description: Namespace for business related constructs + attributes: + connectors: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.business.Connector + customers: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.business.Customer + annotations: + max_query_depth: 0 + + org.openecomp.datatypes.inventory.AzAndDvsSwitches: + attributes: + dvs_switches: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.DvsSwitch + availability_zone: + type: org.openecomp.nodes.inventory.AvailabilityZone + + org.openecomp.datatypes.inventory.RelationshipData: + attributes: + relationship_key: + description: A keyword provided by A&AI to indicate an attribute. + type: string + relationship_value: + description: Value of the attribute. + type: string + + org.openecomp.datatypes.inventory.LicenseManagement: + attributes: + license_key_resources: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.license.management.LicenseKeyResource diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/nodes.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/nodes.yml new file mode 100644 index 0000000000..19db291648 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/nodes.yml @@ -0,0 +1,5148 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: openecomp-inventory/nodes.yml + version: '1.0' + +imports: +- inventory_index: + file: _index.yml + +node_types: + + org.openecomp.nodes.inventory.LagInterface: + description: Link aggregate interface + attributes: + interface_name: + description: Name that identifies the link aggregate interface + type: string + annotations: + primary_id: true + index: + - inventory + interface_description: + description: Human friendly text regarding this interface. + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + speed_value: + description: Captures the numeric part of the speed + type: string + speed_units: + description: Captures the units corresponding to the speed + type: string + interface_id: + description: ID of interface + type: string + annotations: + index: + - inventory + interface_role: + description: Role assigned to this Interface, should use values as defined in OPENECOMP Yang models. + type: string + annotations: + index: + - inventory + prov_status: + description: Trigger for operational monitoring of this resource by Service Assurance systems. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + l_interfaces: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.LInterface + capabilities: + l_interface: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.LInterface + requirements: + - generic_vnf: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.network.GenericVnf + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - lag_link: + capability: tosca.capabilities.network.Linkable + node: org.openecomp.nodes.inventory.network.LagLink + relationship: tosca.relationships.network.LinksTo + occurrences: + - 0 + - UNBOUNDED + - p_interface: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.PInterface + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + - pnf: + capability: tosca.capabilities.network.Bindable + node: org.openecomp.nodes.inventory.network.Pnf + relationship: tosca.relationships.network.BindsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - pserver: + capability: tosca.capabilities.network.Bindable + node: org.openecomp.nodes.inventory.cloud.infrastructure.Pserver + relationship: tosca.relationships.network.BindsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - vpe: + capability: tosca.capabilities.network.Bindable + node: org.openecomp.nodes.inventory.network.Vpe + relationship: tosca.relationships.network.BindsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - vpls_pe: + capability: tosca.capabilities.network.Bindable + node: org.openecomp.nodes.inventory.network.VplsPe + relationship: tosca.relationships.network.BindsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.cloud.infrastructure.VirtualDataCenter: + description: Virtual organization of cloud infrastructure elements in a data center context + attributes: + vdc_id: + description: Unique ID of the vdc + type: string + annotations: + primary_id: true + index: + - inventory + vdc_name: + description: Name of the virtual data center + type: string + annotations: + index: + - inventory + summary_property: true + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + connector: + type: org.openecomp.capabilities.inventory.Existable + valid_source_types: + - org.openecomp.nodes.inventory.business.Connector + generic_vnf: + type: org.openecomp.capabilities.inventory.Existable + valid_source_types: + - org.openecomp.nodes.inventory.network.GenericVnf + logical_link: + type: org.openecomp.capabilities.inventory.Existable + valid_source_types: + - org.openecomp.nodes.inventory.network.LogicalLink + + org.openecomp.nodes.inventory.network.Pnf: + description: PNF represents a physical network function. typically equipment used in the D1 world. in 1607, this will be populated by SDN-C to represent a premises router that a uCPE connects to. But this can be used to represent any physical device that is not an OPENECOMP node or uCPE. + attributes: + pnf_name: + description: unique name of Physical Network Function. + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + search: + - inventory + pnf_name2: + description: name of Physical Network Function. + type: string + pnf_name2_source: + description: source of name2 + type: string + pnf_id: + description: id of pnf + type: string + equip_type: + description: Equipment type. Source of truth should define valid values. + type: string + equip_vendor: + description: Equipment vendor. Source of truth should define valid values. + type: string + equip_model: + description: Equipment model. Source of truth should define valid values. + type: string + management_option: + description: identifier of managed by OPENECOMP or customer + type: string + ipaddress_v4_oam: + description: ipv4-oam-address with new naming convention for IP addresses + type: string + sw_version: + description: sw-version is the version of SW for the hosted application on the PNF. + type: string + in_maint: + description: Used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs. + type: boolean + frame_id: + description: ID of the physical frame (relay rack) where pnf is installed. + type: string + serial_number: + description: Serial number of the device + type: string + ipaddress_v4_loopback_0: + description: IPV4 Loopback 0 address + type: string + ipaddress_v6_loopback_0: + description: IPV6 Loopback 0 address + type: string + ipaddress_v4_aim: + description: IPV4 AIM address + type: string + ipaddress_v6_aim: + description: IPV6 AIM address + type: string + ipaddress_v6_oam: + description: IPV6 OAM address + type: string + inv_status: + description: CANOPI's inventory status. Only set with values exactly as defined by CANOPI. + type: string + annotations: + index: + - inventory + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + prov_status: + description: Prov Status of this device (not under canopi control) Valid values [PREPROV/NVTPROV/PROV] + type: string + nf_role: + description: Nf Role is the role performed by this instance in the network. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + p_interfaces: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.PInterface + lag_interfaces: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.LagInterface + capabilities: + logical_link: + type: org.openecomp.capabilities.inventory.Bridgeable + valid_source_types: + - org.openecomp.nodes.inventory.network.LogicalLink + lag_interface: + type: org.openecomp.capabilities.inventory.Bindable + valid_source_types: + - org.openecomp.nodes.inventory.LagInterface + p_interface: + type: org.openecomp.capabilities.inventory.Bindable + valid_source_types: + - org.openecomp.nodes.inventory.PInterface + service_instance: + type: org.openecomp.capabilities.inventory.Composeable + valid_source_types: + - org.openecomp.nodes.inventory.ServiceInstance + requirements: + - complex: + capability: org.openecomp.capabilities.inventory.Locates + node: org.openecomp.nodes.inventory.cloud.infrastructure.Complex + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + - instance_group: + capability: org.openecomp.capabilities.inventory.Composite + node: org.openecomp.nodes.inventory.network.InstanceGroup + relationship: org.openecomp.relationships.inventory.MemberOf + occurrences: + - 0 + - UNBOUNDED + - zone: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.network.Zone + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + + org.openecomp.nodes.inventory.network.InstanceGroup: + description: General mechanism for grouping instances + attributes: + id: + description: Instance Group ID, UUID assigned to this instance. + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + description: + description: Descriptive text to help identify the usage of this instance-group + type: string + annotations: + index: + - inventory + summary_property: true + type: + description: Only valid value today is lower case ha for high availability + type: string + annotations: + index: + - inventory + sub_type: + description: Valid values for ha type are [geo-activeactive, geo-activestandby, local-activeactive, local-activestandby] + type: string + annotations: + index: + - inventory + resource_version: + description: Concurrency value + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + allotted_resource: + type: org.openecomp.capabilities.inventory.Composite + valid_source_types: + - org.openecomp.nodes.inventory.AllottedResource + generic_vnf: + type: org.openecomp.capabilities.inventory.Composite + valid_source_types: + - org.openecomp.nodes.inventory.network.GenericVnf + pnf: + type: org.openecomp.capabilities.inventory.Composite + valid_source_types: + - org.openecomp.nodes.inventory.network.Pnf + service_instance: + type: org.openecomp.capabilities.inventory.Composite + valid_source_types: + - org.openecomp.nodes.inventory.ServiceInstance + + org.openecomp.nodes.inventory.LInterface: + description: Logical interfaces, e.g., a vnic. + attributes: + interface_name: + description: Name given to the interface + type: string + annotations: + primary_id: true + index: + - inventory + interface_role: + description: E.g., CUSTOMER, UPLINK, etc. + type: string + v6_wan_link_ip: + description: Questionably placed - v6 ip addr of this interface (is in vr-lan-interface from Mary B. + type: string + selflink: + description: URL to endpoint where AAI can get more details + type: string + interface_id: + description: ID of interface + type: string + annotations: + index: + - inventory + macaddr: + description: MAC address for the interface + type: string + annotations: + index: + - inventory + network_name: + description: Name of the network + type: string + annotations: + index: + - inventory + management_option: + description: Whether A&AI should be managing this interface of not. Could have value like CUSTOMER + type: string + interface_description: + description: Human friendly text regarding this interface. + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + vlans: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.Vlan + sriov_vfs: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.SriovVf + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + l3_interface_ipv4_address_list: + type: org.openecomp.nodes.inventory.L3InterfaceIpv4AddressList + occurrences: + - 0 + - UNBOUNDED + l3_interface_ipv6_address_list: + type: org.openecomp.nodes.inventory.L3InterfaceIpv6AddressList + occurrences: + - 0 + - UNBOUNDED + capabilities: + l3_interface_ipv4_address_list: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.L3InterfaceIpv4AddressList + l3_interface_ipv6_address_list: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.L3InterfaceIpv6AddressList + sriov_vf: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.SriovVf + requirements: + - generic_vnf: + capability: tosca.capabilities.network.Bindable + node: org.openecomp.nodes.inventory.network.GenericVnf + relationship: tosca.relationships.network.BindsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - lag_interface: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.LagInterface + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - linking: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + occurrences: + - 0 + - UNBOUNDED + - newvce: + capability: tosca.capabilities.network.Bindable + node: org.openecomp.nodes.inventory.network.Newvce + relationship: tosca.relationships.network.BindsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - p_interface: + capability: tosca.capabilities.network.Bindable + node: org.openecomp.nodes.inventory.PInterface + relationship: tosca.relationships.network.BindsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - vpe: + capability: tosca.capabilities.network.Bindable + node: org.openecomp.nodes.inventory.network.Vpe + relationship: tosca.relationships.network.BindsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - vserver: + capability: tosca.capabilities.network.Bindable + node: org.openecomp.nodes.inventory.Vserver + relationship: tosca.relationships.network.BindsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.Vlan: + description: Definition of vlan + attributes: + vlan_interface: + description: String that identifies the interface + type: string + annotations: + primary_id: true + index: + - inventory + vlan_id_inner: + description: Inner VLAN tag + type: long + annotations: + index: + - inventory + vlan_id_outer: + description: Outer VLAN tag + type: long + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + speed_value: + description: Captures the numeric part of the speed + type: string + speed_units: + description: Captures the units corresponding to the speed + type: string + vlan_description: + description: Used to describe (the service associated with) the vlan + type: string + backdoor_connection: + description: Whether customer is going to use this VLAN for backdoor connection to another customer premise device. + type: string + vpn_id: + description: This indicates the customers VPN ID associated with this vlan + type: string + annotations: + unique: + - inventory + index: + - inventory + orchestration_status: + description: Status of a vnf's vlan interface, on which the customer circuit resides, mastered by SDN-C. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + l3_interface_ipv4_address_list: + type: org.openecomp.nodes.inventory.L3InterfaceIpv4AddressList + occurrences: + - 0 + - UNBOUNDED + l3_interface_ipv6_address_list: + type: org.openecomp.nodes.inventory.L3InterfaceIpv6AddressList + occurrences: + - 0 + - UNBOUNDED + capabilities: + allotted_resource: + type: org.openecomp.capabilities.inventory.Allot + valid_source_types: + - org.openecomp.nodes.inventory.AllottedResource + l_interface: + type: org.openecomp.capabilities.inventory.Linkable + valid_source_types: + - org.openecomp.nodes.inventory.LInterface + service_instance: + type: org.openecomp.capabilities.inventory.Composeable + valid_source_types: + - org.openecomp.nodes.inventory.ServiceInstance + l3_interface_ipv4_address_list: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.L3InterfaceIpv4AddressList + l3_interface_ipv6_address_list: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.L3InterfaceIpv6AddressList + requirements: + - logical_link: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.network.LogicalLink + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + - multicast_configuration: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.network.MulticastConfiguration + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.nodes.inventory.Vserver: + description: Virtual Servers, aka virtual machine or VM. + attributes: + vserver_id: + description: Unique identifier for this vserver relative to its tenant + type: string + annotations: + primary_id: true + index: + - inventory + search: + - inventory + vserver_name: + description: Name of vserver + type: string + annotations: + index: + - inventory + search: + - inventory + summary_property: true + vserver_name2: + description: Alternative name of vserver + type: string + annotations: + index: + - inventory + search: + - inventory + prov_status: + description: Trigger for operational monitoring of this resource by Service Assurance systems. + type: string + annotations: + index: + - inventory + vserver_selflink: + description: URL to endpoint where AAI can get more details + type: string + in_maint: + description: Used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs. + type: boolean + annotations: + index: + - inventory + is_closed_loop_disabled: + description: Used to indicate whether closed loop function is enabled on this node + type: boolean + annotations: + index: + - inventory + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + volumes: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.Volume + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + l_interfaces: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.LInterface + capabilities: + generic_vnf: + type: org.openecomp.capabilities.inventory.Container + valid_source_types: + - org.openecomp.nodes.inventory.network.GenericVnf + vce: + type: org.openecomp.capabilities.inventory.Container + valid_source_types: + - org.openecomp.nodes.inventory.network.Vce + vf_module: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.VfModule + vnfc: + type: org.openecomp.capabilities.inventory.Container + valid_source_types: + - org.openecomp.nodes.inventory.network.Vnfc + vpe: + type: org.openecomp.capabilities.inventory.Container + valid_source_types: + - org.openecomp.nodes.inventory.network.Vpe + l_interface: + type: org.openecomp.capabilities.inventory.Bindable + valid_source_types: + - org.openecomp.nodes.inventory.LInterface + requirements: + - tenant: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.Tenant + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - flavor: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.Flavor + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - 1 + - image: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.Image + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - 1 + - pserver: + capability: tosca.capabilities.Container + node: org.openecomp.nodes.inventory.cloud.infrastructure.Pserver + relationship: tosca.relationships.HostedOn + occurrences: + - 0 + - 1 + - snapshot: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.Snapshot + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - 1 + - volume: + capability: org.openecomp.capabilities.inventory.Attachment + node: org.openecomp.nodes.inventory.Volume + relationship: tosca.relationships.AttachesTo + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.nodes.inventory.VolumeGroup: + description: Persistent block-level storage. + attributes: + volume_group_id: + description: Unique ID of volume-group. + type: string + annotations: + primary_id: true + index: + - inventory + search: + - inventory + volume_group_name: + description: Name of the volume group. + type: string + annotations: + index: + - inventory + search: + - inventory + heat_stack_id: + description: Heat stack id corresponding to this volume-group + type: string + annotations: + index: + - inventory + vnf_type: + description: String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded in service-specific ways and clients should expect changes to occur in the future to this field as OPENECOMP matures. + type: string + annotations: + index: + - inventory + orchestration_status: + description: Orchestration status of this volume-group + type: string + persona_model_customization_id: + description: captures the id of all the configuration used to customize the resource for the service. + type: string + vf_module_persona_model_customization_id: + description: helps relate the volume group to the vf-module whose components will require the volume group + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + generic_vnf: + type: org.openecomp.capabilities.inventory.Node + valid_source_types: + - org.openecomp.nodes.inventory.network.GenericVnf + tenant: + type: org.openecomp.capabilities.inventory.Node + valid_source_types: + - org.openecomp.nodes.inventory.Tenant + vf_module: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.VfModule + requirements: + - cloud_region: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - complex: + capability: org.openecomp.capabilities.inventory.Existable + node: org.openecomp.nodes.inventory.cloud.infrastructure.Complex + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.nodes.inventory.network.IpsecConfiguration: + description: IPSec configuration node will contain various configuration data for the NMTE VNF. This node will have an edge to the generic-vnf (vnf type = TE). Starting 1607, this data will be populated by SDN-C + attributes: + ipsec_configuration_id: + description: UUID of this configuration + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + requested_vig_address_type: + description: Indicate the type of VIG server like AVPN, INTERNET, BOTH + type: string + requested_encryption_strength: + description: Encryption values like 3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc + type: string + requested_dmz_type: + description: OPENECOMP can offer a shared DMZ or a DMZ specific to a customer + type: string + shared_dmz_network_address: + description: Network address of shared DMZ + type: string + requested_customer_name: + description: If the DMZ is a custom DMZ, this field will indicate the customer information + type: string + ike_version: + description: can be 1 or 2 + type: string + ikev1_authentication: + description: Contains values like md5, sha1, sha256, sha384 + type: string + ikev1_encryption: + description: Encyption values like 3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc + type: string + ikev1_dh_group: + description: Diffie-Hellman group like DH-GROUP2, DH-GROUP5, DH-GROUP14 + type: string + ikev1_am_group_id: + description: Group name defined in VIG for clients using aggressive mode + type: string + ikev1_am_password: + description: 'pre-shared key for the above group name ' + type: string + ikev1_sa_lifetime: + description: Lifetime for IKEv1 SA + type: string + ipsec_authentication: + description: md5, sha1, sha256, sha384 + type: string + ipsec_encryption: + description: 3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc + type: string + ipsec_sa_lifetime: + description: Life time for IPSec SA + type: string + ipsec_pfs: + description: enable PFS or not + type: string + xauth_userid: + description: user ID for xAuth, sm-user,ucpeHostName,nmteHostName + type: string + xauth_user_password: + description: Encrypted using the Juniper $9$ algorithm + type: string + dpd_interval: + description: The time between DPD probe + type: string + dpd_frequency: + description: Maximum number of DPD before claiming the tunnel is down + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + vig_servers: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.VigServer + capabilities: + generic_vnf: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.network.GenericVnf + vig_server: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.VigServer + + org.openecomp.nodes.inventory.cloud.infrastructure.Pserver: + description: Compute host whose hostname must be unique and must exactly match what is sent as a relationship to a vserver. + attributes: + hostname: + description: Value from executing hostname on the compute node. + type: string + annotations: + primary_id: true + index: + - inventory + search: + - inventory + ptnii_equip_name: + description: PTNII name + type: string + number_of_cpus: + description: Number of cpus + type: integer + disk_in_gigabytes: + description: Disk size, in GBs + type: integer + ram_in_megabytes: + description: RAM size, in MBs + type: integer + equip_type: + description: Equipment type. Source of truth should define valid values. + type: string + equip_vendor: + description: Equipment vendor. Source of truth should define valid values. + type: string + equip_model: + description: Equipment model. Source of truth should define valid values. + type: string + fqdn: + description: Fully-qualified domain name + type: string + pserver_selflink: + description: URL to endpoint where AAI can get more details + type: string + ipv4_oam_address: + description: Used to configure device, also used for troubleshooting and is IP used for traps generated by device. + type: string + annotations: + search: + - inventory + serial_number: + description: Serial number, may be queried + type: string + ipaddress_v4_loopback_0: + description: IPV4 Loopback 0 address + type: string + ipaddress_v6_loopback_0: + description: IPV6 Loopback 0 address + type: string + ipaddress_v4_aim: + description: IPV4 AIM address + type: string + ipaddress_v6_aim: + description: IPV6 AIM address + type: string + ipaddress_v6_oam: + description: IPV6 OAM address + type: string + inv_status: + description: CANOPI's inventory status. Only set with values exactly as defined by CANOPI. + type: string + annotations: + index: + - inventory + pserver_id: + description: ID of Pserver + type: string + annotations: + index: + - inventory + search: + - inventory + internet_topology: + description: internet topology of Pserver + type: string + in_maint: + description: used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs. + type: boolean + annotations: + index: + - inventory + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + pserver_name2: + description: alternative pserver name + type: string + annotations: + index: + - inventory + search: + - inventory + summary_property: true + purpose: + description: purpose of pserver + type: string + prov_status: + description: Prov Status of this device (not under canopi control) Valid values [PREPROV/NVTPROV/PROV] + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + p_interfaces: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.PInterface + lag_interfaces: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.LagInterface + capabilities: + generic_vnf: + type: org.openecomp.capabilities.inventory.Container + valid_source_types: + - org.openecomp.nodes.inventory.network.GenericVnf + logical_link: + type: org.openecomp.capabilities.inventory.Bridgeable + valid_source_types: + - org.openecomp.nodes.inventory.network.LogicalLink + lag_interface: + type: org.openecomp.capabilities.inventory.Bindable + valid_source_types: + - org.openecomp.nodes.inventory.LagInterface + p_interface: + type: org.openecomp.capabilities.inventory.Bindable + valid_source_types: + - org.openecomp.nodes.inventory.PInterface + vserver: + type: org.openecomp.capabilities.inventory.Container + valid_source_types: + - org.openecomp.nodes.inventory.Vserver + requirements: + - availability_zone: + capability: org.openecomp.capabilities.inventory.Composite + node: org.openecomp.nodes.inventory.AvailabilityZone + relationship: org.openecomp.relationships.inventory.MemberOf + occurrences: + - 0 + - 1 + - cloud_region: + capability: org.openecomp.capabilities.inventory.Existable + node: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + - complex: + capability: org.openecomp.capabilities.inventory.Locates + node: org.openecomp.nodes.inventory.cloud.infrastructure.Complex + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + - group_assignment: + capability: org.openecomp.capabilities.inventory.Composite + node: org.openecomp.nodes.inventory.GroupAssignment + relationship: org.openecomp.relationships.inventory.MemberOf + occurrences: + - 0 + - 1 + - zone: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.network.Zone + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + + org.openecomp.nodes.inventory.SriovVf: + description: SR-IOV Virtual Function (not to be confused with virtual network function) + attributes: + pci_id: + description: PCI ID used to identify the sriov-vf + type: string + annotations: + primary_id: true + index: + - inventory + vf_vlan_filter: + description: This metadata provides option to specify list of VLAN filters applied on VF to pass the traffic to VM. + type: string + annotations: + index: + - inventory + vf_mac_filter: + description: When MAC filters are specified, VF-agent service configures VFs to do MAC level filtering before the traffic is passed to VM. + type: string + annotations: + index: + - inventory + vf_vlan_strip: + description: When this field is set to true, VF will configured to strip the outer TAG before the traffic is passed to VM. + type: boolean + annotations: + index: + - inventory + vf_vlan_anti_spoof_check: + description: This option ensures anti VLAN spoof checks are done at the VF level to comply with security. The disable check will also be honored per the VNF needs for trusted VMs. + type: boolean + vf_mac_anti_spoof_check: + description: This option ensures anti MAC spoof checks are done at the VF level to comply with security. The disable check will also be honored per the VNF needs for trusted VMs. + type: boolean + vf_mirrors: + description: This option defines the set of Mirror objects which essentially mirrors the traffic from source to set of collector VNF Ports. + type: string + vf_broadcast_allow: + description: This option, if set to true, sets the VF in promiscuous mode and allows all broadcast traffic to reach the VM + type: boolean + vf_unknown_multicast_allow: + description: This option, if set to true, sets the VF in promiscuous mode and allows unknown multicast traffic to reach the VM + type: boolean + vf_unknown_unicast_allow: + description: This option, if set to true, sets the VF in promiscuous mode and allows unknown unicast traffic to reach the VM + type: boolean + vf_insert_stag: + description: This option, if set to true, instructs to insert outer tag after traffic comes out of VM. + type: boolean + vf_link_status: + description: This option is used to set the link status. Valid values as of 1607 are on, off, and auto. + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + neutron_network_id: + description: Neutron network id of the interface + type: string + annotations: + index: + - inventory + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + requirements: + - l_interface: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.LInterface + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.AvailabilityZone: + description: Availability zone, a collection of compute hosts/pservers + attributes: + availability_zone_name: + description: Name of the availability zone. Unique across a cloud region + type: string + annotations: + primary_id: true + index: + - inventory + hypervisor_type: + description: Type of hypervisor. Source of truth should define valid values. + type: string + operational_state: + description: State that indicates whether the availability zone should be used, etc. Source of truth should define valid values. + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + ctag_pool: + type: org.openecomp.capabilities.inventory.Applicable + valid_source_types: + - org.openecomp.nodes.inventory.CtagPool + dvs_switch: + type: org.openecomp.capabilities.inventory.Applicable + valid_source_types: + - org.openecomp.nodes.inventory.DvsSwitch + generic_vnf: + type: org.openecomp.capabilities.inventory.Origin + valid_source_types: + - org.openecomp.nodes.inventory.network.GenericVnf + pserver: + type: org.openecomp.capabilities.inventory.Composite + valid_source_types: + - org.openecomp.nodes.inventory.cloud.infrastructure.Pserver + vce: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.network.Vce + requirements: + - complex: + capability: org.openecomp.capabilities.inventory.Existable + node: org.openecomp.nodes.inventory.cloud.infrastructure.Complex + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - UNBOUNDED + - cloud_region: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.ServiceInstance: + description: Instance of a service + attributes: + service_instance_id: + description: Uniquely identifies this instance of a service + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + search: + - inventory + service_instance_name: + description: This field will store a name assigned to the service-instance. + type: string + annotations: + index: + - inventory + search: + - inventory + summary_property: true + persona_model_id: + description: the ASDC model id for this resource or service model. + type: string + annotations: + index: + - inventory + persona_model_version: + description: the ASDC model version for this resource or service model. + type: string + annotations: + index: + - inventory + widget_model_id: + description: the ASDC data dictionary widget model. This maps directly to the A&AI widget. + type: string + annotations: + index: + - inventory + widget_model_version: + description: the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget. + type: string + annotations: + index: + - inventory + bandwidth_total: + description: Indicates the total bandwidth to be used for this service. + type: string + bandwidth_up_wan1: + description: indicates the upstream bandwidth this service will use on the WAN1 port of the physical device. + type: string + bandwidth_down_wan1: + description: indicates the downstream bandwidth this service will use on the WAN1 port of the physical device. + type: string + bandwidth_up_wan2: + description: indicates the upstream bandwidth this service will use on the WAN2 port of the physical device. + type: string + bandwidth_down_wan2: + description: indicates the downstream bandwidth this service will use on the WAN2 port of the physical device. + type: string + vhn_portal_url: + description: URL customers will use to access the vHN Portal. + type: string + operational_status: + description: Operational status of the service-instance. + type: string + service_instance_location_id: + description: An identifier that customers assign to the location where this service is being used. + type: string + annotations: + index: + - inventory + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + selflink: + description: Path to the controller object. + type: string + orchestration_status: + description: Orchestration status of this service. + type: string + annotations: + index: + - inventory + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + metadata: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.Metadatum + allotted_resources: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.AllottedResource + capabilities: + allotted_resource: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.AllottedResource + metadatum: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.Metadatum + service_instance: + type: org.openecomp.capabilities.inventory.Composeable + valid_source_types: + - org.openecomp.nodes.inventory.ServiceInstance + requirements: + - connector: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.business.Connector + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + - ctag_assignment: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.CtagAssignment + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + - cvlan_tag: + capability: org.openecomp.capabilities.inventory.Composeable + node: org.openecomp.nodes.inventory.CvlanTagEntry + relationship: org.openecomp.relationships.inventory.ComposedOf + occurrences: + - 0 + - UNBOUNDED + - generic_vnf: + capability: org.openecomp.capabilities.inventory.Composeable + node: org.openecomp.nodes.inventory.network.GenericVnf + relationship: org.openecomp.relationships.inventory.ComposedOf + occurrences: + - 0 + - UNBOUNDED + - instance_group: + capability: org.openecomp.capabilities.inventory.Composite + node: org.openecomp.nodes.inventory.network.InstanceGroup + relationship: org.openecomp.relationships.inventory.MemberOf + occurrences: + - 0 + - UNBOUNDED + - l3_network: + capability: org.openecomp.capabilities.inventory.Composeable + node: org.openecomp.nodes.inventory.network.L3Network + relationship: org.openecomp.relationships.inventory.ComposedOf + occurrences: + - 0 + - UNBOUNDED + - logical_link: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.network.LogicalLink + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + - pnf: + capability: org.openecomp.capabilities.inventory.Composeable + node: org.openecomp.nodes.inventory.network.Pnf + relationship: org.openecomp.relationships.inventory.ComposedOf + occurrences: + - 0 + - UNBOUNDED + - service_instance: + capability: org.openecomp.capabilities.inventory.Composeable + node: org.openecomp.nodes.inventory.ServiceInstance + relationship: org.openecomp.relationships.inventory.ComposedOf + occurrences: + - 0 + - UNBOUNDED + - vce: + capability: org.openecomp.capabilities.inventory.Composeable + node: org.openecomp.nodes.inventory.network.Vce + relationship: org.openecomp.relationships.inventory.ComposedOf + occurrences: + - 0 + - UNBOUNDED + - vlan: + capability: org.openecomp.capabilities.inventory.Composeable + node: org.openecomp.nodes.inventory.Vlan + relationship: org.openecomp.relationships.inventory.ComposedOf + occurrences: + - 0 + - UNBOUNDED + - service_subscription: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.ServiceSubscription + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.network.Newvce: + description: This object fills in the gaps from vce that were incorporated into generic-vnf. This object will be retired with vce. + attributes: + vnf_id2: + description: Unique id of VNF, can't use same attribute name right now until we promote this new object + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + search: + - inventory + vnf_name: + description: Name of VNF. + type: string + annotations: + index: + - inventory + search: + - inventory + summary_property: true + vnf_name2: + description: Alternate name of VNF. + type: string + annotations: + index: + - inventory + search: + - inventory + vnf_type: + description: String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded in service-specific ways and clients should expect changes to occur in the future to this field as OPENECOMP matures. + type: string + annotations: + index: + - inventory + prov_status: + description: Trigger for operational monitoring of this VNF by BAU Service Assurance systems. + type: string + annotations: + index: + - inventory + operational_state: + description: Indicator for whether the resource is considered operational + type: string + license_key: + description: OBSOLETE - do not use + type: string + ipv4_oam_address: + description: Address tail-f uses to configure vpe, also used for troubleshooting and is IP used for traps generated by VPE (v4-loopback0-ip-address). + type: string + equipment_role: + description: Client should send valid enumerated value, e.g., VPE. + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + ipv4_loopback0_address: + description: v4 Loopback0 address + type: string + orchestration_status: + description: Orchestration status of this VNF, mastered by MSO. + type: string + heat_stack_id: + description: Heat stack id corresponding to this instance, managed by MSO + type: string + annotations: + index: + - inventory + mso_catalog_key: + description: Corresponds to the SDN-C catalog id used to configure this VCE + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + l_interfaces: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.LInterface + capabilities: + l_interface: + type: org.openecomp.capabilities.inventory.Bindable + valid_source_types: + - org.openecomp.nodes.inventory.LInterface + + org.openecomp.nodes.inventory.Flavor: + description: Openstack flavor. + attributes: + flavor_id: + description: Flavor id, expected to be unique across cloud-region. + type: string + annotations: + primary_id: true + index: + - inventory + flavor_name: + description: Flavor name + type: string + annotations: + index: + - inventory + summary_property: true + flavor_vcpus: + description: Number of CPUs + type: integer + flavor_ram: + description: Amount of memory + type: integer + flavor_disk: + description: Disk space + type: integer + flavor_ephemeral: + description: Amount of ephemeral disk space + type: integer + flavor_swap: + description: amount of swap space allocation + type: string + flavor_is_public: + description: whether flavor is available to all users or private to the tenant it was created in. + type: boolean + flavor_selflink: + description: URL to endpoint where AAI can get more details + type: string + flavor_disabled: + description: Boolean as to whether this flavor is no longer enabled + type: boolean + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + vserver: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.Vserver + requirements: + - cloud_region: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.DvsSwitch: + description: 'Digital virtual switch metadata, used by SDN-C to configure VCEs. A&AI + needs to receive this data from the PO deployment team and administer it using + the provisioningTool.sh into A&AI. ' + attributes: + switch_name: + description: DVS switch name + type: string + annotations: + primary_id: true + index: + - inventory + vcenter_url: + description: URL used to reach the vcenter + type: string + annotations: + index: + - inventory + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + requirements: + - cloud_region: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - availability_zone: + capability: org.openecomp.capabilities.inventory.Applicable + node: org.openecomp.nodes.inventory.AvailabilityZone + relationship: org.openecomp.relationships.inventory.AppliesTo + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.nodes.inventory.Entitlement: + description: Metadata for entitlement group. + attributes: + group_uuid: + description: Unique ID for the entitlement group the resource comes from, should be uuid. + type: string + annotations: + primary_id: true + index: + - inventory + resource_uuid: + description: 'Unique ID of an entitlement resource. ' + type: string + annotations: + primary_id: true + index: + - inventory + resource_version: + description: Concurrency value + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + requirements: + - generic_vnf: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.network.GenericVnf + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - vce: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.network.Vce + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - vpe: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.network.Vpe + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.PInterface: + description: Physical interface (e.g., nic) + attributes: + interface_name: + description: Name that identifies the physical interface + type: string + annotations: + primary_id: true + index: + - inventory + speed_value: + description: Captures the numeric part of the speed + type: string + speed_units: + description: Captures the units corresponding to the speed + type: string + port_description: + description: Nature of the services and connectivity on this port. + type: string + equipment_identifier: + description: CLEI or other specification for p-interface hardware. + type: string + interface_role: + description: Role specification for p-interface hardware. + type: string + interface_type: + description: Indicates the physical properties of the interface. + type: string + prov_status: + description: Trigger for operational monitoring of this resource by Service Assurance systems. + type: string + annotations: + index: + - inventory + summary_property: true + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + l_interfaces: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.LInterface + capabilities: + lag_interface: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.LagInterface + l_interface: + type: org.openecomp.capabilities.inventory.Bindable + valid_source_types: + - org.openecomp.nodes.inventory.LInterface + requirements: + - logical_link: + capability: tosca.capabilities.network.Linkable + node: org.openecomp.nodes.inventory.network.LogicalLink + relationship: tosca.relationships.network.LinksTo + occurrences: + - 0 + - 1 + - physical_link: + capability: tosca.capabilities.network.Linkable + node: org.openecomp.nodes.inventory.network.PhysicalLink + relationship: tosca.relationships.network.LinksTo + occurrences: + - 0 + - UNBOUNDED + - pnf: + capability: tosca.capabilities.network.Bindable + node: org.openecomp.nodes.inventory.network.Pnf + relationship: tosca.relationships.network.BindsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - pserver: + capability: tosca.capabilities.network.Bindable + node: org.openecomp.nodes.inventory.cloud.infrastructure.Pserver + relationship: tosca.relationships.network.BindsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - vpls_pe: + capability: tosca.capabilities.network.Bindable + node: org.openecomp.nodes.inventory.network.VplsPe + relationship: tosca.relationships.network.BindsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.network.LagLink: + description: LAG links can connect lag-interfaces + attributes: + link_name: + description: Alphabetical concatenation of lag-interface names + type: string + annotations: + primary_id: true + index: + - inventory + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + lag_interface: + type: org.openecomp.capabilities.inventory.Linkable + valid_source_types: + - org.openecomp.nodes.inventory.LagInterface + logical_link: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.network.LogicalLink + + org.openecomp.nodes.inventory.Volume: + description: Ephemeral Block storage volume. + attributes: + volume_id: + description: Unique ID of block storage volume relative to the vserver. + type: string + annotations: + primary_id: true + index: + - inventory + volume_selflink: + description: URL to endpoint where AAI can get more details + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + vserver: + type: org.openecomp.capabilities.inventory.Attachment + valid_source_types: + - org.openecomp.nodes.inventory.Vserver + + org.openecomp.nodes.inventory.network.Zone: + description: A zone is a grouping of assets in a location homing to the same connections into the CBB + attributes: + zone_id: + description: Code assigned by OPENECOMP to the zone + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + zone_name: + description: English name associated with the zone + type: string + annotations: + summary_property: true + design_type: + description: Design of zone [Medium/Large�] + type: string + annotations: + index: + - inventory + zone_context: + description: Context of zone [production/test] + type: string + annotations: + index: + - inventory + status: + description: Status of a zone. + type: string + resource_version: + description: Concurrency value + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + cloud_region: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion + pnf: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.network.Pnf + pserver: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.cloud.infrastructure.Pserver + requirements: + - complex: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.cloud.infrastructure.Complex + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + + org.openecomp.nodes.inventory.SegmentationAssignment: + description: Openstack segmentation assignment. + attributes: + segmentation_id: + description: Route Table Reference id, UUID assigned to this instance. + type: string + annotations: + primary_id: true + index: + - inventory + resource_version: + description: Concurrency value + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + requirements: + - l3_network: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.network.L3Network + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.SitePair: + attributes: + site_pair_id: + description: unique identifier of probe + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + source_ip: + description: Prefix address + type: string + destination_ip: + description: Prefix address + type: string + ip_version: + description: ip version, v4, v6 + type: string + destination_hostname: + description: Hostname of the destination equipment to which SLAs are measured against. + type: string + destination_equip_type: + description: The type of destinatination equipment. Could be Router, UCPE, etc. + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + classes_of_service: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.ClassOfService + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + class_of_service: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.ClassOfService + requirements: + - routing_instance: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.RoutingInstance + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.network.VplsPe: + description: VPLS Provider Edge routers. + attributes: + equipment_name: + type: string + annotations: + primary_id: true + index: + - inventory + prov_status: + description: Trigger for operational monitoring of this VNF by BAU Service Assurance systems. + type: string + annotations: + index: + - inventory + ipv4_oam_address: + description: Address tail-f uses to configure vpe, also used for troubleshooting and is IP used for traps generated by VPE (v4-loopback0-ip-address). + type: string + equipment_role: + description: Client should send valid enumerated value, e.g., VPLS-PE. + type: string + vlan_id_outer: + description: Temporary location for stag to get to VCE + type: long + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + p_interfaces: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.PInterface + lag_interfaces: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.LagInterface + capabilities: + lag_interface: + type: org.openecomp.capabilities.inventory.Bindable + valid_source_types: + - org.openecomp.nodes.inventory.LagInterface + p_interface: + type: org.openecomp.capabilities.inventory.Bindable + valid_source_types: + - org.openecomp.nodes.inventory.PInterface + requirements: + - complex: + capability: org.openecomp.capabilities.inventory.Locates + node: org.openecomp.nodes.inventory.cloud.infrastructure.Complex + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - UNBOUNDED + - ctag_pool: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.CtagPool + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.nodes.inventory.Subnet: + attributes: + subnet_id: + description: Subnet ID, should be UUID. + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + subnet_name: + description: Name associated with the subnet. + type: string + annotations: + index: + - inventory + summary_property: true + neutron_subnet_id: + description: Neutron id of this subnet + type: string + gateway_address: + description: gateway ip address + type: string + network_start_address: + description: network start address + type: string + cidr_mask: + description: cidr mask + type: string + ip_version: + description: ip version + type: string + orchestration_status: + description: Orchestration status of this VNF, mastered by MSO + type: string + dhcp_enabled: + description: dhcp enabled + type: boolean + dhcp_start: + description: the start address reserved for use by dhcp + type: string + dhcp_end: + description: the last address reserved for use by dhcp + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + l3_interface_ipv4_address_list: + type: org.openecomp.capabilities.inventory.Composite + valid_source_types: + - org.openecomp.nodes.inventory.L3InterfaceIpv4AddressList + l3_interface_ipv6_address_list: + type: org.openecomp.capabilities.inventory.Composite + valid_source_types: + - org.openecomp.nodes.inventory.L3InterfaceIpv6AddressList + requirements: + - l3_network: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.network.L3Network + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.service.design.and.creation.VnfImage: + description: Image object that pertain to a VNF that doesn't have associated vservers. This is a kludge. + attributes: + att_uuid: + description: Unique ID of this asset + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + application: + description: The application that the image instantiates. + type: string + annotations: + index: + - inventory + application_vendor: + description: The vendor of the application. + type: string + annotations: + index: + - inventory + application_version: + description: The version of the application. + type: string + annotations: + index: + - inventory + selflink: + description: URL to endpoint where AAI can get more details + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + generic_vnf: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.network.GenericVnf + + org.openecomp.nodes.inventory.network.RouteTableReference: + description: Openstack route table reference. + attributes: + route_table_reference_id: + description: Route Table Reference id, UUID assigned to this instance. + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + route_table_reference_fqdn: + description: FQDN entry in the route table. + type: string + annotations: + index: + - inventory + summary_property: true + resource_version: + description: Concurrency value + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + l3_network: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.network.L3Network + + org.openecomp.nodes.inventory.License: + description: Metadata for license group. + attributes: + group_uuid: + description: Unique ID for the license group the resource belongs to, should be uuid. + type: string + annotations: + primary_id: true + index: + - inventory + resource_uuid: + description: 'Unique ID of a license resource. ' + type: string + annotations: + primary_id: true + index: + - inventory + resource_version: + description: Concurrency value + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + requirements: + - generic_vnf: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.network.GenericVnf + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - vce: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.network.Vce + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - vpe: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.network.Vpe + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.GroupAssignment: + description: Openstack group-assignment used to store exclusivity groups (EG). + attributes: + group_id: + description: Group id, expected to be unique across cloud-region. + type: string + annotations: + primary_id: true + index: + - inventory + group_type: + description: Group type - the type of group this instance refers to + type: string + annotations: + index: + - inventory + group_name: + description: Group name - name assigned to the group + type: string + annotations: + index: + - inventory + summary_property: true + group_description: + description: Group description - description of the group + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + pserver: + type: org.openecomp.capabilities.inventory.Composite + valid_source_types: + - org.openecomp.nodes.inventory.cloud.infrastructure.Pserver + tenant: + type: org.openecomp.capabilities.inventory.Composite + valid_source_types: + - org.openecomp.nodes.inventory.Tenant + requirements: + - cloud_region: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.VfModule: + description: a deployment unit of VNFCs + attributes: + vf_module_id: + description: Unique ID of vf-module. + type: string + annotations: + primary_id: true + index: + - inventory + search: + - inventory + vf_module_name: + description: Name of vf-module + type: string + annotations: + index: + - inventory + search: + - inventory + heat_stack_id: + description: Heat stack id corresponding to this instance. + type: string + annotations: + index: + - inventory + orchestration_status: + description: orchestration status of this vf-module, mastered by MSO + type: string + is_base_vf_module: + description: used to indicate whether or not this object is base vf module + type: boolean + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + persona_model_id: + description: the ASDC model id for this resource or service model. + type: string + annotations: + index: + - inventory + persona_model_version: + description: the ASDC model version for this resource or service model. + type: string + annotations: + index: + - inventory + persona_model_customization_id: + description: captures the id of all the configuration used to customize the resource for the service. + type: string + widget_model_id: + description: the ASDC data dictionary widget model. This maps directly to the A&AI widget. + type: string + annotations: + index: + - inventory + widget_model_version: + description: the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget. + type: string + annotations: + index: + - inventory + contrail_service_instance_fqdn: + description: the Contrail unique ID for a service-instance + type: string + annotations: + index: + - inventory + module_index: + description: the index will track the number of modules of a given type that have been deployed in a VNF, starting with 0, and always choosing the lowest available digit + type: integer + selflink: + description: Path to the controller object. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + requirements: + - generic_vnf: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.network.GenericVnf + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - l3_network: + capability: tosca.capabilities.Node + node: org.openecomp.nodes.inventory.network.L3Network + relationship: tosca.relationships.DependsOn + occurrences: + - 0 + - UNBOUNDED + - vnfc: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.network.Vnfc + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + - volume_group: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.VolumeGroup + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - 1 + - vserver: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.Vserver + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.nodes.inventory.Metadatum: + description: Key/value pairs + attributes: + metaname: + type: string + annotations: + primary_id: true + index: + - inventory + metaval: + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + requirements: + - connector: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.business.Connector + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - image: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.Image + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - service_instance: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.ServiceInstance + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.VigServer: + description: vig-server contains information about a vig server used for IPSec-configuration. Populated by SDN-C from 1607 + attributes: + vig_address_type: + description: indicates whether the VIG is for AVPN or INTERNET + type: string + annotations: + primary_id: true + index: + - inventory + ipaddress_v4_vig: + description: v4 IP of the vig server + type: string + occurrences: + - 0 + - UNBOUNDED + ipaddress_v6_vig: + description: v6 IP of the vig server + type: string + occurrences: + - 0 + - UNBOUNDED + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + requirements: + - ipsec_configuration: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.network.IpsecConfiguration + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion: + description: cloud-region designates an installation of a cloud cluster or region or instantiation. In AT&Ts OPENECOMP cloud, this could be an LCP or DCP. Cloud regions are uniquely identified by a composite key, cloud-owner + cloud-region-id. The format of the cloud-owner is vendor-cloudname and we will use OPENECOMP. + attributes: + cloud_owner: + description: Identifies the vendor and cloud name, e.g., OPENECOMP. First part of composite key should be formatted as vendor-cloudname + type: string + annotations: + primary_id: true + index: + - inventory + cloud_region_id: + description: Identifier used by the vendor for the region. Second part of composite key + type: string + annotations: + primary_id: true + index: + - inventory + cloud_type: + description: Type of the cloud (e.g., openstack) + type: string + annotations: + index: + - inventory + owner_defined_type: + description: Cloud-owner defined type indicator (e.g., dcp, lcp) + type: string + annotations: + index: + - inventory + summary_property: true + cloud_region_version: + description: Software version employed at the site. NOTE - THIS FIELD IS NOT KEPT UP TO DATE. + type: string + identity_url: + description: URL of the keystone identity service + type: string + cloud_zone: + description: Zone where the cloud is homed. NOTE - THIS FIELD IS NOT CORRECTLY POPULATED. + type: string + complex_name: + description: complex name for cloud-region instance. NOTE - THIS FIELD IS NOT CORRECTLY POPULATED. + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + volume_groups: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.VolumeGroup + tenants: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.Tenant + annotations: + max_query_depth: 0 + flavors: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.Flavor + group_assignments: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.GroupAssignment + snapshots: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.Snapshot + images: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.Image + dvs_switches: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.DvsSwitch + oam_networks: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.OamNetwork + availability_zones: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.AvailabilityZone + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + availability_zone: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.AvailabilityZone + dvs_switch: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.DvsSwitch + flavor: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.Flavor + group_assignment: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.GroupAssignment + image: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.Image + oam_network: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.OamNetwork + snapshot: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.Snapshot + tenant: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.Tenant + volume_group: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.VolumeGroup + logical_link: + type: org.openecomp.capabilities.inventory.Existable + valid_source_types: + - org.openecomp.nodes.inventory.network.LogicalLink + pserver: + type: org.openecomp.capabilities.inventory.Existable + valid_source_types: + - org.openecomp.nodes.inventory.cloud.infrastructure.Pserver + requirements: + - complex: + capability: org.openecomp.capabilities.inventory.Existable + node: org.openecomp.nodes.inventory.cloud.infrastructure.Complex + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + - l3_network: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.network.L3Network + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + - zone: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.network.Zone + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + + org.openecomp.nodes.inventory.network.Vpe: + derived_from: org.openecomp.nodes.inventory.Vnf + description: Relationship-list must include related to info for complex. + attributes: + vnf_id: + description: Unique id of VNF. This is unique across the graph. + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + search: + - inventory + vnf_name: + description: Name of VNF. + type: string + annotations: + index: + - inventory + search: + - inventory + summary_property: true + vnf_name2: + description: Alternate name of VNF. + type: string + annotations: + index: + - inventory + search: + - inventory + vnf_type: + description: String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded in service-specific ways and clients should expect changes to occur in the future to this field as OPENECOMP matures. + type: string + annotations: + index: + - inventory + service_id: + description: Unique identifier of service. Does not map strictly to ASDC services. SOON TO BE DEPRECATED + type: string + annotations: + index: + - inventory + regional_resource_zone: + description: Regional way of organizing pservers, source of truth should define values + type: string + annotations: + index: + - inventory + prov_status: + description: Trigger for operational monitoring of this resource by Service Assurance systems. + type: string + annotations: + index: + - inventory + operational_state: + description: Indicator for whether the resource is considered operational + type: string + license_key: + description: OBSOLETE - do not use. See child relationships. + type: string + equipment_role: + description: Client should send valid enumerated value + type: string + orchestration_status: + description: Orchestration status of this VNF, mastered by MSO + type: string + heat_stack_id: + description: Heat stack id corresponding to this instance, managed by MSO + type: string + annotations: + index: + - inventory + mso_catalog_key: + description: Corresponds to the SDN-C catalog id used to configure this VCE + type: string + ipv4_oam_address: + description: Address tail-f uses to configure vpe, also used for troubleshooting and is IP used for traps generated by VPE (v4-loopback0-ip-address). + type: string + ipv4_oam_gateway_address_prefix_length: + description: Prefix length for oam-address + type: integer + ipv4_oam_gateway_address: + description: Gateway address + type: string + v4_loopback0_ip_address: + description: Loopback0 address + type: string + vlan_id_outer: + description: Temporary location for stag to get to VCE + type: long + as_number: + description: as-number of the VPE + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + summary_status: + description: details regarding the vpe operation, PLEASE DISCONTINUE USE OF THIS FIELD. + type: string + encrypted_access_flag: + description: indicates whether vpe access uses SSH + type: boolean + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + l_interfaces: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.LInterface + lag_interfaces: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.LagInterface + licenses: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.License + entitlements: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.Entitlement + capabilities: + entitlement: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.Entitlement + lag_interface: + type: org.openecomp.capabilities.inventory.Bindable + valid_source_types: + - org.openecomp.nodes.inventory.LagInterface + license: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.License + l_interface: + type: org.openecomp.capabilities.inventory.Bindable + valid_source_types: + - org.openecomp.nodes.inventory.LInterface + requirements: + - ctag_pool: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.CtagPool + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + - vserver: + capability: tosca.capabilities.Container + node: org.openecomp.nodes.inventory.Vserver + relationship: tosca.relationships.HostedOn + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.nodes.inventory.Image: + description: Openstack image. + attributes: + image_id: + description: Image id, expected to be unique across cloud region + type: string + annotations: + primary_id: true + index: + - inventory + image_name: + description: Image name + type: string + annotations: + index: + - inventory + summary_property: true + image_architecture: + description: Operating system architecture. + type: string + image_os_distro: + description: The common name of the operating system distribution in lowercase + type: string + image_os_version: + description: The operating system version as specified by the distributor. + type: string + application: + description: The application that the image instantiates. + type: string + annotations: + index: + - inventory + application_vendor: + description: The vendor of the application. + type: string + annotations: + index: + - inventory + application_version: + description: The version of the application. + type: string + annotations: + index: + - inventory + image_selflink: + description: URL to endpoint where AAI can get more details + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + metadata: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.Metadatum + capabilities: + metadatum: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.Metadatum + vserver: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.Vserver + requirements: + - cloud_region: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.network.GenericVnf: + derived_from: org.openecomp.nodes.inventory.Vnf + description: General purpose VNF + attributes: + vnf_id: + description: Unique id of VNF. This is unique across the graph. + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + search: + - inventory + vnf_name: + description: Name of VNF. + type: string + annotations: + index: + - inventory + search: + - inventory + summary_property: true + vnf_name2: + description: Alternate name of VNF. + type: string + annotations: + index: + - inventory + search: + - inventory + vnf_type: + description: String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded in service-specific ways and clients should expect changes to occur in the future to this field as OPENECOMP matures. + type: string + annotations: + index: + - inventory + service_id: + description: Unique identifier of service, does not necessarily map to ASDC service models. SOON TO BE DEPRECATED + type: string + annotations: + index: + - inventory + regional_resource_zone: + description: Regional way of organizing pservers, source of truth should define values + type: string + annotations: + index: + - inventory + prov_status: + description: Trigger for operational monitoring of this resource by Service Assurance systems. + type: string + annotations: + index: + - inventory + operational_state: + description: Indicator for whether the resource is considered operational. Valid values are in-service-path and out-of-service-path. + type: string + license_key: + description: OBSOLETE - do not use + type: string + equipment_role: + description: Client should send valid enumerated value + type: string + orchestration_status: + description: Orchestration status of this VNF, used by MSO. + type: string + heat_stack_id: + description: Heat stack id corresponding to this instance, managed by MSO + type: string + annotations: + index: + - inventory + mso_catalog_key: + description: Corresponds to the SDN-C catalog id used to configure this VCE + type: string + management_option: + description: identifier of managed by OPENECOMP or customer + type: string + ipv4_oam_address: + description: Address tail-f uses to configure generic-vnf, also used for troubleshooting and is IP used for traps generated by generic-vnf. + type: string + ipv4_loopback0_address: + description: v4 Loopback0 address + type: string + nm_lan_v6_address: + description: v6 Loopback address + type: string + management_v6_address: + description: v6 management address + type: string + vcpu: + description: number of vcpus ordered for this instance of VNF, used for VNFs with no vservers/flavors, to be used only by uCPE + type: long + vcpu_units: + description: units associated with vcpu, used for VNFs with no vservers/flavors, to be used only by uCPE + type: string + vmemory: + description: number of GB of memory ordered for this instance of VNF, used for VNFs with no vservers/flavors, to be used only by uCPE + type: long + vmemory_units: + description: units associated with vmemory, used for VNFs with no vservers/flavors, to be used only by uCPE + type: string + vdisk: + description: number of vdisks ordered for this instance of VNF, used for VNFs with no vservers/flavors, to be used only uCPE + type: long + vdisk_units: + description: units associated with vdisk, used for VNFs with no vservers/flavors, to be used only by uCPE + type: string + in_maint: + description: used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs. + type: boolean + annotations: + index: + - inventory + is_closed_loop_disabled: + description: used to indicate whether closed loop function is enabled on this node + type: boolean + annotations: + index: + - inventory + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + summary_status: + description: details regarding the generic-vnf operation, PLEASE DISCONTINUE USE OF THIS FIELD. + type: string + encrypted_access_flag: + description: indicates whether generic-vnf access uses SSH + type: boolean + entitlement_assignment_group_uuid: + description: UUID of the Entitlement group used for licensing VNFs, OBSOLETE - See child relationships. + type: string + entitlement_resource_uuid: + description: UUID of the specific entitlement resource. OBSOLETE - See child relationships. + type: string + license_assignment_group_uuid: + description: UUID of the license assignment group. OBSOLETE - See child relationships. + type: string + license_key_uuid: + description: UUID of the actual license resource. OBSOLETE - See child relationships. + type: string + persona_model_id: + description: the ASDC model id for this resource or service model. + type: string + annotations: + index: + - inventory + persona_model_version: + description: the ASDC model version for this resource or service model. + type: string + annotations: + index: + - inventory + persona_model_customization_id: + description: captures the id of all the configuration used to customize the resource for the service. + type: string + widget_model_id: + description: the ASDC data dictionary widget model. This maps directly to the A&AI widget. + type: string + annotations: + index: + - inventory + widget_model_version: + description: the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget. + type: string + annotations: + index: + - inventory + as_number: + description: as-number of the VNF + type: string + regional_resource_subzone: + description: represents sub zone of the rr plane + type: string + selflink: + description: Path to the controller object. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + l_interfaces: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.LInterface + lag_interfaces: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.LagInterface + vf_modules: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.VfModule + licenses: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.License + entitlements: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.Entitlement + capabilities: + allotted_resource: + type: org.openecomp.capabilities.inventory.Allot + valid_source_types: + - org.openecomp.nodes.inventory.AllottedResource + entitlement: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.Entitlement + lag_interface: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.LagInterface + license: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.License + l_interface: + type: org.openecomp.capabilities.inventory.Bindable + valid_source_types: + - org.openecomp.nodes.inventory.LInterface + vf_module: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.VfModule + logical_link: + type: org.openecomp.capabilities.inventory.Bridgeable + valid_source_types: + - org.openecomp.nodes.inventory.network.LogicalLink + network_profile: + type: org.openecomp.capabilities.inventory.Applicable + valid_source_types: + - org.openecomp.nodes.inventory.cloud.infrastructure.NetworkProfile + service_instance: + type: org.openecomp.capabilities.inventory.Composeable + valid_source_types: + - org.openecomp.nodes.inventory.ServiceInstance + site_pair_set: + type: org.openecomp.capabilities.inventory.Applicable + valid_source_types: + - org.openecomp.nodes.inventory.network.SitePairSet + requirements: + - availability_zone: + capability: org.openecomp.capabilities.inventory.Origin + node: org.openecomp.nodes.inventory.AvailabilityZone + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + - instance_group: + capability: org.openecomp.capabilities.inventory.Composite + node: org.openecomp.nodes.inventory.network.InstanceGroup + relationship: org.openecomp.relationships.inventory.MemberOf + occurrences: + - 0 + - UNBOUNDED + - ipsec_configuration: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.network.IpsecConfiguration + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - 1 + - l3_network: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.network.L3Network + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + - license_key_resource: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.license.management.LicenseKeyResource + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + - pserver: + capability: tosca.capabilities.Container + node: org.openecomp.nodes.inventory.cloud.infrastructure.Pserver + relationship: tosca.relationships.HostedOn + occurrences: + - 0 + - UNBOUNDED + - virtual_data_center: + capability: org.openecomp.capabilities.inventory.Existable + node: org.openecomp.nodes.inventory.cloud.infrastructure.VirtualDataCenter + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - UNBOUNDED + - vnfc: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.network.Vnfc + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + - vnf_image: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.service.design.and.creation.VnfImage + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + - volume_group: + capability: tosca.capabilities.Node + node: org.openecomp.nodes.inventory.VolumeGroup + relationship: tosca.relationships.DependsOn + occurrences: + - 0 + - UNBOUNDED + - vserver: + capability: tosca.capabilities.Container + node: org.openecomp.nodes.inventory.Vserver + relationship: tosca.relationships.HostedOn + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.nodes.inventory.Snapshot: + description: Openstack snapshot + attributes: + snapshot_id: + description: Snapshot id, this is the key UUID assoc associated in glance with the snapshots. + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + snapshot_name: + description: Snapshot name + type: string + annotations: + index: + - inventory + summary_property: true + snapshot_architecture: + description: Operating system architecture + type: string + snapshot_os_distro: + description: The common name of the operating system distribution in lowercase + type: string + snapshot_os_version: + description: The operating system version as specified by the distributor. + type: string + application: + description: The application that the image instantiates. + type: string + annotations: + index: + - inventory + application_vendor: + description: The vendor of the application. + type: string + annotations: + index: + - inventory + application_version: + description: The version of the application. + type: string + annotations: + index: + - inventory + snapshot_selflink: + description: URL to endpoint where AAI can get more details + type: string + prev_snapshot_id: + description: This field contains the UUID of the previous snapshot (if any). + type: string + annotations: + index: + - inventory + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + vserver: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.Vserver + requirements: + - cloud_region: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.network.LogicalLink: + description: Logical links generally connect l-interfaces but are used to express logical connectivity between two points + attributes: + link_name: + description: e.g., evc-name, or vnf-nameA_interface-nameA_vnf-nameZ_interface-nameZ + type: string + annotations: + primary_id: true + index: + - inventory + search: + - inventory + link_type: + description: Type of logical link, e.g., evc + type: string + speed_value: + description: Captures the numeric part of the speed + type: string + speed_units: + description: Captures the units corresponding to the speed + type: string + ip_version: + description: v4, v6, or ds for dual stack (should be openecomp-ip-version) + type: string + routing_protocol: + description: For example, static or BGP + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + persona_model_id: + description: the ASDC model id for this resource or service model. + type: string + annotations: + index: + - inventory + persona_model_version: + description: the ASDC model version for this resource or service model. + type: string + annotations: + index: + - inventory + widget_model_id: + description: the ASDC data dictionary widget model. This maps directly to the A&AI widget. + type: string + annotations: + index: + - inventory + widget_model_version: + description: the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget. + type: string + annotations: + index: + - inventory + operational_status: + description: Indication of operational status of the logical link. + type: string + prov_status: + description: Trigger for operational monitoring of this VNF by BAU Service Assurance systems. + type: string + annotations: + index: + - inventory + link_role: + description: Indication of the network use of the logical link. + type: string + link_name2: + description: Alias or alternate name (CLCI or D1 name). + type: string + link_id: + description: UUID of the logical-link, SDNC generates this. + type: string + annotations: + unique: + - inventory + index: + - inventory + circuit_id: + description: Circuit id + type: string + annotations: + index: + - inventory + purpose: + description: Reason for this entity, role it is playing + type: string + annotations: + index: + - inventory + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + l_interface: + type: org.openecomp.capabilities.inventory.Linkable + valid_source_types: + - org.openecomp.nodes.inventory.LInterface + logical_link: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.network.LogicalLink + p_interface: + type: org.openecomp.capabilities.inventory.Linkable + valid_source_types: + - org.openecomp.nodes.inventory.PInterface + service_instance: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.ServiceInstance + vlan: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.Vlan + requirements: + - cloud_region: + capability: org.openecomp.capabilities.inventory.Existable + node: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - UNBOUNDED + - generic_vnf: + capability: org.openecomp.capabilities.inventory.Bridgeable + node: org.openecomp.nodes.inventory.network.GenericVnf + relationship: org.openecomp.relationships.inventory.BridgedTo + occurrences: + - 0 + - UNBOUNDED + - lag_link: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.network.LagLink + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + - logical_link: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.network.LogicalLink + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + - pnf: + capability: org.openecomp.capabilities.inventory.Bridgeable + node: org.openecomp.nodes.inventory.network.Pnf + relationship: org.openecomp.relationships.inventory.BridgedTo + occurrences: + - 0 + - UNBOUNDED + - pserver: + capability: org.openecomp.capabilities.inventory.Bridgeable + node: org.openecomp.nodes.inventory.cloud.infrastructure.Pserver + relationship: org.openecomp.relationships.inventory.BridgedTo + occurrences: + - 0 + - UNBOUNDED + - virtual_data_center: + capability: org.openecomp.capabilities.inventory.Existable + node: org.openecomp.nodes.inventory.cloud.infrastructure.VirtualDataCenter + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - UNBOUNDED + - vpn_binding: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.network.VpnBinding + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.nodes.inventory.network.NetworkPolicy: + attributes: + network_policy_id: + description: UUID representing unique key to this instance + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + search: + - inventory + network_policy_fqdn: + description: Contrail FQDN for the policy + type: string + annotations: + index: + - inventory + search: + - inventory + summary_property: true + heat_stack_id: + description: ID for the openStack Heat instance + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + l3_network: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.network.L3Network + + org.openecomp.nodes.inventory.TunnelXconnect: + description: Represents the specifics of a tunnel cross connect piece of a resource that gets separately allotted + attributes: + id: + description: Allotted Resource id UUID assigned to this instance. + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + bandwidth_up_wan1: + description: The WAN uplink bandwidth for WAN1 + type: string + bandwidth_down_wan1: + description: The WAN downlink bandwidth for WAN1 + type: string + bandwidth_up_wan2: + description: The WAN uplink bandwidth for WAN2 + type: string + bandwidth_down_wan2: + description: The WAN downlink bandwidth for WAN2 + type: string + resource_version: + description: Concurrency value + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + requirements: + - allotted_resource: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.AllottedResource + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.OamNetwork: + description: 'OAM network, to be deprecated shortly. Do not use for new purposes. ' + attributes: + network_uuid: + description: UUID of the network. Unique across a cloud-region + type: string + annotations: + primary_id: true + index: + - inventory + network_name: + description: Name of the network. + type: string + annotations: + index: + - inventory + summary_property: true + cvlan_tag: + description: cvlan-id + type: long + annotations: + index: + - inventory + ipv4_oam_gateway_address: + description: Used for VNF firewall rule so customer cannot send customer traffic over this oam network + type: string + ipv4_oam_gateway_address_prefix_length: + description: Used for VNF firewall rule so customer cannot send customer traffic over this oam network + type: integer + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + requirements: + - cloud_region: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - complex: + capability: org.openecomp.capabilities.inventory.Applicable + node: org.openecomp.nodes.inventory.cloud.infrastructure.Complex + relationship: org.openecomp.relationships.inventory.AppliesTo + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.nodes.inventory.network.SitePairSet: + description: Set of instances for probes used to measure service level agreements + attributes: + site_pair_set_id: + description: Unique id of site pair set. + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + routing_instances: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.RoutingInstance + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + routing_instance: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.RoutingInstance + requirements: + - generic_vnf: + capability: org.openecomp.capabilities.inventory.Applicable + node: org.openecomp.nodes.inventory.network.GenericVnf + relationship: org.openecomp.relationships.inventory.AppliesTo + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.nodes.inventory.CvlanTagEntry: + attributes: + cvlan_tag: + description: See mis-na-virtualization-platform.yang + type: long + annotations: + primary_id: true + index: + - inventory + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + service_instance: + type: org.openecomp.capabilities.inventory.Composeable + valid_source_types: + - org.openecomp.nodes.inventory.ServiceInstance + requirements: + - port_group: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.PortGroup + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.ClassOfService: + attributes: + cos: + description: unique identifier of probe + type: string + annotations: + primary_id: true + index: + - inventory + probe_id: + description: identifier of probe + type: string + probe_type: + description: type of probe + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + requirements: + - site_pair: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.SitePair + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.CtagPool: + description: A collection of C tags (vlan tags) grouped for a specific purpose. + attributes: + target_pe: + description: The Target provider edge router + type: string + annotations: + primary_id: true + availability_zone_name: + description: Name of the availability zone + type: string + annotations: + primary_id: true + index: + - inventory + ctag_pool_purpose: + description: Describes what the intended purpose of this pool is. + type: string + ctag_values: + description: Comma separated list of ctags + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + vpe: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.network.Vpe + vpls_pe: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.network.VplsPe + requirements: + - complex: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.cloud.infrastructure.Complex + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - availability_zone: + capability: org.openecomp.capabilities.inventory.Applicable + node: org.openecomp.nodes.inventory.AvailabilityZone + relationship: org.openecomp.relationships.inventory.AppliesTo + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.nodes.inventory.network.MulticastConfiguration: + attributes: + multicast_configuration_id: + description: Unique id of multicast configuration. + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + multicast_protocol: + description: protocol of multicast configuration + type: string + rp_type: + description: rp type of multicast configuration + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + vlan: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.Vlan + + org.openecomp.nodes.inventory.L3InterfaceIpv4AddressList: + description: IPv4 Address Range + attributes: + l3_interface_ipv4_address: + description: IP address + type: string + annotations: + primary_id: true + index: + - inventory + l3_interface_ipv4_prefix_length: + description: Prefix length, 32 for single address + type: long + vlan_id_inner: + description: Inner VLAN tag + type: long + annotations: + index: + - inventory + vlan_id_outer: + description: Outer VLAN tag + type: long + is_floating: + description: Indicator of fixed or floating address + type: boolean + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + neutron_network_id: + description: Neutron network id of the interface that address belongs to + type: string + annotations: + index: + - inventory + neutron_subnet_id: + description: Neutron id of subnet that address belongs to + type: string + annotations: + index: + - inventory + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + requirements: + - l3_network: + capability: org.openecomp.capabilities.inventory.Composite + node: org.openecomp.nodes.inventory.network.L3Network + relationship: org.openecomp.relationships.inventory.MemberOf.network + occurrences: + - 0 + - UNBOUNDED + - subnet: + capability: org.openecomp.capabilities.inventory.Composite + node: org.openecomp.nodes.inventory.Subnet + relationship: org.openecomp.relationships.inventory.MemberOf.network + occurrences: + - 0 + - UNBOUNDED + - l_interface: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.LInterface + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - vlan: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.Vlan + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.network.VpnBinding: + description: VPN binding + attributes: + vpn_id: + description: VPN ID, globally unique within A&AI + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + search: + - inventory + vpn_name: + description: VPN Name + type: string + annotations: + index: + - inventory + search: + - inventory + summary_property: true + global_route_target: + description: Number used to identify a VPN, globally unique in the network + type: string + annotations: + index: + - inventory + vpn_platform: + description: the platform associated with the VPN example AVPN, Mobility + type: string + vpn_type: + description: Type of the vpn, should be taken from enumerated/valid values + type: string + annotations: + index: + - inventory + summary_property: true + route_distinguisher: + description: Used to distinguish the distinct VPN routes of separate customers who connect to the provider in an MPLS network. + type: string + route_target_role: + description: Role assigned to this route target + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + description: l3-networks relate to vpn-bindings + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + l3_network: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.network.L3Network + logical_link: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.network.LogicalLink + + org.openecomp.nodes.inventory.Vnf: + description: Abstract vnf class + attributes: + vnf_id: + description: Unique id of VNF. This is unique across the graph. + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + + org.openecomp.nodes.inventory.Tenant: + description: Openstack tenant + attributes: + tenant_id: + description: Unique id relative to the cloud-region. + type: string + annotations: + primary_id: true + index: + - inventory + search: + - inventory + tenant_name: + description: Readable name of tenant + type: string + annotations: + index: + - inventory + search: + - inventory + summary_property: true + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + vservers: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.Vserver + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + service_subscription: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.ServiceSubscription + vserver: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.Vserver + requirements: + - cloud_region: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - group_assignment: + capability: org.openecomp.capabilities.inventory.Composite + node: org.openecomp.nodes.inventory.GroupAssignment + relationship: org.openecomp.relationships.inventory.MemberOf + occurrences: + - 0 + - UNBOUNDED + - l3_network: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.network.L3Network + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + - volume_group: + capability: tosca.capabilities.Node + node: org.openecomp.nodes.inventory.VolumeGroup + relationship: tosca.relationships.DependsOn + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.nodes.inventory.business.Customer: + description: customer identifiers to provide linkage back to BSS information. + attributes: + global_customer_id: + description: Global customer id used across OPENECOMP to uniquely identify customer. + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + search: + - inventory + subscriber_name: + description: Subscriber name, an alternate way to retrieve a customer. + type: string + annotations: + index: + - inventory + search: + - inventory + summary_property: true + subscriber_type: + description: Subscriber type, a way to provide VID with only the INFRA customers. + type: string + annotations: + index: + - inventory + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + service_subscriptions: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.ServiceSubscription + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + service_subscription: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.ServiceSubscription + + org.openecomp.nodes.inventory.AllottedResource: + description: Represents a slice or partial piece of a resource that gets separately allotted + attributes: + id: + description: Allotted Resource id UUID assigned to this instance. + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + description: + description: The descriptive information assigned to this allotted resource instance + type: string + annotations: + summary_property: true + selflink: + description: Link back to more information in the controller + type: string + persona_model_id: + description: the ASDC model id for this resource or service model. + type: string + annotations: + index: + - inventory + persona_model_version: + description: the ASDC model version for this resource or service model. + type: string + annotations: + index: + - inventory + resource_version: + description: Concurrency value + type: string + tunnel_xconnects: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.TunnelXconnect + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + tunnel_xconnect: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.TunnelXconnect + requirements: + - generic_vnf: + capability: org.openecomp.capabilities.inventory.Allot + node: org.openecomp.nodes.inventory.network.GenericVnf + relationship: org.openecomp.relationships.inventory.PartOf + occurrences: + - 0 + - UNBOUNDED + - instance_group: + capability: org.openecomp.capabilities.inventory.Composite + node: org.openecomp.nodes.inventory.network.InstanceGroup + relationship: org.openecomp.relationships.inventory.MemberOf + occurrences: + - 0 + - UNBOUNDED + - l3_network: + capability: org.openecomp.capabilities.inventory.Allot + node: org.openecomp.nodes.inventory.network.L3Network + relationship: org.openecomp.relationships.inventory.PartOf + occurrences: + - 0 + - UNBOUNDED + - vlan: + capability: org.openecomp.capabilities.inventory.Allot + node: org.openecomp.nodes.inventory.Vlan + relationship: org.openecomp.relationships.inventory.PartOf + occurrences: + - 0 + - UNBOUNDED + - service_instance: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.ServiceInstance + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.cloud.infrastructure.Complex: + description: Collection of physical locations that can house cloud-regions. + attributes: + physical_location_id: + description: Unique identifier for physical location, e.g., CLLI + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + search: + - inventory + data_center_code: + description: Data center code which can be an alternate way to identify a complex + type: string + annotations: + index: + - inventory + search: + - inventory + complex_name: + description: Gamma complex name for LCP instance. + type: string + annotations: + index: + - inventory + search: + - inventory + identity_url: + description: URL of the keystone identity service + type: string + annotations: + index: + - inventory + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + physical_location_type: + description: Type, e.g., central office, data center. + type: string + street1: + type: string + annotations: + search: + - inventory + street2: + type: string + annotations: + search: + - inventory + city: + type: string + state: + type: string + postal_code: + type: string + annotations: + search: + - inventory + country: + type: string + region: + type: string + latitude: + type: string + longitude: + type: string + elevation: + type: string + lata: + type: string + ctag_pools: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.CtagPool + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + availability_zone: + type: org.openecomp.capabilities.inventory.Existable + valid_source_types: + - org.openecomp.nodes.inventory.AvailabilityZone + cloud_region: + type: org.openecomp.capabilities.inventory.Existable + valid_source_types: + - org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion + ctag_pool: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.CtagPool + oam_network: + type: org.openecomp.capabilities.inventory.Applicable + valid_source_types: + - org.openecomp.nodes.inventory.OamNetwork + pnf: + type: org.openecomp.capabilities.inventory.Locates + valid_source_types: + - org.openecomp.nodes.inventory.network.Pnf + pserver: + type: org.openecomp.capabilities.inventory.Locates + valid_source_types: + - org.openecomp.nodes.inventory.cloud.infrastructure.Pserver + volume_group: + type: org.openecomp.capabilities.inventory.Existable + valid_source_types: + - org.openecomp.nodes.inventory.VolumeGroup + vpls_pe: + type: org.openecomp.capabilities.inventory.Locates + valid_source_types: + - org.openecomp.nodes.inventory.network.VplsPe + zone: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.network.Zone + requirements: + - l3_network: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.network.L3Network + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.nodes.inventory.CtagAssignment: + attributes: + vlan_id_inner: + description: id. + type: long + annotations: + primary_id: true + index: + - inventory + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + service_instance: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.ServiceInstance + requirements: + - l3_network: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.network.L3Network + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.RoutingInstance: + attributes: + routing_instance_id: + description: Unique id of routing instance + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + rpm_owner: + description: rpm owner + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + site_pairs: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.SitePair + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + site_pair: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.SitePair + requirements: + - site_pair_set: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.network.SitePairSet + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.cloud.infrastructure.NetworkProfile: + description: Network profile populated by SDN-GP for SNMP + attributes: + nm_profile_name: + description: Unique name of network profile. + type: string + annotations: + primary_id: true + index: + - inventory + community_string: + description: Encrypted SNMP community string + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + requirements: + - generic_vnf: + capability: org.openecomp.capabilities.inventory.Applicable + node: org.openecomp.nodes.inventory.network.GenericVnf + relationship: org.openecomp.relationships.inventory.AppliesTo + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.nodes.inventory.network.Vnfc: + attributes: + vnfc_name: + description: Unique ID of vnfc. + type: string + annotations: + primary_id: true + index: + - inventory + search: + - inventory + vnfc_function_code: + description: function code + type: string + annotations: + index: + - inventory + vnfc_type: + description: type + type: string + annotations: + index: + - inventory + prov_status: + description: prov status of this vnfc + type: string + annotations: + index: + - inventory + orchestration_status: + description: Orchestration status of this VNF, mastered by APP-C + type: string + ipaddress_v4_oam_vip: + description: Oam V4 vip address of this vnfc + type: string + annotations: + index: + - inventory + in_maint: + description: used to indicate whether or not this object is in maintenance mode (maintenance mode = true) + type: boolean + annotations: + index: + - inventory + is_closed_loop_disabled: + description: used to indicate whether closed loop function is enabled on this node + type: boolean + annotations: + index: + - inventory + group_notation: + description: Group notation of VNFC + type: string + annotations: + index: + - inventory + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + generic_vnf: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.network.GenericVnf + vf_module: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.VfModule + requirements: + - vserver: + capability: tosca.capabilities.Container + node: org.openecomp.nodes.inventory.Vserver + relationship: tosca.relationships.HostedOn + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.nodes.inventory.network.Vce: + derived_from: org.openecomp.nodes.inventory.Vnf + description: Virtual Customer Edge Router, used specifically for Gamma. This object is deprecated. + attributes: + vnf_id: + description: Unique id of VNF. This is unique across the graph. + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + search: + - inventory + vnf_name: + description: Name of VNF. + type: string + annotations: + index: + - inventory + search: + - inventory + summary_property: true + vnf_name2: + description: Alternate name of VNF. + type: string + annotations: + index: + - inventory + search: + - inventory + vnf_type: + description: String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded in service-specific ways and clients should expect changes to occur in the future to this field as OPENECOMP matures. + type: string + annotations: + index: + - inventory + service_id: + description: Unique identifier of service, does not strictly map to ASDC services, SOON TO BE DEPRECATED. + type: string + annotations: + index: + - inventory + regional_resource_zone: + description: Regional way of organizing pservers, source of truth should define values + type: string + annotations: + index: + - inventory + prov_status: + description: Trigger for operational monitoring of this resource by Service Assurance systems. + type: string + annotations: + index: + - inventory + operational_state: + description: Indicator for whether the resource is considered operational + type: string + license_key: + description: OBSOLETE - do not use + type: string + equipment_role: + description: Network role being played by this VNF + type: string + orchestration_status: + description: Orchestration status of this VNF, mastered by MSO + type: string + heat_stack_id: + description: Heat stack id corresponding to this instance, managed by MSO + type: string + annotations: + index: + - inventory + mso_catalog_key: + description: Corresponds to the SDN-C catalog id used to configure this VCE + type: string + vpe_id: + description: Unique ID of VPE connected to this VCE. + type: string + annotations: + index: + - inventory + v6_vce_wan_address: + description: Valid v6 IP address for the WAN Link on this router. Implied length of /64. + type: string + ipv4_oam_address: + description: Address tail-f uses to configure vce, also used for troubleshooting and is IP used for traps generated by VCE. + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + ipv4_loopback0_address: + description: Loopback0 address + type: string + entitlement_resource_uuid: + description: OBSOLETE - see child relationships + type: string + port_groups: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.PortGroup + licenses: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.License + entitlements: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.Entitlement + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + service_instance: + type: org.openecomp.capabilities.inventory.Composeable + valid_source_types: + - org.openecomp.nodes.inventory.ServiceInstance + entitlement: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.Entitlement + license: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.License + port_group: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.PortGroup + requirements: + - availability_zone: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.AvailabilityZone + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + - vserver: + capability: tosca.capabilities.Container + node: org.openecomp.nodes.inventory.Vserver + relationship: tosca.relationships.HostedOn + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.nodes.inventory.ServiceSubscription: + description: Object that group service instances. + attributes: + service_type: + description: Value defined by orchestration to identify this service across OPENECOMP. + type: string + annotations: + primary_id: true + index: + - inventory + temp_ub_sub_account_id: + description: This property will be deleted from A&AI in the near future. Only stop gap solution. + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + service_instances: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.ServiceInstance + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + service_instance: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.ServiceInstance + requirements: + - customer: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.business.Customer + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - tenant: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.Tenant + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.nodes.inventory.PortGroup: + description: Used to capture the network interfaces of this VCE + attributes: + interface_id: + description: Unique ID of the interface + type: string + annotations: + primary_id: true + index: + - inventory + neutron_network_id: + description: Neutron network id of this Interface + type: string + neutron_network_name: + description: Neutron network name of this Interface + type: string + interface_role: + description: Role assigned to this Interface, should use values as defined in OPENECOMP Yang models. + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + port_group_id: + description: Unique ID for port group in vmware + type: string + annotations: + index: + - inventory + port_group_name: + description: Likely to duplicate value of neutron network name + type: string + annotations: + summary_property: true + switch_name: + description: DVS or standard switch name (should be non-null for port groups associated with DVS) + type: string + annotations: + index: + - inventory + orchestration_status: + description: Orchestration status of this VNF, mastered by MSO + type: string + heat_stack_id: + description: Heat stack id corresponding to this instance, managed by MSO + type: string + annotations: + index: + - inventory + mso_catalog_key: + description: Corresponds to the SDN-C catalog id used to configure this VCE + type: string + cvlan_tags: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.CvlanTagEntry + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + cvlan_tag: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.CvlanTagEntry + requirements: + - vce: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.network.Vce + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.business.Connector: + description: Collection of resource instances used to connect a variety of disparate inventory widgets + attributes: + resource_instance_id: + description: Unique id of resource instance. + type: string + annotations: + primary_id: true + index: + - inventory + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + persona_model_id: + description: the ASDC model id for this resource or service model. + type: string + annotations: + index: + - inventory + persona_model_version: + description: the ASDC model version for this resource or service model. + type: string + annotations: + index: + - inventory + widget_model_id: + description: the ASDC data dictionary widget model. This maps directly to the A&AI widget. + type: string + annotations: + index: + - inventory + widget_model_version: + description: the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget. + type: string + annotations: + index: + - inventory + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + metadata: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.Metadatum + capabilities: + metadatum: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.Metadatum + service_instance: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.ServiceInstance + requirements: + - virtual_data_center: + capability: org.openecomp.capabilities.inventory.Existable + node: org.openecomp.nodes.inventory.cloud.infrastructure.VirtualDataCenter + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.nodes.inventory.network.PhysicalLink: + description: Collection of physical connections, typically between p-interfaces + attributes: + link_name: + description: e.g., hostnameA_p-connection_nameA_hostnameZ+p_connection-nameZ + type: string + annotations: + primary_id: true + index: + - inventory + search: + - inventory + speed_value: + description: Captures the numeric part of the speed + type: string + speed_units: + description: Captures the units corresponding to the speed + type: string + circuit_id: + description: Circuit it + type: string + annotations: + index: + - inventory + search: + - inventory + dual_mode: + description: Dual access mode (e.g., primary, secondary + type: string + management_option: + description: To provide information on who manages this circuit. A&AI or 3rd party transport provider + type: string + service_provider_name: + description: Name of the service Provider on this link. + type: string + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + p_interface: + type: org.openecomp.capabilities.inventory.Linkable + valid_source_types: + - org.openecomp.nodes.inventory.PInterface + + org.openecomp.nodes.inventory.license.management.LicenseKeyResource: + description: 'OBSOLETE OBJECT: do not use' + attributes: + att_uuid: + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + assignment_type: + type: string + assignment_status: + type: string + assignment_group_uuid: + type: string + annotations: + index: + - inventory + assignment_date: + type: string + name: + type: string + annotations: + index: + - inventory + summary_property: true + model_uuid: + type: string + model_version: + type: string + license_key: + type: string + license_key_file_url: + type: string + supplier_release_list: + type: string + occurrences: + - 0 + - UNBOUNDED + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + generic_vnf: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.network.GenericVnf + + org.openecomp.nodes.inventory.L3InterfaceIpv6AddressList: + description: IPv6 Address Range + attributes: + l3_interface_ipv6_address: + description: IP address + type: string + annotations: + primary_id: true + index: + - inventory + l3_interface_ipv6_prefix_length: + description: Prefix length, 128 for single address + type: long + vlan_id_inner: + description: Inner VLAN tag + type: long + annotations: + index: + - inventory + vlan_id_outer: + description: Outer VLAN tag + type: long + is_floating: + description: Indicator of fixed or floating address + type: boolean + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + neutron_network_id: + description: Neutron network id of the interface that address belongs to + type: string + annotations: + index: + - inventory + neutron_subnet_id: + description: Neutron id of subnet that address belongs to + type: string + annotations: + index: + - inventory + relationship_list: + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + requirements: + - l3_network: + capability: org.openecomp.capabilities.inventory.Composite + node: org.openecomp.nodes.inventory.network.L3Network + relationship: org.openecomp.relationships.inventory.MemberOf.network + occurrences: + - 0 + - UNBOUNDED + - subnet: + capability: org.openecomp.capabilities.inventory.Composite + node: org.openecomp.nodes.inventory.Subnet + relationship: org.openecomp.relationships.inventory.MemberOf.network + occurrences: + - 0 + - UNBOUNDED + - l_interface: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.LInterface + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + - vlan: + capability: org.openecomp.capabilities.inventory.Belonging + node: org.openecomp.nodes.inventory.Vlan + relationship: org.openecomp.relationships.inventory.BelongsTo + occurrences: + - 0 + - 1 + annotations: + is_child: true + + org.openecomp.nodes.inventory.network.L3Network: + description: Generic network definition + attributes: + network_id: + description: Network ID, should be uuid. Unique across A&AI. + type: string + annotations: + primary_id: true + unique: + - inventory + index: + - inventory + search: + - inventory + network_name: + description: Name of the network, governed by some naming convention.. + type: string + annotations: + index: + - inventory + search: + - inventory + summary_property: true + network_type: + description: Type of the network - who defines these values? + type: string + network_role: + description: Role the network plans - who defines these values? + type: string + annotations: + index: + - inventory + network_technology: + description: Network technology - who defines these values? + type: string + neutron_network_id: + description: Neutron network id of this Interface + type: string + is_bound_to_vpn: + description: Set to true if bound to VPN + type: boolean + service_id: + description: Unique identifier of service from ASDC. Does not strictly map to ASDC services. SOON TO BE DEPRECATED + type: string + annotations: + index: + - inventory + network_role_instance: + description: network role instance + type: long + resource_version: + description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. + type: string + orchestration_status: + description: Orchestration status of this VNF, mastered by MSO + type: string + heat_stack_id: + description: Heat stack id corresponding to this instance, managed by MSO + type: string + annotations: + index: + - inventory + mso_catalog_key: + description: Corresponds to the SDN-C catalog id used to configure this VCE + type: string + contrail_network_fqdn: + description: Contrail FQDN for the network + type: string + annotations: + index: + - inventory + persona_model_id: + description: the ASDC model id for this resource or service model. + type: string + annotations: + index: + - inventory + persona_model_version: + description: the ASDC model version for this resource or service model. + type: string + annotations: + index: + - inventory + persona_model_customization_id: + description: captures the id of all the configuration used to customize the resource for the service. + type: string + widget_model_id: + description: the ASDC data dictionary widget model. This maps directly to the A&AI widget. + type: string + annotations: + index: + - inventory + widget_model_version: + description: the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget. + type: string + annotations: + index: + - inventory + physical_network_name: + description: Name associated with the physical network. + type: string + is_provider_network: + description: boolean indicatating whether or not network is a provider network. + type: boolean + is_shared_network: + description: boolean indicatating whether or not network is a shared network. + type: boolean + is_external_network: + description: boolean indicatating whether or not network is an external network. + type: boolean + selflink: + description: Path to the controller object. + type: string + subnets: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.Subnet + ctag_assignments: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.CtagAssignment + segmentation_assignments: + type: list + entry_schema: + type: org.openecomp.nodes.inventory.SegmentationAssignment + relationship_list: + description: Relates to tenant (or is it a child of tenant), complex, service, vpn-binding + type: list + entry_schema: + type: org.openecomp.datatypes.inventory.Relationship + capabilities: + allotted_resource: + type: org.openecomp.capabilities.inventory.Allot + valid_source_types: + - org.openecomp.nodes.inventory.AllottedResource + cloud_region: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion + complex: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.cloud.infrastructure.Complex + generic_vnf: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.network.GenericVnf + l3_interface_ipv4_address_list: + type: org.openecomp.capabilities.inventory.Composite + valid_source_types: + - org.openecomp.nodes.inventory.L3InterfaceIpv4AddressList + l3_interface_ipv6_address_list: + type: org.openecomp.capabilities.inventory.Composite + valid_source_types: + - org.openecomp.nodes.inventory.L3InterfaceIpv6AddressList + ctag_assignment: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.CtagAssignment + segmentation_assignment: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.SegmentationAssignment + subnet: + type: org.openecomp.capabilities.inventory.Belonging + valid_source_types: + - org.openecomp.nodes.inventory.Subnet + service_instance: + type: org.openecomp.capabilities.inventory.Composeable + valid_source_types: + - org.openecomp.nodes.inventory.ServiceInstance + tenant: + type: org.openecomp.capabilities.inventory.Multiuse + valid_source_types: + - org.openecomp.nodes.inventory.Tenant + vf_module: + type: org.openecomp.capabilities.inventory.Node + valid_source_types: + - org.openecomp.nodes.inventory.VfModule + requirements: + - network_policy: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.network.NetworkPolicy + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + - route_table_reference: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.network.RouteTableReference + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED + - vpn_binding: + capability: org.openecomp.capabilities.inventory.Multiuse + node: org.openecomp.nodes.inventory.network.VpnBinding + relationship: org.openecomp.relationships.inventory.Uses + occurrences: + - 0 + - UNBOUNDED diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/relationships.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/relationships.yml new file mode 100644 index 0000000000..cf86be62a6 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/relationships.yml @@ -0,0 +1,57 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: openecomp-inventory/relationships.yml + version: '1.0' + +imports: +- inventory_index: + file: _index.yml + +relationship_types: + + org.openecomp.relationships.inventory.Uses: + derived_from: tosca.relationships.Root + description: Auto-generated from OXM. + + org.openecomp.relationships.inventory.MemberOf.network: + derived_from: tosca.relationships.Root + description: Auto-generated from OXM. + + org.openecomp.relationships.inventory.PartOf: + derived_from: tosca.relationships.Root + description: Auto-generated from OXM. + + org.openecomp.relationships.inventory.AppliesTo: + derived_from: tosca.relationships.Root + description: Auto-generated from OXM. + + org.openecomp.relationships.inventory.BridgedTo: + derived_from: tosca.relationships.Root + description: Auto-generated from OXM. + + org.openecomp.relationships.inventory.ComposedOf: + derived_from: tosca.relationships.Root + description: Auto-generated from OXM. + + org.openecomp.relationships.inventory.MemberOf: + derived_from: tosca.relationships.Root + description: Auto-generated from OXM. + + org.openecomp.relationships.inventory.BelongsTo: + derived_from: tosca.relationships.Root + description: Auto-generated from OXM. diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/_index.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/_index.yml new file mode 100644 index 0000000000..02c4f76f62 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/_index.yml @@ -0,0 +1,37 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: openecomp/_index.yml + version: '1.0' + + +imports: +- tosca_index: + file: ../tosca/_index.yml +- capabilities: + file: capabilities.yml +- nodes: + file: nodes.yml +- relationships: + file: relationships.yml +- groups: + file: groups.yml +- data: + file: data.yml +- annotations: + file: annotations.yml + diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/annotations.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/annotations.yml new file mode 100644 index 0000000000..962522ca90 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/annotations.yml @@ -0,0 +1,42 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: openecomp/annotations.yml + version: '1.0' + +imports: +- openecomp_index: + file: _index.yml + +annotation_types: + + org.openecomp.annotations.Source: + description: Indicates the origin source of an input + properties: + source_type: + type: string + required: true + vf_module_label: + description: List of HEAT file name this input was originated from + type: list + required: true + entry_schema: + type: string + param_name: + type: string + required: true + description: Source parameter name \ No newline at end of file diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/capabilities.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/capabilities.yml new file mode 100644 index 0000000000..12cecb94b0 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/capabilities.yml @@ -0,0 +1,119 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: openecomp/capabilities.yml + version: '1.0' + +imports: +- openecomp_index: + file: _index.yml + +capability_types: + + org.openecomp.capabilities.attachment.DeploymentFlavor: + derived_from: tosca.capabilities.Attachment + description: The Node capability indicates the base capabilities of a TOSCA Node Type. + properties: + DeploymentFlavor: + type: map + description: Deployment flavors instance + required: true + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.DeploymentFlavor + + org.openecomp.capabilities.metric.SnmpTrap: + derived_from: org.openecomp.capabilities.Metric + description: A node type that includes the Metric capability indicates that it can be monitored using snmp trap. + properties: + oid: + description: Object Id of the metric + type: string + status: SUPPORTED + required: true + + org.openecomp.capabilities.AllottedResource: + derived_from: tosca.capabilities.Root + + org.openecomp.capabilities.metric.SnmpPolling: + derived_from: org.openecomp.capabilities.Metric + description: A node type that includes the Metric capability indicates that it can be monitored using snmp polling. + properties: + oid: + description: Object Id of the metric + type: string + status: SUPPORTED + required: true + + org.openecomp.capabilities.metric.Ceilometer: + derived_from: org.openecomp.capabilities.Metric + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + name: + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + type: string + status: SUPPORTED + required: true + + org.openecomp.capabilities.Metric: + derived_from: tosca.capabilities.Endpoint + description: A node type that includes the Metric capability indicates that it can be monitored. + properties: + unit: + description: Unit of the metric value + type: string + status: SUPPORTED + required: true + description: + description: Description of the metric + type: string + status: SUPPORTED + required: false + type: + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + type: string + status: SUPPORTED + required: true + category: + description: Category of the metric, for an example, compute, disk, network, storage and etc. + type: string + status: SUPPORTED + required: false + attributes: + value: + description: Runtime monitored value + type: string + status: SUPPORTED + + org.openecomp.capabilities.Forwarder: + derived_from: tosca.capabilities.Root + # New capability types for Port Mirroring + org.openecomp.capabilities.PortMirroring: + derived_from: tosca.capabilities.Root + properties: + connection_point: + type: org.openecomp.datatypes.PortMirroringConnectionPointDescription + required: true + + org.openecomp.capabilities.VLANAssignment: + derived_from: tosca.capabilities.Root + description: ability to expose routing information of the internal network + properties: + vfc_instance_group_reference: + type: string + description: ability to recognize capability per vfc instance group on vnf instance + required: true \ No newline at end of file diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/data.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/data.yml new file mode 100644 index 0000000000..47d424f407 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/data.yml @@ -0,0 +1,601 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: openecomp/data.yml + version: '1.0' + +imports: +- openecomp_index: + file: _index.yml + +data_types: + + org.openecomp.datatypes.network.ProviderNetwork: + derived_from: org.openecomp.datatypes.Root + properties: + is_provider_network: + description: \"true\" indicates that this a Neutron provider type of network + type: boolean + required: true + physical_network_name: + description: | + Identifies the NUMA processor cluster to which this physical network interface belongs. NUMA instance correlates to the first digit of the Physical Network Name suffix (e.g. \"01\" = NUMA 0, \"11\" = NUMA 1) + type: string + required: false + constraints: + - valid_values: + - Physnet41 + - Physnet42 + - Physnet43 + - Physnet44 + - Physnet21 + - Physnet22 + numa: + description: | + PNIC instance within the NUMA processor cluster PNIC Instance correlates to the second digit of the Physical Network Name suffix (e.g. "01" = PNIC 1, "02" = "PNIC 2) + type: string + required: false + constraints: + - valid_values: + - NUMA 0 + - NUMA 1 + pnic_instance: + description: PNIC instance within the NUMA processor cluster + type: integer + required: false + + org.openecomp.datatypes.DeploymentFlavor: + derived_from: tosca.datatypes.Root + description: Deployment Flavor + properties: + name: + description: Deployment Flavor Name + type: string + status: SUPPORTED + required: true + license_feature_group: + description: license feature group associated with Deployment Flavor + type: org.openecomp.datatypes.FeatureGroup + status: SUPPORTED + required: true + compute_size: + description: Size of VM + type: org.openecomp.datatypes.ComputeFlavor + status: SUPPORTED + required: true + + org.openecomp.datatypes.FeatureGroup: + derived_from: tosca.datatypes.Root + description: License Feature Group + properties: + license_feature_group_ref: + description: Deployment Flavor Name + type: string + status: SUPPORTED + required: true + part_number: + description: refrence part number related to feature group + type: string + status: SUPPORTED + required: true + + org.openecomp.datatypes.EcompHoming: + derived_from: org.openecomp.datatypes.Root + properties: + ecomp_selected_instance_node_target: + description: | + "true" indicates that the target deployment node for this instance will be auto-selected by OPENECOMP "false" indicates operator-supplied instance target deployment node required (e.g. VID will present a prompt to operator and collect the operator-selected target node for the deployment of this Network instance). + type: boolean + default: false + required: true + homing_policy: + description: Referenc to a service level homing policy that OPENECOMP will use for instance deployment target node + type: string + required: false + instance_node_target: + description: Instance target deployment node + type: string + required: false + + org.openecomp.datatypes.AssignmentRequirements: + derived_from: org.openecomp.datatypes.Root + properties: + is_required: + description: | + "true" indicates that assignment is required + type: boolean + default: false + required: true + count: + description: number of assignments required + type: integer + required: false + + org.openecomp.resource.abstract.nodes.PNF: + derived_from: tosca.nodes.Root + properties: + nf_function: + type: string + nf_role: + type: string + nf_type: + type: string + + + org.openecomp.datatypes.network.IpRequirements: + derived_from: org.openecomp.datatypes.Root + properties: + ip_version: + type: integer + required: true + constraints: + - valid_values: + - 4 + - 6 + ip_count: + description: identifies the number of ip address to assign to the CP from the plan + type: integer + required: false + floating_ip_count: + type: integer + required: false + subnet_role: + type: string + required: false + assingment_method: + type: string + required: true + constraints: + - valid_values: + - fixed + - dhcp + dhcp_enabled: + type: boolean + required: false + ip_count_required: + description: identifies the number of ip address to assign to the CP from the plan + type: org.openecomp.datatypes.AssignmentRequirements + required: false + floating_ip_count_required: + type: org.openecomp.datatypes.AssignmentRequirements + required: false + ip_address_plan_name: + type: string + required: false + vrf_name: + type: string + required: false + + org.openecomp.datatypes.network.PhysicalNetwork: + derived_from: org.openecomp.datatypes.Root + properties: + provider_network: + description: true indicates that this a Neutron provider type of network + type: boolean + required: true + physical_network_name: + description: | + Identifies the NUMA processor cluster to which this physical network interface belongs. NUMA instance correlates to the first digit of the Physical Network Name suffix (e.g. "01" = NUMA 0, "11" = NUMA 1) + type: string + required: false + constraints: + - valid_values: + - Physnet-SRIOV-1 + - Physnet-SRIOV-2 + - Physnet-SRIOV-11 + - Physnet-SRIOV-12 + numa: + description: | + PNIC instance within the NUMA processor cluster PNIC Instance correlates to the second digit of the Physical Network Name suffix (e.g. "01" = PNIC 1, "02" = "PNIC 2) + type: string + required: false + constraints: + - valid_values: + - NUMA 0 + - NUMA 1 + pnic_instance: + description: PNIC instance within the NUMA processor cluster + type: integer + required: false + + org.openecomp.datatypes.network.VlanRequirements: + derived_from: org.openecomp.datatypes.Root + properties: + vlan_range_plan: + description: reference to a vlan range plan + type: string + required: true + vlan_type: + description: identifies the vlan type (e.g., c-tag) + type: string + required: true + constraints: + - valid_values: + - c-tag + - s-tag + vlan_count: + description: identifies the number of vlan tags to assign to the CP from the plan + type: integer + required: true + + org.openecomp.datatypes.ComputeFlavor: + derived_from: tosca.datatypes.Root + description: Compute Flavor (Size) + properties: + name: + description: Compute Flavor Name + type: string + status: SUPPORTED + required: true + num_cpus: + description: Number of cpu + type: integer + status: SUPPORTED + required: true + disk_size: + description: Disk size + type: scalar-unit.size + status: SUPPORTED + required: true + mem_size: + description: Memory size + type: scalar-unit.size + status: SUPPORTED + required: true + + org.openecomp.datatypes.network.MacAssignments: + derived_from: org.openecomp.datatypes.Root + properties: + mac_range_plan: + description: reference to a MAC address range plan + type: string + required: true + mac_count: + description: identifies the number of MAC addresses to assign to the CP from the plan + type: integer + required: false + mac_count_required: + description: identifies the number of MAC addresses to assign to the CP from the plan + type: org.openecomp.datatypes.AssignmentRequirements + required: false + + org.openecomp.datatypes.network.MacRequirements: + derived_from: org.openecomp.datatypes.Root + properties: + mac_range_plan: + description: reference to a MAC address range plan + type: string + required: true + mac_count: + description: identifies the number of MAC addresses to assign to the CP from the plan + type: integer + required: false + mac_count_required: + description: identifies the number of MAC addresses to assign to the CP from the plan + type: org.openecomp.datatypes.AssignmentRequirements + required: false + + org.openecomp.datatypes.network.SubnetAssignments: + derived_from: org.openecomp.datatypes.Root + properties: + ip_network_address_plan: + description: Reference to EIPAM, VLAN or other address plan ID used to assign subnets to this network + type: string + required: false + dhcp_enabled: + description: \"true\" indicates the network has 1 or more policies + type: boolean + required: false + ip_version: + description: The IP version of the subnet + type: integer + required: true + constraints: + - valid_values: + - 4 + - 6 + cidr_mask: + description: The default subnet CIDR mask + type: integer + required: true + min_subnets_count: + description: Quantity of subnets that must be initially assigned + type: integer + default: 1 + required: true + + org.openecomp.datatypes.Artifact: + derived_from: org.openecomp.datatypes.Root + properties: + artifact_name: + description: Artifcat name + type: string + required: true + artifact_type: + description: Artifcat type + type: string + required: true + artifact_uuid: + description: Artifcat UUID + type: string + required: true + artifact_checksum: + description: Artifact checksum + type: string + required: true + artifact_url: + description: Artifcay URL. Can also include only the file name + type: string + required: true + + org.openecomp.datatypes.network.IPv4SubnetAssignments: + derived_from: org.openecomp.datatypes.network.SubnetAssignments + properties: + use_ipv4: + description: Indicates IPv4 subnet assignments + type: boolean + required: true + + org.openecomp.datatypes.Root: + derived_from: tosca.datatypes.Root + description: | + The AT&T root Data Type all other Data Types derive from + properties: + supplemental_data: + type: map + entry_schema: + type: string + description: | + A placeholder for missing properties that would be included in future OPENecomp model + versions. fromat : + + + org.openecomp.datatypes.substitution.SubstitutionFiltering: + derived_from: tosca.datatypes.Root + description: Substitution Filter + properties: + substitute_service_template: + description: Substitute Service Template + type: string + status: SUPPORTED + required: true + index_value: + description: Index value of the substitution service template runtime instance + type: integer + status: SUPPORTED + default: 0 + required: false + constraints: + - greater_or_equal: 0 + count: + description: Count + type: integer + status: SUPPORTED + default: 1 + required: false + scaling_enabled: + description: Indicates whether service scaling is enabled + type: boolean + status: SUPPORTED + default: true + required: false + mandatory: + description: Mandatory + type: boolean + status: SUPPORTED + required: false + + org.openecomp.datatypes.network.NetworkFlows: + derived_from: org.openecomp.datatypes.Root + properties: + is_network_policy: + description: true indicates the network has 1 or more policies + type: boolean + default: false + required: false + network_policy: + description: Identifies the specific OPENECOMP Contrail network policy that must be applied to this network (source - from Policy Manager) + type: string + required: false + vpn_binding: + description: Identifies the specific VPN Binding entry in A&AI that must be applied when creating this network (source - A&AI) + type: string + required: false + + org.openecomp.datatypes.network.NetworkAssignments: + derived_from: org.openecomp.datatypes.Root + properties: + ecomp_generated_network_assignment: + description: | + "true" indicates that the network assignments will be auto-generated by OPENECOMP "false" indicates operator-supplied Network assignments file upload is required (e.g. VID will present prompt to operator to upload operator-supplied Network assignments file). + type: boolean + default: false + required: true + network_assignments_file: + description: Filename of the template that specifies all of the configurable name/value pairs of Network assignments in this Network model + type: string + required: false + multi_tenant: + description: true means this network is shared by multiple Openstack tenants + type: boolean + default: true + required: true + min_subnets_count: + description: Quantity of subnets that must be initially assigned + type: integer + required: true + ip_network_address_plan: + description: Reference to EIPAM, VLAN or other address plan ID used to assign subnets to this network + type: string + required: true + vlan_network_address_plan: + description: Reference to VLAN or other address plan ID used to assign subnets to this network + type: string + required: true + + org.openecomp.datatypes.network.IPv6SubnetAssignments: + derived_from: org.openecomp.datatypes.network.SubnetAssignments + properties: + use_ipv6: + description: Indicates IPv6 subnet assignments + type: boolean + required: true + + org.openecomp.datatypes.EcompNaming: + derived_from: org.openecomp.datatypes.Root + properties: + ecomp_generated_naming: + description: | + "true" indicates that the name for the instance will be auto-generated by OPENECOMP. "false" indicates operator-supplied name required (e.g. VID will present prompt to operator and collect the operator-supplied instance name). + type: boolean + default: true + required: true + naming_policy: + description: Referenc to naming policy that OPENECOMP will use when the name is auto-generated + type: string + required: false + + org.openecomp.datatypes.Naming: + derived_from: org.openecomp.datatypes.Root + properties: + ecomp_generated_naming: + description: | + "true" indicates that the name for the instance will be auto-generated by OPENECOMP. "false" indicates operator-supplied name required (e.g. VID will present prompt to operator and collect the operator-supplied instance name). + type: boolean + default: true + required: true + + org.openecomp.datatypes.EcompGeneratedNaming: + derived_from: org.openecomp.datatypes.Naming + properties: + naming_policy: + description: Referenc to naming policy that OPENECOMP will use when the name is auto-generated + type: string + required: false + + org.openecomp.datatypes.UserDefinedNaming: + derived_from: org.openecomp.datatypes.Naming + properties: + instance_name: + description: Reference to naming policy that OPENECOMP will use when the name is auto-generated + type: string + required: false + + org.openecomp.datatypes.flavors.DeploymentFlavor: + properties: + sp_part_number: + type: string + description: Part number of the feature group associated with the deployment flavor + vendor_info: + type: org.openecomp.datatypes.flavors.VendorInfo + description: Vendor information for the deployment flavor + compute_flavor: + type: org.openecomp.datatypes.flavors.ComputeFlavor + description: Compute information for the deployment flavor + license_flavor: + type: org.openecomp.datatypes.flavors.LicenseFlavor + description: License information for the deployment flavor + required: false + + org.openecomp.datatypes.flavors.ComputeFlavor: + properties: + num_cpus: + type: integer + description: Number of CPUs for the VM + disk_size: + type: scalar-unit.size + description: Disk size of the VM + mem_size: + type: scalar-unit.size + description: Memory size of the VM + + org.openecomp.datatypes.flavors.LicenseFlavor: + properties: + feature_group_uuid: + type: string + description: Feature Group Id + + org.openecomp.datatypes.flavors.VendorInfo: + properties: + manufacturer_reference_number: + type: string + description: Manufacturer reference number + vendor_model: + type: string + description: Vendor License Model Id + + org.openecomp.datatypes.ImageInfo: + properties: + software_version: + type: string + description: Image version + file_name: + type: string + description: Image file name + file_hash: + type: string + description: checksum/signature + file_hash_type: + type: string + description: Hash type + required: false + default: md5 + + # New data types for Port Mirroring + org.openecomp.datatypes.PortMirroringConnectionPointDescription: + properties: + nf_type: + type: string + nfc_type: + type: string + network_role: + type: string + pps_capacity: + type: string + + tosca.datatypes.network.NetworkInfo: + properties: + network_id: + required: false + type: string + addresses: + entry_schema: + type: string + required: false + type: list + network_name: + required: false + type: string + tosca.datatypes.network.PortInfo: + properties: + port_name: + required: false + type: string + network_id: + required: false + type: string + addresses: + entry_schema: + type: string + required: false + type: list + mac_address: + required: false + type: string + port_id: + required: false + type: string diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/groups.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/groups.yml new file mode 100644 index 0000000000..10d2121c18 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/groups.yml @@ -0,0 +1,93 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: openecomp/groups.yml + version: '1.0' + +imports: +- openecomp_index: + file: _index.yml + +group_types: + + org.openecomp.groups.VfModule: + derived_from: tosca.groups.Root + description: Grouped all heat resources which are in the same VF Module + properties: + isBase: + description: Whether this module should be deployed before other modules + type: boolean + status: SUPPORTED + default: false + required: true + vf_module_label: + description: | + Alternate textual key used to reference this VF-Module model. Must be unique within the VNF model + type: string + required: true + vf_module_description: + description: | + Description of the VF-modules contents and purpose (e.g. "Front-End" or "Database Cluster") + type: string + required: true + min_vf_module_instances: + description: The minimum instances of this VF-Module + type: integer + required: true + max_vf_module_instances: + description: The maximum instances of this VF-Module + type: integer + required: false + initial_count: + description: | + The initial count of instances of the VF-Module. The value must be in the range between min_vfmodule_instances and max_vfmodule_instances. If no value provided the initial count is the min_vfmodule_instances. + type: integer + required: false + vf_module_type: + type: string + required: true + constraints: + - valid_values: + - Base + - Expansion + volume_group: + description: | + "true" indicates that this VF Module model requires attachment to a Volume Group. VID operator must select the Volume Group instance to attach to a VF-Module at deployment time. + type: boolean + default: false + required: true + + org.openecomp.groups.VfcInstanceGroup: + derived_from: tosca.groups.Root + description: groups VFCs with same parent port role + properties: + vfc_instance_group_function: + type: string + required: true + description: role of this VFC group + vfc_parent_port_role: + type: string + required: true + description: common role of parent ports of VFCs in this group + network_collection_function: + type: string + required: true + description: network collection role assigned to this group + subinterface_role: + type: string + required: true + description: common role of subinterfaces of VFCs in this group, criteria the group is created \ No newline at end of file diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/nodes.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/nodes.yml new file mode 100644 index 0000000000..457770845f --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/nodes.yml @@ -0,0 +1,920 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: openecomp/nodes.yml + version: '1.0' + +imports: +- openecomp_index: + file: _index.yml + +node_types: + + org.openecomp.resource.vl.nodes.network.Network: + derived_from: tosca.nodes.network.Network + properties: + vendor: + type: string + required: false + vl_name: + type: string + required: false + capabilities: + end_point: + type: tosca.capabilities.Endpoint + + org.openecomp.resource.abstract.nodes.AbstractSubstitute: + derived_from: tosca.nodes.Root + properties: + service_template_filter: + description: Substitution Filter + type: org.openecomp.datatypes.substitution.SubstitutionFiltering + status: SUPPORTED + required: true + + org.openecomp.resource.vl.extVL: + derived_from: org.openecomp.resource.vl.nodes.network.Network + description: VF Tenant oam protected network + properties: + network_type: + description: OPENECOMP supported network types. + type: string + required: true + network_role: + description: | + Unique label that defines the role that this network performs. example: vce oam network, vnat sr-iov1 network + type: string + required: true + network_scope: + description: | + Uniquely identifies the network scope. Valid values for the network scope includes: VF - VF-level network. Intra-VF network which connects the VFCs (VMs) inside the VF. SERVICE - Service-level network. Intra-Service network which connects the VFs within the service GLOBAL - Global network which can be shared by multiple services + type: string + constraints: + - valid_values: + - VF + - SERVICE + - GLOBAL + network_technology: + description: OPENECOMP supported network technology + type: string + required: true + network_ecomp_naming: + type: org.openecomp.datatypes.EcompNaming + required: true + network_homing: + type: org.openecomp.datatypes.EcompHoming + required: true + network_assignments: + type: org.openecomp.datatypes.network.NetworkAssignments + required: true + provider_network: + type: org.openecomp.datatypes.network.ProviderNetwork + required: true + network_flows: + type: org.openecomp.datatypes.network.NetworkFlows + required: false + + + org.openecomp.resource.vfc.nodes.Compute: + derived_from: tosca.nodes.Compute + capabilities: + disk.ephemeral.size: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + instance: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + memory: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.iops: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.device.read.requests: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + cpu.delta: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.capacity: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.device.read.bytes: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.write.bytes: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.latency: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.device.read.bytes.rate: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.usage: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + cpu_util: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.device.allocation: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.write.requests.rate: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.write.bytes.rate: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.device.latency: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + cpu: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.device.write.requests: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.device.write.bytes: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.read.requests: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.root.size: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.device.write.bytes.rate: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + vcpus: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.device.iops: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.device.usage: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.device.read.requests.rate: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.device.write.requests.rate: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.allocation: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.read.bytes.rate: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.read.bytes: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + memory.usage: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.device.capacity: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + memory.resident: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + disk.write.requests: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + + org.openecomp.resource.abstract.nodes.DFAbstractSubstitute: + derived_from: org.openecomp.resource.abstract.nodes.AbstractSubstitute + properties: + license_feature_group_ref: + description: refrence to license feature group + type: string + status: SUPPORTED + required: true + requirements: + - deployment_flavor: + capability: org.openecomp.capabilities.attachment.DeploymentFlavor + node: org.openecomp.resource.nodes.DeploymentFlavor + relationship: org.openecomp.relationships.AttachesTo + occurrences: + - 1 + - UNBOUNDED + + org.openecomp.resource.abstract.nodes.ComplexVFC: + derived_from: org.openecomp.resource.abstract.nodes.AbstractSubstitute + + org.openecomp.resource.abstract.nodes.VFC: + derived_from: org.openecomp.resource.abstract.nodes.AbstractSubstitute + properties: + high_availablity: + description: high_availablity + type: string + status: SUPPORTED + required: false + vm_image_name: + description: Master image_name volume id + type: string + status: SUPPORTED + required: true + vm_flavor_name: + description: Master image_name volume id + type: string + status: SUPPORTED + required: true + nfc_naming_code: + description: nfc code for instance naming + type: string + status: SUPPORTED + required: false + nfc_code: + type: string + description: nfc code + status: SUPPORTED + required: false + nfc_function: + type: string + description: nfc function + status: SUPPORTED + required: false + vm_type_tag: + description: vm type based on naming Convention + type: string + status: SUPPORTED + required: false + vfc_naming: + description: vfc naming + type: org.openecomp.datatypes.Naming + status: SUPPORTED + required: false + min_instances: + description: Minimum number of VFC Instances + type: integer + status: SUPPORTED + default: 0 + required: false + constraints: + - greater_or_equal: 0 + max_instances: + description: Maximum number of VFC Instances + type: integer + status: SUPPORTED + required: false + constraints: + - greater_or_equal: 1 + + org.openecomp.resource.vl.ELine: + derived_from: org.openecomp.resource.vl.nodes.network.Network + capabilities: + linkable: + type: tosca.capabilities.network.Linkable + occurrences: + - 0 + - 2 + + org.openecomp.resource.cp.nodes.network.v2.SubInterface: + derived_from: tosca.nodes.Root + properties: + ip_address: + description: Allow the user to set a fixed IP address. Note that this address is a request to the provider which they will attempt to fulfill but may not be able to dependent on the network the port is associated with. + type: string + required: false + order: + description: 'The order of the NIC on the compute instance (e.g. eth2). Note: + when binding more than one port to a single compute (aka multi vNICs) and + ordering is desired, it is *mandatory* that all ports will be set with an + order value and. The order values must represent a positive, arithmetic + progression that starts with 0 (e.g. 0, 1, 2, ..., n).' + type: integer + default: 0 + required: false + constraints: + - greater_or_equal: 0 + is_default: + description: Set is_default=true to apply a default gateway route on the running compute instance to the associated network gateway. Only one port that is associated to single compute node can set as default=true. + type: boolean + default: false + required: false + ip_range_start: + description: Defines the starting IP of a range to be allocated for the compute instances that are associated by this Port. Without setting this property the IP allocation is done from the entire CIDR block of the network. + type: string + required: false + ip_range_end: + description: Defines the ending IP of a range to be allocated for the compute instances that are associated by this Port. Without setting this property the IP allocation is done from the entire CIDR block of the network. + type: string + required: false + attributes: + ip_address: + description: The IP address would be assigned to the associated compute instance. + type: string + requirements: + - subinterface_link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - binding: + capability: tosca.capabilities.network.Bindable + relationship: tosca.relationships.network.BindsTo + + org.openecomp.resource.cp.nodes.network.SubInterface: + derived_from: tosca.nodes.network.Port + + org.openecomp.resource.vl.internalVL: + derived_from: org.openecomp.resource.vl.nodes.network.Network + description: The AT&T internal (VF-level) Virtual Link + + org.openecomp.resource.cp.nodes.network.Port: + derived_from: tosca.nodes.network.Port + properties: + subinterface_indicator: + description: identifies if Port is having Sub Interface + type: boolean + required: false + default: false + network_role_tag: + description: Must correlate to the set of defined “network-role�? tag identifiers from the associated HEAT template + type: string + required: true + mac_requirements: + description: identifies MAC address assignments to the CP + type: org.openecomp.datatypes.network.MacRequirements + required: false + vlan_requirements: + description: identifies vlan address assignments to the CP + type: list + entry_schema: + type: org.openecomp.datatypes.network.VlanRequirements + required: false + ip_requirements: + description: identifies IP requirements to the CP + type: list + entry_schema: + type: org.openecomp.datatypes.network.IpRequirements + required: true + network_role: + description: identical to VL network_role + type: string + required: false + order: + description: The order of the CP on the compute instance (e.g. eth2). + type: integer + required: false + exCP_naming: + description: CP Name + type: org.openecomp.datatypes.Naming + required: false + subnetpoolid: + description: subnet pool id + type: string + required: false + capabilities: + network.incoming.packets.rate: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + network.outgoing.bytes: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + network.outgoing.packets.rate: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + network.outpoing.packets: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + network.incoming.bytes.rate: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + network.incoming.bytes: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + network.outgoing.bytes.rate: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + network.incoming.packets: + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + type: org.openecomp.capabilities.metric.Ceilometer + occurrences: + - 1 + - UNBOUNDED + forwarder: + type: org.openecomp.capabilities.Forwarder + + org.openecomp.resource.nodes.DeploymentFlavor: + derived_from: tosca.nodes.Root + capabilities: + deployment_flavor: + description: Allowed deployment flavors of an abstract node + type: org.openecomp.capabilities.attachment.DeploymentFlavor + occurrences: + - 1 + - UNBOUNDED + + org.openecomp.resource.cp.extCP: + derived_from: tosca.nodes.Root + description: The AT&T Connection Point base type all other CP derive from + properties: + network_role: + description: identical to VL network_role + type: string + required: true + order: + description: The order of the CP on the compute instance (e.g. eth2). + type: integer + required: true + network_role_tag: + description: Must correlate to the set of defined “network-role�? tag identifiers from the associated HEAT template + type: string + required: true + mac_requirements: + description: identifies MAC address assignments to the CP + type: org.openecomp.datatypes.network.MacRequirements + required: false + vlan_requirements: + description: identifies vlan address assignments to the CP + type: list + entry_schema: + type: org.openecomp.datatypes.network.VlanRequirements + required: false + ip_requirements: + description: identifies IP requirements to the CP + type: list + entry_schema: + type: org.openecomp.datatypes.network.IpRequirements + required: true + capabilities: + internal_connectionPoint: + type: tosca.capabilities.Node + valid_source_types: + - tosca.nodes.network.Port + requirements: + - virtualLink: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - virtualBinding: + capability: tosca.capabilities.network.Bindable + relationship: tosca.relationships.network.BindsTo + - external_virtualLink: + capability: tosca.capabilities.network.Linkable + node: org.openecomp.resource.vl.nodes.network.Network + relationship: tosca.relationships.network.LinksTo + + org.openecomp.resource.vfc.nodes.volume: + derived_from: tosca.nodes.BlockStorage + + ### Node types related to Deployment Flavors + org.openecomp.resource.abstract.nodes.VnfConfiguration: + derived_from: tosca.nodes.Root + description: a container for the available flavors + properties: + allowed_flavors: + description: a collection of all available flavor valuesets + type: map + entry_schema: + type: org.openecomp.datatypes.flavors.DeploymentFlavor + + org.openecomp.resource.abstract.nodes.MultiFlavorVFC: + derived_from: org.openecomp.resource.abstract.nodes.VFC + description: Multi flavored VFC node + properties: + images: + type: map + entry_schema: + type: org.openecomp.datatypes.ImageInfo + required: false + + ## New node types for Port Mirroring + org.openecomp.nodes.ServiceProxy: + derived_from: tosca.nodes.Root + + org.openecomp.nodes.PortMirroringConfiguration: + derived_from: tosca.nodes.Root + requirements: + - source: + capability: org.openecomp.capabilities.PortMirroring + occurrences: + - 1 + - UNBOUNDED + - collector: + capability: org.openecomp.capabilities.PortMirroring + occurrences: + - 1 + - 1 + + org.openecomp.resource.cp.v2.extCP: + derived_from: org.openecomp.resource.cp.nodes.network.Port + description: The SDC External Connection Point base type + capabilities: + port_mirroring: + type: org.openecomp.capabilities.PortMirroring + + org.openecomp.resource.cp.v2.extNeutronCP: + derived_from: org.openecomp.resource.cp.v2.extCP + properties: + port_security_enabled: + type: boolean + description: Flag to enable/disable port security on the network + required: false + status: SUPPORTED + device_id: + type: string + description: Device ID of this port + required: false + status: SUPPORTED + qos_policy: + type: string + description: The name or ID of QoS policy to attach to this network + required: false + status: SUPPORTED + allowed_address_pairs: + type: list + description: Additional MAC/IP address pairs allowed to pass through the port + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.AddressPair + binding:vnic_type: + type: string + description: The vnic type to be bound on the neutron port + required: false + status: SUPPORTED + constraints: + - valid_values: + - macvtap + - direct + - normal + value_specs: + type: map + description: Extra parameters to include in the request + required: false + default: { + } + status: SUPPORTED + entry_schema: + type: string + device_owner: + type: string + description: Name of the network owning the port + required: false + status: SUPPORTED + network: + type: string + description: Network this port belongs to + required: false + status: SUPPORTED + replacement_policy: + type: string + description: Policy on how to respond to a stack-update for this resource + required: false + default: AUTO + status: SUPPORTED + constraints: + - valid_values: + - REPLACE_ALWAYS + - AUTO + security_groups: + type: list + description: List of security group names or IDs + required: false + status: SUPPORTED + entry_schema: + type: string + fixed_ips: + type: list + description: Desired IPs for this port + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.neutron.port.FixedIps + mac_address: + type: string + description: MAC address to give to this port + required: false + status: SUPPORTED + admin_state_up: + type: boolean + description: A boolean value specifying the administrative status of the network + required: false + default: true + status: SUPPORTED + name: + type: string + description: A symbolic name for this port + required: false + status: SUPPORTED + attributes: + tenant_id: + type: string + description: Tenant owning the port + status: SUPPORTED + network_id: + type: string + description: Unique identifier for the network owning the port + status: SUPPORTED + qos_policy_id: + type: string + description: The QoS policy ID attached to this network + status: SUPPORTED + show: + type: string + description: Detailed information about resource + status: SUPPORTED + subnets: + type: list + description: Subnets of this network + status: SUPPORTED + entry_schema: + type: string + status: + type: string + description: The status of the network + status: SUPPORTED + capabilities: + attachment: + type: tosca.capabilities.Attachment + occurrences: + - 1 + - UNBOUNDED + binding: + type: tosca.capabilities.network.Bindable + valid_source_types: + - org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface + - org.openecomp.resource.cp.nodes.heat.network.v2.contrailV2.VLANSubInterface + occurrences: + - 0 + - UNBOUNDED + + org.openecomp.resource.cp.v2.extContrailCP: + derived_from: org.openecomp.resource.cp.v2.extCP + properties: + static_routes: + type: list + description: An ordered list of static routes to be added to this interface + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.contrail.port.StaticRoute + virtual_network: + type: string + description: Virtual Network for this interface + required: true + status: SUPPORTED + static_route: + type: boolean + description: Static route enabled + required: false + default: false + status: SUPPORTED + allowed_address_pairs: + type: list + description: List of allowed address pair for this interface + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.contrail.AddressPair + shared_ip: + type: boolean + description: Shared ip enabled + required: false + default: false + status: SUPPORTED + ip_address: + type: string + description: IP for this interface + required: false + status: SUPPORTED + interface_type: + type: string + description: Interface type + required: true + status: SUPPORTED + constraints: + - valid_values: + - management + - left + - right + - other + attributes: + fq_name: + type: string + description: fq_name + status: SUPPORTED + + org.openecomp.resource.cp.v2.extVirtualMachineInterfaceCP: + derived_from: org.openecomp.resource.cp.v2.extCP + properties: + name: + description: Virtual Machine Interface name + type: string + status: SUPPORTED + required: false + security_group_refs: + description: List of security groups. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + virtual_network_refs: + description: List of virtual networks. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + virtual_machine_interface_properties: + description: virtual machine interface properties. + type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.interface.Properties + status: SUPPORTED + required: false + port_tuple_refs: + description: List of port tuples. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + virtual_machine_interface_mac_addresses: + description: List of mac addresses. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + virtual_machine_interface_allowed_address_pairs: + description: Virtual Machine Interface allowed address pairs. + type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPairs + status: SUPPORTED + required: false + attributes: + fq_name: + description: The FQ name of the Virtual Network. + type: string + status: SUPPORTED + show: + description: All attributes. + type: string + status: SUPPORTED + capabilities: + binding: + type: tosca.capabilities.network.Bindable + occurrences: + - 0 + - UNBOUNDED + valid_source_types: + - org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface + - org.openecomp.resource.cp.nodes.heat.network.v2.contrailV2.VLANSubInterface + + org.openecomp.nodes.ForwardingPath: + derived_from: tosca.nodes.Root + properties: + target_range: + type: list + entry_schema: + description: Identifier of the reciever port of the VNF or the service + type: integer + protocol: + type: string + description: protocol type that runs on the link + requirements: + - forwarder: + capability: org.openecomp.capabilities.Forwarder + relationship: org.openecomp.relationships.ForwardsTo + occurrences: [ 0, UNBOUNDED ] \ No newline at end of file diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/relationships.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/relationships.yml new file mode 100644 index 0000000000..d15c56e079 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/relationships.yml @@ -0,0 +1,59 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: openecomp/relationships.yml + version: '1.0' + +imports: +- openecomp_index: + file: _index.yml + +relationship_types: + + org.openecomp.relationships.VolumeAttachesTo: + derived_from: org.openecomp.relationships.AttachesTo + description: This type represents an attachment relationship for associating volume + properties: + volume_id: + description: The ID of the volume to be attached + type: string + status: SUPPORTED + required: true + instance_uuid: + description: The ID of the server to which the volume attaches + type: string + status: SUPPORTED + required: true + attributes: + show: + description: Detailed information about resource + type: string + status: SUPPORTED + + org.openecomp.relationships.AttachesTo: + derived_from: tosca.relationships.AttachesTo + description: This type represents an attachment relationship + properties: + location: + description: The relative location (e.g., path on the file system), which provides the root location to address an attached node. + type: string + status: SUPPORTED + required: false + + org.openecomp.relationships.ForwardsTo: + derived_from: tosca.relationships.Root + valid_target_types: [org.openecomp.capabilities.Forwarder] \ No newline at end of file diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/_index.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/_index.yml new file mode 100644 index 0000000000..418744cdcd --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/_index.yml @@ -0,0 +1,37 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: tosca/_index.yml + version: '1.0' + +imports: +- capabilities: + file: capabilities.yml +- nodes: + file: nodes.yml +- relationships: + file: relationships.yml +- groups: + file: groups.yml +- data: + file: data.yml +- interfaces: + file: interfaces.yml +- artifacts: + file: artifacts.yml +- policies: + file: policies.yml \ No newline at end of file diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/artifacts.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/artifacts.yml new file mode 100644 index 0000000000..a98c176265 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/artifacts.yml @@ -0,0 +1,55 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: tosca/artifacts.yml + version: '1.0' + +imports: +- tosca_index: + file: _index.yml + +artifact_types: + tosca.artifacts.Root: + description: This is the default (root) TOSCA Artifact Type definition that all other TOSCA base Artifact Types derive from. + + tosca.artifacts.Deployment.Image: + derived_from: tosca.artifacts.Deployment + description: This artifact type represents a parent type for any "image" which is an opaque packaging of a TOSCA Node's deployment (whether real or virtual) whose contents are typically already installed and pre-configured (i.e., "stateful") and prepared to be run on a known target container. + + tosca.artifacts.Implementation.Bash: + derived_from: tosca.artifacts.Implementation + description: This artifact type represents a Bash script type that contains Bash commands that can be executed on the Unix Bash shell. + + tosca.artifacts.Deployment.Image.VM: + derived_from: tosca.artifacts.Deployment + description: This artifact represents the parent type for all Virtual Machine (VM) image and container formatted deployment artifacts. These images contain a stateful capture of a machine (e.g., server) including operating system and installed software along with any configurations and can be run on another machine using a hypervisor which virtualizes typical server (i.e., hardware) resources. + + tosca.artifacts.Implementation.Python: + derived_from: tosca.artifacts.Implementation + description: This artifact type represents a Python file that contains Python language constructs that can be executed within a Python interpreter. + + tosca.artifacts.Deployment: + derived_from: tosca.artifacts.Root + description: This artifact type represents the parent type for all deployment artifacts in TOSCA. This class of artifacts typically represents a binary packaging of an application or service that is used to install/create or deploy it as part of a node's lifecycle. + + tosca.artifacts.File: + derived_from: tosca.artifacts.Root + description: This artifact type is used when an artifact definition needs to have its associated file simply treated as a file and no special handling/handlers are invoked (i.e., it is not treated as either an implementation or deployment artifact type). + + tosca.artifacts.Implementation: + derived_from: tosca.artifacts.Root + description: This artifact type represents the parent type for all implementation artifacts in TOSCA. These artifacts are used to implement operations of TOSCA interfaces either directly (e.g., scripts) or indirectly (e.g., config. files). diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/capabilities.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/capabilities.yml new file mode 100644 index 0000000000..1b642cdcb1 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/capabilities.yml @@ -0,0 +1,230 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: tosca/capabilities.yml + version: '1.0' + +imports: +- tosca_index: + file: _index.yml + +capability_types: + tosca.capabilities.Root: + description: This is the default (root) TOSCA Capability Type definition that all other TOSCA Capability Types derive from. + + tosca.capabilities.Node: + derived_from: tosca.capabilities.Root + description: The Node capability indicates the base capabilities of a TOSCA Node Type. + + tosca.capabilities.Container: + derived_from: tosca.capabilities.Root + description: The Container capability, when included on a Node Type or Template definition, indicates that the node can act as a container for (or a host for) one or more other declared Node Types. + properties: + num_cpus: + description: Number of (actual or virtual) CPUs associated with the Compute node. + type: integer + required: false + constraints: + - greater_or_equal: 1 + cpu_frequency: + description: Specifies the operating frequency of CPU's core. This property expresses the expected frequency of one (1) CPU as provided by the property "num_cpus". + type: scalar-unit.frequency + required: false + constraints: + - greater_or_equal: 0.1 GHz + disk_size: + description: Size of the local disk available to applications running on the Compute node (default unit is MB). + type: scalar-unit.size + required: false + constraints: + - greater_or_equal: 0 MB + mem_size: + description: Size of memory available to applications running on the Compute node (default unit is MB). + type: scalar-unit.size + required: false + constraints: + - greater_or_equal: 0 MB + + tosca.capabilities.Endpoint: + derived_from: tosca.capabilities.Root + description: This is the default TOSCA type that should be used or extended to define a network endpoint capability. This includes the information to express a basic endpoint with a single port or a complex endpoint with multiple ports. By default the Endpoint is assumed to represent an address on a private network unless otherwise specified. + properties: + protocol: + description: 'The name of the protocol (i.e., the protocol prefix) that the + endpoint accepts (any OSI Layer 4-7 protocols). Examples: http, https, ftp, + tcp, udp, etc.' + type: string + default: tcp + required: true + port: + description: The optional port of the endpoint. + type: tosca.datatypes.network.PortDef + required: false + secure: + description: Requests for the endpoint to be secure and use credentials supplied on the ConnectsTo relationship. + type: boolean + default: false + required: false + url_path: + description: The optional URL path of the endpoint's address if applicable for the protocol. + type: string + required: false + port_name: + description: The optional name (or ID) of the network port this endpoint should be bound to. + type: string + required: false + network_name: + description: 'The optional name (or ID) of the network this endpoint should + be bound to. network_name: PRIVATE | PUBLIC | | .' + type: string + default: PRIVATE + required: false + initiator: + description: The optional indicator of the direction of the connection. + type: string + default: source + required: false + constraints: + - valid_values: + - source + - target + - peer + ports: + description: The optional map of ports the Endpoint supports (if more than one). + type: map + entry_schema: + type: tosca.datatypes.network.PortSpec + required: false + constraints: + - min_length: 1 + attributes: + ip_address: + description: 'Note: This is the IP address as propagated up by the associated + node''s host (Compute) container.' + type: string + + tosca.capabilities.Endpoint.Public: + derived_from: tosca.capabilities.Endpoint + description: |- + This capability represents a public endpoint which is accessible to the general internet (and its public IP address ranges). + This public endpoint capability also can be used to create a floating (IP) address that the underlying network assigns from a pool allocated from the application's underlying public network. This floating address is managed by the underlying network such that can be routed an application's private address and remains reliable to internet clients. + properties: + network_name: + type: string + default: PUBLIC + constraints: + - equal: PUBLIC + + tosca.capabilities.Endpoint.Admin: + derived_from: tosca.capabilities.Endpoint + description: This is the default TOSCA type that should be used or extended to define a specialized administrator endpoint capability. + properties: + secure: + description: Requests for the endpoint to be secure and use credentials supplied on the ConnectsTo relationship. + type: boolean + default: true + constraints: + - equal: true + + tosca.capabilities.Endpoint.Database: + derived_from: tosca.capabilities.Endpoint + description: This is the default TOSCA type that should be used or extended to define a specialized database endpoint capability. + + tosca.capabilities.Attachment: + derived_from: tosca.capabilities.Root + description: This is the default TOSCA type that should be used or extended to define an attachment capability of a (logical) infrastructure device node (e.g., BlockStorage node). + + tosca.capabilities.OperatingSystem: + derived_from: tosca.capabilities.Root + description: This is the default TOSCA type that should be used to express an Operating System capability for a node. + properties: + architecture: + description: 'The Operating System (OS) architecture. Examples of valid values + include: x86_32, x86_64, etc.' + type: string + required: false + type: + description: 'The Operating System (OS) type. Examples of valid values include: + linux, aix, mac, windows, etc.' + type: string + required: false + distribution: + description: 'The Operating System (OS) distribution. Examples of valid values + for a "type" of "Linux" would include: debian, fedora, rhel and ubuntu.' + type: string + required: false + version: + description: The Operating System version. + type: version + required: false + + tosca.capabilities.Scalable: + derived_from: tosca.capabilities.Root + description: This is the default TOSCA type that should be used to express a scalability capability for a node. + properties: + min_instances: + description: This property is used to indicate the minimum number of instances that should be created for the associated TOSCA Node Template by a TOSCA orchestrator. + type: integer + default: 1 + max_instances: + description: This property is used to indicate the maximum number of instances that should be created for the associated TOSCA Node Template by a TOSCA orchestrator. + type: integer + default: 1 + default_instances: + description: 'An optional property that indicates the requested default number + of instances that should be the starting number of instances a TOSCA orchestrator + should attempt to allocate. Note: The value for this property MUST be in + the range between the values set for "min_instances" and "max_instances" + properties.' + type: integer + required: false + + tosca.capabilities.network.Bindable: + derived_from: tosca.capabilities.Node + description: A node type that includes the Bindable capability indicates that it can be bound to a logical network association via a network port. + + tosca.capabilities.network.Linkable: + derived_from: tosca.capabilities.Node + description: A node type that includes the Linkable capability indicates that it can be pointed by tosca.relationships.network.LinksTo relationship type. + + tosca.capabilities.Container.Docker: + derived_from: tosca.capabilities.Container + properties: + version: + type: list + entry_schema: + type: version + required: false + publish_all: + type: boolean + default: false + required: false + publish_ports: + type: list + entry_schema: + type: PortSpec + required: false + expose_ports: + type: list + entry_schema: + type: PortSpec + required: false + volumes: + type: list + entry_schema: + type: string + required: false diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/data.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/data.yml new file mode 100644 index 0000000000..a799d0d25b --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/data.yml @@ -0,0 +1,191 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: tosca/data.yml + version: '1.0' + +imports: +- tosca_index: + file: _index.yml + +data_types: + tosca.datatypes.Root: + description: The TOSCA root Data Type all other TOSCA base Data Types derive from + + string: + derived_from: tosca.datatypes.Root + + integer: + derived_from: tosca.datatypes.Root + + boolean: + derived_from: tosca.datatypes.Root + + float: + derived_from: tosca.datatypes.Root + + range: + derived_from: tosca.datatypes.Root + + list: + derived_from: tosca.datatypes.Root + + map: + derived_from: tosca.datatypes.Root + + timestamp: + derived_from: tosca.datatypes.Root + + version: + derived_from: tosca.datatypes.Root + + scalar-unit.size: + derived_from: tosca.datatypes.Root + + scalar-unit.frequency: + derived_from: tosca.datatypes.Root + + scalar-unit.time: + derived_from: tosca.datatypes.Root + + tosca.datatypes.network.NetworkInfo: + derived_from: tosca.datatypes.Root + description: The Network type is a complex TOSCA data type used to describe logical network information. + properties: + network_name: + description: The name of the logical network. e.g., "public", "private", "admin". etc. + type: string + required: false + network_id: + description: The unique ID of for the network generated by the network provider. + type: string + required: false + addresses: + description: The list of IP addresses assigned from the underlying network. + type: list + entry_schema: + type: string + required: false + + tosca.datatypes.TimeInterval: + derived_from: tosca.datatypes.Root + properties: + start_time: + type: timestamp + required: true + end_time: + type: timestamp + required: true + + tosca.datatypes.network.PortSpec: + derived_from: tosca.datatypes.Root + description: The PortSpec type is a complex TOSCA data Type used when describing port specifications for a network connection. + properties: + protocol: + description: The required protocol used on the port. + type: string + default: tcp + constraints: + - valid_values: + - udp + - tcp + - igmp + source: + description: The optional source port. + type: tosca.datatypes.network.PortDef + required: false + source_range: + description: The optional range for source port. + type: range + required: false + constraints: + - in_range: + - 1 + - 65535 + target: + description: The optional target port. + type: tosca.datatypes.network.PortDef + required: false + target_range: + description: The optional range for target port. + type: range + required: false + constraints: + - in_range: + - 1 + - 65535 + + tosca.datatypes.network.PortDef: + derived_from: integer + description: The PortDef type is a TOSCA data Type used to define a network port. + constraints: + - in_range: + - 1 + - 65535 + + tosca.datatypes.network.PortInfo: + derived_from: tosca.datatypes.Root + description: The PortInfo type is a complex TOSCA data type used to describe network port information. + properties: + port_name: + description: The logical network port name. + type: string + required: false + port_id: + description: The unique ID for the network port generated by the network provider. + type: string + required: false + network_id: + description: The unique ID for the network. + type: string + required: false + mac_address: + description: The unique media access control address (MAC address) assigned to the port. + type: string + required: false + addresses: + description: The list of IP address(es) assigned to the port. + type: list + entry_schema: + type: string + required: false + + tosca.datatypes.Credential: + derived_from: tosca.datatypes.Root + description: The Credential type is a complex TOSCA data Type used when describing authorization credentials used to access network accessible resources. + properties: + protocol: + description: The optional protocol name. + type: string + required: false + token_type: + description: The required token type. + type: string + default: password + token: + description: The required token used as a credential for authorization or access to a networked resource. + type: string + keys: + description: The optional list of protocol-specific keys or assertions. + type: map + entry_schema: + type: string + required: false + user: + description: The optional user (name or ID) used for non-token based credentials. + type: string + required: false diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/groups.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/groups.yml new file mode 100644 index 0000000000..0ddc15175c --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/groups.yml @@ -0,0 +1,30 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: tosca/groups.yml + version: '1.0' + +imports: +- tosca_index: + file: _index.yml + +group_types: + tosca.groups.Root: + description: This is the default (root) TOSCA Group Type definition that all other TOSCA base Group Types derive from. + interfaces: + standard: + type: tosca.interfaces.node.lifecycle.Standard diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/interfaces.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/interfaces.yml new file mode 100644 index 0000000000..32a6d43381 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/interfaces.yml @@ -0,0 +1,61 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: tosca/interfaces.yml + version: '1.0' + +imports: +- tosca_index: + file: _index.yml + +interface_types: + tosca.interfaces.Root: + description: This is the default (root) TOSCA Interface Type definition that all other TOSCA Interface Types derive from. + + tosca.interfaces.node.lifecycle.Standard: + derived_from: tosca.interfaces.Root + description: This lifecycle interface defines the essential, normative operations that TOSCA nodes may support. + stop: + description: Standard lifecycle stop operation. + start: + description: Standard lifecycle start operation. + create: + description: Standard lifecycle create operation. + configure: + description: Standard lifecycle configure operation. + delete: + description: Standard lifecycle delete operation. + + tosca.interfaces.relationship.Configure: + derived_from: tosca.interfaces.Root + description: The lifecycle interfaces define the essential, normative operations that each TOSCA Relationship Types may support. + pre_configure_source: + description: Operation to pre-configure the source endpoint. + pre_configure_target: + description: Operation to pre-configure the target endpoint. + post_configure_source: + description: Operation to post-configure the source endpoint. + post_configure_target: + description: Operation to post-configure the target endpoint. + add_target: + description: Operation to notify the source node of a target node being added via a relationship. + add_source: + description: Operation to notify the target node of a source node which is now available via a relationship. + target_changed: + description: Operation to notify source some property or attribute of the target changed + remove_target: + description: Operation to remove a target node. \ No newline at end of file diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/nodes.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/nodes.yml new file mode 100644 index 0000000000..af68802eaf --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/nodes.yml @@ -0,0 +1,371 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: tosca/nodes.yml + version: '1.0' + +imports: +- tosca_index: + file: _index.yml + +node_types: + tosca.nodes.Root: + description: The TOSCA Root Node Type is the default type that all other TOSCA base Node Types derive from. This allows for all TOSCA nodes to have a consistent set of features for modeling and management (e.g., consistent definitions for requirements, capabilities and lifecycle interfaces). + attributes: + tosca_id: + description: A unique identifier of the realized instance of a Node Template that derives from any TOSCA normative type. + type: string + tosca_name: + description: This attribute reflects the name of the Node Template as defined in the TOSCA service template. This name is not unique to the realized instance model of corresponding deployed application as each template in the model can result in one or more instances (e.g., scaled) when orchestrated to a provider environment. + type: string + state: + description: The state of the node instance. + type: string + default: initial + capabilities: + feature: + type: tosca.capabilities.Node + requirements: + - dependency: + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + occurrences: + - 0 + - UNBOUNDED + interfaces: + standard: + type: tosca.interfaces.node.lifecycle.Standard + + tosca.nodes.ObjectStorage: + derived_from: tosca.nodes.Root + description: The TOSCA ObjectStorage node represents storage that provides the ability to store data as objects (or BLOBs of data) without consideration for the underlying filesystem or devices. + properties: + name: + description: The logical name of the object store (or container). + type: string + size: + description: The requested initial storage size (default unit is in Gigabytes). + type: scalar-unit.size + required: false + constraints: + - greater_or_equal: 0 GB + maxsize: + description: The requested maximum storage size (default unit is in Gigabytes). + type: scalar-unit.size + required: false + constraints: + - greater_or_equal: 0 GB + capabilities: + storage_endpoint: + type: tosca.capabilities.Endpoint + + tosca.nodes.DBMS: + derived_from: tosca.nodes.SoftwareComponent + description: The TOSCA DBMS node represents a typical relational, SQL Database Management System software component or service. + properties: + root_password: + description: The optional root password for the DBMS server. + type: string + required: false + port: + description: The DBMS server's port. + type: integer + required: false + capabilities: + host: + type: tosca.capabilities.Container + valid_source_types: + - tosca.nodes.Database + + tosca.nodes.WebApplication: + derived_from: tosca.nodes.Root + description: The TOSCA WebApplication node represents a software application that can be managed and run by a TOSCA WebServer node. Specific types of web applications such as Java, etc. could be derived from this type. + properties: + context_root: + description: The web application's context root which designates the application's URL path within the web server it is hosted on. + type: string + required: false + capabilities: + app_endpoint: + type: tosca.capabilities.Endpoint + requirements: + - host: + capability: tosca.capabilities.Container + node: tosca.nodes.WebServer + relationship: tosca.relationships.HostedOn + + tosca.nodes.Compute: + derived_from: tosca.nodes.Root + description: The TOSCA Compute node represents one or more real or virtual processors of software applications or services along with other essential local resources. Collectively, the resources the compute node represents can logically be viewed as a (real or virtual) "server". + attributes: + private_address: + description: The primary private IP address assigned by the cloud provider that applications may use to access the Compute node. + type: string + public_address: + description: The primary public IP address assigned by the cloud provider that applications may use to access the Compute node. + type: string + networks: + description: The list of logical networks assigned to the compute host instance and information about them. + type: map + entry_schema: + type: tosca.datatypes.network.NetworkInfo + ports: + description: The list of logical ports assigned to the compute host instance and information about them. + type: map + entry_schema: + type: tosca.datatypes.network.PortInfo + capabilities: + host: + type: tosca.capabilities.Container + valid_source_types: + - tosca.nodes.SoftwareComponent + binding: + type: tosca.capabilities.network.Bindable + os: + type: tosca.capabilities.OperatingSystem + scalable: + type: tosca.capabilities.Scalable + endpoint: + type: tosca.capabilities.Endpoint.Admin + requirements: + - local_storage: + capability: tosca.capabilities.Attachment + node: tosca.nodes.BlockStorage + relationship: tosca.relationships.AttachesTo + occurrences: + - 0 + - UNBOUNDED + + tosca.nodes.network.Network: + derived_from: tosca.nodes.Root + description: The TOSCA Network node represents a simple, logical network service. + properties: + ip_version: + description: The IP version of the requested network. + type: integer + default: 4 + required: false + constraints: + - valid_values: + - 4 + - 6 + cidr: + description: The cidr block of the requested network. + type: string + required: false + start_ip: + description: The IP address to be used as the 1st one in a pool of addresses derived from the cidr block full IP range. + type: string + required: false + end_ip: + description: The IP address to be used as the last one in a pool of addresses derived from the cidr block full IP range. + type: string + required: false + gateway_ip: + description: The gateway IP address. + type: string + required: false + network_name: + description: An Identifier that represents an existing Network instance in the underlying cloud infrastructure - OR - be used as the name of the new created network. + type: string + required: false + network_id: + description: An Identifier that represents an existing Network instance in the underlying cloud infrastructure. This property is mutually exclusive with all other properties except network_name. + type: string + required: false + segmentation_id: + description: A segmentation identifier in the underlying cloud infrastructure (e.g., VLAN id, GRE tunnel id). If the segmentation_id is specified, the network_type or physical_network properties should be provided as well. + type: string + required: false + network_type: + description: Optionally, specifies the nature of the physical network in the underlying cloud infrastructure. Examples are flat, vlan, gre or vxlan. For flat and vlan types, physical_network should be provided too. + type: string + required: false + physical_network: + description: Optionally, identifies the physical network on top of which the network is implemented, e.g. physnet1. This property is required if network_type is flat or vlan. + type: string + required: false + dhcp_enabled: + description: Indicates the TOSCA container to create a virtual network instance with or without a DHCP service. + type: boolean + default: true + required: false + capabilities: + link: + type: tosca.capabilities.network.Linkable + + tosca.nodes.WebServer: + derived_from: tosca.nodes.SoftwareComponent + description: This TOSCA WebServer Node Type represents an abstract software component or service that is capable of hosting and providing management operations for one or more WebApplication nodes. + capabilities: + data_endpoint: + type: tosca.capabilities.Endpoint + admin_endpoint: + type: tosca.capabilities.Endpoint.Admin + host: + type: tosca.capabilities.Container + valid_source_types: + - tosca.nodes.WebApplication + + tosca.nodes.Container.Application: + derived_from: tosca.nodes.Root + description: The TOSCA Container Application node represents an application that requires Container-level virtualization technology. + requirements: + - host: + capability: tosca.capabilities.Container + relationship: tosca.relationships.HostedOn + + tosca.nodes.Container.Runtime: + derived_from: tosca.nodes.SoftwareComponent + description: The TOSCA Container Runtime node represents operating system-level virtualization technology used to run multiple application services on a single Compute host. + capabilities: + host: + type: tosca.capabilities.Container + scalable: + type: tosca.capabilities.Scalable + + tosca.nodes.SoftwareComponent: + derived_from: tosca.nodes.Root + description: The TOSCA SoftwareComponent node represents a generic software component that can be managed and run by a TOSCA Compute Node Type. + properties: + component_version: + description: The optional software component's version. + type: version + required: false + admin_credential: + description: The optional credential that can be used to authenticate to the software component. + type: tosca.datatypes.Credential + required: false + requirements: + - host: + capability: tosca.capabilities.Container + node: tosca.nodes.Compute + relationship: tosca.relationships.HostedOn + + tosca.nodes.BlockStorage: + derived_from: tosca.nodes.Root + description: '' + properties: + size: + description: The requested storage size (default unit is MB). + type: scalar-unit.size + constraints: + - greater_or_equal: 1 MB + volume_id: + description: ID of an existing volume (that is in the accessible scope of the requesting application). + type: string + required: false + snapshot_id: + description: Some identifier that represents an existing snapshot that should be used when creating the block storage (volume). + type: string + required: false + capabilities: + attachment: + type: tosca.capabilities.Attachment + + tosca.nodes.network.Port: + derived_from: tosca.nodes.Root + description: |- + The TOSCA Port node represents a logical entity that associates between Compute and Network normative types. + The Port node type effectively represents a single virtual NIC on the Compute node instance. + properties: + ip_address: + description: Allow the user to set a fixed IP address. Note that this address is a request to the provider which they will attempt to fulfill but may not be able to dependent on the network the port is associated with. + type: string + required: false + order: + description: 'The order of the NIC on the compute instance (e.g. eth2). Note: + when binding more than one port to a single compute (aka multi vNICs) and + ordering is desired, it is *mandatory* that all ports will be set with an + order value and. The order values must represent a positive, arithmetic + progression that starts with 0 (e.g. 0, 1, 2, ..., n).' + type: integer + default: 0 + required: false + constraints: + - greater_or_equal: 0 + is_default: + description: Set is_default=true to apply a default gateway route on the running compute instance to the associated network gateway. Only one port that is associated to single compute node can set as default=true. + type: boolean + default: false + required: false + ip_range_start: + description: Defines the starting IP of a range to be allocated for the compute instances that are associated by this Port. Without setting this property the IP allocation is done from the entire CIDR block of the network. + type: string + required: false + ip_range_end: + description: Defines the ending IP of a range to be allocated for the compute instances that are associated by this Port. Without setting this property the IP allocation is done from the entire CIDR block of the network. + type: string + required: false + attributes: + ip_address: + description: The IP address would be assigned to the associated compute instance. + type: string + requirements: + - link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - binding: + capability: tosca.capabilities.network.Bindable + relationship: tosca.relationships.network.BindsTo + + tosca.nodes.LoadBalancer: + derived_from: tosca.nodes.Root + description: The TOSCA Load Balancer node represents logical function that be used in conjunction with a Floating Address to distribute an application's traffic (load) across a number of instances of the application (e.g., for a clustered or scaled application). + capabilities: + client: + description: The Floating (IP) client's on the public network can connect to. + type: tosca.capabilities.Endpoint.Public + occurrences: + - 0 + - UNBOUNDED + requirements: + - application: + capability: tosca.capabilities.Endpoint + relationship: tosca.relationships.RoutesTo + occurrences: + - 0 + - UNBOUNDED + + tosca.nodes.Database: + derived_from: tosca.nodes.Root + description: The TOSCA Database node represents a logical database that can be managed and hosted by a TOSCA DBMS node. + properties: + name: + description: The logical database Name. + type: string + port: + description: The port the database service will use to listen for incoming data and requests. + type: integer + required: false + user: + description: The special user account used for database administration. + type: string + required: false + password: + description: The password associated with the user account provided in the 'user' property. + type: string + required: false + capabilities: + database_endpoint: + type: tosca.capabilities.Endpoint.Database + requirements: + - host: + capability: tosca.capabilities.Container + node: tosca.nodes.DBMS + relationship: tosca.relationships.HostedOn diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/policies.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/policies.yml new file mode 100644 index 0000000000..da9c14a230 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/policies.yml @@ -0,0 +1,43 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: tosca/policies.yml + version: '1.0' + +imports: +- tosca_index: + file: _index.yml + +policy_types: + tosca.policies.Root: + description: This is the default (root) TOSCA Policy Type definition that all other TOSCA base Policy Types derive from. + + tosca.policies.Update: + derived_from: tosca.policies.Root + description: This is the default (root) TOSCA Policy Type definition that is used to govern update of TOSCA nodes or groups of nodes. + + tosca.policies.Placement: + derived_from: tosca.policies.Root + description: This is the default (root) TOSCA Policy Type definition that is used to govern placement of TOSCA nodes or groups of nodes. + + tosca.policies.Performance: + derived_from: tosca.policies.Root + description: This is the default (root) TOSCA Policy Type definition that is used to declare performance requirements for TOSCA nodes or groups of nodes. + + tosca.policies.Scaling: + derived_from: tosca.policies.Root + description: This is the default (root) TOSCA Policy Type definition that is used to govern scaling of TOSCA nodes or groups of nodes. diff --git a/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/relationships.yml b/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/relationships.yml new file mode 100644 index 0000000000..233b59be44 --- /dev/null +++ b/common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/relationships.yml @@ -0,0 +1,106 @@ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +tosca_definitions_version: tosca_simple_yaml_1_1 + +metadata: + filename: tosca/relationships.yml + version: '1.0' + +imports: +- tosca_index: + file: _index.yml + +relationship_types: + tosca.relationships.Root: + description: This is the default (root) TOSCA Relationship Type definition that all other TOSCA Relationship Types derive from. + attributes: + tosca_id: + description: A unique identifier of the realized instance of a Relationship Template that derives from any TOSCA normative type. + type: string + tosca_name: + description: This attribute reflects the name of the Relationship Template as defined in the TOSCA service template. This name is not unique to the realized instance model of corresponding deployed application as each template in the model can result in one or more instances (e.g., scaled) when orchestrated to a provider environment. + type: string + state: + description: The state of the relationship instance. + type: string + default: initial + interfaces: + Configure: + type: tosca.interfaces.relationship.Configure + + tosca.relationships.RoutesTo: + derived_from: tosca.relationships.ConnectsTo + description: This type represents an intentional network routing between two Endpoints in different networks. + valid_target_types: + - tosca.capabilities.Endpoint + + tosca.relationships.network.LinksTo: + derived_from: tosca.relationships.DependsOn + description: This relationship type represents an association relationship between Port and Network node types. + valid_target_types: + - tosca.capabilities.network.Linkable + + tosca.relationships.AttachesTo: + derived_from: tosca.relationships.Root + description: This type represents an attachment relationship between two nodes. For example, an AttachesTo relationship type would be used for attaching a storage node to a Compute node. + valid_target_types: + - tosca.capabilities.Attachment + properties: + location: + description: 'The relative location (e.g., path on the file system), which + provides the root location to address an attached node. e.g., a mount point + / path such as ''/usr/data''. Note: The user must provide it and it cannot + be "root".' + type: string + constraints: + - min_length: 1 + device: + description: The logical device name which for the attached device (which is represented by the target node in the model). e.g., '/dev/hda1'. + type: string + required: false + attributes: + device: + description: 'The logical name of the device as exposed to the instance. Note: + A runtime property that gets set when the model gets instantiated by the + orchestrator.' + type: string + + tosca.relationships.network.BindsTo: + derived_from: tosca.relationships.DependsOn + description: This type represents a network association relationship between Port and Compute node types. + valid_target_types: + - tosca.capabilities.network.Bindable + + tosca.relationships.HostedOn: + derived_from: tosca.relationships.Root + description: This type represents a hosting relationship between two nodes. + valid_target_types: + - tosca.capabilities.Container + + tosca.relationships.DependsOn: + derived_from: tosca.relationships.Root + description: This type represents a general dependency relationship between two nodes. + valid_target_types: + - tosca.capabilities.Node + + tosca.relationships.ConnectsTo: + derived_from: tosca.relationships.Root + description: This type represents a network connection relationship between two nodes. + valid_target_types: + - tosca.capabilities.Endpoint + properties: + credential: + type: tosca.datatypes.Credential + required: false diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-api/pom.xml b/common/openecomp-common-configuration-management/openecomp-configuration-management-api/pom.xml deleted file mode 100644 index 0a06aa3f4e..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-api/pom.xml +++ /dev/null @@ -1,15 +0,0 @@ - - 4.0.0 - - openecomp-configuration-management-api - openecomp-configuration-management-api - - - openecomp-common-configuration-management - org.openecomp.sdc.common - 1.2.0-SNAPSHOT - .. - - - diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/Config.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/Config.java deleted file mode 100644 index 2859ce639b..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/Config.java +++ /dev/null @@ -1,21 +0,0 @@ -package org.openecomp.config.api; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/** - * The interface Config. - */ -@Target({ElementType.TYPE, ElementType.FIELD}) -@Retention(RetentionPolicy.RUNTIME) -public @interface Config { - - /** - * Key string. - * - * @return the string - */ - String key() default ""; -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/Configuration.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/Configuration.java deleted file mode 100644 index 07db4ab3aa..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/Configuration.java +++ /dev/null @@ -1,831 +0,0 @@ -package org.openecomp.config.api; - -import java.util.Arrays; -import java.util.List; -import java.util.Map; - -/** - * The interface Configuration. - */ -public interface Configuration { - /** - * The constant tenant. - */ - public static ThreadLocal tenant = new ThreadLocal<>(); - - /** - * Sets tenant id. - * - * @param id the id - */ - public static void setTenantId(String id) { - if (id != null && id.trim().length() > 0) { - tenant.set(id); - } - } - - /** - * Gets as string. - * - * @param key the key - * @return the as string - */ - public default String getAsString(String key) { - return getAsString(null, key); - } - - /** - * Gets as string. - * - * @param namespace the namespace - * @param key the key - * @return the as string - */ - public default String getAsString(String namespace, String key) { - return getAsString(tenant.get(), namespace, key); - } - - /** - * Gets as string. - * - * @param tenantId the tenant id - * @param namespace the namespace - * @param key the key - * @return the as string - */ - public default String getAsString(String tenantId, String namespace, String key) { - return get(tenantId, namespace, key, String.class); - } - - /** - * Gets as byte value. - * - * @param key the key - * @return the as byte value - */ - public default Byte getAsByteValue(String key) { - return getAsByteValue(null, key); - } - - /** - * Gets as byte value. - * - * @param namespace the namespace - * @param key the key - * @return the as byte value - */ - public default Byte getAsByteValue(String namespace, String key) { - return getAsByteValue(tenant.get(), namespace, key); - } - - /** - * Gets as byte value. - * - * @param tenantId the tenant id - * @param namespace the namespace - * @param key the key - * @return the as byte value - */ - public default Byte getAsByteValue(String tenantId, String namespace, String key) { - return get(tenantId, namespace, key, Byte.class); - } - - /** - * Gets as short value. - * - * @param key the key - * @return the as short value - */ - public default Short getAsShortValue(String key) { - return getAsShortValue(null, key); - } - - /** - * Gets as short value. - * - * @param namespace the namespace - * @param key the key - * @return the as short value - */ - public default Short getAsShortValue(String namespace, String key) { - return getAsShortValue(tenant.get(), namespace, key); - } - - /** - * Gets as short value. - * - * @param tenantId the tenant id - * @param namespace the namespace - * @param key the key - * @return the as short value - */ - public default Short getAsShortValue(String tenantId, String namespace, String key) { - return get(tenantId, namespace, key, Short.class); - } - - /** - * Gets as integer value. - * - * @param key the key - * @return the as integer value - */ - public default Integer getAsIntegerValue(String key) { - return getAsIntegerValue(null, key); - } - - /** - * Gets as integer value. - * - * @param namespace the namespace - * @param key the key - * @return the as integer value - */ - public default Integer getAsIntegerValue(String namespace, String key) { - return getAsIntegerValue(tenant.get(), namespace, key); - } - - /** - * Gets as integer value. - * - * @param tenantId the tenant id - * @param namespace the namespace - * @param key the key - * @return the as integer value - */ - public default Integer getAsIntegerValue(String tenantId, String namespace, String key) { - return get(tenantId, namespace, key, Integer.class); - } - - /** - * Gets as long value. - * - * @param key the key - * @return the as long value - */ - public default Long getAsLongValue(String key) { - return getAsLongValue(null, key); - } - - /** - * Gets as long value. - * - * @param namespace the namespace - * @param key the key - * @return the as long value - */ - public default Long getAsLongValue(String namespace, String key) { - return getAsLongValue(tenant.get(), namespace, key); - } - - /** - * Gets as long value. - * - * @param tenantId the tenant id - * @param namespace the namespace - * @param key the key - * @return the as long value - */ - public default Long getAsLongValue(String tenantId, String namespace, String key) { - return get(tenantId, namespace, key, Long.class); - } - - /** - * Gets as float value. - * - * @param key the key - * @return the as float value - */ - public default Float getAsFloatValue(String key) { - return getAsFloatValue(null, key); - } - - /** - * Gets as float value. - * - * @param namespace the namespace - * @param key the key - * @return the as float value - */ - public default Float getAsFloatValue(String namespace, String key) { - return getAsFloatValue(tenant.get(), namespace, key); - } - - /** - * Gets as float value. - * - * @param tenantId the tenant id - * @param namespace the namespace - * @param key the key - * @return the as float value - */ - public default Float getAsFloatValue(String tenantId, String namespace, String key) { - return get(tenantId, namespace, key, Float.class); - } - - /** - * Gets as double value. - * - * @param key the key - * @return the as double value - */ - public default Double getAsDoubleValue(String key) { - return getAsDoubleValue(null, key); - } - - /** - * Gets as double value. - * - * @param namespace the namespace - * @param key the key - * @return the as double value - */ - public default Double getAsDoubleValue(String namespace, String key) { - return getAsDoubleValue(tenant.get(), namespace, key); - } - - /** - * Gets as double value. - * - * @param tenantId the tenant id - * @param namespace the namespace - * @param key the key - * @return the as double value - */ - public default Double getAsDoubleValue(String tenantId, String namespace, String key) { - return get(tenantId, namespace, key, Double.class); - } - - /** - * Gets as boolean value. - * - * @param key the key - * @return the as boolean value - */ - public default Boolean getAsBooleanValue(String key) { - return getAsBooleanValue(null, key); - } - - /** - * Gets as boolean value. - * - * @param namespace the namespace - * @param key the key - * @return the as boolean value - */ - public default Boolean getAsBooleanValue(String namespace, String key) { - return getAsBooleanValue(tenant.get(), namespace, key); - } - - /** - * Gets as boolean value. - * - * @param tenantId the tenant id - * @param namespace the namespace - * @param key the key - * @return the as boolean value - */ - public default Boolean getAsBooleanValue(String tenantId, String namespace, String key) { - return get(tenantId, namespace, key, Boolean.class); - } - - /** - * Gets as char value. - * - * @param key the key - * @return the as char value - */ - public default Character getAsCharValue(String key) { - return getAsCharValue(null, key); - } - - /** - * Gets as char value. - * - * @param namespace the namespace - * @param key the key - * @return the as char value - */ - public default Character getAsCharValue(String namespace, String key) { - return getAsCharValue(tenant.get(), namespace, key); - } - - /** - * Gets as char value. - * - * @param tenantId the tenant id - * @param namespace the namespace - * @param key the key - * @return the as char value - */ - public default Character getAsCharValue(String tenantId, String namespace, String key) { - return get(tenantId, namespace, key, Character.class); - } - - /** - * Populate configuration t. - * - * @param the type parameter - * @param clazz the clazz - * @return the t - */ - public default T populateConfiguration(Class clazz) { - return populateConfiguration(null, clazz); - } - - /** - * Populate configuration t. - * - * @param the type parameter - * @param namespace the namespace - * @param clazz the clazz - * @return the t - */ - public default T populateConfiguration(String namespace, Class clazz) { - return populateConfiguration(tenant.get(), namespace, clazz); - } - - /** - * Populate configuration t. - * - * @param the type parameter - * @param tenantId the tenant id - * @param namespace the namespace - * @param clazz the clazz - * @return the t - */ - public default T populateConfiguration(String tenantId, String namespace, Class clazz) { - return get(tenantId, namespace, null, clazz, Hint.EXTERNAL_LOOKUP); - } - - /** - * Gets dynamic configuration. - * - * @param the type parameter - * @param key the key - * @param clazz the clazz - * @param defaultValue the default value - * @return the dynamic configuration - */ - public default DynamicConfiguration getDynamicConfiguration(String key, Class clazz, - T defaultValue) { - return getDynamicConfiguration(null, key, clazz, defaultValue); - } - - /** - * Gets dynamic configuration. - * - * @param the type parameter - * @param namespace the namespace - * @param key the key - * @param clazz the clazz - * @param defaultValue the default value - * @return the dynamic configuration - */ - public default DynamicConfiguration getDynamicConfiguration(String namespace, String key, - Class clazz, - T defaultValue) { - return getDynamicConfiguration(tenant.get(), namespace, key, clazz, defaultValue); - } - - /** - * Gets dynamic configuration. - * - * @param the type parameter - * @param tenant the tenant - * @param namespace the namespace - * @param key the key - * @param clazz the clazz - * @param defaultValue the default value - * @return the dynamic configuration - */ - public default DynamicConfiguration getDynamicConfiguration(String tenant, - String namespace, String key, - Class clazz, - T defaultValue) { - return DynamicConfiguration - .getDynamicConfiguration(tenant, namespace, key, clazz, defaultValue, this); - } - - /** - * Gets dynamic configuration values. - * - * @param the type parameter - * @param key the key - * @param clazz the clazz - * @param defaultValue the default value - * @return the dynamic configuration values - */ - public default DynamicConfiguration> getDynamicConfigurationValues(String key, - Class clazz, - T defaultValue) { - return getDynamicConfigurationValues(null, key, clazz, defaultValue); - } - - /** - * Gets dynamic configuration values. - * - * @param the type parameter - * @param namespace the namespace - * @param key the key - * @param clazz the clazz - * @param defaultValue the default value - * @return the dynamic configuration values - */ - public default DynamicConfiguration> getDynamicConfigurationValues(String namespace, - String key, - Class clazz, - T defaultValue) { - return getDynamicConfigurationValues(tenant.get(), namespace, key, clazz, defaultValue); - } - - /** - * Gets dynamic configuration values. - * - * @param the type parameter - * @param tenant the tenant - * @param namespace the namespace - * @param key the key - * @param clazz the clazz - * @param defaultValue the default value - * @return the dynamic configuration values - */ - public default DynamicConfiguration> getDynamicConfigurationValues(String tenant, - String namespace, - String key, - Class clazz, - T defaultValue) { - return DynamicConfiguration - .getDynConfiguration(tenant, namespace, key, clazz, defaultValue, this); - } - - /** - * Gets as string values. - * - * @param key the key - * @return the as string values - */ - public default List getAsStringValues(String key) { - return getAsStringValues(null, key); - } - - /** - * Gets as string values. - * - * @param namespace the namespace - * @param key the key - * @return the as string values - */ - public default List getAsStringValues(String namespace, String key) { - return getAsStringValues(tenant.get(), namespace, key); - } - - /** - * Gets as string values. - * - * @param tenantId the tenant id - * @param namespace the namespace - * @param key the key - * @return the as string values - */ - public default List getAsStringValues(String tenantId, String namespace, String key) { - String[] tempArray = get(tenantId, namespace, key, String[].class); - return tempArray == null ? Arrays.asList() : Arrays.asList(tempArray); - } - - /** - * Gets as byte values. - * - * @param key the key - * @return the as byte values - */ - public default List getAsByteValues(String key) { - return getAsByteValues(null, key); - } - - /** - * Gets as byte values. - * - * @param namespace the namespace - * @param key the key - * @return the as byte values - */ - public default List getAsByteValues(String namespace, String key) { - return getAsByteValues(tenant.get(), namespace, key); - } - - /** - * Gets as byte values. - * - * @param tenantId the tenant id - * @param namespace the namespace - * @param key the key - * @return the as byte values - */ - public default List getAsByteValues(String tenantId, String namespace, String key) { - Byte[] tempArray = get(tenantId, namespace, key, Byte[].class); - return tempArray == null ? Arrays.asList() : Arrays.asList(tempArray); - } - - /** - * Gets as short values. - * - * @param key the key - * @return the as short values - */ - public default List getAsShortValues(String key) { - return getAsShortValues(null, key); - } - - /** - * Gets as short values. - * - * @param namespace the namespace - * @param key the key - * @return the as short values - */ - public default List getAsShortValues(String namespace, String key) { - return getAsShortValues(tenant.get(), namespace, key); - } - - /** - * Gets as short values. - * - * @param tenantId the tenant id - * @param namespace the namespace - * @param key the key - * @return the as short values - */ - public default List getAsShortValues(String tenantId, String namespace, String key) { - Short[] tempArray = get(tenantId, namespace, key, Short[].class); - return tempArray == null ? Arrays.asList() : Arrays.asList(tempArray); - } - - /** - * Gets as integer values. - * - * @param key the key - * @return the as integer values - */ - public default List getAsIntegerValues(String key) { - return getAsIntegerValues(null, key); - } - - /** - * Gets as integer values. - * - * @param namespace the namespace - * @param key the key - * @return the as integer values - */ - public default List getAsIntegerValues(String namespace, String key) { - return getAsIntegerValues(tenant.get(), namespace, key); - } - - /** - * Gets as integer values. - * - * @param tenantId the tenant id - * @param namespace the namespace - * @param key the key - * @return the as integer values - */ - public default List getAsIntegerValues(String tenantId, String namespace, String key) { - Integer[] tempArray = get(tenantId, namespace, key, Integer[].class); - return tempArray == null ? Arrays.asList() : Arrays.asList(tempArray); - } - - /** - * Gets as double values. - * - * @param key the key - * @return the as double values - */ - public default List getAsDoubleValues(String key) { - return getAsDoubleValues(null, key); - } - - /** - * Gets as double values. - * - * @param namespace the namespace - * @param key the key - * @return the as double values - */ - public default List getAsDoubleValues(String namespace, String key) { - return getAsDoubleValues(tenant.get(), namespace, key); - } - - /** - * Gets as double values. - * - * @param tenantId the tenant id - * @param namespace the namespace - * @param key the key - * @return the as double values - */ - public default List getAsDoubleValues(String tenantId, String namespace, String key) { - Double[] tempArray = get(tenantId, namespace, key, Double[].class); - return tempArray == null ? Arrays.asList() : Arrays.asList(tempArray); - } - - /** - * Gets as float values. - * - * @param key the key - * @return the as float values - */ - public default List getAsFloatValues(String key) { - return getAsFloatValues(null, key); - } - - /** - * Gets as float values. - * - * @param namespace the namespace - * @param key the key - * @return the as float values - */ - public default List getAsFloatValues(String namespace, String key) { - return getAsFloatValues(tenant.get(), namespace, key); - } - - /** - * Gets as float values. - * - * @param tenantId the tenant id - * @param namespace the namespace - * @param key the key - * @return the as float values - */ - public default List getAsFloatValues(String tenantId, String namespace, String key) { - Float[] tempArray = get(tenantId, namespace, key, Float[].class); - return tempArray == null ? Arrays.asList() : Arrays.asList(tempArray); - } - - /** - * Gets as boolean values. - * - * @param key the key - * @return the as boolean values - */ - public default List getAsBooleanValues(String key) { - return getAsBooleanValues(null, key); - } - - /** - * Gets as boolean values. - * - * @param namespace the namespace - * @param key the key - * @return the as boolean values - */ - public default List getAsBooleanValues(String namespace, String key) { - return getAsBooleanValues(tenant.get(), namespace, key); - } - - /** - * Gets as boolean values. - * - * @param tenantId the tenant id - * @param namespace the namespace - * @param key the key - * @return the as boolean values - */ - public default List getAsBooleanValues(String tenantId, String namespace, String key) { - Boolean[] tempArray = get(tenantId, namespace, key, Boolean[].class); - return tempArray == null ? Arrays.asList() : Arrays.asList(tempArray); - } - - /** - * Gets as character values. - * - * @param key the key - * @return the as character values - */ - public default List getAsCharacterValues(String key) { - return getAsCharacterValues(null, key); - } - - /** - * Gets as character values. - * - * @param namespace the namespace - * @param key the key - * @return the as character values - */ - public default List getAsCharacterValues(String namespace, String key) { - return getAsCharacterValues(tenant.get(), namespace, key); - } - - /** - * Gets as character values. - * - * @param tenantId the tenant id - * @param namespace the namespace - * @param key the key - * @return the as character values - */ - public default List getAsCharacterValues(String tenantId, String namespace, - String key) { - Character[] tempArray = get(tenantId, namespace, key, Character[].class); - return tempArray == null ? Arrays.asList() : Arrays.asList(tempArray); - } - - /** - * Get t. - * - * @param the type parameter - * @param tenant the tenant - * @param namespace the namespace - * @param key the key - * @param clazz the clazz - * @param hints the hints - * @return the t - */ - public T get(String tenant, String namespace, String key, Class clazz, Hint... hints); - - /** - * Add configuration change listener. - * - * @param key the key - * @param myself the myself - */ - public default void addConfigurationChangeListener(String key, - ConfigurationChangeListener myself) { - addConfigurationChangeListener(null, key, myself); - } - - /** - * Add configuration change listener. - * - * @param namespace the namespace - * @param key the key - * @param myself the myself - */ - public default void addConfigurationChangeListener(String namespace, String key, - ConfigurationChangeListener myself) { - addConfigurationChangeListener(tenant.get(), namespace, key, myself); - } - - /** - * Add configuration change listener. - * - * @param tenant the tenant - * @param namespace the namespace - * @param key the key - * @param myself the myself - */ - public void addConfigurationChangeListener(String tenant, String namespace, String key, - ConfigurationChangeListener myself); - - /** - * Remove configuration change listener. - * - * @param key the key - * @param myself the myself - */ - public default void removeConfigurationChangeListener(String key, - ConfigurationChangeListener myself) { - removeConfigurationChangeListener(null, key, myself); - } - - /** - * Remove configuration change listener. - * - * @param namespace the namespace - * @param key the key - * @param myself the myself - */ - public default void removeConfigurationChangeListener(String namespace, String key, - ConfigurationChangeListener myself) { - removeConfigurationChangeListener(tenant.get(), namespace, key, myself); - } - - /** - * Remove configuration change listener. - * - * @param tenant the tenant - * @param namespace the namespace - * @param key the key - * @param myself the myself - */ - public void removeConfigurationChangeListener(String tenant, String namespace, String key, - ConfigurationChangeListener myself); - - public default Map populateMap(String key, Class clazz){ - return populateMap(null, key, clazz); - } - public default Map populateMap(String namespace, String key, Class clazz){ - return populateMap(tenant.get(), namespace, key, clazz); - } - public Map populateMap(String tenantId, String namespace, String key, Class clazz); - - public default Map generateMap(String key){ - return generateMap(null, key); - } - public default Map generateMap(String namespace, String key){ - return generateMap(tenant.get(), namespace, key); - } - public Map generateMap(String tenantId, String namespace, String key); - -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/ConfigurationChangeListener.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/ConfigurationChangeListener.java deleted file mode 100644 index f7510aef0a..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/ConfigurationChangeListener.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.openecomp.config.api; - -public interface ConfigurationChangeListener { - - public default void notify(String tenantId, String component, String key, Object oldValue, - Object newValue) { - } - - public default void notify(String component, String key, Object oldValue, Object newValue) { - } - - public default void notify(String key, Object oldValue, Object newValue) { - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/ConfigurationManager.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/ConfigurationManager.java deleted file mode 100644 index ffa9255f2c..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/ConfigurationManager.java +++ /dev/null @@ -1,98 +0,0 @@ -package org.openecomp.config.api; - - -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Proxy; -import java.util.Collection; -import java.util.Map; -import java.util.ServiceLoader; - -/** - * The interface Configuration manager. - */ -public interface ConfigurationManager extends Configuration { - - /** - * The constant config. - */ - public static final Configuration config = lookup(); - - /** - * Lookup configuration. - * - * @return the configuration - */ - public static Configuration lookup() { - if (config == null) { - ServiceLoader loader = ServiceLoader.load(ConfigurationManager.class); - for (ConfigurationManager configuration : loader) { - return (Configuration) Proxy.newProxyInstance(ConfigurationManager.class.getClassLoader(), - new Class[]{Configuration.class}, (object, method, args) -> { - try { - return method.invoke(configuration, args); - } catch (InvocationTargetException ite) { - throw ite.getTargetException(); - } - }); - } - } - return config; - } - - /** - * Gets configuration value. - * - * @param queryData the query data - * @return the configuration value - */ - public String getConfigurationValue(Map queryData); - - /** - * Update configuration value. - * - * @param updateData the update data - */ - public void updateConfigurationValue(Map updateData); - - /** - * List configuration map. - * - * @param query the query - * @return the map - */ - public Map listConfiguration(Map query); - - /** - * Update configuration values boolean. - * - * @param tenant the tenant - * @param namespace the namespace - * @param configKeyValueStore the config key value store - * @return the boolean - */ - public boolean updateConfigurationValues(String tenant, String namespace, - Map configKeyValueStore); - - /** - * Gets tenants. - * - * @return the tenants - */ - public Collection getTenants(); - - /** - * Gets namespaces. - * - * @return the namespaces - */ - public Collection getNamespaces(); - - /** - * Gets keys. - * - * @param tenant the tenant - * @param namespace the namespace - * @return the keys - */ - public Collection getKeys(String tenant, String namespace); -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/DynamicConfiguration.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/DynamicConfiguration.java deleted file mode 100644 index 3b64fe71a9..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/DynamicConfiguration.java +++ /dev/null @@ -1,146 +0,0 @@ -package org.openecomp.config.api; - -import java.util.Arrays; -import java.util.List; - -/** - * The type Dynamic configuration. - * - * @param the type parameter - */ -public class DynamicConfiguration { - - /** - * The Tenant. - */ - String tenant; - /** - * The Namespace. - */ - String namespace; - /** - * The Key. - */ - String key; - /** - * The Configuration. - */ - Configuration configuration; - /** - * The Clazz. - */ - Class clazz; - /** - * The Default value. - */ - T defaultValue; - - /** - * Gets dynamic configuration. - * - * @param the type parameter - * @param tenant the tenant - * @param namespace the namespace - * @param key the key - * @param clazz the clazz - * @param defaultValue the default value - * @param configuration the configuration - * @return the dynamic configuration - */ - public static DynamicConfiguration getDynamicConfiguration(String tenant, String namespace, - String key, Class clazz, - T defaultValue, - Configuration configuration) { - DynamicConfiguration dynamicConfiguration = new DynamicConfiguration<>(); - dynamicConfiguration.tenant = tenant; - dynamicConfiguration.namespace = namespace; - dynamicConfiguration.key = key; - dynamicConfiguration.clazz = clazz; - dynamicConfiguration.defaultValue = defaultValue; - dynamicConfiguration.configuration = configuration; - return dynamicConfiguration; - } - - /** - * Gets dyn configuration. - * - * @param the type parameter - * @param tenant the tenant - * @param namespace the namespace - * @param key the key - * @param clazz the clazz - * @param defaultValue the default value - * @param configuration the configuration - * @return the dyn configuration - */ - public static DynamicConfiguration> getDynConfiguration(String tenant, - String namespace, String key, - Class clazz, - K defaultValue, - Configuration configuration) { - if (clazz.isPrimitive()) { - throw new RuntimeException( - "Only Wrapper classes like Integer, Long, Double, " - + "Boolean etc including String are supported."); - } - return getDynamicConfiguration(tenant, namespace, key, getArrayClass(clazz), - Arrays.asList(defaultValue), configuration); - } - - /** - * Gets array class. - * - * @param clazz the clazz - * @return the array class - */ - public static Class getArrayClass(Class clazz) { - Class arrayClass = null; - switch (clazz.getName()) { - case "java.lang.Byte": - arrayClass = Byte[].class; - break; - case "java.lang.Short": - arrayClass = Short[].class; - break; - case "java.lang.Integer": - arrayClass = Integer[].class; - break; - case "java.lang.Long": - arrayClass = Long[].class; - break; - case "java.lang.Float": - arrayClass = Float[].class; - break; - case "java.lang.Double": - arrayClass = Double[].class; - break; - case "java.lang.Boolean": - arrayClass = Boolean[].class; - break; - case "java.lang.Character": - arrayClass = Character[].class; - break; - case "java.lang.String": - arrayClass = String[].class; - break; - default: - } - return arrayClass; - } - - /** - * Get t. - * - * @return the t - */ - public T get() { - Object toReturn = configuration - .get(tenant, namespace, key, clazz, Hint.LATEST_LOOKUP, Hint.EXTERNAL_LOOKUP, - Hint.NODE_SPECIFIC); - if (toReturn != null && toReturn.getClass().isArray()) { - toReturn = Arrays.asList((Object[]) toReturn); - } - return toReturn == null ? defaultValue : (T) toReturn; - } - -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/Hint.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/Hint.java deleted file mode 100644 index 600c76df52..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-api/src/main/java/org/openecomp/config/api/Hint.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.openecomp.config.api; - -public enum Hint { - - DEFAULT(0b0), LATEST_LOOKUP(0b1), EXTERNAL_LOOKUP(0b10), NODE_SPECIFIC(0b100); - - private final int lookupHint; - - private Hint(int hnt) { - lookupHint = hnt; - } - - public int value() { - return lookupHint; - } - - -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-cli/pom.xml b/common/openecomp-common-configuration-management/openecomp-configuration-management-cli/pom.xml deleted file mode 100644 index 7d55d66446..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-cli/pom.xml +++ /dev/null @@ -1,55 +0,0 @@ - - 4.0.0 - - org.openecomp.sdc.common - openecomp-configuration-management-cli - openecomp-configuration-management-cli - - - openecomp-common-configuration-management - org.openecomp.sdc.common - 1.2.0-SNAPSHOT - .. - - - - - org.openecomp.sdc.common - openecomp-configuration-management-api - ${project.version} - - - tools - tools - 1.8 - true - - - - - - - org.apache.maven.plugins - maven-shade-plugin - 1.5 - - - package - - shade - - - - - org.openecomp.config.gui.app.Configuration - - - - - - - - - - diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-cli/src/main/java/org/openecomp/config/cli/app/Configuration.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-cli/src/main/java/org/openecomp/config/cli/app/Configuration.java deleted file mode 100644 index d43c0505a8..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-cli/src/main/java/org/openecomp/config/cli/app/Configuration.java +++ /dev/null @@ -1,119 +0,0 @@ -package org.openecomp.config.cli.app; - -import org.openecomp.config.api.ConfigurationChangeListener; -import org.openecomp.config.api.ConfigurationManager; - -import java.util.HashMap; -import java.util.Map; - -import javax.management.JMX; -import javax.management.MBeanServerConnection; -import javax.management.ObjectName; -import javax.management.remote.JMXConnector; -import javax.management.remote.JMXConnectorFactory; -import javax.management.remote.JMXServiceURL; - -/** - * The type Configuration. - */ -public class Configuration { - - /** - * The entry point of application. - * - * @param args the input arguments - * @throws Exception the exception - */ - public static void main(String[] args) throws Exception { - - String host = getValueFor("host", args); - String port = getValueFor("port", args); - - if (host == null) { - host = "127.0.0.1"; - } - if (port == null) { - port = "9999"; - } - JMXServiceURL url = - new JMXServiceURL("service:jmx:rmi:///jndi/rmi://" + host + ":" + port + "/jmxrmi"); - Map env = new HashMap<>(); - //populate dummy value. need to be changed as per impl. - String[] credentials = {"principal", "password"}; - env.put(JMXConnector.CREDENTIALS, credentials); - - try (JMXConnector jmxc = JMXConnectorFactory.connect(url, env)) { - - boolean isUpdate = isKeyPresent("update", args); - - Map input = new HashMap<>(); - input.put("ImplClass", isUpdate ? "org.openecomp.config.type.ConfigurationUpdate" - : "org.openecomp.config.type.ConfigurationQuery"); - input.put("externalLookup", isKeyPresent("lookup", args)); - input.put("nodeOverride", isKeyPresent("nodeOverride", args)); - input.put("nodeSpecific", isKeyPresent("nodeSpecific", args)); - input.put("fallback", isKeyPresent("fallback", args)); - input.put("latest", isKeyPresent("latest", args)); - input.put("tenant", getValueFor("tenant", args)); - input.put("namespace", getValueFor("namespace", args)); - input.put("key", getValueFor("key", args)); - input.put("value", getValueFor("value", args)); - - - if (!isKeyPresent("list", args) && getValueFor("key", args) == null) { - throw new RuntimeException("Key is missing."); - } - if (isKeyPresent("update", args) && getValueFor("value", args) == null) { - throw new RuntimeException("Value is missing."); - } - - - MBeanServerConnection mbsc = jmxc.getMBeanServerConnection(); - ObjectName mbeanName = new ObjectName("org.openecomp.jmx:name=SystemConfig"); - org.openecomp.config.api.ConfigurationManager conf = - JMX.newMBeanProxy(mbsc, mbeanName, org.openecomp.config.api.ConfigurationManager.class, - true); - - boolean isGet = isKeyPresent("get", args); - boolean isList = isKeyPresent("list", args); - if (isGet) { - System.out.println(conf.getConfigurationValue(input)); - } else if (isList) { - Map map = conf.listConfiguration(input); - for (Map.Entry entry : map.entrySet()) { - System.out.println(entry.getKey() + " : " + entry.getValue()); - } - } else if (isUpdate) { - conf.updateConfigurationValue(input); - } - } - } - - private static boolean isSwitch(String key) { - return key.startsWith("-"); - } - - private static String getValueFor(String key, String[] args) { - for (int i = 0; i < args.length; i++) { - if (isSwitch(args[i])) { - String node = args[i].substring(1); - if (node.equalsIgnoreCase(key) && i < args.length - 1) { - return args[i + 1].trim().length() == 0 ? null : args[i + 1].trim(); - } - } - } - return null; - } - - private static boolean isKeyPresent(String key, String[] args) { - for (int i = 0; i < args.length; i++) { - if (isSwitch(args[i])) { - String node = args[i].substring(1); - if (node.equalsIgnoreCase(key)) { - return true; - } - } - } - return false; - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-cli/src/main/java/org/openecomp/config/gui/app/Configuration.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-cli/src/main/java/org/openecomp/config/gui/app/Configuration.java deleted file mode 100644 index 3db67c536a..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-cli/src/main/java/org/openecomp/config/gui/app/Configuration.java +++ /dev/null @@ -1,623 +0,0 @@ -package org.openecomp.config.gui.app; - - -import com.sun.tools.attach.VirtualMachine; -import com.sun.tools.attach.VirtualMachineDescriptor; -import org.openecomp.config.api.ConfigurationManager; - -import java.awt.BorderLayout; -import java.awt.Button; -import java.awt.CardLayout; -import java.awt.Checkbox; -import java.awt.CheckboxGroup; -import java.awt.Choice; -import java.awt.Dialog; -import java.awt.Dimension; -import java.awt.Frame; -import java.awt.GraphicsDevice; -import java.awt.GraphicsEnvironment; -import java.awt.GridBagConstraints; -import java.awt.GridBagLayout; -import java.awt.GridLayout; -import java.awt.Label; -import java.awt.Panel; -import java.awt.ScrollPane; -import java.awt.TextArea; -import java.awt.TextField; -import java.awt.Toolkit; -import java.awt.event.ItemEvent; -import java.awt.event.WindowAdapter; -import java.awt.event.WindowEvent; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Set; -import java.util.concurrent.Executors; -import java.util.concurrent.TimeUnit; -import javax.management.JMX; -import javax.management.MBeanServerConnection; -import javax.management.ObjectName; -import javax.management.remote.JMXConnector; -import javax.management.remote.JMXConnectorFactory; -import javax.management.remote.JMXServiceURL; - - -/** - * The type Configuration. - */ -public class Configuration extends Frame { - - /** - * The Vm. - */ - VirtualMachine vm = null; - private TextField host; - private TextField port; - private TextField user; - private Choice pid; - private TextField password; - private CheckboxGroup getUpdateList; - private CheckboxGroup localRemote; - private Choice tenantChoice; - private Choice namespaceChoice; - private Choice keyChoice; - private Checkbox latest; - private Checkbox lookup; - private Checkbox fallback; - private Checkbox nodeSpecific; - private Checkbox nodeSpecificForList; - private Checkbox latestForList; - private Checkbox lookupForList; - private Checkbox fallbackForList; - private Checkbox nodeOverride; - private TextArea getValue = new TextArea(1, 50); - private TextArea updateValue = new TextArea(1, 50); - private Panel table; - private CardLayout cards; - private Panel cardPanel; - private JMXConnector connector; - private ConfigurationManager manager; - private Frame container; - private Button getKeysButton; - - /** - * Instantiates a new Configuration. - * - * @param title the title - */ - public Configuration(String title) { - super(title); - setSize(300, 300); - setLayout(new GridLayout(2, 1)); - Panel firstRowPanel = new Panel(); - firstRowPanel.setLayout(new GridLayout(0, 1)); - firstRowPanel.add( - buildHostPortPanel(host = new TextField("127.0.0.1"), port = new TextField("9999"), - pid = new Choice(), localRemote = new CheckboxGroup())); - firstRowPanel - .add(buildUserPasswordPanel(user = new TextField(""), password = new TextField(""))); - firstRowPanel.add(buildGetUpdatelistPanel(getUpdateList = new CheckboxGroup())); - firstRowPanel.add( - buildTenantNamespacePanel(tenantChoice = new Choice(), namespaceChoice = new Choice())); - firstRowPanel.add(buildKeyPanel(keyChoice = new Choice())); - add(firstRowPanel); - add(cardPanel = buildCards(cards = new CardLayout())); - addWindowListener(new WindowAdapter() { - public void windowClosing(WindowEvent windowEvent) { - close(); - System.exit(0); - } - }); - pack(); - setVisible(true); - container = this; - centreWindow(this); - Executors.newSingleThreadScheduledExecutor().scheduleWithFixedDelay(() -> { - this.populateAvailablePids(); - validate(); - }, 30, 30, TimeUnit.SECONDS); - } - - /** - * The entry point of application. - * - * @param args the input arguments - */ - public static void main(String[] args) { - Configuration configuration = new Configuration("Configuration Management App"); - - } - - private void toggleLocalRemote(ItemEvent ie) { - if (ie.getStateChange() == ItemEvent.SELECTED) { - String usecase = (ie.getSource() instanceof Checkbox) ? ((Checkbox) ie.getSource()).getLabel() - : ((Checkbox) ie.getItem()).getLabel(); - pid.setEnabled(usecase.equals("Local")); - host.setEnabled(!usecase.equals("Local")); - port.setEnabled(!usecase.equals("Local")); - } - } - - private Panel buildHostPortPanel(TextField host, TextField port, Choice pid, - CheckboxGroup group) { - populateAvailablePids(); - Panel panel = new Panel(); - panel.setLayout(new GridBagLayout()); - GridBagConstraints gbc = new GridBagConstraints(); - gbc.fill = gbc.HORIZONTAL; - gbc.weightx = 0; - Checkbox checkbox = null; - panel.add(checkbox = new Checkbox("Local", group, pid.getItemCount() > 0), gbc); - checkbox.addItemListener(this::toggleLocalRemote); - gbc.weightx = 0; - panel.add(checkbox = new Checkbox("Remote", group, pid.getItemCount() == 0), gbc); - checkbox.addItemListener(this::toggleLocalRemote); - gbc.weightx = 0; - panel.add(new Label("PID:"), gbc); - gbc.weightx = 1; - panel.add(pid, gbc); - gbc.weightx = 0; - panel.add(new Label("Host:"), gbc); - gbc.weightx = 1; - panel.add(host, gbc); - gbc.weightx = 0; - panel.add(new Label("Port:"), gbc); - gbc.weightx = 1; - panel.add(port, gbc); - host.setEnabled(pid.getItemCount() == 0); - port.setEnabled(pid.getItemCount() == 0); - pid.setEnabled(pid.getItemCount() > 0); - return panel; - } - - private Panel buildUserPasswordPanel(TextField user, TextField password) { - Panel panel = new Panel(); - password.setEchoChar('*'); - panel.setLayout(new GridBagLayout()); - GridBagConstraints gbc = new GridBagConstraints(); - gbc.fill = gbc.HORIZONTAL; - gbc.weightx = 0; - panel.add(new Label("User : "), gbc); - gbc.weightx = 1; - panel.add(user, gbc); - gbc.weightx = 0; - panel.add(new Label("Password : "), gbc); - gbc.weightx = 1; - panel.add(password, gbc); - gbc.weightx = 0; - Button button = null; - panel.add(button = new Button("Connect"), gbc); - button.addActionListener((actionListener) -> connect()); - return panel; - } - - /** - * Build get updatelist panel panel. - * - * @param getUpdtaeList the get updtae list - * @return the panel - */ - public Panel buildGetUpdatelistPanel(CheckboxGroup getUpdtaeList) { - Panel panel = new Panel(); - Checkbox checkbox = null; - panel.setLayout(new GridLayout(1, 3)); - panel.add(checkbox = new Checkbox("Get", getUpdtaeList, true)); - checkbox.addItemListener(this::showCard); - panel.add(checkbox = new Checkbox("List", getUpdtaeList, false)); - checkbox.addItemListener(this::showCard); - panel.add(checkbox = new Checkbox("Update", getUpdtaeList, false)); - checkbox.addItemListener(this::showCard); - return panel; - } - - /** - * Build tenant namespace panel panel. - * - * @param tenant the tenant - * @param namespace the namespace - * @return the panel - */ - public Panel buildTenantNamespacePanel(Choice tenant, Choice namespace) { - Panel panel = new Panel(); - panel.setLayout(new GridBagLayout()); - GridBagConstraints gbc = new GridBagConstraints(); - gbc.fill = gbc.HORIZONTAL; - gbc.weightx = 0; - panel.add(new Label("Tenant"), gbc); - gbc.weightx = 1; - panel.add(tenant, gbc); - gbc.weightx = 0; - panel.add(new Label("Namespace"), gbc); - gbc.weightx = 1; - panel.add(namespace, gbc); - gbc.weightx = 0; - panel.add(getKeysButton = new Button("Get Keys"), gbc); - getKeysButton.addActionListener((actionListener) -> populateKeys( - manager.getKeys(tenantChoice.getSelectedItem(), namespaceChoice.getSelectedItem()))); - tenantChoice.addItemListener((itemListener) -> keyChoice.removeAll()); - namespaceChoice.addItemListener((itemListener) -> keyChoice.removeAll()); - return panel; - } - - private Panel buildConnectPanel() { - Button button = null; - Panel panel = new Panel(); - panel.setLayout(new GridLayout(1, 3)); - panel.add(new Label()); - panel.add(button = new Button("Connect")); - panel.add(new Label()); - button.addActionListener((actionListener) -> connect()); - return panel; - } - - /** - * Build key panel panel. - * - * @param keyChoice the key choice - * @return the panel - */ - public Panel buildKeyPanel(Choice keyChoice) { - Panel panel = new Panel(); - panel.setLayout(new GridBagLayout()); - GridBagConstraints gbc = new GridBagConstraints(); - gbc.fill = gbc.HORIZONTAL; - gbc.weightx = 0; - panel.add(new Label("Keys : "), gbc); - gbc.weightx = 1; - panel.add(keyChoice, gbc); - return panel; - } - - /** - * Build cards panel. - * - * @param cards the cards - * @return the panel - */ - public Panel buildCards(CardLayout cards) { - Panel panel = new Panel(); - panel.setLayout(cards); - panel.add(buildCardGetPanel(latest = new Checkbox("Latest"), - fallback = new Checkbox("Fallback"), - lookup = new Checkbox("External Lookup"), nodeSpecific = new Checkbox("Node Specific"), - getValue), "Get"); - panel.add(buildCardUpdatePanel(nodeOverride = new Checkbox("NodeOverride"), - updateValue), "Update"); - panel.add(buildCardListPanel(table = new Panel(), latestForList = new Checkbox("Latest"), - fallbackForList = new Checkbox("Fallback"), lookupForList = new Checkbox("External Lookup"), - nodeSpecificForList = new Checkbox("Node Specific")), "List"); - return panel; - } - - /** - * Build card get panel panel. - * - * @param latest the latest - * @param fallback the fallback - * @param lookup the lookup - * @param nodeSpecific the node specific - * @param value the value - * @return the panel - */ - public Panel buildCardGetPanel(Checkbox latest, Checkbox fallback, Checkbox lookup, - Checkbox nodeSpecific, TextArea value) { - Panel panel = new Panel(); - - panel.setLayout(new BorderLayout()); - Panel p1 = new Panel(); - p1.setLayout(new GridLayout(1, 4)); - p1.add(latest); - p1.add(fallback); - p1.add(nodeSpecific); - p1.add(lookup); - panel.add(p1, BorderLayout.NORTH); - panel.add(value, BorderLayout.CENTER); - Panel bottom = new Panel(); - bottom.setLayout(new GridLayout(1, 5)); - bottom.add(new Label()); - Button button = null; - bottom.add(button = new Button("GET")); - button.addActionListener((actionListener) -> value.setText(manager - .getConfigurationValue(buildMap("org.openecomp.config.type.ConfigurationQuery", value)))); - bottom.add(new Label()); - bottom.add(button = new Button("CLOSE")); - bottom.add(new Label()); - panel.add(bottom, BorderLayout.SOUTH); - button.addActionListener((actionListener) -> { - close(); - System.exit(0); - }); - return panel; - } - - private Map buildMap(String implClass, TextArea value) { - Map input = new HashMap<>(); - input.put("ImplClass", implClass);//:); - input.put("externalLookup", value != null ? lookup.getState() : lookupForList.getState()); - input.put("nodeOverride", nodeOverride.getState()); - input.put("latest", value != null ? latest.getState() : latestForList.getState()); - input.put("fallback", value != null ? fallback.getState() : fallbackForList.getState()); - input.put("nodeSpecific", - value != null ? nodeSpecific.getState() : nodeSpecificForList.getState()); - input.put("tenant", tenantChoice.getSelectedItem()); - input.put("namespace", namespaceChoice.getSelectedItem()); - if (keyChoice.getItemCount() == 0) { - message("Error", "Key is missing."); - throw new RuntimeException("Error"); - } - input.put("key", keyChoice.getSelectedItem()); - input.put("value", value == null ? "" : value.getText()); - return input; - } - - /** - * Build card update panel panel. - * - * @param nodeOverride the node override - * @param value the value - * @return the panel - */ - public Panel buildCardUpdatePanel(Checkbox nodeOverride, TextArea value) { - Panel panel = new Panel(); - panel.setLayout(new BorderLayout()); - Panel p1 = new Panel(); - p1.setLayout(new GridLayout(1, 1)); - p1.add(nodeOverride); - panel.add(p1, BorderLayout.NORTH); - panel.add(value, BorderLayout.CENTER); - Panel bottom = new Panel(); - bottom.setLayout(new GridLayout(1, 5)); - bottom.add(new Label()); - Button button = null; - bottom.add(button = new Button("UPDATE")); - button.addActionListener((actionListener) -> { - manager - .updateConfigurationValue(buildMap("org.openecomp.config.type.ConfigurationUpdate", value)); - message("Info", "Success"); - }); - bottom.add(new Label()); - bottom.add(button = new Button("CLOSE")); - bottom.add(new Label()); - panel.add(bottom, BorderLayout.SOUTH); - button.addActionListener((actionListener) -> { - close(); - System.exit(0); - }); - return panel; - } - - /** - * Build card list panel panel. - * - * @param table the table - * @param latest the latest - * @param fallback the fallback - * @param nodeSpecific the node specific - * @param lookup the lookup - * @return the panel - */ - public Panel buildCardListPanel(Panel table, Checkbox latest, Checkbox fallback, - Checkbox nodeSpecific, Checkbox lookup) { - Panel panel = new Panel(); - panel.setLayout(new BorderLayout()); - table.setLayout(new GridLayout(0, 2)); - ScrollPane sp = new ScrollPane(); - sp.add(table); - panel.add(sp, BorderLayout.CENTER); - Panel p1 = new Panel(); - p1.setLayout(new GridLayout(1, 4)); - p1.add(latest); - p1.add(fallback); - p1.add(lookup); - p1.add(nodeSpecific); - panel.add(p1, BorderLayout.NORTH); - Panel bottom = new Panel(); - bottom.setLayout(new GridLayout(1, 5)); - bottom.add(new Label()); - Button button = null; - bottom.add(button = new Button("List")); - button.addActionListener((actionListener) -> populateKeyValue( - manager.listConfiguration(buildMap("org.openecomp.config.type.ConfigurationQuery", null)))); - bottom.add(new Label()); - bottom.add(button = new Button("CLOSE")); - bottom.add(new Label()); - panel.add(bottom, BorderLayout.SOUTH); - button.addActionListener((actionListener) -> { - close(); - System.exit(0); - }); - return panel; - } - - private void populateKeyValue(Map collection) { - table.removeAll(); - Set keys = collection.keySet(); - for (String key : keys) { - table.add(new Label(key)); - table.add(new Label(collection.get(key))); - } - table.validate(); - } - - private void showCard(ItemEvent ie) { - if (ie.getStateChange() == ItemEvent.SELECTED) { - String usecase = (ie.getSource() instanceof Checkbox) ? ((Checkbox) ie.getSource()).getLabel() - : ((Checkbox) ie.getItem()).getLabel(); - cards.show(cardPanel, usecase); - if (usecase.equals("List")) { - keyChoice.removeAll(); - } - keyChoice.setEnabled(!usecase.equals("List")); - getKeysButton.setEnabled(!usecase.equals("List")); - } - } - - private void close() { - try { - if (connector != null) { - connector.close(); - connector = null; - vm.detach(); - } - } catch (Exception exception) { - //Do nothing - } - } - - private void connect() { - try { - close(); - if (!validateHostPort()) { - return; - } - JMXServiceURL url = null; - if (localRemote.getSelectedCheckbox().getLabel().equals("Local")) { - url = new JMXServiceURL( - (vm = VirtualMachine.attach(pid.getSelectedItem())).getAgentProperties() - .getProperty("com.sun.management.jmxremote.localConnectorAddress")); - } else { - url = new JMXServiceURL( - "service:jmx:rmi:///jndi/rmi://" + host.getText() + ":" + port.getText() + "/jmxrmi"); - } - Map env = new HashMap<>(); - String[] credentials = {user.getText(), password.getText()}; - env.put(JMXConnector.CREDENTIALS, credentials); - connector = JMXConnectorFactory.connect(url, env); - MBeanServerConnection mbsc = connector.getMBeanServerConnection(); - ObjectName mbeanName = new ObjectName("org.openecomp.jmx:name=SystemConfig"); - manager = JMX.newMBeanProxy(mbsc, mbeanName, ConfigurationManager.class, true); - message("Message", "Success!!!"); - populateTenants(manager.getTenants()); - populateNamespaces(manager.getNamespaces()); - } catch (Exception exception) { - message("Error", exception.getMessage()); - } - } - - private boolean validateHostPort() { - if (localRemote.getSelectedCheckbox().getLabel().equals("Local")) { - if (pid.getSelectedItem() == null || pid.getSelectedItem().trim().length() == 0 - || !pid.getSelectedItem().matches("^[1-9][0-9]*$")) { - message("Error", "pid is mandatory numeric value greater than 0."); - return false; - } - } else { - if (host.getText() == null || host.getText().trim().length() == 0) { - message("Error", "Host is mandatory."); - return false; - } - if (port.getText() == null || port.getText().trim().length() == 0 - || !port.getText().matches("^[1-9][0-9]*$")) { - message("Error", "Port is mandatory numeric value greater than 0."); - return false; - } - } - return true; - } - - private void populateTenants(Collection collection) { - tenantChoice.removeAll(); - for (String item : collection) { - tenantChoice.add(item); - } - } - - private void populateNamespaces(Collection collection) { - namespaceChoice.removeAll(); - keyChoice.removeAll(); - for (String item : collection) { - namespaceChoice.add(item); - } - } - - private void populateKeys(Collection collection) { - keyChoice.removeAll(); - for (String item : collection) { - keyChoice.add(item); - } - } - - private void message(String title, String text) { - Dialog dialog = new Dialog(container, title, true); - dialog.setLayout(new BorderLayout()); - dialog.add(new Label(text), BorderLayout.CENTER); - Button ok = new Button("OK"); - Panel panel = new Panel(); - panel.setLayout(new GridLayout(1, 3)); - panel.add(new Label()); - panel.add(ok); - panel.add(new Label()); - ok.addActionListener((actionListener) -> dialog.setVisible(false)); - dialog.add(panel, BorderLayout.SOUTH); - dialog.pack(); - centerDialog(dialog); - dialog.setVisible(true); - } - - private void centreWindow(Frame frame) { - Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize(); - int x1 = (int) ((dimension.getWidth() - frame.getWidth()) / 2); - int y1 = (int) ((dimension.getHeight() - frame.getHeight()) / 2); - frame.setLocation(x1, y1); - } - - private void centerDialog(Dialog dialog) { - Dimension dimension = container.getSize(); - container.getLocationOnScreen(); - int x1 = - container.getLocationOnScreen().x + (int) ((dimension.getWidth() - dialog.getWidth()) / 2); - int y1 = container.getLocationOnScreen().y - + (int) ((dimension.getHeight() - dialog.getHeight()) / 2); - dialog.setLocation(x1, y1); - } - - private void setWindowPosition(Frame window, int screen) { - GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment(); - GraphicsDevice[] allDevices = env.getScreenDevices(); - int topLeftX; - int topLeftY; - int screenX; - int screenY; - int windowPosX; - int windowPosY; - - if (screen < allDevices.length && screen > -1) { - topLeftX = allDevices[screen].getDefaultConfiguration().getBounds().x; - topLeftY = allDevices[screen].getDefaultConfiguration().getBounds().y; - - screenX = allDevices[screen].getDefaultConfiguration().getBounds().width; - screenY = allDevices[screen].getDefaultConfiguration().getBounds().height; - } else { - topLeftX = allDevices[0].getDefaultConfiguration().getBounds().x; - topLeftY = allDevices[0].getDefaultConfiguration().getBounds().y; - - screenX = allDevices[0].getDefaultConfiguration().getBounds().width; - screenY = allDevices[0].getDefaultConfiguration().getBounds().height; - } - - windowPosX = ((screenX - window.getWidth()) / 2) + topLeftX; - windowPosY = ((screenY - window.getHeight()) / 2) + topLeftY; - - window.setLocation(windowPosX, windowPosY); - } - - private void populateAvailablePids() { - pid.removeAll(); - for (VirtualMachineDescriptor desc : VirtualMachine.list()) { - try { - VirtualMachine vm = null; - JMXServiceURL url = new JMXServiceURL( - (vm = VirtualMachine.attach(desc.id())).getAgentProperties() - .getProperty("com.sun.management.jmxremote.localConnectorAddress")); - Set set = JMXConnectorFactory.connect(url, null).getMBeanServerConnection() - .queryMBeans(new ObjectName("org.openecomp.jmx:name=SystemConfig"), null); - if (!set.isEmpty()) { - pid.add(desc.id()); - } - vm.detach(); - } catch (Exception exception) { - //do nothing - } - } - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/pom.xml b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/pom.xml deleted file mode 100644 index a7a55c5b2d..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/pom.xml +++ /dev/null @@ -1,128 +0,0 @@ - - 4.0.0 - - openecomp-configuration-management-core - org.openecomp.sdc.common - openecomp-configuration-management-core - - - openecomp-common-configuration-management - org.openecomp.sdc.common - 1.2.0-SNAPSHOT - .. - - - - - com.fasterxml.jackson.core - jackson-databind - 2.5.4 - - - com.fasterxml.jackson.dataformat - jackson-dataformat-yaml - ${jackson.version} - - - org.apache.commons - commons-configuration2 - 2.1 - - - commons-logging - commons-logging - 1.2 - - - commons-beanutils - commons-beanutils - ${commons.beanutils.version} - - - org.apache.commons - commons-lang3 - 3.3.2 - - - com.github.adejanovski - cassandra-jdbc-wrapper - ${cassandra.version} - - - org.apache.commons - commons-dbcp2 - 2.0 - - - org.apache.commons - commons-pool2 - 2.4.2 - - - commons-io - commons-io - ${commons.io.version} - - - net.sf.corn - corn-cps - 1.1.7 - - - com.sun - tools - - - - - com.virtlink.commons - commons-configuration2-jackson - 0.6.1 - - - org.apache.logging.log4j - log4j-core - 2.7 - - - org.slf4j - slf4j-api - ${slf4j.version} - - - org.slf4j - slf4j-log4j12 - ${slf4j.version} - - - org.slf4j - slf4j-ext - ${slf4j.version} - - - org.openecomp.sdc.common - openecomp-configuration-management-api - 1.2.0-SNAPSHOT - - - javax.servlet - javax.servlet-api - 3.1.0 - true - - - com.fasterxml.jackson.core - jackson-annotations - 2.8.1 - - - junit - junit - test - ${junit.version} - - - - - diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/ConfigurationUtils.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/ConfigurationUtils.java deleted file mode 100644 index e8dc16efb6..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/ConfigurationUtils.java +++ /dev/null @@ -1,1143 +0,0 @@ -package org.openecomp.config; - -import com.google.common.collect.ImmutableMap; -import com.virtlink.commons.configuration2.jackson.JsonConfiguration; -import net.sf.corn.cps.CPScanner; -import net.sf.corn.cps.ResourceFilter; -import org.apache.commons.configuration2.CompositeConfiguration; -import org.apache.commons.configuration2.Configuration; -import org.apache.commons.configuration2.FileBasedConfiguration; -import org.apache.commons.configuration2.PropertiesConfiguration; -import org.apache.commons.configuration2.XMLConfiguration; -import org.apache.commons.configuration2.builder.BasicConfigurationBuilder; -import org.apache.commons.configuration2.builder.ReloadingFileBasedConfigurationBuilder; -import org.apache.commons.configuration2.builder.fluent.Configurations; -import org.apache.commons.configuration2.builder.fluent.Parameters; -import org.apache.commons.configuration2.convert.DefaultListDelimiterHandler; -import org.apache.commons.configuration2.ex.ConfigurationException; -import org.apache.commons.io.IOUtils; -import org.openecomp.config.api.ConfigurationManager; -import org.openecomp.config.impl.AgglomerateConfiguration; -import org.openecomp.config.impl.ConfigurationDataSource; -import org.openecomp.config.impl.ConfigurationRepository; -import org.openecomp.config.impl.YamlConfiguration; -import org.openecomp.config.type.ConfigurationMode; -import org.openecomp.config.type.ConfigurationType; - -import javax.sql.DataSource; -import java.io.File; -import java.lang.reflect.Field; -import java.lang.reflect.ParameterizedType; -import java.lang.reflect.Type; -import java.net.URL; -import java.nio.file.Files; -import java.nio.file.Path; -import java.sql.Connection; -import java.sql.PreparedStatement; -import java.sql.ResultSet; -import java.sql.Statement; -import java.util.ArrayDeque; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Deque; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; -import java.util.Queue; -import java.util.Set; -import java.util.SortedSet; -import java.util.TreeSet; -import java.util.concurrent.BlockingQueue; -import java.util.concurrent.ConcurrentLinkedQueue; -import java.util.concurrent.Executors; -import java.util.concurrent.LinkedBlockingQueue; -import java.util.concurrent.LinkedTransferQueue; -import java.util.concurrent.ThreadFactory; -import java.util.concurrent.TransferQueue; -import java.util.regex.Matcher; -import java.util.regex.Pattern; -import java.util.stream.Collectors; -import java.util.stream.Stream; - -import static com.google.common.collect.ImmutableMap.builder; -import static org.openecomp.config.api.Hint.EXTERNAL_LOOKUP; -import static org.openecomp.config.api.Hint.LATEST_LOOKUP; -import static org.openecomp.config.api.Hint.NODE_SPECIFIC; - -/** - * The type Configuration utils. - */ -public class ConfigurationUtils { - - private ConfigurationUtils() { - } - - private static ImmutableMap arrayClassMap; - - static { - ImmutableMap.Builder builder = builder(); - builder.put(Byte.class,Byte[].class).put(Short.class, Short[].class) - .put(Integer.class,Integer[].class).put(Long.class,Long[].class) - .put(Float.class,Float[].class).put(Double.class,Double[].class) - .put(Boolean.class,Boolean[].class).put(Character.class,Character[].class) - .put(String.class,String[].class); - arrayClassMap = builder.build(); - } - - /** - * Gets thread factory. - * - * @return the thread factory - */ - public static ThreadFactory getThreadFactory() { - return (r1) -> { - Thread thread = Executors.privilegedThreadFactory().newThread(r1); - thread.setDaemon(true); - return thread; - }; - } - - /** - * Gets all files. - * - * @param file the file - * @param recursive the recursive - * @param onlyDirectory the only directory - * @return the all files - */ - public static Collection getAllFiles(File file, boolean recursive, boolean onlyDirectory) { - ArrayList collection = new ArrayList<>(); - if (file.isDirectory() && file.exists()) { - File[] files = file.listFiles(); - for (File innerFile : files) { - if (innerFile.isFile() && !onlyDirectory) { - collection.add(innerFile); - } else if (innerFile.isDirectory()) { - collection.add(innerFile); - if (recursive) { - collection.addAll(getAllFiles(innerFile, recursive, onlyDirectory)); - } - } - } - } - return collection; - } - - /** - * Gets comma saperated list. - * - * @param list the list - * @return the comma separated list - */ - public static String getCommaSeparatedList(List list) { - return ((Stream) list.stream().filter(o -> o != null && !o.toString().trim().isEmpty()).map(o -> o.toString().trim())).collect(Collectors.joining(",")); - } - - /** - * Gets comma saperated list. - * - * @param list the list - * @return the comma saperated list - */ - public static String getCommaSeparatedList(String[] list) { - return getCommaSeparatedList(list == null ? Arrays.asList() : Arrays.asList(list)); - } - - /** - * Gets config type. - * - * @param url the url - * @return the config type - */ - public static ConfigurationType getConfigType(URL url) { - return Enum.valueOf(ConfigurationType.class, - url.getFile().substring(url.getFile().lastIndexOf('.') + 1).toUpperCase()); - } - - /** - * Gets config type. - * - * @param file the file - * @return the config type - */ - public static ConfigurationType getConfigType(File file) { - return Enum.valueOf(ConfigurationType.class, - file.getAbsolutePath().substring(file.getAbsolutePath().lastIndexOf('.') + 1) - .toUpperCase()); - } - - /** - * Is config boolean. - * - * @param url the url - * @return the boolean - */ - public static boolean isConfig(URL url) { - return isConfig(url.getFile()); - } - - /** - * Is config boolean. - * - * @param file the file - * @return the boolean - */ - public static boolean isConfig(File file) { - return file != null && file.exists() && isConfig(file.getName()); - } - - /** - * Is config boolean. - * - * @param file the file - * @return the boolean - */ - public static boolean isConfig(String file) { - file = file.toUpperCase().substring(file.lastIndexOf('!') + 1); - file = file.substring(file.lastIndexOf('/') + 1); - return file.matches( - "CONFIG(-\\w*){0,1}(-" + "(" + ConfigurationMode.OVERRIDE + "|" + ConfigurationMode.MERGE - + "|" + ConfigurationMode.UNION + ")){0,1}" + "\\.(" - + ConfigurationType.PROPERTIES.name() + "|" + ConfigurationType.XML.name() + "|" - + ConfigurationType.JSON.name() + "|" + ConfigurationType.YAML.name() + ")$") - || file.matches("CONFIG(.)*\\.(" + ConfigurationType.PROPERTIES.name() + "|" - + ConfigurationType.XML.name() + "|" + ConfigurationType.JSON.name() + "|" - + ConfigurationType.YAML.name() + ")$"); - } - - /** - * Gets namespace. - * - * @param url the url - * @return the namespace - */ - public static String getNamespace(URL url) { - String namespace = getNamespace(getConfiguration(url)); - if (namespace != null) { - return namespace.toUpperCase(); - } - return getNamespace(url.getFile().toUpperCase()); - } - - /** - * Gets namespace. - * - * @param file the file - * @return the namespace - */ - public static String getNamespace(File file) { - String namespace = getNamespace(getConfiguration(file)); - if (namespace != null) { - return namespace.toUpperCase(); - } - return getNamespace(file.getName().toUpperCase()); - } - - private static String getNamespace(Configuration config) { - return config.getString(Constants.NAMESPACE_KEY) == null ? null - : config.getString(Constants.NAMESPACE_KEY).toUpperCase(); - } - - /** - * Gets namespace. - * - * @param file the file - * @return the namespace - */ - public static String getNamespace(String file) { - file = file.toUpperCase().substring(file.lastIndexOf('!') + 1); - file = file.substring(file.lastIndexOf('/') + 1); - Pattern pattern = Pattern.compile( - "CONFIG(-\\w*){0,1}(-" + "(" + ConfigurationMode.OVERRIDE + "|" + ConfigurationMode.MERGE - + "|" + ConfigurationMode.UNION + ")){0,1}" + "\\.(" - + ConfigurationType.PROPERTIES.name() + "|" + ConfigurationType.XML.name() + "|" - + ConfigurationType.JSON.name() + "|" + ConfigurationType.YAML.name() + ")$"); - Matcher matcher = pattern.matcher(file); - boolean b1 = matcher.matches(); - if (b1) { - if (matcher.group(1) != null) { - String moduleName = matcher.group(1).substring(1); - return moduleName.equalsIgnoreCase(ConfigurationMode.OVERRIDE.name()) - || moduleName.equalsIgnoreCase(ConfigurationMode.UNION.name()) - || moduleName.equalsIgnoreCase(ConfigurationMode.MERGE.name()) - ? Constants.DEFAULT_NAMESPACE : moduleName; - } else { - return Constants.DEFAULT_NAMESPACE; - } - } else if (isConfig(file)) { - return Constants.DEFAULT_NAMESPACE; - } - - return null; - } - - /** - * Gets merge strategy. - * - * @param url the url - * @return the merge strategy - */ - public static ConfigurationMode getMergeStrategy(URL url) { - String configMode = getMergeStrategy(getConfiguration(url)); - if (configMode != null) { - try { - return Enum.valueOf(ConfigurationMode.class, configMode); - } catch (Exception exception) { - //do nothing - } - } - return getMergeStrategy(url.getFile().toUpperCase()); - } - - private static String getMergeStrategy(Configuration config) { - return config.getString(Constants.MODE_KEY) == null ? null - : config.getString(Constants.MODE_KEY).toUpperCase(); - } - - /** - * Gets merge strategy. - * - * @param file the file - * @return the merge strategy - */ - public static ConfigurationMode getMergeStrategy(File file) { - String configMode = getMergeStrategy(getConfiguration(file)); - if (configMode != null) { - try { - return Enum.valueOf(ConfigurationMode.class, configMode); - } catch (Exception exception) { - //do nothing - } - } - return getMergeStrategy(file.getName().toUpperCase()); - } - - /** - * Gets merge strategy. - * - * @param file the file - * @return the merge strategy - */ - public static ConfigurationMode getMergeStrategy(String file) { - file = file.toUpperCase().substring(file.lastIndexOf('!') + 1); - file = file.substring(file.lastIndexOf('/') + 1); - Pattern pattern = Pattern.compile( - "CONFIG(-\\w*){0,1}(-" + "(" + ConfigurationMode.OVERRIDE + "|" + ConfigurationMode.MERGE - + "|" + ConfigurationMode.UNION + ")){0,1}" + "\\.(" - + ConfigurationType.PROPERTIES.name() + "|" + ConfigurationType.XML.name() + "|" - + ConfigurationType.JSON.name() + "|" + ConfigurationType.YAML.name() + ")$"); - Matcher matcher = pattern.matcher(file); - boolean b1 = matcher.matches(); - if (b1) { - for (int i = 1; i <= matcher.groupCount(); i++) { - String modeName = matcher.group(i); - if (modeName != null) { - modeName = modeName.substring(1); - } - try { - return Enum.valueOf(ConfigurationMode.class, modeName); - } catch (Exception exception) { - //do nothing - } - } - } - - return null; - } - - /** - * Gets configuration. - * - * @param url the url - * @return the configuration - */ - public static FileBasedConfiguration getConfiguration(URL url) { - FileBasedConfiguration builder = null; - try { - ConfigurationType configType = ConfigurationUtils.getConfigType(url); - switch (configType) { - case PROPERTIES: - builder = new Configurations().fileBased(PropertiesConfiguration.class, url); - break; - case XML: - builder = new Configurations().fileBased(XMLConfiguration.class, url); - break; - case JSON: - builder = new Configurations().fileBased(JsonConfiguration.class, url); - break; - case YAML: - builder = new Configurations().fileBased(YamlConfiguration.class, url); - break; - default: - throw new ConfigurationException("Configuration type not supported:"+ configType); - } - } catch (ConfigurationException exception) { - exception.printStackTrace(); - } - return builder; - } - - /** - * Gets configuration. - * - * @param file the file - * @return the configuration - */ - public static FileBasedConfiguration getConfiguration(File file) { - FileBasedConfiguration builder = null; - try { - ConfigurationType configType = ConfigurationUtils.getConfigType(file); - switch (configType) { - case PROPERTIES: - builder = new Configurations().fileBased(PropertiesConfiguration.class, file); - break; - case XML: - builder = new Configurations().fileBased(XMLConfiguration.class, file); - break; - case JSON: - builder = new Configurations().fileBased(JsonConfiguration.class, file); - break; - case YAML: - builder = new Configurations().fileBased(YamlConfiguration.class, file); - break; - default: - throw new ConfigurationException("Configuration type not supported:"+ configType); - } - } catch (ConfigurationException exception) { - exception.printStackTrace(); - } - return builder; - } - - /** - * Gets collection generic type. - * - * @param field the field - * @return the collection generic type - */ - public static Class getCollectionGenericType(Field field) { - Type type = field.getGenericType(); - - if (type instanceof ParameterizedType) { - - ParameterizedType paramType = (ParameterizedType) type; - Type[] arr = paramType.getActualTypeArguments(); - - for (Type tp : arr) { - Class clzz = (Class) tp; - if (isWrapperClass(clzz)) { - return clzz; - } else { - throw new RuntimeException("Collection of type " + clzz.getName() + " not supported."); - } - } - } - return String[].class; - } - - - - /** - * Gets array class. - * - * @param clazz the clazz - * @return the array class - */ - public static Class getArrayClass(Class clazz) { - return arrayClassMap.getOrDefault(clazz, null); - } - - /** - * Gets all class path resources. - * - * @return the all class path resources - */ - public static List getAllClassPathResources() { - return CPScanner.scanResources(new ResourceFilter()); - } - - /** - * Execute ddlsql boolean. - * - * @param sql the sql - * @return the boolean - * @throws Exception the exception - */ - public static boolean executeDdlSql(String sql) throws Exception { - DataSource datasource = ConfigurationDataSource.lookup(); - if (datasource == null) { - System.err.println("DB configuration not found. Configuration management will be using " - + "in-memory persistence."); - return false; - } - try (Connection con = datasource.getConnection(); Statement stmt = con.createStatement()) { - stmt.executeQuery(sql); - } catch (Exception exception) { - System.err.println("Datasource initialization error. Configuration management will be using in-memory persistence."); - return false; - } - return true; - } - - /** - * Gets configuration builder. - * - * @param url the url - * @return the configuration builder - */ - public static BasicConfigurationBuilder getConfigurationBuilder(URL url) { - ReloadingFileBasedConfigurationBuilder builder = null; - ConfigurationType configType = ConfigurationUtils.getConfigType(url); - switch (configType) { - case PROPERTIES: - builder = new ReloadingFileBasedConfigurationBuilder( - PropertiesConfiguration.class); - break; - case XML: - builder = new ReloadingFileBasedConfigurationBuilder( - XMLConfiguration.class); - break; - case JSON: - builder = new ReloadingFileBasedConfigurationBuilder( - JsonConfiguration.class); - break; - case YAML: - builder = new ReloadingFileBasedConfigurationBuilder( - YamlConfiguration.class); - break; - default: - throw new IllegalArgumentException("Configuration type not supported:"+ configType); - } - builder.configure(new Parameters().fileBased().setURL(url) - .setListDelimiterHandler(new DefaultListDelimiterHandler(','))); - return builder; - } - - /** - * Gets configuration builder. - * - * @param file the file - * @param autoSave the auto save - * @return the configuration builder - */ - public static BasicConfigurationBuilder getConfigurationBuilder(File file, - boolean autoSave) { - ReloadingFileBasedConfigurationBuilder builder = null; - ConfigurationType configType = ConfigurationUtils.getConfigType(file); - switch (configType) { - case PROPERTIES: - builder = new ReloadingFileBasedConfigurationBuilder( - PropertiesConfiguration.class); - break; - case XML: - builder = new ReloadingFileBasedConfigurationBuilder( - XMLConfiguration.class); - break; - case JSON: - builder = new ReloadingFileBasedConfigurationBuilder( - JsonConfiguration.class); - break; - case YAML: - builder = new ReloadingFileBasedConfigurationBuilder( - YamlConfiguration.class); - break; - default: - throw new IllegalArgumentException("Configuration type not supported:"+ configType); - } - builder.configure(new Parameters().fileBased().setFile(file) - .setListDelimiterHandler(new DefaultListDelimiterHandler(','))); - builder.setAutoSave(autoSave); - return builder; - } - - - /** - * Execute select sql collection. - * - * @param sql the sql - * @param params the params - * @return the collection - * @throws Exception the exception - */ - public static Collection executeSelectSql(String sql, String[] params) throws Exception { - Collection coll = new ArrayList<>(); - DataSource datasource = ConfigurationDataSource.lookup(); - try (Connection con = datasource.getConnection(); - PreparedStatement stmt = con.prepareStatement(sql)) { - if (params != null) { - for (int i = 0; i < params.length; i++) { - stmt.setString(i + 1, params[i]); - } - } - - try (ResultSet rs = stmt.executeQuery()) { - - while (rs.next()) { - coll.add(rs.getString(1)); - } - } - - } catch (Exception exception) { - //exception.printStackTrace(); - return null; - } - - return coll; - } - - /** - * Execute insert sql boolean. - * - * @param sql the sql - * @param params the params - * @return the boolean - * @throws Exception the exception - */ - public static boolean executeInsertSql(String sql, Object[] params) throws Exception { - Collection coll = new ArrayList<>(); - DataSource datasource = ConfigurationDataSource.lookup(); - try (Connection con = datasource.getConnection(); - PreparedStatement stmt = con.prepareStatement(sql)) { - if (params != null) { - int counter = 0; - for (Object obj : params) { - if (obj == null) { - obj = ""; - } - switch (obj.getClass().getName()) { - case "java.lang.String": - stmt.setString(++counter, obj.toString()); - break; - case "java.lang.Integer": - stmt.setInt(++counter, ((Integer) obj).intValue()); - break; - case "java.lang.Long": - stmt.setLong(++counter, ((Long) obj).longValue()); - break; - default: - stmt.setString(++counter, obj.toString()); - break; - } - } - } - stmt.executeUpdate(); - return true; - } catch (Exception exception) { - exception.printStackTrace(); - } - return false; - } - - /** - * Read t. - * - * @param the type parameter - * @param config the config - * @param clazz the clazz - * @param keyPrefix the key prefix - * @return the t - * @throws Exception the exception - */ - public static T read(Configuration config, Class clazz, String keyPrefix) - throws Exception { - org.openecomp.config.api.Config confAnnot = - clazz.getAnnotation(org.openecomp.config.api.Config.class); - if (confAnnot != null) { - keyPrefix += (confAnnot.key() + "."); - } - T objToReturn = clazz.newInstance(); - for (Field field : clazz.getDeclaredFields()) { - org.openecomp.config.api.Config fieldConfAnnot = - field.getAnnotation(org.openecomp.config.api.Config.class); - if (fieldConfAnnot != null) { - field.setAccessible(true); - field.set(objToReturn, config.getProperty(keyPrefix + fieldConfAnnot.key())); - } else if (field.getType().getAnnotation(org.openecomp.config.api.Config.class) != null) { - field.set(objToReturn, read(config, field.getType(), keyPrefix)); - } - } - return objToReturn; - } - - /** - * Gets db configuration builder. - * - * @param configName the config name - * @return the db configuration builder - * @throws Exception the exception - */ - public static BasicConfigurationBuilder getDbConfigurationBuilder( - String configName) throws Exception { - Configuration dbConfig = ConfigurationRepository.lookup() - .getConfigurationFor(Constants.DEFAULT_TENANT, Constants.DB_NAMESPACE); - BasicConfigurationBuilder builder = - new BasicConfigurationBuilder(AgglomerateConfiguration.class); - builder.configure( - new Parameters().database() - .setDataSource(ConfigurationDataSource.lookup()) - .setTable(dbConfig.getString("config.Table")) - .setKeyColumn(dbConfig.getString("configKey")) - .setValueColumn(dbConfig.getString("configValue")) - .setConfigurationNameColumn(dbConfig.getString("configNameColumn")) - .setConfigurationName(configName) - .setAutoCommit(true) - ); - return builder; - } - - /** - * Gets property. - * - * @param config the config - * @param key the key - * @param processingHints the processing hints - * @return the property - */ - public static Object getProperty(Configuration config, String key, int processingHints) { - if (!isDirectLookup(processingHints)) { - if (config instanceof AgglomerateConfiguration) { - return ((AgglomerateConfiguration) config).getPropertyValue(key); - } else if (config instanceof CompositeConfiguration) { - CompositeConfiguration conf = (CompositeConfiguration) config; - for (int i = 0; i < conf.getNumberOfConfigurations(); i++) { - if (conf.getConfiguration(i) instanceof AgglomerateConfiguration) { - return ((AgglomerateConfiguration) conf.getConfiguration(i)).getPropertyValue(key); - } else if (isNodeSpecific(processingHints)) { - Object obj = conf.getConfiguration(i).getProperty(key); - if (obj != null) { - return obj; - } - } - } - } - } - return config.getProperty(key); - } - - /** - * Gets primitive array. - * - * @param collection the collection - * @param clazz the clazz - * @return the primitive array - */ - public static Object getPrimitiveArray(Collection collection, Class clazz) { - if (clazz == int.class) { - int[] array = new int[collection.size()]; - Object[] objArray = collection.toArray(); - for (int i = 0; i < collection.size(); i++) { - array[i] = (int) objArray[i]; - } - return array; - } - if (clazz == byte.class) { - byte[] array = new byte[collection.size()]; - Object[] objArray = collection.toArray(); - for (int i = 0; i < collection.size(); i++) { - array[i] = (byte) objArray[i]; - } - return array; - } - if (clazz == short.class) { - short[] array = new short[collection.size()]; - Object[] objArray = collection.toArray(); - for (int i = 0; i < collection.size(); i++) { - array[i] = (short) objArray[i]; - } - return array; - } - if (clazz == long.class) { - long[] array = new long[collection.size()]; - Object[] objArray = collection.toArray(); - for (int i = 0; i < collection.size(); i++) { - array[i] = (long) objArray[i]; - } - return array; - } - if (clazz == float.class) { - float[] array = new float[collection.size()]; - Object[] objArray = collection.toArray(); - for (int i = 0; i < collection.size(); i++) { - array[i] = (float) objArray[i]; - } - return array; - } - if (clazz == double.class) { - double[] array = new double[collection.size()]; - Object[] objArray = collection.toArray(); - for (int i = 0; i < collection.size(); i++) { - array[i] = (double) objArray[i]; - } - return array; - } - if (clazz == boolean.class) { - boolean[] array = new boolean[collection.size()]; - Object[] objArray = collection.toArray(); - for (int i = 0; i < collection.size(); i++) { - array[i] = (boolean) objArray[i]; - } - return array; - } - Object obj = null; - return obj; - } - - /** - * Is wrapper class boolean. - * - * @param clazz the clazz - * @return the boolean - */ - public static boolean isWrapperClass(Class clazz) { - return clazz == String.class || clazz == Boolean.class || clazz == Character.class - || Number.class.isAssignableFrom(clazz); - } - - /** - * Gets collection string. - * - * @param input the input - * @return the collection string - */ - public static String getCollectionString(String input) { - Pattern pattern = Pattern.compile("^\\[(.*)\\]$"); - Matcher matcher = pattern.matcher(input); - if (matcher.matches()) { - input = matcher.group(1); - } - return input; - } - - /** - * Is collection boolean. - * - * @param input the input - * @return the boolean - */ - public static boolean isCollection(String input) { - Pattern pattern = Pattern.compile("^\\[(.*)\\]$"); - Matcher matcher = pattern.matcher(input); - return matcher.matches(); - } - - /** - * Process variables if present string. - * - * @param tenant the tenant - * @param namespace the namespace - * @param data the data - * @return the string - */ - public static String processVariablesIfPresent(String tenant, String namespace, String data) { - Pattern pattern = Pattern.compile("^.*\\$\\{(.*)\\}.*"); - Matcher matcher = pattern.matcher(data); - if (matcher.matches()) { - String key = matcher.group(1); - if (key.toUpperCase().startsWith("ENV:")) { - String envValue = System.getenv(key.substring(4)); - return processVariablesIfPresent(tenant, namespace, data.replaceAll("\\$\\{" + key + "\\}", - envValue == null ? "" : envValue.replace("\\", "\\\\"))); - } else if (key.toUpperCase().startsWith("SYS:")) { - String sysValue = System.getProperty(key.substring(4)); - return processVariablesIfPresent(tenant, namespace, data.replaceAll("\\$\\{" + key + "\\}", - sysValue == null ? "" : sysValue.replace("\\", "\\\\"))); - } else { - String propertyValue = ConfigurationUtils.getCollectionString( - ConfigurationManager.lookup().getAsStringValues(tenant, namespace, key).toString()); - return processVariablesIfPresent(tenant, namespace, data.replaceAll("\\$\\{" + key + "\\}", - propertyValue == null ? "" : propertyValue.replace("\\", "\\\\"))); - } - } else { - return data; - } - } - - /** - * Gets file contents. - * - * @param path the path - * @return the file contents - */ - public static String getFileContents(String path) { - try { - if (path != null) { - return IOUtils.toString(new URL(path)); - } - } catch (Exception exception) { - exception.printStackTrace(); - } - return null; - } - - /** - * Gets file contents. - * - * @param path the path - * @return the file contents - */ - public static String getFileContents(Path path) { - try { - if (path != null) { - return new String(Files.readAllBytes(path)); - } - } catch (Exception exception) { - exception.printStackTrace(); - } - return null; - } - - /** - * Gets concrete collection. - * - * @param clazz the clazz - * @return the concrete collection - */ - public static Collection getConcreteCollection(Class clazz) { - switch (clazz.getName()) { - case "java.util.Collection": - case "java.util.List": - return new ArrayList<>(); - case "java.util.Set": - return new HashSet<>(); - case "java.util.SortedSet": - return new TreeSet<>(); - case "java.util.Queue": - return new ConcurrentLinkedQueue<>(); - case "java.util.Deque": - return new ArrayDeque<>(); - case "java.util.concurrent.TransferQueue": - return new LinkedTransferQueue<>(); - case "java.util.concurrent.BlockingQueue": - return new LinkedBlockingQueue<>(); - default: - return null; - } - } - - /** - * Gets default for. - * - * @param clazz the clazz - * @return the default for - */ - public static Object getDefaultFor(Class clazz) { - if (byte.class == clazz) { - return new Byte("0"); - } else if (short.class == clazz) { - return new Short("0"); - } else if (int.class == clazz) { - return new Integer("0"); - } else if (float.class == clazz) { - return new Float("0"); - } else if (long.class == clazz) { - return new Long("0"); - } else if (double.class == clazz) { - return new Double("0"); - } else if (boolean.class == clazz) { - return Boolean.FALSE; - } - return new Character((char) 0); - } - - /** - * Gets compatible collection for abstract def. - * - * @param clazz the clazz - * @return the compatible collection for abstract def - */ - public static Collection getCompatibleCollectionForAbstractDef(Class clazz) { - if (BlockingQueue.class.isAssignableFrom(clazz)) { - return getConcreteCollection(BlockingQueue.class); - } - if (TransferQueue.class.isAssignableFrom(clazz)) { - return getConcreteCollection(TransferQueue.class); - } - if (Deque.class.isAssignableFrom(clazz)) { - return getConcreteCollection(Deque.class); - } - if (Queue.class.isAssignableFrom(clazz)) { - return getConcreteCollection(Queue.class); - } - if (SortedSet.class.isAssignableFrom(clazz)) { - return getConcreteCollection(SortedSet.class); - } - if (Set.class.isAssignableFrom(clazz)) { - return getConcreteCollection(Set.class); - } - if (List.class.isAssignableFrom(clazz)) { - return getConcreteCollection(List.class); - } - return null; - } - - /** - * Gets configuration repository key. - * - * @param array the array - * @return the configuration repository key - */ - public static String getConfigurationRepositoryKey(String[] array) { - Deque stack = new ArrayDeque<>(); - stack.push(Constants.DEFAULT_TENANT); - for (String element : array) { - stack.push(element); - } - String toReturn = stack.pop(); - return stack.pop() + Constants.KEY_ELEMENTS_DELEMETER + toReturn; - } - - /** - * Gets configuration repository key. - * - * @param file the file - * @return the configuration repository key - */ - public static String getConfigurationRepositoryKey(File file) { - return getConfigurationRepositoryKey( - ConfigurationUtils.getNamespace(file).split(Constants.TENANT_NAMESPACE_SAPERATOR)); - } - - /** - * Gets configuration repository key. - * - * @param url the url - * @return the configuration repository key - */ - public static String getConfigurationRepositoryKey(URL url) { - return getConfigurationRepositoryKey( - ConfigurationUtils.getNamespace(url).split(Constants.TENANT_NAMESPACE_SAPERATOR)); - } - - /** - * To map linked hash map. - * - * @param config the config - * @return the linked hash map - */ - public static LinkedHashMap toMap(Configuration config) { - Iterator iterator = config.getKeys(); - LinkedHashMap map = new LinkedHashMap<>(); - while (iterator.hasNext()) { - String key = iterator.next(); - if (!(key.equals(Constants.MODE_KEY) || key.equals(Constants.NAMESPACE_KEY) - || key.equals(Constants.LOAD_ORDER_KEY))) { - map.put(key, config.getProperty(key).toString()); - } - } - - return map; - } - - /** - * Diff map. - * - * @param orig the orig - * @param latest the latest - * @return the map - */ - public static Map diff(LinkedHashMap orig, LinkedHashMap latest) { - orig = new LinkedHashMap<>(orig); - latest = new LinkedHashMap<>(latest); - List set = new ArrayList(orig.keySet()); - for (String key : set) { - if (latest.remove(key, orig.get(key))) { - orig.remove(key); - } - } - Set keys = latest.keySet(); - for (String key : keys) { - orig.remove(key); - } - set = new ArrayList(orig.keySet()); - for (String key : set) { - latest.put(key, ""); - } - return new HashMap<>(latest); - } - - /** - * Is array boolean. - * - * @param tenant the tenant - * @param namespace the namespace - * @param key the key - * @param processingHints the processing hints - * @return the boolean - * @throws Exception the exception - */ - public static boolean isArray(String tenant, String namespace, String key, int processingHints) - throws Exception { - Object obj = ConfigurationUtils - .getProperty(ConfigurationRepository.lookup().getConfigurationFor(tenant, namespace), key, - processingHints); - return (obj == null) ? false : ConfigurationUtils.isCollection(obj.toString()); - } - - /** - * Is direct lookup boolean. - * - * @param hints the hints - * @return the boolean - */ - public static boolean isDirectLookup(int hints) { - return (hints & LATEST_LOOKUP.value()) == LATEST_LOOKUP.value(); - } - - /** - * Is external lookup boolean. - * - * @param hints the hints - * @return the boolean - */ - public static boolean isExternalLookup(int hints) { - return (hints & EXTERNAL_LOOKUP.value()) == EXTERNAL_LOOKUP.value(); - } - - /** - * Is node specific boolean. - * - * @param hints the hints - * @return the boolean - */ - public static boolean isNodeSpecific(int hints) { - return (hints & NODE_SPECIFIC.value()) == NODE_SPECIFIC.value(); - } - - public static boolean isZeroLengthArray(Class clazz, Object obj) { - if (clazz.isArray() && clazz.getComponentType().isPrimitive()) { - if (clazz.getComponentType() == int.class) { - return ((int[]) obj).length == 0; - } else if (clazz.getComponentType() == byte.class) { - return ((byte[]) obj).length == 0; - } else if (clazz.getComponentType() == short.class) { - return ((short[]) obj).length == 0; - } else if (clazz.getComponentType() == float.class) { - return ((float[]) obj).length == 0; - } else if (clazz.getComponentType() == boolean.class) { - return ((boolean[]) obj).length == 0; - } else if (clazz.getComponentType() == double.class) { - return ((double[]) obj).length == 0; - } else if (clazz.getComponentType() == long.class) { - return ((long[]) obj).length == 0; - } else { - return ((Object[]) obj).length == 0; - } - } - - return false; - } - - /** - * Checks if value is blank - * - * @param value - * @return - */ - public static boolean isBlank(String value) { - return value == null || value.trim().length() == 0; - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/Constants.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/Constants.java deleted file mode 100644 index b35a5a8d83..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/Constants.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.openecomp.config; - -public class Constants { - - public static final String DEFAULT_TENANT = "GLOBAL"; - public static final String DEFAULT_NAMESPACE = "COMMON"; - public static final String DB_NAMESPACE = "SYSTEM"; - public static final String KEY_ELEMENTS_DELEMETER = "-"; - public static final String TENANT_NAMESPACE_SAPERATOR = ":"; - public static final String NAMESPACE_KEY = "_config.namespace"; - public static final String MODE_KEY = "_config.mergeStrategy"; - public static final String MBEAN_NAME = "org.openecomp.jmx:name=SystemConfig"; - public final static String LOAD_ORDER_KEY="_config.loadOrder"; -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/NonConfigResource.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/NonConfigResource.java deleted file mode 100644 index f4c1c16dc5..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/NonConfigResource.java +++ /dev/null @@ -1,95 +0,0 @@ -package org.openecomp.config; - -import java.io.File; -import java.net.URL; -import java.nio.file.Path; -import java.nio.file.Paths; -import java.util.Collection; -import java.util.HashSet; -import java.util.Set; -import java.util.function.Predicate; - -/** - * The type Non config resource. - */ -public class NonConfigResource { - - private static Set urls = new HashSet<>(); - private static Set files = new HashSet<>(); - - /** - * Add. - * - * @param url the url - */ - public static void add(URL url) { - urls.add(url); - } - - /** - * Add. - * - * @param file the file - */ - public static void add(File file) { - files.add(file); - } - - /** - * Locate path. - * - * @param resource the resource - * @return the path - */ - public static Path locate(String resource) { - try { - if (resource != null) { - File file = new File(resource); - if (file.exists()) { - return Paths.get(resource); - } - for (File availableFile : files) { - if (availableFile.getAbsolutePath().endsWith(resource) && availableFile.exists()) { - return Paths.get(availableFile.getAbsolutePath()); - } - } - if (System.getProperty("node.config.location") != null) { - Path path = locate(new File(System.getProperty("node.config.location")), resource); - if (path != null) { - return path; - } - } - if (System.getProperty("config.location") != null) { - Path path = locate(new File(System.getProperty("config.location")), resource); - if (path != null) { - return path; - } - } - for (URL url : urls) { - if (url.getFile().endsWith(resource)) { - return Paths.get(url.toURI()); - } - } - } - } catch (Exception exception) { - exception.printStackTrace(); - } - return null; - } - - private static Path locate(File root, String resource) { - if (root.exists()) { - Collection filesystemResources = ConfigurationUtils.getAllFiles(root, true, false); - Predicate f1 = ConfigurationUtils::isConfig; - for (File file : filesystemResources) { - if (!f1.test(file)) { - add(file); - if (file.getAbsolutePath().endsWith(resource)) { - return Paths.get(file.getAbsolutePath()); - } - } - } - } - return null; - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/AgglomerateConfiguration.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/AgglomerateConfiguration.java deleted file mode 100644 index 9556b480c6..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/AgglomerateConfiguration.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.openecomp.config.impl; - -import org.apache.commons.configuration2.DatabaseConfiguration; - -import java.util.Collections; -import java.util.Map; -import java.util.WeakHashMap; - -/** - * The type Agglomerate configuration. - */ -public class AgglomerateConfiguration extends DatabaseConfiguration { - - private final Map store = - Collections.synchronizedMap(new WeakHashMap()); - - /** - * Gets property value. - * - * @param key the key - * @return the property value - */ - public Object getPropertyValue(String key) { - Object objToReturn; - objToReturn = store.get(key); - if (objToReturn == null && !store.containsKey(key)) { - objToReturn = super.getProperty(key); - store.put(key, objToReturn); - } - return objToReturn; - } - -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/AggregateConfiguration.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/AggregateConfiguration.java deleted file mode 100644 index e67de752ec..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/AggregateConfiguration.java +++ /dev/null @@ -1,172 +0,0 @@ -package org.openecomp.config.impl; - -import org.apache.commons.configuration2.CombinedConfiguration; -import org.apache.commons.configuration2.Configuration; -import org.apache.commons.configuration2.tree.MergeCombiner; -import org.apache.commons.configuration2.tree.OverrideCombiner; -import org.apache.commons.configuration2.tree.UnionCombiner; -import static org.openecomp.config.Constants.LOAD_ORDER_KEY; -import org.openecomp.config.ConfigurationUtils; -import org.openecomp.config.type.ConfigurationMode; - -import java.io.File; -import java.net.URL; -import java.util.HashMap; -import java.util.*; - -/** - * The type Aggregate configuration. - */ -public final class AggregateConfiguration { - - private Map rootConfig = new HashMap<>(); - private Map unionConfig = new HashMap<>(); - private Map mergeConfig = new HashMap<>(); - private Map overrideConfig = new LinkedHashMap<>(); - - /** - * Instantiates a new Aggregate configuration. - */ - public AggregateConfiguration() { - try { - Class clazz = Class.forName(Thread.currentThread().getStackTrace()[2].getClassName()); - if (!clazz.getCanonicalName() - .equals(ConfigurationImpl.class.getCanonicalName())) { - throw new RuntimeException("Illegal access."); - } - } catch (ClassNotFoundException cfe) { - throw new RuntimeException("Class not found while loading change notifier"); - } - } - - private void addConfig(String path, ConfigurationMode configMode, Configuration config) { - if (configMode != null) { - switch (configMode) { - case MERGE: - mergeConfig.put(path, config); - break; - case OVERRIDE: - overrideConfig.put(path, config); - break; - case UNION: - unionConfig.put(path, config); - break; - default: - } - } else { - rootConfig.put(path, config); - } - } - - /** - * Add config. - * - * @param file the file - * @throws Exception the exception - */ - public void addConfig(File file) throws Exception { - addConfig(file.getAbsolutePath().toUpperCase(), ConfigurationUtils.getMergeStrategy(file), - ConfigurationUtils.getConfigurationBuilder(file, false).getConfiguration()); - } - - /** - * Add config. - * - * @param url the url - * @throws Exception the exception - */ - public void addConfig(URL url) throws Exception { - addConfig(url.getFile().toUpperCase(), ConfigurationUtils.getMergeStrategy(url), - ConfigurationUtils.getConfigurationBuilder(url).getConfiguration()); - } - - /** - * Remove config. - * - * @param file the file - */ - public void removeConfig(File file) { - String key = file.getAbsolutePath().toUpperCase(); - if (rootConfig.containsKey(key)) { - rootConfig.remove(key); - } else if (mergeConfig.containsKey(key)) { - mergeConfig.remove(key); - } else if (unionConfig.containsKey(key)) { - unionConfig.remove(key); - } else if (overrideConfig.containsKey(key)) { - overrideConfig.remove(key); - } - } - - /** - * Contains config boolean. - * - * @param file the file - * @return the boolean - */ - public boolean containsConfig(File file) { - String key = file.getAbsolutePath().toUpperCase(); - return rootConfig.containsKey(key) || mergeConfig.containsKey(key) - || unionConfig.containsKey(key) || overrideConfig.containsKey(key); - } - - /** - * Gets final configuration. - * - * @return the final configuration - */ - public Configuration getFinalConfiguration() { - CombinedConfiguration ccRoot = new CombinedConfiguration(new MergeCombiner()); - ArrayList tempList = new ArrayList<>(rootConfig.values()); - Collections.sort(tempList, this::sortForMerge); - for (Configuration conf : tempList) { - ccRoot.addConfiguration(conf); - } - CombinedConfiguration ccMergeRoot = new CombinedConfiguration(new MergeCombiner()); - ccMergeRoot.addConfiguration(ccRoot); - tempList = new ArrayList<>(mergeConfig.values()); - Collections.sort(tempList, this::sortForMerge); - for (Configuration conf : tempList) { - ccMergeRoot.addConfiguration(conf); - } - CombinedConfiguration ccUnionRoot = new CombinedConfiguration(new UnionCombiner()); - ccUnionRoot.addConfiguration(ccMergeRoot); - for (Configuration conf : unionConfig.values()) { - ccUnionRoot.addConfiguration(conf); - } - ArrayList tempOverrideConfigs = new ArrayList<>(overrideConfig.values()); - Collections.reverse(tempOverrideConfigs); - Collections.sort(tempOverrideConfigs, this::sortForOverride); - CombinedConfiguration ccOverrideRoot = new CombinedConfiguration(new OverrideCombiner()); - for (Configuration conf : tempOverrideConfigs) { - ccOverrideRoot.addConfiguration(conf); - } - ccOverrideRoot.addConfiguration(ccUnionRoot); - return ccOverrideRoot; - } - - private int sortForOverride(Configuration conf1, Configuration conf2){ - String order1 = conf1.getString(LOAD_ORDER_KEY); - String order2 = conf2.getString(LOAD_ORDER_KEY); - if (ConfigurationUtils.isBlank(order1) || !order1.trim().matches("\\d+")){ - order1 = "0"; - } - if (ConfigurationUtils.isBlank(order2) || !order2.trim().matches("\\d+")){ - order2 = "0"; - } - return Integer.parseInt(order2.trim())-Integer.parseInt(order1.trim()); - } - - private int sortForMerge(Configuration conf1, Configuration conf2){ - String order1 = conf1.getString(LOAD_ORDER_KEY); - String order2 = conf2.getString(LOAD_ORDER_KEY); - if (ConfigurationUtils.isBlank(order1) || !order1.trim().matches("\\d+")){ - order1 = "0"; - } - if (ConfigurationUtils.isBlank(order2) || !order2.trim().matches("\\d+")){ - order2 = "0"; - } - return Integer.parseInt(order1.trim())-Integer.parseInt(order2.trim()); - } - -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/CliConfigurationImpl.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/CliConfigurationImpl.java deleted file mode 100644 index 8452d2f018..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/CliConfigurationImpl.java +++ /dev/null @@ -1,354 +0,0 @@ -package org.openecomp.config.impl; - -import static org.openecomp.config.Constants.DB_NAMESPACE; -import static org.openecomp.config.Constants.DEFAULT_NAMESPACE; -import static org.openecomp.config.Constants.DEFAULT_TENANT; -import static org.openecomp.config.Constants.KEY_ELEMENTS_DELEMETER; -import static org.openecomp.config.Constants.LOAD_ORDER_KEY; -import static org.openecomp.config.Constants.MBEAN_NAME; -import static org.openecomp.config.Constants.MODE_KEY; -import static org.openecomp.config.Constants.NAMESPACE_KEY; - -import org.apache.commons.configuration2.CombinedConfiguration; -import org.apache.commons.configuration2.CompositeConfiguration; -import org.apache.commons.configuration2.Configuration; -import org.apache.commons.configuration2.FileBasedConfiguration; -import org.apache.commons.configuration2.PropertiesConfiguration; -import org.openecomp.config.ConfigurationUtils; -import org.openecomp.config.Constants; -import org.openecomp.config.api.ConfigurationManager; -import org.openecomp.config.api.Hint; -import org.openecomp.config.type.ConfigurationQuery; -import org.openecomp.config.type.ConfigurationUpdate; - -import java.io.File; -import java.io.PrintWriter; -import java.lang.management.ManagementFactory; -import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.Map; -import java.util.Set; -import javax.management.MBeanServer; -import javax.management.MBeanServerDelegate; -import javax.management.MBeanServerNotification; -import javax.management.Notification; -import javax.management.ObjectName; -import javax.management.StandardMBean; - -/** - * The type Cli configuration. - */ -public final class CliConfigurationImpl extends ConfigurationImpl implements ConfigurationManager { - - /** - * Instantiates a new Cli configuration. - * - * @throws Exception the exception - */ - public CliConfigurationImpl() throws Exception { - MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); - ObjectName name = new ObjectName(MBEAN_NAME); - if (mbs.isRegistered(name)) { - mbs.unregisterMBean(name); - } - mbs.registerMBean(new StandardMBean(this, ConfigurationManager.class), name); - //mbs.registerMBean(getMBean(), name); - mbs.addNotificationListener(MBeanServerDelegate.DELEGATE_NAME, this::handleNotification, null, - null); - //mbs.addNotificationListener(name, this::handleNotification, null, null); - } - - - /** - * Handle notification. - * - * @param notification the notification - * @param handback the handback - */ - public void handleNotification(Notification notification, Object handback) { - if (notification instanceof MBeanServerNotification) { - MBeanServerNotification mbs = (MBeanServerNotification) notification; - if (MBeanServerNotification.UNREGISTRATION_NOTIFICATION.equals(mbs.getType())) { - try { - String mbean = - ConfigurationRepository.lookup().getConfigurationFor(DEFAULT_TENANT, DB_NAMESPACE) - .getString("shutdown.mbean"); - if (mbs.getMBeanName() - .equals(mbean == null ? new ObjectName(MBEAN_NAME) : new ObjectName(mbean))) { - changeNotifier.shutdown(); - ConfigurationDataSource.lookup().close(); - } - } catch (Exception exception) { - //do nothing. - } - } else if (MBeanServerNotification.REGISTRATION_NOTIFICATION.equals(mbs.getType())) { - mbs.getMBeanName(); - } - } - } - - public String getConfigurationValue(Map input) { - return getConfigurationValue((ConfigurationQuery) getInput(input)); - } - - private String getConfigurationValue(ConfigurationQuery queryData) { - try { - if (queryData.isFallback()) { - return ConfigurationUtils.getCommaSeparatedList( - get(queryData.getTenant(), queryData.getNamespace(), queryData.getKey(), String[].class, - queryData.isLatest() ? Hint.LATEST_LOOKUP : Hint.DEFAULT, - queryData.isExternalLookup() ? Hint.EXTERNAL_LOOKUP : Hint.DEFAULT, - queryData.isNodeSpecific() ? Hint.NODE_SPECIFIC : Hint.DEFAULT)); - } else { - String[] list = - getInternal(queryData.getTenant(), queryData.getNamespace(), queryData.getKey(), - String[].class, queryData.isLatest() ? Hint.LATEST_LOOKUP : Hint.DEFAULT, - queryData.isExternalLookup() ? Hint.EXTERNAL_LOOKUP : Hint.DEFAULT, - queryData.isNodeSpecific() ? Hint.NODE_SPECIFIC : Hint.DEFAULT); - return ConfigurationUtils - .getCommaSeparatedList(list == null ? Arrays.asList() : Arrays.asList(list)); - } - } catch (Exception exception) { - exception.printStackTrace(); - } - return null; - } - - public void updateConfigurationValue(Map input) { - updateConfigurationValue((ConfigurationUpdate) getInput(input)); - } - - private void updateConfigurationValue(ConfigurationUpdate updateData) { - - try { - if (!ConfigurationRepository.lookup().isValidTenant(updateData.getTenant())) { - throw new RuntimeException("Invalid tenantId."); - } - if (!ConfigurationRepository.lookup().isValidNamespace(updateData.getNamespace())) { - throw new RuntimeException("Invalid Namespace."); - } - } catch (NullPointerException e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); - } - - try { - boolean keyPresent = - isKeyExists(updateData.getTenant(), updateData.getNamespace(), updateData.getKey()); - if (keyPresent) { - boolean isUpdated = false; - Object[] paramArray = new Object[]{ - updateData.getTenant() + KEY_ELEMENTS_DELEMETER + updateData.getNamespace(), - new Long(System.currentTimeMillis()), updateData.getKey(), - getConfigurationValue(updateData), updateData.getValue()}; - Configuration config = ConfigurationRepository.lookup() - .getConfigurationFor(updateData.getTenant(), updateData.getNamespace()); - if (config instanceof AgglomerateConfiguration || config instanceof CombinedConfiguration) { - CompositeConfiguration cc = new CompositeConfiguration(); - cc.addConfiguration(config); - config = cc; - } - CompositeConfiguration configuration = (CompositeConfiguration) config; - int overrideIndex = -1; - for (int i = 0; i < configuration.getNumberOfConfigurations(); i++) { - if (!updateData.isNodeOverride() - && (configuration.getConfiguration(i) instanceof AgglomerateConfiguration - || configuration.getConfiguration(i) instanceof CombinedConfiguration)) { - configuration.getConfiguration(i) - .setProperty(updateData.getKey(), updateData.getValue()); - isUpdated = true; - break; - } else if (updateData.isNodeOverride() - && configuration.getConfiguration(i) instanceof FileBasedConfiguration) { - configuration.getConfiguration(i) - .setProperty(updateData.getKey(), updateData.getValue()); - isUpdated = true; - overrideIndex = i; - break; - } - } - if (!isUpdated) { - if (updateData.isNodeOverride()) { - PropertiesConfiguration pc = new PropertiesConfiguration(); - pc.setProperty(NAMESPACE_KEY, - updateData.getTenant() + Constants.TENANT_NAMESPACE_SAPERATOR - + updateData.getNamespace()); - pc.setProperty(MODE_KEY, "OVERRIDE"); - pc.setProperty(updateData.getKey(), updateData.getValue()); - if (System.getProperty("node.config.location") != null - && System.getProperty("node.config.location").trim().length() > 0) { - File file = new File(System.getProperty("node.config.location"), - updateData.getTenant() + File.separator + updateData.getNamespace() - + File.separator + "config.properties"); - file.getParentFile().mkdirs(); - PrintWriter out = new PrintWriter(file); - pc.write(out); - out.close(); - ConfigurationRepository.lookup().populateOverrideConfigurtaion( - updateData.getTenant() + KEY_ELEMENTS_DELEMETER + updateData.getNamespace(), - file); - } - } else { - configuration.getConfiguration(0) - .setProperty(updateData.getKey(), updateData.getValue()); - } - } - if (!updateData.isNodeOverride()) { - ConfigurationUtils.executeInsertSql( - ConfigurationRepository.lookup().getConfigurationFor(DEFAULT_TENANT, DB_NAMESPACE) - .getString("insertconfigurationchangecql"), paramArray); - } else { - ConfigurationRepository.lookup().refreshOverrideConfigurtaionFor( - updateData.getTenant() + KEY_ELEMENTS_DELEMETER + updateData.getNamespace(), - overrideIndex); - } - } - } catch (Exception exception) { - exception.printStackTrace(); - } - } - - private boolean isKeyExists(String tenant, String namespace, String key) { - boolean keyExist = false; - try { - keyExist = - ConfigurationRepository.lookup().getConfigurationFor(tenant, namespace).containsKey(key); - if (!keyExist && !DEFAULT_TENANT.equals(tenant)) { - keyExist = ConfigurationRepository.lookup().getConfigurationFor(DEFAULT_TENANT, namespace) - .containsKey(key); - } - if (!keyExist && !DEFAULT_NAMESPACE.equals(namespace)) { - keyExist = ConfigurationRepository.lookup().getConfigurationFor(tenant, DEFAULT_NAMESPACE) - .containsKey(key); - } - if (!keyExist && !DEFAULT_TENANT.equals(tenant) && !DEFAULT_NAMESPACE.equals(namespace)) { - keyExist = - ConfigurationRepository.lookup().getConfigurationFor(DEFAULT_TENANT, DEFAULT_NAMESPACE) - .containsKey(key); - } - } catch (Exception exception) { - exception.printStackTrace(); - } - return keyExist; - } - - public Map listConfiguration(Map input) { - return listConfiguration((ConfigurationQuery) getInput(input)); - } - - private Map listConfiguration(ConfigurationQuery query) { - Map map = new HashMap<>(); - try { - Collection keys = getKeys(query.getTenant(), query.getNamespace()); - for (String key : keys) { - map.put(key, getConfigurationValue(query.key(key))); - } - } catch (Exception exception) { - exception.printStackTrace(); - return null; - } - return map; - } - - @Override - public boolean updateConfigurationValues(String tenant, String namespace, - Map configKeyValueStore) { - boolean valueToReturn = true; - Iterator keys = configKeyValueStore.keySet().iterator(); - while (keys.hasNext()) { - try { - String key = keys.next(); - ConfigurationUpdate updateData = new ConfigurationUpdate(); - updateData.tenant(tenant).namespace(namespace).key(key); - updateData.value(configKeyValueStore.get(key).toString()); - updateConfigurationValue(updateData); - } catch (Exception exception) { - exception.printStackTrace(); - valueToReturn = false; - } - } - return valueToReturn; - } - - private Object getInput(Map input) { - Object toReturn = null; - try { - toReturn = Class.forName(input.get("ImplClass").toString()).newInstance(); - Method[] methods = toReturn.getClass().getMethods(); - for (Method method : methods) { - if (input.containsKey(method.getName())) { - method.invoke(toReturn, input.get(method.getName())); - } - } - } catch (Exception exception) { - exception.printStackTrace(); - } - - return toReturn; - } - - @Override - public Collection getTenants() { - return ConfigurationRepository.lookup().getTenants(); - } - - @Override - public Collection getNamespaces() { - return ConfigurationRepository.lookup().getNamespaces(); - } - - private ArrayList getInMemoryKeys(String tenant, String namespace) { - ArrayList keys = new ArrayList<>(); - - try { - Iterator iter = - ConfigurationRepository.lookup().getConfigurationFor(tenant, namespace).getKeys(); - while (iter.hasNext()) { - String key = iter.next(); - if (!(key.equals(NAMESPACE_KEY) || key.equals(MODE_KEY) - || key.equals(LOAD_ORDER_KEY))) { - keys.add(key); - } - } - } catch (Exception exception) { - //do nothing - } - - return keys; - } - - @Override - public Collection getKeys(String tenant, String namespace) { - Set keyCollection = new HashSet<>(); - try { - keyCollection.addAll(ConfigurationUtils.executeSelectSql( - ConfigurationRepository.lookup().getConfigurationFor(DEFAULT_TENANT, DB_NAMESPACE) - .getString("fetchkeysql"), - new String[]{tenant + KEY_ELEMENTS_DELEMETER + DEFAULT_NAMESPACE})); - keyCollection.addAll(ConfigurationUtils.executeSelectSql( - ConfigurationRepository.lookup().getConfigurationFor(DEFAULT_TENANT, DB_NAMESPACE) - .getString("fetchkeysql"), - new String[]{tenant + KEY_ELEMENTS_DELEMETER + namespace})); - keyCollection.addAll(ConfigurationUtils.executeSelectSql( - ConfigurationRepository.lookup().getConfigurationFor(DEFAULT_TENANT, DB_NAMESPACE) - .getString("fetchkeysql"), - new String[]{DEFAULT_TENANT + KEY_ELEMENTS_DELEMETER + namespace})); - keyCollection.addAll(ConfigurationUtils.executeSelectSql( - ConfigurationRepository.lookup().getConfigurationFor(DEFAULT_TENANT, DB_NAMESPACE) - .getString("fetchkeysql"), - new String[]{DEFAULT_TENANT + KEY_ELEMENTS_DELEMETER + DEFAULT_NAMESPACE})); - } catch (Exception exception) { - exception.printStackTrace(); - keyCollection.addAll(getInMemoryKeys(tenant, DEFAULT_NAMESPACE)); - keyCollection.addAll(getInMemoryKeys(tenant, namespace)); - keyCollection.addAll(getInMemoryKeys(DEFAULT_TENANT, namespace)); - keyCollection.addAll(getInMemoryKeys(DEFAULT_TENANT, DEFAULT_NAMESPACE)); - } - return keyCollection; - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationChangeNotifier.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationChangeNotifier.java deleted file mode 100644 index 3922720d48..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationChangeNotifier.java +++ /dev/null @@ -1,476 +0,0 @@ -package org.openecomp.config.impl; - -import static org.openecomp.config.ConfigurationUtils.isArray; - -import org.openecomp.config.ConfigurationUtils; -import org.openecomp.config.Constants; -import org.openecomp.config.api.ConfigurationChangeListener; -import org.openecomp.config.api.ConfigurationManager; -import org.openecomp.config.api.Hint; - -import java.io.File; -import java.io.IOException; -import java.lang.management.ManagementFactory; -import java.lang.reflect.Method; -import java.nio.file.ClosedWatchServiceException; -import java.nio.file.FileSystems; -import java.nio.file.Path; -import java.nio.file.StandardWatchEventKinds; -import java.nio.file.WatchEvent; -import java.nio.file.WatchKey; -import java.nio.file.WatchService; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import java.util.Vector; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; -import java.util.concurrent.ScheduledExecutorService; -import java.util.concurrent.TimeUnit; -import javax.management.JMX; -import javax.management.MBeanServerConnection; -import javax.management.ObjectName; - - -/** - * The type Configuration change notifier. - */ -public final class ConfigurationChangeNotifier { - - private final HashMap> store = new HashMap<>(); - private final ScheduledExecutorService executor = - Executors.newScheduledThreadPool(5, ConfigurationUtils.getThreadFactory()); - private final ExecutorService notificationExecutor = - Executors.newCachedThreadPool(ConfigurationUtils.getThreadFactory()); - private final Map watchServiceCollection = - Collections.synchronizedMap(new HashMap<>()); - - static { - if (!Thread.currentThread().getStackTrace()[2].getClassName() - .equals(ConfigurationImpl.class.getName())) { - throw new RuntimeException("Illegal access."); - } - } - - /** - * Instantiates a new Configuration change notifier. - * - * @param inMemoryConfig the in memory config - */ - public ConfigurationChangeNotifier(Map inMemoryConfig) { - executor.scheduleWithFixedDelay(() -> this - .pollFilesystemAndUpdateConfigurationIfRequired(inMemoryConfig, - System.getProperty("config.location"), false), 1, 1, TimeUnit.MILLISECONDS); - executor.scheduleWithFixedDelay(() -> this - .pollFilesystemAndUpdateConfigurationIfRequired(inMemoryConfig, - System.getProperty("tenant.config.location"), true), 1, 1, TimeUnit.MILLISECONDS); - executor.scheduleWithFixedDelay(() -> this - .pollFilesystemAndUpdateNodeSpecificConfigurationIfRequired( - System.getProperty("node.config.location")), 1, 1, TimeUnit.MILLISECONDS); - } - - /** - * Shutdown. - */ - public void shutdown() { - for (WatchService watch : watchServiceCollection.values()) { - try { - watch.close(); - } catch (IOException exception) { - //do nothing - } - } - executor.shutdownNow(); - } - - /** - * Poll filesystem and update configuration if required. - * - * @param inMemoryConfig the in memory config - * @param location the location - * @param isTenantLocation the is tenant location - */ - public void pollFilesystemAndUpdateConfigurationIfRequired( - Map inMemoryConfig, String location, - boolean isTenantLocation) { - try { - Set paths = watchForChange(location); - if (paths != null) { - for (Path path : paths) { - File file = path.toAbsolutePath().toFile(); - String repositoryKey = null; - if (ConfigurationUtils.isConfig(file) && file.isFile()) { - if (isTenantLocation) { - Collection tenantsRoot = - ConfigurationUtils.getAllFiles(new File(location), false, true); - for (File tenantRoot : tenantsRoot) { - if (file.getAbsolutePath().startsWith(tenantRoot.getAbsolutePath())) { - repositoryKey = ConfigurationUtils.getConfigurationRepositoryKey( - (tenantRoot.getName() + Constants.TENANT_NAMESPACE_SAPERATOR - + ConfigurationUtils.getNamespace(file)) - .split(Constants.TENANT_NAMESPACE_SAPERATOR)); - } - } - } else { - repositoryKey = ConfigurationUtils.getConfigurationRepositoryKey(file); - } - AggregateConfiguration config = inMemoryConfig.get(repositoryKey); - if (config != null) { - LinkedHashMap origConfig = ConfigurationUtils.toMap(config.getFinalConfiguration()); - config.addConfig(file); - LinkedHashMap latestConfig = ConfigurationUtils.toMap(config.getFinalConfiguration()); - Map map = ConfigurationUtils.diff(origConfig, latestConfig); - String[] tenantNamespaceArray = - repositoryKey.split(Constants.KEY_ELEMENTS_DELEMETER); - updateConfigurationValues(tenantNamespaceArray[0], tenantNamespaceArray[1], map); - } - } else { - for (String configKey : inMemoryConfig.keySet()) { - repositoryKey = configKey; - AggregateConfiguration config = inMemoryConfig.get(repositoryKey); - if (config.containsConfig(file)) { - LinkedHashMap origConfig = ConfigurationUtils.toMap(config.getFinalConfiguration()); - config.removeConfig(file); - LinkedHashMap latestConfig = - ConfigurationUtils.toMap(config.getFinalConfiguration()); - Map map = ConfigurationUtils.diff(origConfig, latestConfig); - String[] tenantNamespaceArray = - repositoryKey.split(Constants.KEY_ELEMENTS_DELEMETER); - updateConfigurationValues(tenantNamespaceArray[0], tenantNamespaceArray[1], - map); - } - } - } - } - } - } catch (ClosedWatchServiceException exception) { - // do nothing. - } catch (Exception exception) { - exception.printStackTrace(); - } - } - - private void updateConfigurationValues(String tenant, String namespace, Map map) - throws Exception { - MBeanServerConnection mbsc = ManagementFactory.getPlatformMBeanServer(); - ObjectName mbeanName = new ObjectName(Constants.MBEAN_NAME); - ConfigurationManager conf = - JMX.newMBeanProxy(mbsc, mbeanName, org.openecomp.config.api.ConfigurationManager.class, - true); - conf.updateConfigurationValues(tenant, namespace, map); - } - - /** - * Poll filesystem and update node specific configuration if required. - * - * @param location the location - */ - public void pollFilesystemAndUpdateNodeSpecificConfigurationIfRequired(String location) { - try { - Set paths = watchForChange(location); - if (paths != null) { - for (Path path : paths) { - File file = path.toAbsolutePath().toFile(); - - if (ConfigurationUtils.isConfig(file)) { - String repositoryKey = ConfigurationUtils.getConfigurationRepositoryKey(file); - ConfigurationRepository.lookup().populateOverrideConfigurtaion(repositoryKey, file); - } else { - ConfigurationRepository.lookup().removeOverrideConfigurtaion(file); - } - } - } - } catch (Exception exception) { - exception.printStackTrace(); - } - } - - /** - * Notify changes towards. - * - * @param tenant the tenant - * @param component the component - * @param key the key - * @param myself the myself - * @throws Exception the exception - */ - public void notifyChangesTowards(String tenant, String component, String key, - ConfigurationChangeListener myself) throws Exception { - List notificationList = - store.get(tenant + Constants.KEY_ELEMENTS_DELEMETER + component); - if (notificationList == null) { - notificationList = Collections.synchronizedList(new ArrayList()); - store.put(tenant + Constants.KEY_ELEMENTS_DELEMETER + component, notificationList); - executor.scheduleWithFixedDelay( - () -> triggerScanning(tenant + Constants.KEY_ELEMENTS_DELEMETER + component), 1, 30000, - TimeUnit.MILLISECONDS); - } - notificationList.add(new NotificationData(tenant, component, key, myself)); - } - - /** - * Stop notification towards. - * - * @param tenant the tenant - * @param component the component - * @param key the key - * @param myself the myself - * @throws Exception the exception - */ - public void stopNotificationTowards(String tenant, String component, String key, - ConfigurationChangeListener myself) throws Exception { - List notificationList = - store.get(tenant + Constants.KEY_ELEMENTS_DELEMETER + component); - if (notificationList != null) { - boolean removed = - notificationList.remove(new NotificationData(tenant, component, key, myself)); - if (removed && notificationList.isEmpty()) { - store.remove(tenant + Constants.KEY_ELEMENTS_DELEMETER + component); - } - } - - } - - private void triggerScanning(String key) { - if (store.get(key) != null) { - notificationExecutor.submit(() -> scanForChanges(key)); - } else { - throw new IllegalArgumentException("Notification service for " + key + " is suspended."); - } - } - - private void scanForChanges(String key) { - List list = store.get(key); - if (list != null) { - list.stream() - .filter(NotificationData::isChanged) - .forEach(notificationData -> notificationExecutor.submit(() -> sendNotification(notificationData))); - } - } - - private void sendNotification(NotificationData notificationData) { - try { - notificationData.dispatchNotification(); - } catch (Exception exception) { - exception.printStackTrace(); - } - } - - private Set watchForChange(String location) throws Exception { - if (location == null || location.trim().length() == 0) { - return null; - } - File file = new File(location); - if (!file.exists()) { - return null; - } - Path path = file.toPath(); - Set toReturn = new HashSet<>(); - try (final WatchService watchService = FileSystems.getDefault().newWatchService()) { - watchServiceCollection.put(location, watchService); - path.register(watchService, StandardWatchEventKinds.ENTRY_MODIFY, - StandardWatchEventKinds.ENTRY_CREATE, StandardWatchEventKinds.ENTRY_DELETE); - for (File dir : ConfigurationUtils.getAllFiles(file, true, true)) { - dir.toPath().register(watchService, StandardWatchEventKinds.ENTRY_MODIFY, - StandardWatchEventKinds.ENTRY_CREATE, StandardWatchEventKinds.ENTRY_DELETE); - } - while (true) { - final WatchKey wk = watchService.take(); - Thread.sleep(ConfigurationRepository.lookup() - .getConfigurationFor(Constants.DEFAULT_TENANT, Constants.DB_NAMESPACE) - .getLong("event.fetch.delay")); - for (WatchEvent event : wk.pollEvents()) { - Object context = event.context(); - if (context instanceof Path) { - File newFile = new File(((Path) wk.watchable()).toFile(), context.toString()); - if (event.kind() == StandardWatchEventKinds.ENTRY_CREATE) { - if (newFile.isDirectory()) { - newFile.toPath().register(watchService, StandardWatchEventKinds.ENTRY_MODIFY, - StandardWatchEventKinds.ENTRY_CREATE, StandardWatchEventKinds.ENTRY_DELETE); - continue; - } - } else if (event.kind() == StandardWatchEventKinds.ENTRY_MODIFY) { - if (newFile.isDirectory()) { - continue; - } - } - toReturn.add(newFile.toPath()); - } - } - if (toReturn.isEmpty()) { - continue; - } - break; - } - } - return toReturn; - } - - /** - * The type Notification data. - */ - static class NotificationData { - - /** - * The Tenant. - */ - final String tenant; - /** - * The Namespace. - */ - final String namespace; - /** - * The Key. - */ - final String key; - /** - * The Myself. - */ - final ConfigurationChangeListener myself; - /** - * The Current value. - */ - Object currentValue; - /** - * The Is array. - */ - boolean isArray; - - /** - * Instantiates a new Notification data. - * - * @param tenant the tenant - * @param component the component - * @param key the key - * @param myself the myself - * @throws Exception the exception - */ - public NotificationData(String tenant, String component, String key, - ConfigurationChangeListener myself) throws Exception { - this.tenant = tenant; - this.namespace = component; - this.key = key; - this.myself = myself; - if (!ConfigurationRepository.lookup().getConfigurationFor(tenant, component) - .containsKey(key)) { - throw new RuntimeException("Key[" + key + "] not found."); - } - isArray = isArray(tenant, component, key, Hint.DEFAULT.value()); - if (isArray) { - currentValue = ConfigurationManager.lookup().getAsStringValues(tenant, component, key); - } else { - currentValue = ConfigurationManager.lookup().getAsString(tenant, component, key); - } - } - - @Override - public boolean equals(Object obj) { - if (!(obj instanceof NotificationData)) { - return false; - } - NotificationData nd = (NotificationData) obj; - return Objects.equals(tenant, nd.tenant) - && Objects.equals(namespace, nd.namespace) - && Objects.equals(key, nd.key) - && Objects.equals(myself, nd.myself) - && Objects.equals(currentValue, nd.currentValue) // it's either String or List - && isArray == nd.isArray; - } - - @Override - public int hashCode() { - return Objects.hash(tenant, namespace, key, myself, currentValue, isArray); - } - - /** - * Is changed boolean. - * - * @return the boolean - */ - public boolean isChanged() { - Object latestValue; - try { - if (isArray) { - latestValue = ConfigurationManager.lookup().getAsStringValues(tenant, namespace, key); - } else { - latestValue = ConfigurationManager.lookup().getAsString(tenant, namespace, key); - } - if (!isArray) { - return !currentValue.equals(latestValue); - } else { - Collection oldCollection = (Collection) currentValue; - Collection newCollection = (Collection) latestValue; - for (String val : oldCollection) { - if (!newCollection.remove(val)) { - return true; - } - } - return !newCollection.isEmpty(); - } - } catch (Exception exception) { - return false; - } - } - - /** - * Dispatch notification. - * - * @throws Exception the exception - */ - public void dispatchNotification() throws Exception { - Method method = null; - Vector parameters = null; - try { - Object latestValue; - if (isArray) { - latestValue = ConfigurationManager.lookup().getAsStringValues(tenant, namespace, key); - } else { - latestValue = ConfigurationManager.lookup().getAsString(tenant, namespace, key); - } - Method[] methods = myself.getClass().getDeclaredMethods(); - if (methods != null && methods.length > 0) { - method = methods[0]; - int paramCount = method.getParameterCount(); - parameters = new Vector<>(); - if (paramCount > 4) { - if (tenant.equals(Constants.DEFAULT_TENANT)) { - parameters.add(null); - } else { - parameters.add(tenant); - } - } - if (paramCount > 3) { - if (namespace.equals(Constants.DEFAULT_NAMESPACE)) { - parameters.add(null); - } else { - parameters.add(namespace); - } - } - parameters.add(key); - parameters.add(currentValue); - parameters.add(latestValue); - method.setAccessible(true); - } - } catch (Exception exception) { - exception.printStackTrace(); - } finally { - isArray = isArray(tenant, namespace, key, Hint.DEFAULT.value()); - if (isArray) { - currentValue = ConfigurationManager.lookup().getAsStringValues(tenant, namespace, key); - } else { - currentValue = ConfigurationManager.lookup().getAsString(tenant, namespace, key); - } - if (method != null && parameters != null) { - method.invoke(myself, parameters.toArray()); - } - } - } - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationDataSource.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationDataSource.java deleted file mode 100644 index a60403e4dc..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationDataSource.java +++ /dev/null @@ -1,105 +0,0 @@ -package org.openecomp.config.impl; - -import org.apache.commons.configuration2.ImmutableConfiguration; -import org.apache.commons.dbcp2.BasicDataSource; -import org.apache.commons.lang3.StringUtils; -import org.openecomp.config.ConfigurationUtils; -import org.openecomp.config.Constants; - -import java.sql.Driver; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.ServiceLoader; -import java.util.Set; - -/** - * The type Configuration data source. - */ -public final class ConfigurationDataSource { - - private static BasicDataSource configDBDatasource = null; - private static Set validCallers = Collections.unmodifiableSet(new HashSet<>( - Arrays.asList(ConfigurationUtils.class.getName(), CliConfigurationImpl.class.getName()))); - - private ConfigurationDataSource() { - //Hide constructor to prevent instantiation using the default implicit constructor - } - - static { - try { - configDBDatasource = initDataSource(); - } catch (Exception exception) { - System.err.println("Datasource initialization error. Configuration management will be using" - + "in-memory persistence."); - } - } - - /** - * Lookup basic data source. - * - * @return the basic data source - * @throws Exception the exception - */ - public static BasicDataSource lookup() throws Exception { - if (validCallers.contains(Thread.currentThread().getStackTrace()[2].getClassName())) { - return configDBDatasource; - } else { - return null; - } - } - - /** - * Init data source basic data source. - * - * @return the basic data source - * @throws Exception the exception - */ - public static BasicDataSource initDataSource() throws Exception { - ImmutableConfiguration dbConfig = ConfigurationRepository.lookup() - .getConfigurationFor(Constants.DEFAULT_TENANT, Constants.DB_NAMESPACE); - if (StringUtils.isEmpty(dbConfig.getString("dbhost"))) { - return null; - } - BasicDataSource datasource = new BasicDataSource(); - String driverClassName = dbConfig.getString("driverClassName"); - String jdbcUrl = dbConfig.getString("jdbcURL"); - if (!isDriverSuitable(driverClassName, jdbcUrl)) { - driverClassName = getDriverFor(jdbcUrl); - } - datasource.setDriverClassName(driverClassName); - datasource.setUrl(jdbcUrl); - String dbuser = dbConfig.getString("dbuser"); - String dbpassword = dbConfig.getString("dbpassword"); - if (dbuser != null && dbuser.trim().length() > 0) { - datasource.setUsername(dbuser); - } - if (dbpassword != null && dbpassword.trim().length() > 0) { - datasource.setPassword(dbpassword); - } - return datasource; - } - - private static boolean isDriverSuitable(String driverClassName, String url) { - if (driverClassName == null || driverClassName.trim().length() == 0) { - return false; - } - try { - Driver driver = Driver.class.cast(Class.forName(driverClassName).newInstance()); - return driver.acceptsURL(url); - } catch (Exception exception) { - return false; - } - } - - private static String getDriverFor(String url) throws Exception { - ServiceLoader loader = ServiceLoader.load(Driver.class); - for (Driver driver : loader) { - if (driver.acceptsURL(url)) { - return driver.getClass().getName(); - } - } - throw new RuntimeException("No Suitable driver found for " + url); - } - -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationFilter.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationFilter.java deleted file mode 100644 index 4aa474c9ea..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationFilter.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.openecomp.config.impl; - -import org.openecomp.config.Constants; -import org.openecomp.config.api.Configuration; - -import java.io.IOException; -import javax.servlet.Filter; -import javax.servlet.FilterChain; -import javax.servlet.FilterConfig; -import javax.servlet.ServletException; -import javax.servlet.ServletRequest; -import javax.servlet.ServletResponse; -import javax.servlet.annotation.WebFilter; - -@WebFilter("/") -public class ConfigurationFilter implements Filter { - - @Override - public void init(FilterConfig paramFilterConfig) throws ServletException { - //Use the default behavior - } - - @Override - public void doFilter(ServletRequest paramServletRequest, ServletResponse paramServletResponse, - FilterChain paramFilterChain) throws IOException, ServletException { - Configuration.tenant.set(Constants.DEFAULT_TENANT); - try { - paramFilterChain.doFilter(paramServletRequest, paramServletResponse); - } finally { - Configuration.tenant.remove(); - } - } - - @Override - public void destroy() { - //Use the default behavior - } - -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationImpl.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationImpl.java deleted file mode 100644 index 26e8f8e7bb..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationImpl.java +++ /dev/null @@ -1,684 +0,0 @@ -package org.openecomp.config.impl; - -import static org.openecomp.config.ConfigurationUtils.getConfigurationRepositoryKey; -import static org.openecomp.config.ConfigurationUtils.getProperty; -import static org.openecomp.config.ConfigurationUtils.isExternalLookup; -import static org.openecomp.config.ConfigurationUtils.isWrapperClass; -import static org.openecomp.config.ConfigurationUtils.isZeroLengthArray; - -import static org.openecomp.config.Constants.DB_NAMESPACE; -import static org.openecomp.config.Constants.DEFAULT_NAMESPACE; -import static org.openecomp.config.Constants.DEFAULT_TENANT; -import static org.openecomp.config.Constants.KEY_ELEMENTS_DELEMETER; - -import org.apache.commons.configuration2.Configuration; -import org.apache.commons.configuration2.DatabaseConfiguration; -import org.openecomp.config.ConfigurationUtils; -import org.openecomp.config.Constants; -import org.openecomp.config.NonConfigResource; -import org.openecomp.config.api.Config; -import org.openecomp.config.api.ConfigurationChangeListener; -import org.openecomp.config.api.Hint; - -import java.io.File; -import java.lang.reflect.Constructor; -import java.lang.reflect.Field; -import java.lang.reflect.Modifier; -import java.net.URL; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.function.Predicate; - -/** - * The type Configuration. - */ -public class ConfigurationImpl implements org.openecomp.config.api.Configuration { - - private static ThreadLocal tenant = new ThreadLocal() { - protected String initialValue() { - return Constants.DEFAULT_TENANT; - } - - ; - }; - private static boolean instantiated = false; - /** - * The Change notifier. - */ - ConfigurationChangeNotifier changeNotifier; - - /** - * Instantiates a new Configuration. - * - * @throws Exception the exception - */ - public ConfigurationImpl() throws Exception { - if (instantiated || !CliConfigurationImpl.class.isAssignableFrom(this.getClass())) { - throw new RuntimeException("Illegal access to configuration."); - } - Map moduleConfigStore = new HashMap<>(); - List classpathResources = ConfigurationUtils.getAllClassPathResources(); - Predicate predicate = ConfigurationUtils::isConfig; - for (URL url : classpathResources) { - if (predicate.test(url)) { - String moduleName = getConfigurationRepositoryKey(url); - AggregateConfiguration moduleConfig = moduleConfigStore.get(moduleName); - if (moduleConfig == null) { - moduleConfig = new AggregateConfiguration(); - moduleConfigStore.put(moduleName, moduleConfig); - } - moduleConfig.addConfig(url); - } else { - NonConfigResource.add(url); - } - } - String configLocation = System.getProperty("config.location"); - if (configLocation != null && configLocation.trim().length() > 0) { - File root = new File(configLocation); - Collection filesystemResources = ConfigurationUtils.getAllFiles(root, true, false); - Predicate filePredicate = ConfigurationUtils::isConfig; - for (File file : filesystemResources) { - if (filePredicate.test(file)) { - String moduleName = getConfigurationRepositoryKey(file); - AggregateConfiguration moduleConfig = moduleConfigStore.get(moduleName); - if (moduleConfig == null) { - moduleConfig = new AggregateConfiguration(); - moduleConfigStore.put(moduleName, moduleConfig); - } - moduleConfig.addConfig(file); - } else { - NonConfigResource.add(file); - } - } - } - String tenantConfigLocation = System.getProperty("tenant.config.location"); - if (tenantConfigLocation != null && tenantConfigLocation.trim().length() > 0) { - File root = new File(tenantConfigLocation); - Collection tenantsRoot = ConfigurationUtils.getAllFiles(root, false, true); - Collection filesystemResources = ConfigurationUtils.getAllFiles(root, true, false); - Predicate filePredicate = ConfigurationUtils::isConfig; - for (File file : filesystemResources) { - if (filePredicate.test(file)) { - String moduleName = ConfigurationUtils.getNamespace(file); - for (File tenanatFileRoot : tenantsRoot) { - if (file.getAbsolutePath().startsWith(tenanatFileRoot.getAbsolutePath())) { - moduleName = getConfigurationRepositoryKey( - (tenanatFileRoot.getName().toUpperCase() + Constants.TENANT_NAMESPACE_SAPERATOR - + moduleName).split(Constants.TENANT_NAMESPACE_SAPERATOR)); - } - } - AggregateConfiguration moduleConfig = moduleConfigStore.get(moduleName); - if (moduleConfig == null) { - moduleConfig = new AggregateConfiguration(); - moduleConfigStore.put(moduleName, moduleConfig); - } - moduleConfig.addConfig(file); - } - } - } - populateFinalConfigurationIncrementally(moduleConfigStore); - ConfigurationRepository.lookup().initTenantsAndNamespaces(); - String nodeConfigLocation = System.getProperty("node.config.location"); - if (nodeConfigLocation != null && nodeConfigLocation.trim().length() > 0) { - File root = new File(nodeConfigLocation); - Collection filesystemResources = ConfigurationUtils.getAllFiles(root, true, false); - Predicate filePredicate = ConfigurationUtils::isConfig; - for (File file : filesystemResources) { - if (filePredicate.test(file)) { - ConfigurationRepository.lookup().populateOverrideConfigurtaion( - getConfigurationRepositoryKey(ConfigurationUtils.getNamespace(file) - .split(Constants.TENANT_NAMESPACE_SAPERATOR)), file); - } - } - } - instantiated = true; - changeNotifier = new ConfigurationChangeNotifier(moduleConfigStore); - } - - @Override - public void addConfigurationChangeListener(String tenant, String namespace, String key, - ConfigurationChangeListener myself) { - tenant = ConfigurationRepository.lookup().isValidTenant(tenant) ? tenant.toUpperCase() - : Constants.DEFAULT_TENANT; - namespace = - ConfigurationRepository.lookup().isValidNamespace(namespace) ? namespace.toUpperCase() - : Constants.DEFAULT_NAMESPACE; - if (key == null || key.trim().length() == 0) { - throw new IllegalArgumentException("Key can't be null."); - } - if (myself == null) { - throw new IllegalArgumentException("ConfigurationChangeListener instance is null."); - } - try { - changeNotifier.notifyChangesTowards(tenant, namespace, key, myself); - } catch (Exception exception) { - exception.printStackTrace(); - } - } - - private void populateFinalConfigurationIncrementally(Map configs) - throws Exception { - boolean isDbAccessible = false; - if (configs.get( - Constants.DEFAULT_TENANT + Constants.KEY_ELEMENTS_DELEMETER + Constants.DB_NAMESPACE) - != null) { - ConfigurationRepository.lookup().populateConfigurtaion( - Constants.DEFAULT_TENANT + Constants.KEY_ELEMENTS_DELEMETER + Constants.DB_NAMESPACE, - configs.remove( - Constants.DEFAULT_TENANT + Constants.KEY_ELEMENTS_DELEMETER + Constants.DB_NAMESPACE) - .getFinalConfiguration()); - isDbAccessible = ConfigurationUtils.executeDdlSql(ConfigurationRepository.lookup() - .getConfigurationFor(Constants.DEFAULT_TENANT, Constants.DB_NAMESPACE) - .getString("createtablecql")); - if (isDbAccessible) { - ConfigurationUtils.executeDdlSql(ConfigurationRepository.lookup() - .getConfigurationFor(Constants.DEFAULT_TENANT, Constants.DB_NAMESPACE) - .getString("createmonitoringtablecql")); - } - } - - Set modules = configs.keySet(); - for (String module : modules) { - if (isDbAccessible) { - DatabaseConfiguration config = - ConfigurationUtils.getDbConfigurationBuilder(module).getConfiguration(); - Configuration currentConfig = configs.get(module).getFinalConfiguration(); - Iterator keys = currentConfig.getKeys(); - while (keys.hasNext()) { - String currentKey = keys.next(); - if (!(Constants.MODE_KEY.equals(currentKey) - || Constants.NAMESPACE_KEY.equals(currentKey) - || Constants.LOAD_ORDER_KEY.equals(currentKey))) { - if (!config.containsKey(currentKey)) { - Object propValue = currentConfig.getProperty(currentKey); - if (propValue instanceof Collection) { - config.addProperty(currentKey, propValue.toString()); - } else { - config.addProperty(currentKey, propValue); - } - } - } - } - } else { - ConfigurationRepository.lookup() - .populateConfigurtaion(module, configs.get(module).getFinalConfiguration()); - } - } - } - - @Override - public T get(String tenant, String namespace, String key, Class clazz, Hint... hints) { - - String[] tenantNamespaceArrayy = null; - if (tenant == null && namespace != null - && (tenantNamespaceArrayy = namespace.split(Constants.TENANT_NAMESPACE_SAPERATOR)).length - > 1) { - tenant = tenantNamespaceArrayy[0]; - namespace = tenantNamespaceArrayy[1]; - } - - tenant = ConfigurationRepository.lookup().isValidTenant(tenant) ? tenant.toUpperCase() - : Constants.DEFAULT_TENANT; - namespace = - ConfigurationRepository.lookup().isValidNamespace(namespace) ? namespace.toUpperCase() - : Constants.DEFAULT_NAMESPACE; - T returnValue = null; - returnValue = (T) getInternal(tenant, namespace, key, - clazz.isPrimitive() ? getWrapperClass(clazz) : clazz, - hints == null || hints.length == 0 ? new Hint[]{Hint.EXTERNAL_LOOKUP, Hint.NODE_SPECIFIC} - : hints); - if ((returnValue == null || isZeroLengthArray(clazz, returnValue)) - && !Constants.DEFAULT_TENANT.equals(tenant)) { - returnValue = (T) getInternal(Constants.DEFAULT_TENANT, namespace, key, - clazz.isPrimitive() ? getWrapperClass(clazz) : clazz, - hints == null || hints.length == 0 ? new Hint[]{Hint.EXTERNAL_LOOKUP, Hint.NODE_SPECIFIC} - : hints); - } - if ((returnValue == null || isZeroLengthArray(clazz, returnValue)) - && !Constants.DEFAULT_NAMESPACE.equals(namespace)) { - returnValue = (T) getInternal(tenant, Constants.DEFAULT_NAMESPACE, key, - clazz.isPrimitive() ? getWrapperClass(clazz) : clazz, - hints == null || hints.length == 0 ? new Hint[]{Hint.EXTERNAL_LOOKUP, Hint.NODE_SPECIFIC} - : hints); - } - if ((returnValue == null ||isZeroLengthArray(clazz, returnValue)) - && !Constants.DEFAULT_NAMESPACE.equals(namespace) - && !Constants.DEFAULT_TENANT.equals(tenant)) { - returnValue = (T) getInternal(Constants.DEFAULT_TENANT, Constants.DEFAULT_NAMESPACE, key, - clazz.isPrimitive() ? getWrapperClass(clazz) : clazz, - hints == null || hints.length == 0 ? new Hint[]{Hint.EXTERNAL_LOOKUP, Hint.NODE_SPECIFIC} - : hints); - } - if (returnValue == null && clazz.isPrimitive()) { - return (T) ConfigurationUtils.getDefaultFor(clazz); - } else { - return returnValue; - } - } - - - /** - * Gets internal. - * - * @param the type parameter - * @param tenant the tenant - * @param namespace the namespace - * @param key the key - * @param clazz the clazz - * @param hints the hints - * @return the internal - */ - protected T getInternal(String tenant, String namespace, String key, Class clazz, - Hint... hints) { - int processingHints = Hint.DEFAULT.value(); - if (hints != null) { - for (Hint hint : hints) { - processingHints = processingHints | hint.value(); - } - } - - if (tenant == null || tenant.trim().length() == 0) { - tenant = this.tenant.get(); - } else { - tenant = tenant.toUpperCase(); - } - if (namespace == null || namespace.trim().length() == 0) { - namespace = Constants.DEFAULT_NAMESPACE; - } else { - namespace = namespace.toUpperCase(); - } - if (key == null || key.trim().length() == 0) { - if (!clazz.isAnnotationPresent(Config.class)) { - throw new IllegalArgumentException("Key can't be null."); - } - } - if (clazz == null) { - throw new IllegalArgumentException("clazz is null."); - } - if (clazz.isPrimitive()) { - clazz = getWrapperClass(clazz); - } - try { - if (isWrapperClass(clazz) || clazz.isPrimitive()) { - Object obj = - getProperty(ConfigurationRepository.lookup().getConfigurationFor(tenant, namespace), - key, processingHints); - if (obj != null) { - if (ConfigurationUtils.isCollection(obj.toString())) { - obj = ConfigurationUtils.getCollectionString(obj.toString()); - } - String value = obj.toString().split(",")[0]; - value = ConfigurationUtils.processVariablesIfPresent(tenant, namespace, value); - return (T) getValue(value, clazz.isPrimitive() ? getWrapperClass(clazz) : clazz, - processingHints); - } else { - return null; - } - } else if (clazz.isArray() - && (clazz.getComponentType().isPrimitive() || isWrapperClass(clazz.getComponentType()))) { - Object obj = - getProperty(ConfigurationRepository.lookup().getConfigurationFor(tenant, namespace), - key, processingHints); - if (obj != null) { - Class componentClass = clazz.getComponentType(); - if (clazz.getComponentType().isPrimitive()) { - componentClass = getWrapperClass(clazz.getComponentType()); - } - String collString = ConfigurationUtils.getCollectionString(obj.toString()); - ArrayList tempCollection = new ArrayList<>(); - for (String itemValue : collString.split(",")) { - tempCollection - .add(ConfigurationUtils.processVariablesIfPresent(tenant, namespace, itemValue)); - } - Collection collection = convert( - ConfigurationUtils.getCollectionString(Arrays.toString(tempCollection.toArray())), - componentClass, processingHints); - if (clazz.getComponentType().isPrimitive()) { - return (T) ConfigurationUtils.getPrimitiveArray(collection, clazz.getComponentType()); - } else { - return (T) collection - .toArray(getZeroLengthArrayFor(getWrapperClass(clazz.getComponentType()))); - } - } else { - return null; - } - } else if (clazz.isAnnotationPresent(Config.class)) { - return read(tenant, namespace, clazz, - (key == null || key.trim().length() == 0) ? "" : (key + "."), hints); - } else { - throw new IllegalArgumentException( - "Only pimitive classes, wrapper classes, corresponding array classes and any " - + "class decorated with @org.openecomp.config.api.Config are allowed as argument."); - } - } catch (Exception exception) { - exception.printStackTrace(); - } - return null; - } - - - private T read(String tenant, String namespace, Class clazz, String keyPrefix, - Hint... hints) throws Exception { - org.openecomp.config.api.Config confAnnot = - clazz.getAnnotation(org.openecomp.config.api.Config.class); - if (confAnnot != null && confAnnot.key().length()>0 && !keyPrefix.endsWith(".")) { - keyPrefix += (confAnnot.key() + "."); - } - Constructor constructor = clazz.getDeclaredConstructor(); - constructor.setAccessible(true); - T objToReturn = constructor.newInstance(); - for (Field field : clazz.getDeclaredFields()) { - field.setAccessible(true); - org.openecomp.config.api.Config fieldConfAnnot = - field.getAnnotation(org.openecomp.config.api.Config.class); - if (fieldConfAnnot != null) { - if (field.getType().isPrimitive() || isWrapperClass(field.getType()) - || (field.getType().isArray() && (field.getType().getComponentType().isPrimitive() - || isWrapperClass(field.getType().getComponentType()))) - || field.getType().getAnnotation(org.openecomp.config.api.Config.class) != null) { - field.set(objToReturn, - get(tenant, namespace, keyPrefix + fieldConfAnnot.key(), field.getType(), hints)); - } else if (Collection.class.isAssignableFrom(field.getType())) { - Object obj = get(tenant, namespace, keyPrefix + fieldConfAnnot.key(), - ConfigurationUtils.getArrayClass(ConfigurationUtils.getCollectionGenericType(field)), - hints); - if (obj != null) { - List list = Arrays.asList((Object[]) obj); - Class clazzToInstantiate = null; - if (field.getType().isInterface()) { - clazzToInstantiate = - ConfigurationUtils.getConcreteCollection(field.getType()).getClass(); - } else if (Modifier.isAbstract(field.getType().getModifiers())) { - clazzToInstantiate = - ConfigurationUtils.getCompatibleCollectionForAbstractDef(field.getType()) - .getClass(); - } else { - clazzToInstantiate = field.getType(); - } - Constructor construct = - getConstructorWithArguments(clazzToInstantiate, Collection.class); - if (construct != null) { - construct.setAccessible(true); - field.set(objToReturn, construct.newInstance(list)); - } else if ((construct = - getConstructorWithArguments(clazzToInstantiate, Integer.class, Boolean.class, - Collection.class)) != null) { - construct.setAccessible(true); - field.set(objToReturn, construct.newInstance(list.size(), true, list)); - } - } - }else if (Map.class.isAssignableFrom(field.getType())){ - field.set(objToReturn, generateMap(tenant, namespace, keyPrefix+fieldConfAnnot.key())); - } - } - } - return objToReturn; - } - - private Constructor getConstructorWithArguments(Class clazz, Class... classes) { - try { - return clazz.getDeclaredConstructor(classes); - } catch (Exception exception) { - return null; - } - } - - private Class getWrapperClass(Class clazz) { - if (byte.class == clazz) { - return Byte.class; - } else if (short.class == clazz) { - return Short.class; - } else if (int.class == clazz) { - return Integer.class; - } else if (long.class == clazz) { - return Long.class; - } else if (float.class == clazz) { - return Float.class; - } else if (double.class == clazz) { - return Double.class; - } else if (char.class == clazz) { - return Character.class; - } else if (boolean.class == clazz) { - return Boolean.class; - } - return clazz; - } - - private T getValue(Object obj, Class clazz, int processingHint) { - if (obj == null || obj.toString().trim().length() == 0) { - return null; - } else { - obj = obj.toString().trim(); - } - if (String.class.equals(clazz)) { - if (obj.toString().startsWith("@") && isExternalLookup(processingHint)) { - String contents = ConfigurationUtils - .getFileContents(NonConfigResource.locate(obj.toString().substring(1).trim())); - if (contents == null) { - contents = ConfigurationUtils.getFileContents(obj.toString().substring(1).trim()); - } - if (contents != null) { - obj = contents; - } - } - return (T) obj.toString(); - } else if (Number.class.isAssignableFrom(clazz)) { - Double doubleValue = Double.valueOf(obj.toString()); - switch (clazz.getName()) { - case "java.lang.Byte": - Byte byteVal = doubleValue.byteValue(); - return (T) byteVal; - case "java.lang.Short": - Short shortVal = doubleValue.shortValue(); - return (T) shortVal; - case "java.lang.Integer": - Integer intVal = doubleValue.intValue(); - return (T) intVal; - case "java.lang.Long": - Long longVal = doubleValue.longValue(); - return (T) longVal; - case "java.lang.Float": - Float floatVal = doubleValue.floatValue(); - return (T) floatVal; - case "java.lang.Double": - Double doubleVal = doubleValue.doubleValue(); - return (T) doubleVal; - default: - } - } else if (Boolean.class.equals(clazz)) { - return (T) Boolean.valueOf(obj.toString()); - } else if (Character.class.equals(clazz)) { - return (T) Character.valueOf(obj.toString().charAt(0)); - } - return null; - } - - private T[] getZeroLengthArrayFor(Class clazz) { - Object obj = null; - if (clazz == int.class) { - obj = new int[]{}; - } else if (clazz == byte.class) { - obj = new byte[]{}; - } else if (clazz == short.class) { - obj = new short[]{}; - } else if (clazz == long.class) { - obj = new long[]{}; - } else if (clazz == float.class) { - obj = new float[]{}; - } else if (clazz == double.class) { - obj = new double[]{}; - } else if (clazz == boolean.class) { - obj = new boolean[]{}; - } else if (clazz == char.class) { - obj = new char[]{}; - } else if (clazz == Byte.class) { - obj = new Byte[]{}; - } else if (clazz == Short.class) { - obj = new Short[]{}; - } else if (clazz == Integer.class) { - obj = new Integer[]{}; - } else if (clazz == Long.class) { - obj = new Long[]{}; - } else if (clazz == Float.class) { - obj = new Float[]{}; - } else if (clazz == Double.class) { - obj = new Double[]{}; - } else if (clazz == Boolean.class) { - obj = new Boolean[]{}; - } else if (clazz == Character.class) { - obj = new Character[]{}; - } else if (clazz == String.class) { - obj = new String[]{}; - } - return (T[]) obj; - } - - private Collection convert(String commaSaperatedValues, Class clazz, - int processingHints) { - ArrayList collection = new ArrayList<>(); - for (String value : commaSaperatedValues.split(",")) { - try { - T type1 = getValue(value, clazz, processingHints); - if (type1 != null) { - collection.add(type1); - } - } catch (RuntimeException re) { - // do nothing - } - } - return collection; - } - - /** - * Shutdown. - */ - public void shutdown() { - if (changeNotifier != null) { - try { - changeNotifier.shutdown(); - ConfigurationDataSource.lookup().close(); - } catch (Exception exception) { - exception.printStackTrace(); - } - } - } - - @Override - public void removeConfigurationChangeListener(String tenant, String namespace, String key, - ConfigurationChangeListener myself) { - tenant = ConfigurationRepository.lookup().isValidTenant(tenant) ? tenant.toUpperCase() - : Constants.DEFAULT_TENANT; - namespace = - ConfigurationRepository.lookup().isValidNamespace(namespace) ? namespace.toUpperCase() - : Constants.DEFAULT_NAMESPACE; - if (key == null || key.trim().length() == 0) { - throw new IllegalArgumentException("Key can't be null."); - } - try { - changeNotifier.stopNotificationTowards(tenant, namespace, key, myself); - } catch (Exception exception) { - exception.printStackTrace(); - } - } - - @Override - public Map populateMap(String tenantId, String namespace, String key, Class clazz){ - if (tenantId==null || tenantId.trim().length()==0){ - tenantId = this.tenant.get(); - }else{ - tenantId = tenantId.toUpperCase(); - } - if (namespace==null || namespace.trim().length()==0){ - namespace = DEFAULT_NAMESPACE; - }else{ - namespace = namespace.toUpperCase(); - } - Map map = new HashMap<>(); - Iterator keys ; - try { - if (ConfigurationRepository.lookup().isDBAccessible()){ - keys = ConfigurationUtils.executeSelectSql(ConfigurationRepository.lookup().getConfigurationFor(DEFAULT_TENANT, DB_NAMESPACE).getString("fetchkeysql"), new String[]{tenantId+KEY_ELEMENTS_DELEMETER+namespace}).iterator(); - }else{ - keys = ConfigurationRepository.lookup().getConfigurationFor(tenantId, namespace).getKeys(key); - } - while(keys.hasNext()){ - String k = keys.next(); - if (k.startsWith(key+".")){ - k = k.substring(key.length()+1); - String subkey = k.substring(0, k.indexOf(".")); - if (!map.containsKey(subkey)){ - map.put(subkey, get(tenantId, namespace, key+"."+subkey, clazz)); - } - } - } - }catch (Exception e){ - e.printStackTrace(); - } - return map; - } - - @Override - public Map generateMap(String tenantId, String namespace, String key){ - if (tenantId==null || tenantId.trim().length()==0){ - tenantId = this.tenant.get(); - }else{ - tenantId = tenantId.toUpperCase(); - } - if (namespace==null || namespace.trim().length()==0){ - namespace = DEFAULT_NAMESPACE; - }else{ - namespace = namespace.toUpperCase(); - } - Map map, parentMap = new HashMap<>(); - Iterator keys ; - try { - if (ConfigurationRepository.lookup().isDBAccessible()){ - keys = ConfigurationUtils.executeSelectSql(ConfigurationRepository.lookup().getConfigurationFor(DEFAULT_TENANT, DB_NAMESPACE).getString("fetchkeysql"), new String[]{tenantId+KEY_ELEMENTS_DELEMETER+namespace}).iterator(); - }else{ - if (key==null || key.trim().length()==0){ - keys = ConfigurationRepository.lookup().getConfigurationFor(tenantId, namespace).getKeys(); - }else{ - keys = ConfigurationRepository.lookup().getConfigurationFor(tenantId, namespace).getKeys(key); - } - } - while(keys.hasNext()){ - map = parentMap; - String k = keys.next(); - - if (key!=null && key.trim().length()!=0 && !k.startsWith(key+".")){ - continue; - } - String value = getAsString(tenantId, namespace, k); - if (key!=null && key.trim().length()!=0 && k.startsWith(key+".")){ - k = k.substring(key.trim().length()+1); - } - - while(k.contains(".")){ - if (k.contains(".")){ - String subkey = k.substring(0, k.indexOf(".")); - k = k.substring(k.indexOf(".")+1); - if (!map.containsKey(subkey)){ - map.put(subkey, map=new HashMap<>()); - }else{ - map = (Map)map.get(subkey); - } - } - } - map.put(k, value); - } - }catch (Exception e){ - e.printStackTrace(); - } - return parentMap; - } - - - - -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationRepository.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationRepository.java deleted file mode 100644 index d67c1af06c..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationRepository.java +++ /dev/null @@ -1,415 +0,0 @@ -package org.openecomp.config.impl; - -import org.apache.commons.configuration2.CombinedConfiguration; -import org.apache.commons.configuration2.CompositeConfiguration; -import org.apache.commons.configuration2.Configuration; -import org.apache.commons.configuration2.FileBasedConfiguration; -import org.apache.commons.configuration2.builder.BasicConfigurationBuilder; -import org.apache.commons.configuration2.builder.FileBasedConfigurationBuilder; -import org.apache.commons.configuration2.ex.ConfigurationException; -import org.openecomp.config.ConfigurationUtils; -import org.openecomp.config.Constants; - -import java.io.File; -import java.sql.Timestamp; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.HashSet; -import java.util.Iterator; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.Set; - -/** - * The type Configuration repository. - */ -public final class ConfigurationRepository { - - /** - * The Repo. - */ - static ConfigurationRepository repo; - private static Set validCallers = Collections.unmodifiableSet(new HashSet<>(Arrays - .asList(ConfigurationChangeNotifier.NotificationData.class.getName(), - ConfigurationUtils.class.getName(), CliConfigurationImpl.class.getName(), - ConfigurationChangeNotifier.class.getName(), ConfigurationDataSource.class.getName(), - ConfigurationImpl.class.getName()))); - - static { - repo = new ConfigurationRepository(); - } - - private boolean dbAccessible = true; - private Set tenants = new HashSet<>(); - private Set namespaces = new HashSet<>(); - private LinkedHashMap store = - new LinkedHashMap(16, 0.75f, true) { - @Override - protected boolean removeEldestEntry(Map.Entry eldest) { - try { - return size() > getConfigurationFor(Constants.DEFAULT_TENANT, Constants.DB_NAMESPACE) - .getInt("config.size.max"); - } catch (Exception exception) { - return false; - } - } - }; - - private ConfigurationRepository() { - if (repo != null) { - throw new RuntimeException("Illegal access to configuration."); - } - tenants.add(Constants.DEFAULT_TENANT); - namespaces.add(Constants.DEFAULT_NAMESPACE); - } - - /** - * Lookup configuration repository. - * - * @return the configuration repository - */ - public static ConfigurationRepository lookup() { - if (validCallers.contains(Thread.currentThread().getStackTrace()[2].getClassName())) { - return repo; - } - return null; - } - - /** - * Gets tenants. - * - * @return the tenants - */ - public Set getTenants() { - return tenants; - } - - /** - * Gets namespaces. - * - * @return the namespaces - */ - public Set getNamespaces() { - return namespaces; - } - - private void populateTenantsNamespace(String key, boolean sourcedFromDb) { - String[] array = key.split(Constants.KEY_ELEMENTS_DELEMETER); - if (!array[1].equalsIgnoreCase(Constants.DB_NAMESPACE)) { - if (!sourcedFromDb) { - dbAccessible = false; - } - tenants.add(array[0]); - namespaces.add(array[1]); - } - } - - /** - * Init tenants and namespaces. - */ - public void initTenantsAndNamespaces() { - try { - Collection collection = ConfigurationUtils.executeSelectSql( - getConfigurationFor(Constants.DEFAULT_TENANT, Constants.DB_NAMESPACE) - .getString("fetchnamescql"), new String[]{}); - Iterator iterator = collection.iterator(); - while (iterator.hasNext()) { - populateTenantsNamespace(iterator.next(), true); - } - } catch (Exception exception) { - //Log this later - } - } - - /** - * Is valid tenant boolean. - * - * @param tenant the tenant - * @return the boolean - */ - public boolean isValidTenant(String tenant) { - return tenant == null ? false : tenants.contains(tenant.toUpperCase()); - } - - /** - * Is valid namespace boolean. - * - * @param namespace the namespace - * @return the boolean - */ - public boolean isValidNamespace(String namespace) { - return namespace == null ? false : namespaces.contains(namespace.toUpperCase()); - } - - /** - * Gets configuration for. - * - * @param tenant the tenant - * @param namespace the namespace - * @return the configuration for - * @throws Exception the exception - */ - public Configuration getConfigurationFor(String tenant, String namespace) throws Exception { - ConfigurationHolder config; - String module = tenant + Constants.KEY_ELEMENTS_DELEMETER + namespace; - config = store.get(module); - if (config == null) { - config = new ConfigurationHolder(ConfigurationUtils - .getDbConfigurationBuilder(tenant + Constants.KEY_ELEMENTS_DELEMETER + namespace)); - store.put(module, config); - } - return config.getConfiguration(tenant + Constants.KEY_ELEMENTS_DELEMETER + namespace); - } - - /** - * Populate configurtaion. - * - * @param key the key - * @param builder the builder - */ - public void populateConfigurtaion(String key, Configuration builder) { - store.put(key, new ConfigurationHolder(builder)); - populateTenantsNamespace(key, false); - } - - /** - * Populate configurtaion. - * - * @param key the key - * @param builder the builder - * @throws Exception the exception - */ - public void populateConfigurtaion(String key, BasicConfigurationBuilder builder) - throws Exception { - store.put(key, new ConfigurationHolder(builder)); - } - - /** - * Populate override configurtaion. - * - * @param key the key - * @param file the file - * @throws Exception the exception - */ - public void populateOverrideConfigurtaion(String key, File file) throws Exception { - ConfigurationHolder holder = store.get(key); - if (holder == null) { - if (dbAccessible) { - holder = new ConfigurationHolder(ConfigurationUtils.getDbConfigurationBuilder(key)); - } else { - holder = new ConfigurationHolder(new CombinedConfiguration()); - } - store.put(key, holder); - } - holder.addOverrideConfiguration(file.getAbsolutePath(), - ConfigurationUtils.getConfigurationBuilder(file, true)); - populateTenantsNamespace(key, true); - } - - /** - * Refresh override configurtaion for. - * - * @param key the key - * @param index the index - * @throws Exception the exception - */ - public void refreshOverrideConfigurtaionFor(String key, int index) throws Exception { - ConfigurationHolder holder = store.get(key); - if (holder != null) { - holder.refreshOverrideConfiguration(index); - } - } - - /** - * Remove override configurtaion. - * - * @param file the file - * @throws Exception the exception - */ - public void removeOverrideConfigurtaion(File file) throws Exception { - Iterator iterator = new ArrayList(store.keySet()).iterator(); - while (iterator.hasNext()) { - ConfigurationHolder holder = store.get(iterator.next()); - if (holder.containsOverrideConfiguration(file.getAbsolutePath())) { - holder.removeOverrideConfiguration(file.getAbsolutePath()); - } - } - - } - - private class ConfigurationHolder { - - /** - * The Builder. - */ - BasicConfigurationBuilder builder; - /** - * The Last configuration build time. - */ - Timestamp lastConfigurationBuildTime; - /** - * The Config. - */ - Configuration config; - /** - * The Composite. - */ - Configuration composite; - /** - * The Last config change timestamp. - */ - Timestamp lastConfigChangeTimestamp; - private Map> - overrideConfiguration = new LinkedHashMap<>(); - - - /** - * Instantiates a new Configuration holder. - * - * @param builder the builder - */ - public ConfigurationHolder(BasicConfigurationBuilder builder) { - this.builder = builder; - } - - /** - * Instantiates a new Configuration holder. - * - * @param builder the builder - */ - public ConfigurationHolder(Configuration builder) { - this.config = builder; - } - - /** - * Refresh override configuration. - * - * @param index the index - */ - public void refreshOverrideConfiguration(int index) { - int count = -1; - for (FileBasedConfigurationBuilder overrides : overrideConfiguration.values()) { - try { - if (++count == index) { - overrides.save(); - overrides.resetResult(); - } - } catch (ConfigurationException exception) { - //do nothing - } - } - } - - /** - * Add override configuration. - * - * @param path the path - * @param builder the builder - */ - public void addOverrideConfiguration(String path, - BasicConfigurationBuilder builder) { - overrideConfiguration.put(path.toUpperCase(), (FileBasedConfigurationBuilder) builder); - getEffectiveConfiguration(config, overrideConfiguration.values()); - } - - /** - * Remove override configuration. - * - * @param path the path - */ - public void removeOverrideConfiguration(String path) { - overrideConfiguration.remove(path.toUpperCase()); - getEffectiveConfiguration(config, overrideConfiguration.values()); - } - - /** - * Contains override configuration boolean. - * - * @param path the path - * @return the boolean - */ - public boolean containsOverrideConfiguration(String path) { - return overrideConfiguration.containsKey(path.toUpperCase()); - } - - /** - * Gets configuration. - * - * @param namespace the namespace - * @return the configuration - * @throws Exception the exception - */ - public Configuration getConfiguration(String namespace) throws Exception { - if (config == null) { - config = builder.getConfiguration(); - lastConfigurationBuildTime = new Timestamp(System.currentTimeMillis()); - } else if (lastConfigurationBuildTime != null - && System.currentTimeMillis() - lastConfigurationBuildTime.getTime() - > getConfigurationFor(Constants.DEFAULT_TENANT, Constants.DB_NAMESPACE) - .getInt("config.refresh.interval")) { - Timestamp temp = getLastUpdateTimestampFor(namespace); - if ((temp != null) - && (lastConfigChangeTimestamp == null - || temp.getTime() > lastConfigChangeTimestamp.getTime())) { - builder.resetResult(); - config = builder.getConfiguration(); - lastConfigChangeTimestamp = temp; - getEffectiveConfiguration(config, overrideConfiguration.values()); - } - lastConfigurationBuildTime = new Timestamp(System.currentTimeMillis()); - } - if (composite == null && overrideConfiguration.size() != 0) { - composite = getEffectiveConfiguration(config, overrideConfiguration.values()); - } - return overrideConfiguration.size() == 0 ? config : composite; - } - - private Configuration getEffectiveConfiguration(Configuration configuration, - Collection> list) { - try { - CompositeConfiguration cc = new CompositeConfiguration(); - for (FileBasedConfigurationBuilder b : list) { - cc.addConfiguration(b.getConfiguration()); - } - cc.addConfiguration(configuration); - composite = cc; - return composite; - } catch (Exception exception) { - return null; - } - } - - /** - * Gets last update timestamp for. - * - * @param namespace the namespace - * @return the last update timestamp for - */ - public Timestamp getLastUpdateTimestampFor(String namespace) { - Timestamp timestamp = null; - - try { - Collection collection = ConfigurationUtils.executeSelectSql( - getConfigurationFor(Constants.DEFAULT_TENANT, Constants.DB_NAMESPACE) - .getString("fetchlastchangecql"), new String[]{namespace}); - if (!collection.isEmpty()) { - timestamp = new Timestamp(Long.valueOf(((ArrayList) collection).get(0).toString())); - } - } catch (Exception exception) { - //Log this later - } - - return timestamp; - } - - - } - - public boolean isDBAccessible(){ - return dbAccessible; - } - - -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ContextListener.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ContextListener.java deleted file mode 100644 index 06652c0843..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ContextListener.java +++ /dev/null @@ -1,28 +0,0 @@ -package org.openecomp.config.impl; - -import static org.openecomp.config.Constants.MBEAN_NAME; - -import java.lang.management.ManagementFactory; -import javax.management.ObjectName; -import javax.servlet.ServletContextEvent; -import javax.servlet.ServletContextListener; -import javax.servlet.annotation.WebListener; -import org.openecomp.config.api.ConfigurationManager; - -@WebListener -public class ContextListener implements ServletContextListener { - - @Override - public void contextDestroyed(ServletContextEvent arg0) { - try { - ManagementFactory.getPlatformMBeanServer().unregisterMBean(new ObjectName(MBEAN_NAME)); - } catch (Exception exception) { - exception.printStackTrace(); - } - } - - @Override - public void contextInitialized(ServletContextEvent arg0) { - ConfigurationManager.lookup(); - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/YamlConfiguration.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/YamlConfiguration.java deleted file mode 100644 index 6e107e95c8..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/YamlConfiguration.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.openecomp.config.impl; - -import com.fasterxml.jackson.dataformat.yaml.YAMLFactory; -import com.virtlink.commons.configuration2.jackson.JacksonConfiguration; -import org.apache.commons.configuration2.HierarchicalConfiguration; -import org.apache.commons.configuration2.tree.ImmutableNode; - -public class YamlConfiguration extends JacksonConfiguration { - - protected YamlConfiguration(HierarchicalConfiguration config) { - super(new YAMLFactory(), config); - } - - public YamlConfiguration() { - super(new YAMLFactory()); - } - -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/type/ConfigurationMode.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/type/ConfigurationMode.java deleted file mode 100644 index 475a4cae85..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/type/ConfigurationMode.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openecomp.config.type; - -public enum ConfigurationMode { - OVERRIDE, UNION, MERGE -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/type/ConfigurationQuery.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/type/ConfigurationQuery.java deleted file mode 100644 index 53b0eed954..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/type/ConfigurationQuery.java +++ /dev/null @@ -1,94 +0,0 @@ -package org.openecomp.config.type; - -import org.openecomp.config.Constants; - -public class ConfigurationQuery { - - String tenant = Constants.DEFAULT_TENANT; - String namespace = Constants.DEFAULT_NAMESPACE; - String key; - boolean fallback; - boolean externalLookup; - boolean latest; - private boolean nodeSpecific; - - public ConfigurationQuery fallback(boolean fallback) { - this.fallback = fallback; - return this; - } - - public ConfigurationQuery latest(boolean val) { - this.latest = val; - return this; - } - - public ConfigurationQuery nodeSpecific(boolean val) { - this.nodeSpecific = val; - return this; - } - - public ConfigurationQuery externalLookup(boolean val) { - this.externalLookup = val; - return this; - } - - /** - * Tenant configuration query. - * - * @param id the id - * @return the configuration query - */ - public ConfigurationQuery tenant(String id) { - if (id != null) { - tenant = id; - } - return this; - } - - - /** - * Namespace configuration query. - * - * @param id the id - * @return the configuration query - */ - public ConfigurationQuery namespace(String id) { - if (id != null) { - namespace = id; - } - return this; - } - - public ConfigurationQuery key(String id) { - key = id; - return this; - } - - public String getTenant() { - return tenant.toUpperCase(); - } - - public String getNamespace() { - return namespace.toUpperCase(); - } - - public String getKey() { - return key; - } - - public boolean isFallback() { - return fallback; - } - - public boolean isNodeSpecific() { - return nodeSpecific; - } - - public boolean isExternalLookup() { - return externalLookup; - } - - public boolean isLatest() { - return latest; - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/type/ConfigurationType.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/type/ConfigurationType.java deleted file mode 100644 index d34d2e4e1c..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/type/ConfigurationType.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openecomp.config.type; - -public enum ConfigurationType { - PROPERTIES, XML, JSON, YAML -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/type/ConfigurationUpdate.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/type/ConfigurationUpdate.java deleted file mode 100644 index 9cfc980399..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/type/ConfigurationUpdate.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.openecomp.config.type; - -public class ConfigurationUpdate extends ConfigurationQuery { - private String value; - private boolean nodeOverride; - - public ConfigurationUpdate value(String val) { - value = val; - return this; - } - - public ConfigurationUpdate nodeOverride(boolean val) { - nodeOverride = val; - return this; - } - - /** - * Gets value. - * - * @return the value - */ - public String getValue() { - if (value != null && value.split(",").length > 1 && !value.matches("^\\[.*\\]$")) { - return "[" + value + "]"; - } - return value; - } - - public boolean isNodeOverride() { - return nodeOverride; - } - -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/resources/META-INF/services/org.openecomp.config.api.ConfigurationManager b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/resources/META-INF/services/org.openecomp.config.api.ConfigurationManager deleted file mode 100644 index 2a6c217345..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/resources/META-INF/services/org.openecomp.config.api.ConfigurationManager +++ /dev/null @@ -1 +0,0 @@ -org.openecomp.config.impl.CliConfigurationImpl \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/resources/config-system.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/resources/config-system.properties deleted file mode 100644 index cfe91e6c7d..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/resources/config-system.properties +++ /dev/null @@ -1,22 +0,0 @@ -driverClassName=com.github.adejanovski.cassandra.jdbc.CassandraDriver -jdbcURL=jdbc:${dbname}://${dbhost}:${dbport}/${configdb} -dbuser= -dbpassword= -config.Table=configuration -config.monitor.Table=configuration_change -configKey=key -configValue=value -configNameColumn=name -configdb=dox -dbhost= -dbport=9042 -dbname=cassandra -createtablecql=create table if not exists ${configdb}.${config.Table} (name text\, key text\, value text\, PRIMARY KEY (name\, key)) with clustering order by (key asc) -createmonitoringtablecql=create table if not exists ${configdb}.${config.monitor.Table} (name text\, changed_when bigint\, key text\, old_value text\, new_value text\, PRIMARY KEY (name\, changed_when)) with clustering order by (changed_when desc) -insertconfigurationchangecql=insert into ${configdb}.${config.monitor.Table} (name\, changed_when\, key\, old_value\, new_value) values(?\, ?\, ?\, ?\, ?) -fetchkeysql=select ${configKey} from ${config.Table} where ${configNameColumn}=? -fetchlastchangecql=select changed_when from ${configdb}.${config.monitor.Table} where name=? limit 1 -fetchnamescql=select distinct name from ${configdb}.${config.Table} -config.size.max=100 -config.refresh.interval=30000 -event.fetch.delay=5000 \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/resources/management.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/resources/management.properties deleted file mode 100644 index 9874394726..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/resources/management.properties +++ /dev/null @@ -1,7 +0,0 @@ -com.sun.management.jmxremote=true -#com.sun.management.jmxremote.port=9999 -#com.sun.management.jmxremote.local.only=false -#com.sun.management.jmxremote.authenticate=false -#com.sun.management.jmxremote.password.file=resources/jmxremote.password -#com.sun.management.jmxremote.access.file=resources/jmxremote.access -#com.sun.management.jmxremote.ssl=false \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/test/java/org/openecomp/config/ConfigurationUtilsTest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/test/java/org/openecomp/config/ConfigurationUtilsTest.java deleted file mode 100644 index b770d8677b..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/test/java/org/openecomp/config/ConfigurationUtilsTest.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.openecomp.config; - -import org.junit.Test; - -import java.util.Arrays; -import java.util.List; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertTrue; - -public class ConfigurationUtilsTest { - @Test - public void testCommaList() { - List list = Arrays.asList("1", "2", 3); - String commaSeparatedList = ConfigurationUtils.getCommaSeparatedList(list); - list.forEach(o -> assertTrue(commaSeparatedList.contains(o.toString()))); - } - - @Test - public void testCommaListWithNullAndEmptyStrings() { - List list = Arrays.asList(null, "", " "); - String commaSeparatedList = ConfigurationUtils.getCommaSeparatedList(list); - assertTrue(commaSeparatedList.isEmpty()); - } - - @Test - public void testGetArrayClassFunction() { - assertEquals(String[].class , ConfigurationUtils.getArrayClass(String.class)); - assertNull(ConfigurationUtils.getArrayClass(ConfigurationUtilsTest.class)); - } -} \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/pom.xml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/pom.xml deleted file mode 100644 index 2dcde64b07..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/pom.xml +++ /dev/null @@ -1,84 +0,0 @@ - - 4.0.0 - - openecomp-configuration-management-test - org.openecomp.sdc.common - openecomp-configuration-management-test - - - openecomp-common-configuration-management - org.openecomp.sdc.common - 1.2.0-SNAPSHOT - .. - - - - - org.openecomp.sdc.common - openecomp-configuration-management-core - ${project.version} - - - - junit - junit - 4.11 - - - - - - - - - - - - org.apache.maven.plugins - maven-surefire-plugin - ${mvn.surefire.version} - - true - - ${project.basedir}/src/test/resources - ${user.home}/TestResources - - - **/TestCMSuite.java - - - - - - diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/TestCMSuite.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/TestCMSuite.java deleted file mode 100644 index 4ef46f6c9d..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/TestCMSuite.java +++ /dev/null @@ -1,58 +0,0 @@ -package org.openecomp.config; - -import org.openecomp.config.api.Configuration; -import org.openecomp.config.api.ConfigurationManager; -import org.openecomp.config.test.*; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * Created by sheetalm on 10/25/2016. - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - JAVAPropertiesConfigTest.class, - JSONConfigTest.class, - XMLConfigTest.class, - YAMLConfigTest.class, - CLIFallbackAndLookupTest.class, - CLITest.class, - ConfigSourceLocationTest.class, - DynamicConfigurationTest.class, - FallbackConfigTest.class, - FallbackToGlobalNSTest.class, - GlobalAndNSConfigTest.class, - ModeAsConfigPropTest.class, - MultiTenancyConfigTest.class, - NodeSpecificCLITest.class, - NotificationForNodeConfigTest.class, - NotificationOnPropValTest.class, - ResourceChangeNotificationTest.class, - UnregisterNotificationTest.class, - ValidateDefaultModeTest.class, - ValidateNodeConfigTest.class, - LoadOrderMergeAndOverrideTest.class - - -}) - -public class TestCMSuite extends junit.framework.TestSuite { - - private TestCMSuite() { - - } - - @AfterClass - public static void tearDown(){ - try { - ConfigurationUtils.executeDdlSql("truncate dox.configuration_change"); - ConfigurationUtils.executeDdlSql("truncate dox.configuration"); - } - catch(Exception e){ - e.printStackTrace(); - } - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/CLIFallbackAndLookupTest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/CLIFallbackAndLookupTest.java deleted file mode 100644 index 4f7ab92dd0..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/CLIFallbackAndLookupTest.java +++ /dev/null @@ -1,83 +0,0 @@ -package org.openecomp.config.test; - -import org.openecomp.config.Constants; -import org.openecomp.config.api.ConfigurationManager; -import org.openecomp.config.util.ConfigTestConstant; -import org.openecomp.config.util.TestUtil; -import org.junit.Assert; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -import javax.management.JMX; -import javax.management.MBeanServerConnection; -import javax.management.ObjectName; -import java.io.IOException; -import java.lang.management.ManagementFactory; -import java.util.HashMap; -import java.util.Map; - - - -/** - * Created by sheetalm on 10/18/2016. - * Scenario 21, Scenario 23 - * 21 - Verify the CLI fetches only the current value unless the fallback option is specified - * 23 - Fetch value using CLI for a key with underlying resource - */ -public class CLIFallbackAndLookupTest { - - public final static String NAMESPACE = "CLIFallback"; - public final static String TENANT = "OPENECOMP"; - - @Before - public void setUp() throws IOException { - String data = "{name:\"SCM\"}"; - TestUtil.writeFile(data); - } - - @Test - public void testCLIFallbackAndLookup() throws Exception{ - - //Verify without fallback - Map input = new HashMap<>(); - input.put("ImplClass", "org.openecomp.config.type.ConfigurationQuery"); - input.put("tenant", TENANT); - input.put("namespace", NAMESPACE); - input.put("key", ConfigTestConstant.ARTIFACT_MAXSIZE); - - MBeanServerConnection mbsc = ManagementFactory.getPlatformMBeanServer(); - ObjectName mbeanName = new ObjectName(Constants.MBEAN_NAME); - ConfigurationManager conf = JMX.newMBeanProxy(mbsc, mbeanName, org.openecomp.config.api.ConfigurationManager.class, true); - String maxSizeWithNoFallback = conf.getConfigurationValue(input); - Assert.assertEquals("",maxSizeWithNoFallback); - - //Verify underlying resource without lookup switch - input.put("key", ConfigTestConstant.ARTIFACT_JSON_SCHEMA); - String jsonSchema = conf.getConfigurationValue(input); - System.out.println("jsonSchema=="+jsonSchema); - Assert.assertEquals("@"+System.getProperty("user.home")+"/TestResources/GeneratorsList.json" , jsonSchema); - - //Verify underlying resource with lookup switch - input.put("externalLookup", true); - jsonSchema = conf.getConfigurationValue(input); - System.out.println("jsonSchema=="+jsonSchema); - Assert.assertEquals("{name:\"SCM\"}" , jsonSchema); - - //Verify with fallback - Map fallbackInput = new HashMap<>(); - fallbackInput.put("ImplClass", "org.openecomp.config.type.ConfigurationQuery"); - fallbackInput.put("fallback", true); - fallbackInput.put("tenant", TENANT); - fallbackInput.put("namespace", NAMESPACE); - fallbackInput.put("key", ConfigTestConstant.ARTIFACT_MAXSIZE); - - String maxSizeWithFallback = conf.getConfigurationValue(fallbackInput); - Assert.assertEquals("1024",maxSizeWithFallback); - } - - @After - public void tearDown() throws Exception { - TestUtil.cleanUp(); - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/CLITest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/CLITest.java deleted file mode 100644 index ff04873b42..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/CLITest.java +++ /dev/null @@ -1,107 +0,0 @@ -package org.openecomp.config.test; - -import org.openecomp.config.Constants; -import org.openecomp.config.api.ConfigurationChangeListener; -import org.openecomp.config.api.ConfigurationManager; -import org.openecomp.config.util.ConfigTestConstant; -import org.openecomp.config.util.TestUtil; -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; - -import javax.management.JMX; -import javax.management.MBeanServerConnection; -import javax.management.ObjectName; -import java.io.IOException; -import java.lang.management.ManagementFactory; -import java.util.HashMap; -import java.util.Map; - -import static org.openecomp.config.util.ConfigTestConstant.*; - -/** - * Created by sheetalm on 10/18/2016. - * Scenario 17 - * Verify Configuration Management System - Command Line Interface for query, update and list operations - */ -public class CLITest { - - public final static String NAMESPACE = "CLI"; - public final static String TENANT = "OPENECOMP"; - private String updatedValue = ""; - - @Before - public void setUp() throws IOException { - String data = "{name:\"SCM\"}"; - TestUtil.writeFile(data); - } - - @Test - public void testCLIApi() throws Exception{ - //Verify without fallback - Map input = new HashMap<>(); - input.put("ImplClass", "org.openecomp.config.type.ConfigurationQuery"); - input.put("tenant", TENANT); - input.put("namespace", NAMESPACE); - input.put("key", ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH); - - MBeanServerConnection mbsc = ManagementFactory.getPlatformMBeanServer(); - ObjectName mbeanName = new ObjectName(Constants.MBEAN_NAME); - ConfigurationManager conf = JMX.newMBeanProxy(mbsc, mbeanName, org.openecomp.config.api.ConfigurationManager.class, true); - String maxLength = conf.getConfigurationValue(input); - Assert.assertEquals("14",maxLength); - - conf.addConfigurationChangeListener(TENANT,NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, new CLIListener()); - - - //Update maxlength - input.put("ImplClass", "org.openecomp.config.type.ConfigurationUpdate"); - input.put("value", "24"); - conf.updateConfigurationValue(input); - - Thread.sleep(35000); - - Assert.assertEquals("24",updatedValue); - - //Reset value and fetch updated value again - input.put("value", ""); - input.put("ImplClass", "org.openecomp.config.type.ConfigurationQuery"); - String updatedMaxLength = conf.getConfigurationValue(input); - Assert.assertEquals("24",updatedMaxLength); - - Map outputMap = conf.listConfiguration(input); - for(Map.Entry entry : outputMap.entrySet()){ - System.out.println(entry.getKey()+" : "+entry.getValue()); - validateCLIListConfig(outputMap); - } - } - - private class CLIListener implements ConfigurationChangeListener { - @Override - public void notify(String key, Object oldValue, Object newValue) { - System.out.println("received notification::oldValue=="+oldValue+" newValue=="+newValue); - updatedValue = newValue.toString(); - } - } - - private void validateCLIListConfig(Map outputMap ) { - - Assert.assertEquals("@"+System.getProperty("user.home")+"/TestResources/GeneratorsList.json" , outputMap.get(ARTIFACT_JSON_SCHEMA)); - Assert.assertEquals("appc,catalog", outputMap.get(ARTIFACT_CONSUMER)); - Assert.assertEquals("6", outputMap.get(ARTIFACT_NAME_MINLENGTH)); - Assert.assertEquals("true", outputMap.get(ARTIFACT_ENCODED)); - Assert.assertEquals("24", outputMap.get(ARTIFACT_NAME_MAXLENGTH)); - Assert.assertEquals("pdf,zip,xml,pdf,tgz,xls", outputMap.get(ARTIFACT_EXT)); - Assert.assertEquals("Base64,MD5", outputMap.get(ARTIFACT_ENC)); - Assert.assertEquals("@"+System.getenv("Path")+"/myschema.json", outputMap.get(ARTIFACT_XML_SCHEMA)); - Assert.assertEquals("a-zA-Z_0-9", outputMap.get(ARTIFACT_NAME_UPPER)); - Assert.assertEquals("/opt/spool,"+System.getProperty("user.home")+"/asdc", outputMap.get(ARTIFACT_LOC)); - Assert.assertEquals("deleted,Deleted", outputMap.get(ARTIFACT_STATUS)); - } - - @After - public void tearDown() throws Exception { - TestUtil.cleanUp(); - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/ConfigSourceLocationTest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/ConfigSourceLocationTest.java deleted file mode 100644 index 731826b53c..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/ConfigSourceLocationTest.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openecomp.config.test; - -import org.openecomp.config.api.Configuration; -import org.openecomp.config.api.ConfigurationManager; -import org.openecomp.config.util.ConfigTestConstant; -import org.openecomp.config.util.TestUtil; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import org.junit.Assert; - -import java.io.File; -import java.io.IOException; -import java.util.Properties; -import java.io.OutputStream; -import java.io.FileOutputStream; - -/** - * Created by sheetalm on 10/14/2016. - * Scenario 11 - * Validate conventional and configurational source location - * - * Pre-requisite - set -Dconfig.location=${"user.home"}/TestResources/ while running test - */ -public class ConfigSourceLocationTest { - public final static String NAMESPACE = "SourceLocation"; - - @Before - public void setUp() throws IOException { - String data = "{name:\"SCM\"}"; - TestUtil.writeFile(data); - - Properties props = new Properties(); - props.setProperty("maxCachedBufferSize", "1024"); - props.setProperty("artifact.maxsize", "1024"); - File f = new File(TestUtil.jsonSchemaLoc + "config.properties"); - try (OutputStream out = new FileOutputStream(f)) { - props.store(out, "Config Property at Conventional Resource"); - } - } - - @Test - public void testMergeStrategyInConfig() throws IOException, InterruptedException { - Configuration config = ConfigurationManager.lookup(); - Assert.assertEquals("a-zA-Z_0-9", config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_UPPER)); - Assert.assertEquals("1024", config.getAsString(ConfigTestConstant.ARTIFACT_MAXSIZE)); - } - - @After - public void tearDown() throws Exception { - TestUtil.cleanUp(); - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/DynamicConfigurationTest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/DynamicConfigurationTest.java deleted file mode 100644 index 2140e84873..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/DynamicConfigurationTest.java +++ /dev/null @@ -1,66 +0,0 @@ -package org.openecomp.config.test; - -import org.openecomp.config.api.Configuration; -import org.openecomp.config.api.ConfigurationManager; -import org.openecomp.config.api.DynamicConfiguration; -import org.openecomp.config.util.ConfigTestConstant; -import org.openecomp.config.util.TestUtil; -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; - -import java.io.File; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.OutputStream; -import java.util.Properties; - -/** - * Created by sheetalm on 10/17/2016. - * Pre-requisite - set -Dconfig.location=${"user.home"}/TestResources/ while running test - * Scenario 20 - * Update the central configuration and fetch the Dynamic Configuration - */ -public class DynamicConfigurationTest { - - public final static String NAMESPACE = "DynamicConfiguration"; - - @Before - public void setUp() throws IOException { - String data = "{name:\"SCM\"}"; - TestUtil.writeFile(data); - } - - @Test - public void testDynamicConfig() throws IOException, InterruptedException { - Configuration config = ConfigurationManager.lookup(); - Properties props = new Properties(); - props.setProperty(ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, "20"); - props.setProperty("_config.namespace",NAMESPACE); - props.setProperty("_config.mergeStrategy","override"); - File f = new File(TestUtil.jsonSchemaLoc + "config.properties"); - try (OutputStream out = new FileOutputStream(f)) { - props.store(out, "Override Config Property at Conventional Resource"); - } - - //Verify configuration with Configuration without wait. This should fetch cached value - Assert.assertEquals("14" , config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); - - Thread.sleep(10000); - - DynamicConfiguration dynaConfig = config.getDynamicConfiguration(NAMESPACE,ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH,String.class,"14"); - //Verify configuration with DynamicConfiguration This should fetch values from DB - Assert.assertEquals("20" , dynaConfig.get()); - - } - - @After - public void tearDown() throws Exception { - TestUtil.cleanUp(); - File f = new File(TestUtil.jsonSchemaLoc+"config.properties"); - if(f.exists()) { - f.delete(); - } - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/FallbackConfigTest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/FallbackConfigTest.java deleted file mode 100644 index 09fca879b0..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/FallbackConfigTest.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.openecomp.config.test; - -import org.openecomp.config.ConfigurationUtils; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -import java.io.IOException; - -import static org.openecomp.config.util.TestUtil.validateConfiguraton; -import static org.openecomp.config.util.TestUtil.writeFile; - -/** - * Created by ARR on 10/14/2016. - * - * Validate configuration with properties,xml,json,yaml file format with mode - */ -public class FallbackConfigTest { - - public static final String NAMESPACE = "fallback"; - - @Before - public void setUp() throws IOException { - String data = "{name:\"SCM\"}"; - writeFile(data); - } - - @Test - public void testConfigurationWithFallbackFileFormat(){ - validateConfiguraton(NAMESPACE); - } - - @After - public void tearDown() throws Exception { - String data = "{name:\"SCM\"}"; - writeFile(data); - //ConfigurationUtils.executeDDLSQL("truncate dox.configuration"); - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/FallbackToGlobalNSTest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/FallbackToGlobalNSTest.java deleted file mode 100644 index 1efc462d4e..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/FallbackToGlobalNSTest.java +++ /dev/null @@ -1,42 +0,0 @@ -package org.openecomp.config.test; - -import org.openecomp.config.api.Configuration; -import org.openecomp.config.api.ConfigurationManager; -import org.openecomp.config.util.ConfigTestConstant; -import org.openecomp.config.util.TestUtil; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import org.junit.Assert; - -import java.io.IOException; - -/** - * Scenario 12 - * Verify configuration value fallback to the global namespace if the configuraton property doesnot exist in the namespace configuration - * Created by sheetalm on 10/14/2016. - */ -public class FallbackToGlobalNSTest { - - public final static String NAMESPACE = "FallbackToGlobalNS"; - - @Before - public void setUp() throws IOException { - String data = "{name:\"SCM\"}"; - TestUtil.writeFile(data); - } - - @Test - public void testFallbackToGlobalNS() throws IOException, InterruptedException { - Configuration config = ConfigurationManager.lookup(); - Assert.assertEquals("14",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); - Assert.assertEquals("1024",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_MAXSIZE)); - } - - @After - public void tearDown() throws Exception { - TestUtil.cleanUp(); - } - - -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/GlobalAndNSConfigTest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/GlobalAndNSConfigTest.java deleted file mode 100644 index 87324aa35c..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/GlobalAndNSConfigTest.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openecomp.config.test; - -import org.openecomp.config.api.Configuration; -import org.openecomp.config.api.ConfigurationManager; -import org.openecomp.config.util.ConfigTestConstant; -import org.openecomp.config.util.TestUtil; -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * Created by sheetalm on 10/13/2016. - * Scenario 10 Verify configuration present in both global and defined namespace - */ -public class GlobalAndNSConfigTest { - - public final static String NAMESPACE = "GlobalAndNSConfig"; - - @Before - public void setUp() throws IOException { - String data = "{name:\"SCM\"}"; - TestUtil.writeFile(data); - } - - @Test - public void testNamespaceInConfig() throws IOException, InterruptedException { - Configuration config = ConfigurationManager.lookup(); - Assert.assertEquals("a-zA-Z",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_UPPER )); - Assert.assertEquals("a-zA-Z_0-9",config.getAsString(ConfigTestConstant.ARTIFACT_NAME_UPPER )); - } - - @After - public void tearDown() throws Exception { - TestUtil.cleanUp(); - } - - - - -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/JAVAPropertiesConfigTest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/JAVAPropertiesConfigTest.java deleted file mode 100644 index 23c5fa3130..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/JAVAPropertiesConfigTest.java +++ /dev/null @@ -1,40 +0,0 @@ -package org.openecomp.config.test; - -import org.openecomp.config.util.TestUtil; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -import java.io.IOException; - -import static org.openecomp.config.util.TestUtil.validateConfiguraton; -import static org.openecomp.config.util.TestUtil.writeFile; - -/** - * Created by ARR on 10/13/2016. - * - * Scenario 1 - * Validate configuration with Java Properties file format with mode - */ -public class JAVAPropertiesConfigTest { - - public static final String NAMESPACE = "javaProperties"; - - @Before - public void setUp() throws IOException { - String data = "{name:\"SCM\"}"; - writeFile(data); - } - - @Test - public void testConfigurationWithPropertiesFileFormat(){ - validateConfiguraton(NAMESPACE); - } - - - - @After - public void tearDown() throws Exception { - TestUtil.cleanUp(); - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/JSONConfigTest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/JSONConfigTest.java deleted file mode 100644 index 5f2d24e67f..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/JSONConfigTest.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.openecomp.config.test; - -import org.openecomp.config.ConfigurationUtils; -import org.openecomp.config.util.TestUtil; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -import java.io.IOException; - -import static org.openecomp.config.util.TestUtil.validateConfiguraton; -import static org.openecomp.config.util.TestUtil.writeFile; - -/** - * Created by ARR on 10/14/2016. - * - * Scenario 3 - * Validate configuration with JSON file format with mode - */ -public class JSONConfigTest { - - public static final String NAMESPACE = "JSONConfig"; - - @Before - public void setUp() throws IOException { - String data = "{name:\"SCM\"}"; - writeFile(data); - } - - @Test - public void testConfigurationWithJSONFileFormat(){ - validateConfiguraton(NAMESPACE); - } - - - - @After - public void tearDown() throws Exception { - TestUtil.cleanUp(); - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/LoadOrderMergeAndOverrideTest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/LoadOrderMergeAndOverrideTest.java deleted file mode 100644 index 7ce508a063..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/LoadOrderMergeAndOverrideTest.java +++ /dev/null @@ -1,47 +0,0 @@ -package org.openecomp.config.test; - -import static org.openecomp.config.util.ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH; -import static org.openecomp.config.util.TestUtil.validateConfiguraton; -import static org.openecomp.config.util.TestUtil.writeFile; - -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; -import org.openecomp.config.api.Configuration; -import org.openecomp.config.api.ConfigurationManager; -import org.openecomp.config.util.TestUtil; - -import java.io.IOException; - -/** - * Scenario - * Check loadorder for merge and overide. Higher loadorder takes precedence for override - * LoWer loadorder takes precedence for merge. - */ -public class LoadOrderMergeAndOverrideTest { - - public static final String NAMESPACE = "LoadOrderConfiguration"; - - @Before - public void setUp() throws IOException { - String data = "{name:\"SCM\"}"; - writeFile(data); - } - - @Test - public void testConfigurationWithPropertiesFileFormat(){ - Configuration config = ConfigurationManager.lookup(); - - Assert.assertEquals(config.getAsString(NAMESPACE, ARTIFACT_NAME_MAXLENGTH ), "14"); - Assert.assertEquals("5", config.getAsString(NAMESPACE, "artifact.length")); - Assert.assertEquals("56", config.getAsString(NAMESPACE, "artifact.size")); - } - - - - @After - public void tearDown() throws Exception { - TestUtil.cleanUp(); - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/ModeAsConfigPropTest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/ModeAsConfigPropTest.java deleted file mode 100644 index 470694e355..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/ModeAsConfigPropTest.java +++ /dev/null @@ -1,88 +0,0 @@ -package org.openecomp.config.test; - -import org.openecomp.config.ConfigurationUtils; -import org.openecomp.config.api.Configuration; -import org.openecomp.config.api.ConfigurationManager; -import org.openecomp.config.util.ConfigTestConstant; -import org.openecomp.config.util.TestUtil; -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * Scenario 8 - * Validate configuration with mode specified as a configuration property - */ - -public class ModeAsConfigPropTest { - - String newValue = null; - - public final static String NAMESPACE = "ModeAsConfigProp"; - - @Before - public void setUp() throws IOException { - String data = "{name:\"SCM\"}"; - TestUtil.writeFile(data); - } - - @Test - public void testMergeStrategyInConfig() throws IOException, InterruptedException { - Configuration config = ConfigurationManager.lookup(); - - Assert.assertEquals("14",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); - - Assert.assertEquals("1048",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_MAXSIZE)); - - List expectedExtList = new ArrayList(); - expectedExtList.add("pdf"); - expectedExtList.add("zip"); - expectedExtList.add("xml"); - expectedExtList.add("pdf"); - expectedExtList.add("tgz"); - expectedExtList.add("xls"); - List extList = config.getAsStringValues(NAMESPACE, ConfigTestConstant.ARTIFACT_EXT); - Assert.assertEquals(expectedExtList, extList); - - List expectedEncList = new ArrayList(); - expectedEncList.add("Base64"); - expectedEncList.add("MD5"); - List encList = config.getAsStringValues(NAMESPACE, ConfigTestConstant.ARTIFACT_ENC); - Assert.assertEquals(expectedEncList, encList); - - String newValue = config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_JSON_SCHEMA); - Assert.assertEquals("{name:\"SCM\"}",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_JSON_SCHEMA)); - - Assert.assertEquals("a-zA-Z_0-9",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_UPPER )); - - Assert.assertEquals("Deleted",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_STATUS) ); - - List expectedLocList = new ArrayList(); - expectedLocList.add("/opt/spool"); - expectedLocList.add(System.getProperty("user.home")+"/asdc"); - List locList = config.getAsStringValues(NAMESPACE, ConfigTestConstant.ARTIFACT_LOC); - Assert.assertEquals(expectedLocList, locList); - - Assert.assertEquals("@"+System.getenv("Path")+"/myschema.json",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_XML_SCHEMA)); - - List artifactConsumer = config.getAsStringValues(NAMESPACE, ConfigTestConstant.ARTIFACT_CONSUMER ); - Assert.assertEquals(config.getAsStringValues(NAMESPACE, ConfigTestConstant.ARTIFACT_CONSUMER_APPC ), artifactConsumer); - - Assert.assertEquals(config.getAsBooleanValue(NAMESPACE, ConfigTestConstant.ARTIFACT_MANDATORY_NAME ), true); - - Assert.assertEquals(config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MINLENGTH ), "6"); - - Assert.assertEquals(config.getAsBooleanValue(NAMESPACE, ConfigTestConstant.ARTIFACT_ENCODED ), true); - } - - @After - public void tearDown() throws Exception { - TestUtil.cleanUp(); - } - -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/MultiTenancyConfigTest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/MultiTenancyConfigTest.java deleted file mode 100644 index 66feea3928..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/MultiTenancyConfigTest.java +++ /dev/null @@ -1,55 +0,0 @@ -package org.openecomp.config.test; - -import org.openecomp.config.ConfigurationUtils; -import org.openecomp.config.api.Configuration; -import org.openecomp.config.api.ConfigurationManager; -import org.openecomp.config.util.ConfigTestConstant; -import org.openecomp.config.util.TestUtil; -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import static org.openecomp.config.util.ConfigTestConstant.*; -import static org.openecomp.config.util.ConfigTestConstant.ARTIFACT_ENCODED; -import static org.openecomp.config.util.ConfigTestConstant.ARTIFACT_MANDATORY_NAME; -import static org.openecomp.config.util.TestUtil.validateConfiguraton; -import static org.openecomp.config.util.TestUtil.writeFile; - -/** - * Created by ARR on 10/14/2016. - * - * Scenario 17 - * Verify Configuration management System - Support for Multi-Tenancy - */ -public class MultiTenancyConfigTest { - - public static final String NAMESPACE = "tenancy"; - - @Before - public void setUp() throws IOException { - String data = "{name:\"SCM\"}"; - writeFile(data); - } - - @Test - public void testConfigurationWithMultiTenancyFileFormat(){ - Configuration config = ConfigurationManager.lookup(); - - Assert.assertEquals(config.getAsString("OPENECOMP",NAMESPACE, ARTIFACT_NAME_MAXLENGTH ), "20"); - - Assert.assertEquals(config.getAsString("Telefonica",NAMESPACE, ARTIFACT_STATUS ), "Deleted"); - - Assert.assertEquals(config.getAsString("TID",NAMESPACE, ARTIFACT_NAME_MAXLENGTH ), "14"); - - } - - @After - public void tearDown() throws Exception { - TestUtil.cleanUp(); - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/NodeSpecificCLITest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/NodeSpecificCLITest.java deleted file mode 100644 index 43729cbaf2..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/NodeSpecificCLITest.java +++ /dev/null @@ -1,117 +0,0 @@ -package org.openecomp.config.test; - -import org.openecomp.config.Constants; -import org.openecomp.config.api.ConfigurationChangeListener; -import org.openecomp.config.api.ConfigurationManager; -import org.openecomp.config.util.ConfigTestConstant; -import org.openecomp.config.util.TestUtil; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Test; - -import javax.management.JMX; -import javax.management.MBeanServerConnection; -import javax.management.ObjectName; -import java.io.File; -import java.io.FileOutputStream; -import java.io.OutputStream; -import java.lang.management.ManagementFactory; -import java.util.HashMap; -import java.util.Map; -import java.util.Properties; - -/** - * Created by sheetalm on 10/19/2016. - * Scenario 19 - * Pre-requisite - set -Dnode.config.location=${"user.home"}/TestResources/ while running test - * Verify node specific override using CLI - */ -public class NodeSpecificCLITest { - - public final static String NAMESPACE = "NodeCLI"; - private String updatedValue = ""; - - @Test - public void testCLIApi() throws Exception{ - //Verify without fallback - Map input = new HashMap<>(); - input.put("ImplClass", "org.openecomp.config.type.ConfigurationQuery"); - input.put("namespace", NAMESPACE); - input.put("key", ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH); - - MBeanServerConnection mbsc = ManagementFactory.getPlatformMBeanServer(); - ObjectName mbeanName = new ObjectName(Constants.MBEAN_NAME); - ConfigurationManager conf = JMX.newMBeanProxy(mbsc, mbeanName, org.openecomp.config.api.ConfigurationManager.class, true); - String maxLength = conf.getConfigurationValue(input); - - //Verify Property from Namespace configurations - Assert.assertEquals("30",maxLength); - - //Add node specific configurations - Properties props = new Properties(); - props.setProperty(ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, "50"); - props.setProperty("_config.namespace",NAMESPACE); - File f = new File(TestUtil.jsonSchemaLoc + "config.properties"); - try (OutputStream out = new FileOutputStream(f)) { - props.store(out, "Node Config Property"); - } - - Thread.sleep(35000); - - //Verify property from node specific configuration - input.put("nodeSpecific", true); - String nodeVal = conf.getConfigurationValue(input); - Assert.assertEquals("50", nodeVal); - - //Add Change Listener - conf.addConfigurationChangeListener(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, new CLINodeListener()); - - //Update maxlength - input.put("ImplClass", "org.openecomp.config.type.ConfigurationUpdate"); - input.put("nodeOverride", true); - input.put("nodeSpecific", false); - input.put("value", "60"); - conf.updateConfigurationValue(input); - - Thread.sleep(35000); - - Assert.assertEquals("60",updatedValue); - - //Fetch the updated nodespecific value - input.put("nodeOverride", false); - input.put("nodeSpecific", true); - input.put("ImplClass", "org.openecomp.config.type.ConfigurationQuery"); - String updatedMaxLength = conf.getConfigurationValue(input); - Assert.assertEquals("60",updatedMaxLength); - - //Verify maxlength on other nodes by deleting node specific configuration - if(f.exists()) { - f.delete(); - } - - Thread.sleep(35000); - - input.put("ImplClass", "org.openecomp.config.type.ConfigurationQuery"); - input.put("nodeOverride", false); - input.put("nodeSpecific", false); - System.out.println("val on other node is::"+conf.getConfigurationValue(input)); - Assert.assertEquals("30",conf.getConfigurationValue(input)); - } - - @AfterClass - public static void tearDown() throws Exception { - TestUtil.cleanUp(); - File f = new File(TestUtil.jsonSchemaLoc+"config.properties"); - if(f.exists()) { - f.delete(); - } - } - - private class CLINodeListener implements ConfigurationChangeListener { - @Override - public void notify(String key, Object oldValue, Object newValue) { - System.out.println("received notification::oldValue=="+oldValue+" newValue=="+newValue); - updatedValue = newValue.toString(); - } - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/NotificationForNodeConfigTest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/NotificationForNodeConfigTest.java deleted file mode 100644 index 9d719103df..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/NotificationForNodeConfigTest.java +++ /dev/null @@ -1,85 +0,0 @@ -package org.openecomp.config.test; - -import org.openecomp.config.api.Configuration; -import org.openecomp.config.api.ConfigurationChangeListener; -import org.openecomp.config.api.ConfigurationManager; -import org.openecomp.config.util.ConfigTestConstant; -import org.openecomp.config.util.TestUtil; -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; - -import java.io.File; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.OutputStream; -import java.util.Properties; - -/** - * Scenario 15 - * Update and Verify Change Notifications for any change in the registered key for node specific configuration - * Pre-requisite - set -Dnode.config.location=${"user.home"}/TestResources/ while running test - * Created by sheetalm on 10/17/2016. - */ -public class NotificationForNodeConfigTest { - public final static String NAMESPACE = "NotificationForNodeConfig"; - - private String updatedValue = null; - - @Before - public void setUp() throws IOException { - String data = "{name:\"SCM\"}"; - TestUtil.writeFile(data); - } - - @Test - public void testNotificationForNode() throws IOException, InterruptedException { - Configuration config = ConfigurationManager.lookup(); - - System.out.println(config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); - - Properties props = new Properties(); - props.setProperty(ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, "30"); - props.setProperty("_config.namespace",NAMESPACE); - File f = new File(TestUtil.jsonSchemaLoc + "config.properties"); - try (OutputStream out = new FileOutputStream(f)) { - props.store(out, "Node Config Property"); - } - - Thread.sleep(35000); - - //Verify property from node specific configuration - Assert.assertEquals("30", config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); - - config.addConfigurationChangeListener(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, new NodePropValListener()); - - props.setProperty(ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, "80"); - try (OutputStream out = new FileOutputStream(f)) { - props.store(out, "Updated Node Config Property"); - } - - Thread.sleep(35000); - - //Verify change listenere is invoked when node specific configuration is changed. - Assert.assertEquals("80", updatedValue); - - } - - private class NodePropValListener implements ConfigurationChangeListener { - @Override - public void notify(String key, Object oldValue, Object newValue) { - System.out.println("received notification::oldValue=="+oldValue+" newValue=="+newValue); - updatedValue = newValue.toString(); - } - } - - @After - public void tearDown() throws Exception { - TestUtil.cleanUp(); - File f = new File(TestUtil.jsonSchemaLoc+"config.properties"); - if(f.exists()) { - f.delete(); - } - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/NotificationOnPropValTest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/NotificationOnPropValTest.java deleted file mode 100644 index 7354cd19f7..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/NotificationOnPropValTest.java +++ /dev/null @@ -1,76 +0,0 @@ -package org.openecomp.config.test; - -import org.openecomp.config.api.Configuration; -import org.openecomp.config.api.ConfigurationChangeListener; -import org.openecomp.config.api.ConfigurationManager; -import org.openecomp.config.util.ConfigTestConstant; -import org.openecomp.config.util.TestUtil; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import org.junit.Assert; - -import java.io.File; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.OutputStream; -import java.util.Properties; - -/** - * Pre-requisite - set -Dconfig.location=${"user.home"}/TestResources/ while running test - * Scenario 14 - Verify Change Notifications for any change in the registered key - * Created by sheetalm on 10/14/2016. - */ -public class NotificationOnPropValTest { - - public final static String NAMESPACE = "NotificationOnPropVal"; - - private String updatedValue = null; - - @Before - public void setUp() throws IOException { - String data = "{name:\"SCM\"}"; - TestUtil.writeFile(data); - } - - @Test - public void testNotification() throws IOException, InterruptedException { - Configuration config = ConfigurationManager.lookup(); - - System.out.println(config.getAsString(NAMESPACE,ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); - - config.addConfigurationChangeListener(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, new PropValListener()); - - Properties props = new Properties(); - props.setProperty(ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, "20"); - props.setProperty("_config.namespace",NAMESPACE); - props.setProperty("_config.mergeStrategy","override"); - File f = new File(TestUtil.jsonSchemaLoc + "config.properties"); - try (OutputStream out = new FileOutputStream(f)) { - props.store(out, "Override Config Property at Conventional Resource"); - } - - Thread.sleep(35000); - - System.out.println(config.getAsString(NAMESPACE,ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); - - Assert.assertEquals("20" , updatedValue); - } - - private class PropValListener implements ConfigurationChangeListener { - @Override - public void notify(String key, Object oldValue, Object newValue) { - System.out.println("received notification::oldValue=="+oldValue+" newValue=="+newValue); - updatedValue = newValue.toString(); - } - } - - @After - public void tearDown() throws Exception { - TestUtil.cleanUp(); - File f = new File(TestUtil.jsonSchemaLoc+"config.properties"); - if(f.exists()) { - f.delete(); - } - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/ResourceChangeNotificationTest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/ResourceChangeNotificationTest.java deleted file mode 100644 index e3e4e24f28..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/ResourceChangeNotificationTest.java +++ /dev/null @@ -1,91 +0,0 @@ -package org.openecomp.config.test; - -import java.io.File; -import java.io.FileWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import org.openecomp.config.ConfigurationUtils; -import org.openecomp.config.util.ConfigTestConstant; - -import org.openecomp.config.util.TestUtil; -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; - -import org.openecomp.config.api.Configuration; -import org.openecomp.config.api.ConfigurationChangeListener; -import org.openecomp.config.api.ConfigurationManager; - -/** - * Scenario 7 - * Test to Validate notification on changes to the underlying source - * Resource here is GeneratorsList.json ehich is created in test itself - */ - -public class ResourceChangeNotificationTest { - - String newValue = null; - - public final static String NAMESPACE = "Notification"; - - @Before - public void setUp() throws IOException { - String data = "{name:\"SCM\"}"; - TestUtil.writeFile(data); - } - - @Test - public void testNotification() throws IOException, InterruptedException { - Configuration config = ConfigurationManager.lookup(); - config.addConfigurationChangeListener(NAMESPACE,ConfigTestConstant.ARTIFACT_JSON_SCHEMA, new MyListener()); - updateJsonInFile(); - Thread.sleep(35000); - String newValue = config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_JSON_SCHEMA); - - Assert.assertEquals("{name:\"updated SCM\"}",newValue); - - Assert.assertEquals( "14",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH )); - - Assert.assertEquals( "a-zA-Z", config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_UPPER )); - - String artifactConsumer = config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_CONSUMER ); - Assert.assertEquals(artifactConsumer,config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_CONSUMER_APPC )); - - List expectedExtList = new ArrayList(); - expectedExtList.add("pdf"); expectedExtList.add("zip"); expectedExtList.add("xml"); - List extList = config.getAsStringValues(NAMESPACE, ConfigTestConstant.ARTIFACT_EXT); - Assert.assertEquals(expectedExtList, extList); - - List expectedEncList = new ArrayList(); - expectedEncList.add("Base64"); expectedEncList.add("MD5"); - List encList = config.getAsStringValues(NAMESPACE, ConfigTestConstant.ARTIFACT_ENC); - Assert.assertEquals(expectedEncList, encList); - - List expectedLocList = new ArrayList(); - expectedLocList.add("/opt/spool"); expectedLocList.add(System.getProperty("user.home")+"/asdc"); - List locList = config.getAsStringValues(NAMESPACE, ConfigTestConstant.ARTIFACT_LOC); - Assert.assertEquals(expectedLocList, locList); - - Assert.assertEquals("@"+System.getenv("Path")+"/myschema.json",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_XML_SCHEMA)); - } - - class MyListener implements ConfigurationChangeListener{ - @Override - public void notify(String key, Object oldValue, Object newValue) { - System.out.println("received notification::oldValue=="+oldValue+" newValue=="+newValue); - } - } - - private void updateJsonInFile() throws IOException{ - String data = "{name:\"updated SCM\"}"; - TestUtil.writeFile(data); - } - - @After - public void tearDown() throws Exception { - TestUtil.cleanUp(); - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/UnregisterNotificationTest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/UnregisterNotificationTest.java deleted file mode 100644 index e387f13e93..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/UnregisterNotificationTest.java +++ /dev/null @@ -1,94 +0,0 @@ -package org.openecomp.config.test; - -import org.openecomp.config.api.Configuration; -import org.openecomp.config.api.ConfigurationChangeListener; -import org.openecomp.config.api.ConfigurationManager; -import org.openecomp.config.util.ConfigTestConstant; -import org.openecomp.config.util.TestUtil; -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; - -import java.io.File; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.OutputStream; -import java.util.Properties; - -/** - * Pre-requisite - set -Dconfig.location=${"user.home"}/TestResources/ while running test - * Created by sheetalm on 10/19/2016. - * Scenario 24 - * Unregister notification and verify listener - */ -public class UnregisterNotificationTest { - public final static String NAMESPACE = "UnregisterNotification"; - - private String updatedValue = null; - - @Before - public void setUp() throws IOException { - String data = "{name:\"SCM\"}"; - TestUtil.writeFile(data); - } - - @Test - public void testNotification() throws IOException, InterruptedException { - Configuration config = ConfigurationManager.lookup(); - - System.out.println(config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); - - PropertyListener propListener = new PropertyListener(); - config.addConfigurationChangeListener(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH,propListener); - - updateValue("20"); - - Thread.sleep(35000); - - System.out.println(config.getAsString(NAMESPACE,ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); - - //Verify listener is invoked and updated value to 20 - Assert.assertEquals("20" , updatedValue); - - config.removeConfigurationChangeListener(NAMESPACE,ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH,propListener); - - updateValue("22"); - - Thread.sleep(35000); - - //When listener is unregistered updating value does not invoke any listener and value from listener should remain unchanged - Assert.assertEquals("20" , updatedValue); - - //Verify value is updated even if listener is unregistered - Assert.assertEquals("22" , config.getAsString(NAMESPACE,ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); - } - - private void updateValue(String newValue) throws IOException { - Properties props = new Properties(); - props.setProperty(ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, newValue); - props.setProperty("_config.namespace",NAMESPACE); - props.setProperty("_config.mergeStrategy","override"); - File f = new File(TestUtil.jsonSchemaLoc+"config.properties"); - try (OutputStream out = new FileOutputStream(f)) { - props.store(out, "Override Config Property at Conventional Resource"); - } - } - - private class PropertyListener implements ConfigurationChangeListener { - @Override - public void notify(String key, Object oldValue, Object newValue) { - System.out.println("received notification::oldValue=="+oldValue+" newValue=="+newValue); - updatedValue = newValue.toString(); - } - } - - @After - public void tearDown() throws Exception { - TestUtil.cleanUp(); - File f = new File(TestUtil.jsonSchemaLoc+"config.properties"); - if(f.exists()) { - f.delete(); - } - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/ValidateDefaultModeTest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/ValidateDefaultModeTest.java deleted file mode 100644 index 7ae2e0a644..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/ValidateDefaultModeTest.java +++ /dev/null @@ -1,60 +0,0 @@ -package org.openecomp.config.test; - -import org.openecomp.config.ConfigurationUtils; -import org.openecomp.config.api.Configuration; -import org.openecomp.config.api.ConfigurationManager; -import org.openecomp.config.util.ConfigTestConstant; -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import static org.openecomp.config.util.ConfigTestConstant.*; -import static org.openecomp.config.util.TestUtil.writeFile; - -/** - * Created by ARR on 10/17/2016. - * - * Scenario 22 - * Validate the default mode if the mode is not set - */ -public class ValidateDefaultModeTest { - - public static final String NAMESPACE = "defaultmode"; - - @Before - public void setUp() throws IOException { - String data = "{name:\"SCM\"}"; - writeFile(data); - } - - @Test - public void testConfigurationWithValidateDefaultMode(){ - Configuration config = ConfigurationManager.lookup(); - - Assert.assertEquals(config.getAsString(NAMESPACE, ARTIFACT_NAME_MAXLENGTH ), "14"); - - Assert.assertEquals(config.getAsString(NAMESPACE, ARTIFACT_MAXSIZE ), "1048"); - - List expectedExtList = new ArrayList(); - expectedExtList.add("pdf"); - expectedExtList.add("tgz"); - expectedExtList.add("xls"); - List extList = config.getAsStringValues(NAMESPACE, ConfigTestConstant.ARTIFACT_EXT); - Assert.assertEquals(expectedExtList, extList); - - Assert.assertEquals(config.getAsString(NAMESPACE, ARTIFACT_NAME_MINLENGTH ), "6"); - - } - - @After - public void tearDown() throws Exception { - String data = "{name:\"SCM\"}"; - writeFile(data); - // ConfigurationUtils.executeDDLSQL("truncate dox.configuration"); - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/ValidateNodeConfigTest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/ValidateNodeConfigTest.java deleted file mode 100644 index 8f7d703468..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/ValidateNodeConfigTest.java +++ /dev/null @@ -1,80 +0,0 @@ -package org.openecomp.config.test; - -import org.openecomp.config.api.Configuration; -import org.openecomp.config.api.ConfigurationManager; -import org.openecomp.config.util.ConfigTestConstant; -import org.openecomp.config.util.TestUtil; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import org.junit.Assert; - -import java.io.File; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.OutputStream; -import java.util.Properties; - -/** - * Scenario 13 - * Validate node specific configuration - * Pre-requisite - set -Dnode.config.location=${"user.home"}/TestResources/ while running test - * - * Created by sheetalm on 10/14/2016. - */ -public class ValidateNodeConfigTest { - - public final static String NAMESPACE = "ValidateNodeConfig"; - - @Before - public void setUp() throws IOException { - String data = "{name:\"SCM\"}"; - TestUtil.writeFile(data); - } - - @Test - public void testValidateNodeConfig() throws IOException, InterruptedException { - Configuration config = ConfigurationManager.lookup(); - - Properties props = new Properties(); - props.setProperty(ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH, "56"); - props.setProperty("_config.namespace","ValidateNodeConfig"); - File f = new File(TestUtil.jsonSchemaLoc+"config.properties"); - try (OutputStream out = new FileOutputStream(f)) { - props.store(out, "Node Config Property"); - } - - System.out.println(System.getProperty("node.config.location")); - - Thread.sleep(35000); - - //Verify property from node specific configuration - Assert.assertEquals("56", config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH)); - - //Verify if property is not in node specific then fetch from namespace - //Assert.assertEquals("a-zA-Z",config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_UPPER)); - - //Verify if property is not in node specific and namespace then fetch from global - Assert.assertEquals("1024", config.getAsString(NAMESPACE, "maxCachedBufferSize")); - - //Deleting node configurations to test property is fetched from namespace configuration when node configuration is not present - if(f.exists()) { - boolean isDeleted = f.delete(); - System.out.println(isDeleted); - } - - Thread.sleep(35000); - - Assert.assertEquals(config.getAsString(NAMESPACE, ConfigTestConstant.ARTIFACT_NAME_MAXLENGTH), "14"); - } - - @After - public void tearDown() throws Exception { - TestUtil.cleanUp(); - File f = new File(TestUtil.jsonSchemaLoc+"config.properties"); - if(f.exists()) { - f.delete(); - } - } - -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/XMLConfigTest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/XMLConfigTest.java deleted file mode 100644 index 8af5ebf89d..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/XMLConfigTest.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.openecomp.config.test; - -import org.openecomp.config.ConfigurationUtils; -import org.openecomp.config.util.TestUtil; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -import java.io.IOException; - -import static org.openecomp.config.util.TestUtil.validateConfiguraton; -import static org.openecomp.config.util.TestUtil.writeFile; - -/** - * Created by ARR on 10/14/2016. - * - * Scenario 2 - * Validate configuration with XML file format with mode - */ -public class XMLConfigTest { - - public static final String NAMESPACE = "XMLConfig"; - - @Before - public void setUp() throws IOException { - String data = "{name:\"SCM\"}"; - writeFile(data); - } - - @Test - public void testConfigurationWithXMLFileFormat(){ - validateConfiguraton(NAMESPACE); - } - - - - @After - public void tearDown() throws Exception { - TestUtil.cleanUp(); - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/YAMLConfigTest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/YAMLConfigTest.java deleted file mode 100644 index bc172b0eb7..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/test/YAMLConfigTest.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.openecomp.config.test; - -import org.openecomp.config.ConfigurationUtils; -import org.openecomp.config.util.TestUtil; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -import java.io.IOException; - -import static org.openecomp.config.util.TestUtil.validateConfiguraton; -import static org.openecomp.config.util.TestUtil.writeFile; - -/** - * Created by ARR on 10/14/2016. - * - * Scenario 4 - * Validate configuration with YAML file format with mode - */ -public class YAMLConfigTest { - - public static final String NAMESPACE = "YAMLConfig"; - - @Before - public void setUp() throws IOException { - String data = "{name:\"SCM\"}"; - writeFile(data); - } - - @Test - public void testConfigurationWithYAMLFileFormat(){ - validateConfiguraton(NAMESPACE); - } - - - - @After - public void tearDown() throws Exception { - TestUtil.cleanUp(); - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/util/ConfigTestConstant.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/util/ConfigTestConstant.java deleted file mode 100644 index d639ccad42..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/util/ConfigTestConstant.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openecomp.config.util; - -public class ConfigTestConstant { - - public static final String ARTIFACT_NAME_MAXLENGTH = "artifact.name.maxlength"; - public static final String ARTIFACT_MAXSIZE = "artifact.maxsize"; - public static final String ARTIFACT_EXT = "artifact.extension"; - public static final String ARTIFACT_ENC = "artifact.supportedEncryption"; - public static final String ARTIFACT_NAME_UPPER = "artifact.name.allowedChar"; - public static final String ARTIFACT_NAME_LOWER = "artifact.name.allowedchar"; - public static final String ARTIFACT_STATUS = "artifact.status"; - public static final String ARTIFACT_LOC = "artifact.persistLocation"; - public static final String ARTIFACT_JSON_SCHEMA = "artifact.jsonSchema"; - public static final String ARTIFACT_XML_SCHEMA = "artifact.xmlSchema"; - public static final String ARTIFACT_CONSUMER_APPC = "artifact.consumerAPPC"; - public static final String ARTIFACT_CONSUMER = "artifact.consumer"; - public static final String ARTIFACT_MANDATORY_NAME = "artifact.mandatory.name"; - public static final String ARTIFACT_NAME_MINLENGTH = "artifact.name.minlength"; - public static final String ARTIFACT_ENCODED = "artifact.encoded"; - - public static final String ONBOARDING_NAMESPACE = "onboarding"; - -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/util/TestUtil.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/util/TestUtil.java deleted file mode 100644 index a04f14cb84..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/java/org/openecomp/config/util/TestUtil.java +++ /dev/null @@ -1,95 +0,0 @@ -package org.openecomp.config.util; - -import org.openecomp.config.ConfigurationUtils; -import org.openecomp.config.api.Configuration; -import org.openecomp.config.api.ConfigurationManager; -import org.junit.Assert; - -import java.io.File; -import java.io.FileWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import static org.openecomp.config.util.ConfigTestConstant.*; -import static org.openecomp.config.util.ConfigTestConstant.ARTIFACT_ENCODED; -import static org.openecomp.config.util.ConfigTestConstant.ARTIFACT_MANDATORY_NAME; - -/** - * Created by sheetalm on 10/13/2016. - */ -public class TestUtil { - - public final static String jsonSchemaLoc = System.getProperty("user.home")+"/TestResources/"; - public static FileWriter fileWriter ; - - public static void writeFile(String data) throws IOException { - File dir = new File(jsonSchemaLoc); - File file = null; - dir.mkdirs(); - file = new File(jsonSchemaLoc+"/GeneratorsList.json"); - file.createNewFile(); - fileWriter = new FileWriter(file); - fileWriter.write(data); - fileWriter.close(); - } - - public static void cleanUp() throws Exception { - String data = "{name:\"SCM\"}"; - TestUtil.writeFile(data); - //ConfigurationUtils.executeDdlSql("truncate dox.configuration"); - try{ - ConfigurationUtils.executeDdlSql("truncate dox.configuration_change"); - } - catch(Exception e){ - e.printStackTrace(); - } - - } - - public static void validateConfiguraton(String nameSpace) { - Configuration config = ConfigurationManager.lookup(); - - Assert.assertEquals(config.getAsString(nameSpace, ARTIFACT_NAME_MAXLENGTH ), "14"); - - // First value from list is picked from Merge properties - Assert.assertEquals(config.getAsString(nameSpace, ARTIFACT_MAXSIZE ), "1048576"); - - List expectedExtList = new ArrayList(); - expectedExtList.add("pdf"); - expectedExtList.add("zip"); - expectedExtList.add("xml"); - expectedExtList.add("pdf"); - expectedExtList.add("tgz"); - expectedExtList.add("xls"); - List extList = config.getAsStringValues(nameSpace, ConfigTestConstant.ARTIFACT_EXT); - Assert.assertEquals(expectedExtList, extList); - - List expectedEncList = new ArrayList(); - expectedEncList.add("Base64"); - expectedEncList.add("MD5"); - List encList = config.getAsStringValues(nameSpace, ConfigTestConstant.ARTIFACT_ENC); - Assert.assertEquals(expectedEncList, encList); - - Assert.assertEquals(config.getAsString(nameSpace, ARTIFACT_NAME_UPPER ), "a-zA-Z_0-9"); - Assert.assertEquals(config.getAsString(nameSpace, ARTIFACT_NAME_LOWER ), "a-zA-Z"); - Assert.assertEquals(config.getAsString(nameSpace, ARTIFACT_STATUS ), "deleted"); - - List expectedLocList = new ArrayList(); - expectedLocList.add("/opt/spool"); - expectedLocList.add(System.getProperty("user.home")+"/asdc"); - List locList = config.getAsStringValues(nameSpace, ConfigTestConstant.ARTIFACT_LOC); - Assert.assertEquals(expectedLocList, locList); - - Assert.assertEquals(config.getAsString(nameSpace, ARTIFACT_JSON_SCHEMA ), "@GeneratorList.json"); - - Assert.assertEquals("@"+System.getenv("Path")+"/myschema.json",config.getAsString(nameSpace, ConfigTestConstant.ARTIFACT_XML_SCHEMA)); - - List artifactConsumer = config.getAsStringValues(nameSpace, ConfigTestConstant.ARTIFACT_CONSUMER ); - Assert.assertEquals(config.getAsStringValues(nameSpace, ConfigTestConstant.ARTIFACT_CONSUMER_APPC ), artifactConsumer); - - Assert.assertEquals(config.getAsString(nameSpace, ARTIFACT_NAME_MINLENGTH ), "6"); - Assert.assertEquals(config.getAsString(nameSpace, ARTIFACT_MANDATORY_NAME ), "true"); - Assert.assertEquals(config.getAsString(nameSpace, ARTIFACT_ENCODED ), "true"); - } -} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLI/config-NS.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLI/config-NS.properties deleted file mode 100644 index a50cabc151..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLI/config-NS.properties +++ /dev/null @@ -1,12 +0,0 @@ -artifact.name.maxlength=14 -artifact.extension=pdf, zip, xml -artifact.supportedEncryption=Base64 -artifact.supportedEncryption=MD5 -artifact.name.allowedChar=a-zA-Z -artifact.status=deleted -artifact.status=Deleted -artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc -artifact.jsonSchema=@${sys:user.home}/TestResources/GeneratorsList.json -artifact.xmlSchema=@${env:path}/myschema.json -artifact.consumerAPPC=${artifact.consumer} -_config.namespace=OPENECOMP:CLI \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLI/config.json b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLI/config.json deleted file mode 100644 index 5d98a327db..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLI/config.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "artifact": { - "name": { "minlength": "6" }, - "extension": "pdf,tgz,xls" - }, - "_config":{"namespace": "OPENECOMP:CLI", "mergeStrategy": "union"} - -} \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLI/config.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLI/config.properties deleted file mode 100644 index 4daad19dcc..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLI/config.properties +++ /dev/null @@ -1,3 +0,0 @@ -maxCachedBufferSize=1024 -artifact.maxsize=1024 -artifact.name.maxlength=28 \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLI/config.xml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLI/config.xml deleted file mode 100644 index 2f09871bd5..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLI/config.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - 28 - - gz,tgz - Base64 - deleted - - true - - <_config> - OPENECOMP:CLI - merge - - - \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLI/config.yaml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLI/config.yaml deleted file mode 100644 index 4333f3e83e..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLI/config.yaml +++ /dev/null @@ -1,8 +0,0 @@ -artifact: - name: - allowedChar: "a-zA-Z_0-9" - encoded: true - consumer: "appc,catalog" -_config: - namespace: "OPENECOMP:CLI" - mergeStrategy: "override" \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLIFallback/config-NS.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLIFallback/config-NS.properties deleted file mode 100644 index 32da54ffbc..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLIFallback/config-NS.properties +++ /dev/null @@ -1,12 +0,0 @@ -artifact.name.maxlength=14 -artifact.extension=pdf, zip, xml -artifact.supportedEncryption=Base64 -artifact.supportedEncryption=MD5 -artifact.name.allowedChar=a-zA-Z -artifact.status=deleted -artifact.status=Deleted -artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc -artifact.jsonSchema=@${sys:user.home}/TestResources/GeneratorsList.json -artifact.xmlSchema=@${env:path}/myschema.json -artifact.consumerAPPC=${artifact.consumer} -_config.namespace=OPENECOMP:CLIFallback \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLIFallback/config.json b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLIFallback/config.json deleted file mode 100644 index a1db251671..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLIFallback/config.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "artifact": { - "name": { "minlength": "6" }, - "extension": "pdf,tgz,xls" - }, - "_config":{"namespace": "OPENECOMP:CLIFallback", "mergeStrategy": "union"} - -} \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLIFallback/config.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLIFallback/config.properties deleted file mode 100644 index 4daad19dcc..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLIFallback/config.properties +++ /dev/null @@ -1,3 +0,0 @@ -maxCachedBufferSize=1024 -artifact.maxsize=1024 -artifact.name.maxlength=28 \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLIFallback/config.xml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLIFallback/config.xml deleted file mode 100644 index 4c46762cdd..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLIFallback/config.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - 28 - - gz,tgz - Base64 - deleted - - true - - <_config> - OPENECOMP:CLIFallback - merge - - - \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLIFallback/config.yaml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLIFallback/config.yaml deleted file mode 100644 index b0b195f354..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/CLIFallback/config.yaml +++ /dev/null @@ -1,8 +0,0 @@ -artifact: - name: - allowedChar: "a-zA-Z_0-9" - encoded: true - consumer: "appc,catalog" -_config: - namespace: "OPENECOMP:CLIFallback" - mergeStrategy: "override" \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/DynamicConfiguration/config.json b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/DynamicConfiguration/config.json deleted file mode 100644 index c909fe8466..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/DynamicConfiguration/config.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - - "artifact": { - "name": { "minlength": "6" }, - "extension": "pdf,tgz,xls" - }, - "_config": {"namespace": "DynamicConfiguration", "mergeStrategy": "union"} -} \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/DynamicConfiguration/config.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/DynamicConfiguration/config.properties deleted file mode 100644 index c3825487a9..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/DynamicConfiguration/config.properties +++ /dev/null @@ -1,13 +0,0 @@ -artifact.name.maxlength=14 -artifact.extension=pdf, zip, xml -artifact.supportedEncryption=Base64 -artifact.supportedEncryption=MD5 -artifact.name.allowedChar=a-zA-Z -artifact.name.allowedchar=a-zA-Z -artifact.status=deleted -artifact.status=Deleted -artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc -artifact.jsonSchema=@GeneratorsList.json -artifact.xmlSchema=@${env:path}/myschema.json -artifact.consumerAPPC=${artifact.consumer} -_config.namespace=DynamicConfiguration \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/DynamicConfiguration/config.xml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/DynamicConfiguration/config.xml deleted file mode 100644 index 3f046e232b..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/DynamicConfiguration/config.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - 28 - - gz,tgz - Base64 - deleted - - true - - <_config> - DynamicConfiguration - merge - - - \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/DynamicConfiguration/config.yaml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/DynamicConfiguration/config.yaml deleted file mode 100644 index 12ba1f093e..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/DynamicConfiguration/config.yaml +++ /dev/null @@ -1,8 +0,0 @@ -artifact: - name: - allowedChar: "a-zA-Z_0-9" -encoded: true -consumer: "appc,catalog" -_config: - namespace: "DynamicConfiguration" - mergeStrategy: "override" diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/FallbackToGlobalNS/config-NS.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/FallbackToGlobalNS/config-NS.properties deleted file mode 100644 index b7e985b90a..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/FallbackToGlobalNS/config-NS.properties +++ /dev/null @@ -1,13 +0,0 @@ -artifact.name.maxlength=14 -artifact.extension=pdf, zip, xml -artifact.supportedEncryption=Base64 -artifact.supportedEncryption=MD5 -artifact.name.allowedChar=a-zA-Z -artifact.name.allowedchar=a-zA-Z -artifact.status=deleted -artifact.status=Deleted -artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc -artifact.jsonSchema=@GeneratorsList.json -artifact.xmlSchema=@${env:path}/myschema.json -artifact.consumerAPPC=${artifact.consumer} -_config.namespace=FallbackToGlobalNS \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.json b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.json deleted file mode 100644 index 6f3d68ab75..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - - "artifact": { - "name": { "minlength": "6" }, - "extension": "pdf,tgz,xls" - }, - "_config":{"namespace": "FallbackToGlobalNS" , "mergeStrategy": "union"} - -} \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.properties deleted file mode 100644 index 4daad19dcc..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.properties +++ /dev/null @@ -1,3 +0,0 @@ -maxCachedBufferSize=1024 -artifact.maxsize=1024 -artifact.name.maxlength=28 \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.xml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.xml deleted file mode 100644 index 9a881ab4a7..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - 28 - - gz,tgz - Base64 - deleted - - true - - - <_config> - FallbackToGlobalNS - merge - - - \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.yaml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.yaml deleted file mode 100644 index 46f50b6087..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/FallbackToGlobalNS/config.yaml +++ /dev/null @@ -1,8 +0,0 @@ -artifact: - name: - allowedChar: "a-zA-Z_0-9" - encoded: true - consumer: "appc,catalog" - _config: - namespace: "FallbackToGlobalNS" - mergeStrategy: "override" diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.json b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.json deleted file mode 100644 index e59e65855c..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - - "artifact": { - "name": { "minlength": "6" }, - "maxsize": "1048", - "extension": "pdf,tgz,xls" - }, - "_config": { "mergeStrategy": "union","namespace":"GlobalAndNSConfig" } - -} \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.properties deleted file mode 100644 index 1a86f68a65..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.properties +++ /dev/null @@ -1,10 +0,0 @@ -artifact.name.maxlength=14 -artifact.extension=pdf, zip, xml -artifact.supportedEncryption=Base64, MD5 -artifact.name.allowedChar=a-zA-Z -artifact.status=Deleted -artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc -artifact.jsonSchema=@GeneratorsList.json -artifact.xmlSchema=@${env:path}/myschema.json -artifact.consumerAPPC=${artifact.consumer} -_config.namespace=GlobalAndNSConfig \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.xml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.xml deleted file mode 100644 index d8292c167e..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - 28 - - gz,tgz - - true - - - <_config> - GlobalAndNSConfig - merge - - \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.yaml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.yaml deleted file mode 100644 index bbbdde22a4..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/GlobalAndNSConfig/config.yaml +++ /dev/null @@ -1,7 +0,0 @@ - artifact: - name: - allowedChar: "a-zA-Z_0-9" - encoded: true - consumer: "appc,catalog" - _config: - mergeStrategy: "override" \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/JSONConfiguration/config-M.json b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/JSONConfiguration/config-M.json deleted file mode 100644 index 9c335724bc..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/JSONConfiguration/config-M.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - - "artifact": { - "name": { "maxlength": "28" }, - "maxsize": "1048576", - "extension": "gz,tgz", - "supportedencryption": "Base64", - "status": "deleted", - "mandatory": { "name": "true" } - }, - "_config": { - "namespace": "JSONConfig", - "mergeStrategy": "merge" - } - -} \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/JSONConfiguration/config-O.json b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/JSONConfiguration/config-O.json deleted file mode 100644 index c324fc777c..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/JSONConfiguration/config-O.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "artifact": { - "name": { "allowedChar": "a-zA-Z_0-9" }, - "encoded": "true", - "consumer": "appc,catalog" - }, - "_config": { - "namespace": "JSONConfig", - "mergeStrategy": "override" - } -} \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/JSONConfiguration/config-U.json b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/JSONConfiguration/config-U.json deleted file mode 100644 index 05a7e2d7ff..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/JSONConfiguration/config-U.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "artifact": { - "name": { "minlength": "6" }, - "maxsize": "1048", - "extension": "pdf,tgz,xls" - }, - "_config": { - "namespace": "JSONConfig", - "mergeStrategy": "union" - } -} \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/JSONConfiguration/config.json b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/JSONConfiguration/config.json deleted file mode 100644 index 0538ba1717..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/JSONConfiguration/config.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "artifact": { - "name": { - "maxlength": "14", - "allowedChar": "a-zA-Z", - "allowedchar": "a-zA-Z" - }, - "extension": [ - "pdf", - "zip,xml" - - ], - "supportedEncryption": [ - "Base64", - "MD5" - ], - "status": [ - "deleted", - "Deleted" - ], - "persistLocation": "/opt/spool,${sys:user.home}/asdc", - "jsonSchema": "@GeneratorList.json", - "xmlSchema": "@${env:path}/myschema.json", - "consumerAPPC": "${artifact.consumer}" - - }, - "_config": { - "namespace": "JSONConfig" - } -} \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-M.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-M.properties deleted file mode 100644 index 5082081102..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-M.properties +++ /dev/null @@ -1,9 +0,0 @@ -artifact.name.maxlength=28 -artifact.maxsize=1048576 -artifact.extension=gz, tgz -artifact.supportedencryption=Base64 -artifact.mandatory.name=true -artifact.length=2 -_config.namespace=LoadOrderConfiguration -_config.mergeStrategy=merge -_config.loadOrder=2 \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-O.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-O.properties deleted file mode 100644 index 45018269dd..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-O.properties +++ /dev/null @@ -1,7 +0,0 @@ -artifact.name.allowedChar=a-zA-Z_0-9 -artifact.encoded=true -artifact.consumer=appc, catalog -artifact.size=75 -_config.namespace=LoadOrderConfiguration -_config.mergeStrategy=override -_config.loadOrder=1 \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-U.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-U.properties deleted file mode 100644 index cb5d5968f5..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-U.properties +++ /dev/null @@ -1,5 +0,0 @@ -artifact.maxsize=1048 -artifact.extension=pdf,tgz, xls -artifact.name.minlength=6 -_config.namespace=LoadOrderConfiguration -_config.mergeStrategy=union \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-loadorder-M.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-loadorder-M.properties deleted file mode 100644 index 79d0815a39..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-loadorder-M.properties +++ /dev/null @@ -1,9 +0,0 @@ -artifact.name.maxlength=28 -artifact.maxsize=1048576 -artifact.extension=gz, tgz -artifact.supportedencryption=Base64 -artifact.mandatory.name=true -artifact.length=5 -_config.namespace=LoadOrderConfiguration -_config.mergeStrategy=merge -_config.loadOrder=1 \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-loadorder-O.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-loadorder-O.properties deleted file mode 100644 index 164706dba7..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config-loadorder-O.properties +++ /dev/null @@ -1,7 +0,0 @@ -artifact.name.allowedChar=a-zA-Z_0-9 -artifact.encoded=true -artifact.consumer=appc, catalog -artifact.size=56 -_config.namespace=LoadOrderConfiguration -_config.mergeStrategy=override -_config.loadOrder=2 \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config.properties deleted file mode 100644 index ae1f445efd..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/LoadOrderConfiguration/config.properties +++ /dev/null @@ -1,14 +0,0 @@ -artifact.name.maxlength=14 -#artifact.maxsize= -artifact.extension=pdf, zip, xml -artifact.supportedEncryption=Base64 -artifact.supportedEncryption=MD5 -artifact.name.allowedChar=a-zA-Z -artifact.name.allowedchar=a-zA-Z -artifact.status=deleted -artifact.status=Deleted -artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc -artifact.jsonSchema=@GeneratorList.json -artifact.xmlSchema=@${env:path}/myschema.json -artifact.consumerAPPC=${artifact.consumer} -_config.namespace=LoadOrderConfiguration diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.json b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.json deleted file mode 100644 index 7c6d552b82..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "artifact": { - "name": { "minlength": "6" }, - "maxsize": "1048", - "extension": "pdf,tgz,xls" - }, - "_config": { "mergeStrategy": "union" , "namespace":"ModeAsConfigProp" } -} \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.properties deleted file mode 100644 index a82e6b23fe..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.properties +++ /dev/null @@ -1,10 +0,0 @@ -artifact.name.maxlength=14 -artifact.extension=pdf,zip,xml -artifact.supportedEncryption=Base64,MD5 -artifact.name.allowedChar=a-zA-Z -artifact.status=Deleted -artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc -artifact.jsonSchema=@${sys:user.home}/TestResources/GeneratorsList.json -artifact.xmlSchema=@${env:path}/myschema.json -artifact.consumerAPPC=${artifact.consumer} -_config.namespace=ModeAsConfigProp \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.xml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.xml deleted file mode 100644 index 2d05d2724c..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - 28 - - gz,tgz - - true - - - <_config> - ModeAsConfigProp - merge - - \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.yaml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.yaml deleted file mode 100644 index ef08bba6ce..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/MergeStrategyAsConfigProp/config.yaml +++ /dev/null @@ -1,8 +0,0 @@ -artifact: - name: - allowedChar: "a-zA-Z_0-9" - encoded: true - consumer: "appc,catalog" -_config: - mergeStrategy: "override" - namespace: "ModeAsConfigProp" \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NodeCLI/config.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NodeCLI/config.properties deleted file mode 100644 index 435f98ab39..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NodeCLI/config.properties +++ /dev/null @@ -1,9 +0,0 @@ -artifact.name.maxlength=30 -artifact.extension=pdf, zip, xml -artifact.supportedEncryption=Base64 -artifact.name.allowedChar=a-zA-Z -artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc -artifact.jsonSchema=@GeneratorsList.json -artifact.xmlSchema=@${env:path}/myschema.json -artifact.consumerAPPC=${artifact.consumer} -_config.namespace=NodeCLI \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/Notification/config.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/Notification/config.properties deleted file mode 100644 index 4076eefa58..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/Notification/config.properties +++ /dev/null @@ -1,15 +0,0 @@ -artifact.name.maxlength=14 -artifact.consumer=APPC -artifact.maxsize=1048 -artifact.extension=pdf,zip,xml -artifact.supportedEncryption=Base64 -artifact.supportedEncryption=MD5 -artifact.name.allowedChar=a-zA-Z -artifact.name.allowedchar=a-zA-Z -artifact.status=deleted -artifact.status=Deleted -artifact.persistLocation=/opt/spool,${sys:user.home}/asdc -artifact.jsonSchema=@${sys:user.home}/TestResources/GeneratorsList.json -artifact.xmlSchema=@${env:path}/myschema.json -artifact.consumerAPPC=${artifact.consumer} -_config.namespace=Notification \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationForNodeConfig.zip b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationForNodeConfig.zip deleted file mode 100644 index 42d14a64db..0000000000 Binary files a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationForNodeConfig.zip and /dev/null differ diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.json b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.json deleted file mode 100644 index 0d6395af4f..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - - "artifact": { - "name": { "minlength": "6" }, - "extension": "pdf,tgz,xls" - }, - "_config":{ - "namespace": "NotificationForNodeConfig", - "mergestrategy": "union" - } - -} \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.properties deleted file mode 100644 index d2c41aa4b5..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.properties +++ /dev/null @@ -1,14 +0,0 @@ -artifact.name.maxlength=14 -artifact.extension=pdf, zip, xml -artifact.supportedEncryption=Base64 -artifact.supportedEncryption=MD5 -artifact.name.allowedChar=a-zA-Z -artifact.name.allowedchar=a-zA-Z -artifact.status=deleted -artifact.status=Deleted -artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc -artifact.jsonSchema=@GeneratorsList.json -artifact.xmlSchema=@${env:path}/myschema.json -artifact.consumerAPPC=${artifact.consumer} -_config.namespace=NotificationForNodeConfig - diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.xml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.xml deleted file mode 100644 index 20768aa949..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - 28 - - gz,tgz - Base64 - deleted - - true - - - <_config> - NotificationForNodeConfig - merge - - \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.yaml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.yaml deleted file mode 100644 index ee85a0c68d..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationForNodeConfig/config.yaml +++ /dev/null @@ -1,8 +0,0 @@ -artifact: - name: - allowedChar: "a-zA-Z_0-9" - encoded: true - consumer: "appc,catalog" -_config: - namespace: "NotificationForNodeConfig" - mergestrategy: "override" \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationOnPropVal/config-NS.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationOnPropVal/config-NS.properties deleted file mode 100644 index 279d407664..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationOnPropVal/config-NS.properties +++ /dev/null @@ -1,13 +0,0 @@ -artifact.name.maxlength=14 -artifact.extension=pdf, zip, xml -artifact.supportedEncryption=Base64 -artifact.supportedEncryption=MD5 -artifact.name.allowedChar=a-zA-Z -artifact.name.allowedchar=a-zA-Z -artifact.status=deleted -artifact.status=Deleted -artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc -artifact.jsonSchema=@GeneratorsList.json -artifact.xmlSchema=@${env:path}/myschema.json -artifact.consumerAPPC=${artifact.consumer} -_config.namespace=NotificationOnPropVal \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationOnPropVal/config.json b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationOnPropVal/config.json deleted file mode 100644 index fc7f2347aa..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationOnPropVal/config.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "artifact": { - "name": { "minlength": "6" }, - "extension": "pdf,tgz,xls" - }, - - "_config": { "mergeStrategy": "union","namespace":"NotificationOnPropVal" } - -} \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationOnPropVal/config.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationOnPropVal/config.properties deleted file mode 100644 index 4daad19dcc..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationOnPropVal/config.properties +++ /dev/null @@ -1,3 +0,0 @@ -maxCachedBufferSize=1024 -artifact.maxsize=1024 -artifact.name.maxlength=28 \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationOnPropVal/config.xml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationOnPropVal/config.xml deleted file mode 100644 index e3a24fbc32..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationOnPropVal/config.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - 28 - - gz,tgz - Base64 - deleted - - true - - - <_config> - NotificationOnPropVal - merge - - \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationOnPropVal/config.yaml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationOnPropVal/config.yaml deleted file mode 100644 index 7283df4ecb..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/NotificationOnPropVal/config.yaml +++ /dev/null @@ -1,9 +0,0 @@ - - artifact: - name: - allowedChar: "a-zA-Z_0-9" - encoded: true - consumer: "appc,catalog" - _config: - mergeStrategy: "override" - namespace: "NotificationOnPropVal" \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.json b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.json deleted file mode 100644 index 42c6be91b9..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - - "artifact": { - "name": { "minlength": "6" }, - "maxsize": "1048", - "extension": "pdf,tgz,xls" - }, - "_config": { "mergeStrategy": "union","namespace":"SourceLocation" } - -} \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.properties deleted file mode 100644 index 22c9840fad..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.properties +++ /dev/null @@ -1,14 +0,0 @@ -artifact.name.maxlength=14 -artifact.maxsize= -artifact.extension=pdf, zip, xml -artifact.supportedEncryption=Base64 -artifact.supportedEncryption=MD5 -artifact.name.allowedChar=a-zA-Z -artifact.name.allowedchar=a-zA-Z -artifact.status=deleted -artifact.status=Deleted -artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc -artifact.jsonSchema=@GeneratorsList.json -artifact.xmlSchema=@${env:path}/myschema.json -artifact.consumerAPPC=${artifact.consumer} -_config.namespace=SourceLocation \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.xml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.xml deleted file mode 100644 index 1162af576e..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - 28 - - 1048576 - gz,tgz - Base64 - deleted - - true - - - <_config> - SourceLocation - merge - - \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.yaml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.yaml deleted file mode 100644 index 4e073ce7f9..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/SourceLocation/appjarconfig.yaml +++ /dev/null @@ -1,8 +0,0 @@ -artifact: - name: - allowedChar: "a-zA-Z_0-9" - encoded: true - consumer: "appc,catalog" -_config: - mergeStrategy: "override" - namespace: "SourceLocation" \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/UnregisterNotification/config-NS.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/UnregisterNotification/config-NS.properties deleted file mode 100644 index 40b4518945..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/UnregisterNotification/config-NS.properties +++ /dev/null @@ -1,13 +0,0 @@ -artifact.name.maxlength=14 -artifact.extension=pdf, zip, xml -artifact.supportedEncryption=Base64 -artifact.supportedEncryption=MD5 -artifact.name.allowedChar=a-zA-Z -artifact.name.allowedchar=a-zA-Z -artifact.status=deleted -artifact.status=Deleted -artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc -artifact.jsonSchema=@GeneratorsList.json -artifact.xmlSchema=@${env:path}/myschema.json -artifact.consumerAPPC=${artifact.consumer} -_config.namespace=UnregisterNotification \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/UnregisterNotification/config.json b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/UnregisterNotification/config.json deleted file mode 100644 index 3e0464016d..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/UnregisterNotification/config.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "artifact": { - "name": { "minlength": "6" }, - "extension": "pdf,tgz,xls" - }, - - "_config": { "mergeStrategy": "union","namespace":"UnregisterNotification" } - -} \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/UnregisterNotification/config.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/UnregisterNotification/config.properties deleted file mode 100644 index 4daad19dcc..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/UnregisterNotification/config.properties +++ /dev/null @@ -1,3 +0,0 @@ -maxCachedBufferSize=1024 -artifact.maxsize=1024 -artifact.name.maxlength=28 \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/UnregisterNotification/config.xml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/UnregisterNotification/config.xml deleted file mode 100644 index 1153658161..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/UnregisterNotification/config.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - 28 - - gz,tgz - Base64 - deleted - - true - - - <_config> - UnregisterNotification - merge - - \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/UnregisterNotification/config.yaml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/UnregisterNotification/config.yaml deleted file mode 100644 index 1deb37ac7a..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/UnregisterNotification/config.yaml +++ /dev/null @@ -1,9 +0,0 @@ - - artifact: - name: - allowedChar: "a-zA-Z_0-9" - encoded: true - consumer: "appc,catalog" - _config: - mergeStrategy: "override" - namespace: "UnregisterNotification" \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/ValidateDefaultMode/config-defaultmode.json b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/ValidateDefaultMode/config-defaultmode.json deleted file mode 100644 index 72833024c4..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/ValidateDefaultMode/config-defaultmode.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "artifact": { - "name": { - "minlength": "6" - }, - "extension": "pdf,tgz,xls" - } -} \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/ValidateDefaultMode/config-defaultmode.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/ValidateDefaultMode/config-defaultmode.properties deleted file mode 100644 index c857da38e9..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/ValidateDefaultMode/config-defaultmode.properties +++ /dev/null @@ -1,2 +0,0 @@ -artifact.name.maxlength=14 -artifact.maxsize=1048 \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/ValidateNodeConfig/config-NS.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/ValidateNodeConfig/config-NS.properties deleted file mode 100644 index a782e25835..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/ValidateNodeConfig/config-NS.properties +++ /dev/null @@ -1,13 +0,0 @@ -artifact.name.maxlength=14 -artifact.extension=pdf, zip, xml -artifact.supportedEncryption=Base64 -artifact.supportedEncryption=MD5 -artifact.name.allowedChar=a-zA-Z -artifact.name.allowedchar=a-zA-Z -artifact.status=deleted -artifact.status=Deleted -artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc -artifact.jsonSchema=@GeneratorsList.json -artifact.xmlSchema=@${env:path}/myschema.json -artifact.consumerAPPC=${artifact.consumer} -_config.namespace=ValidateNodeConfig \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/ValidateNodeConfig/config.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/ValidateNodeConfig/config.properties deleted file mode 100644 index 4daad19dcc..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/ValidateNodeConfig/config.properties +++ /dev/null @@ -1,3 +0,0 @@ -maxCachedBufferSize=1024 -artifact.maxsize=1024 -artifact.name.maxlength=28 \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/XMLConfiguration/config-M.xml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/XMLConfiguration/config-M.xml deleted file mode 100644 index 320e53348d..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/XMLConfiguration/config-M.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - 28 - - 1048576 - gz,tgz - Base64 - deleted - - true - - - <_config> - XMLConfig - merge - - \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/XMLConfiguration/config-O.xml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/XMLConfiguration/config-O.xml deleted file mode 100644 index 508c920b83..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/XMLConfiguration/config-O.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - a-zA-Z_0-9 - - true - appc,catalog - - <_config> - XMLConfig - override - - \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/XMLConfiguration/config-U.xml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/XMLConfiguration/config-U.xml deleted file mode 100644 index 962bd342f3..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/XMLConfiguration/config-U.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - 6 - - 1048 - pdf,tgz,xls - - <_config> - XMLConfig - union - - \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/XMLConfiguration/config.xml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/XMLConfiguration/config.xml deleted file mode 100644 index 2fff65b2e0..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/XMLConfiguration/config.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - 14 - a-zA-Z - a-zA-Z - - - pdf - zip,xml - - Base64 - MD5 - deleted - Deleted - /opt/spool,${sys:user.home}/asdc - @GeneratorList.json - @${env:path}/myschema.json - ${artifact.consumer} - - <_config> - XMLConfig - - \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/YAMLConfiguration/config-M.yaml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/YAMLConfiguration/config-M.yaml deleted file mode 100644 index 8ff08cdc43..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/YAMLConfiguration/config-M.yaml +++ /dev/null @@ -1,12 +0,0 @@ - artifact: - name: - maxlength: 28 - maxsize: 1048576 - extension: "gz,tgz" - supportedencryption: Base64 - status: deleted - mandatory: - name: true - _config: - namespace: YAMLConfig - mergeStrategy: merge \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/YAMLConfiguration/config-O.yaml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/YAMLConfiguration/config-O.yaml deleted file mode 100644 index 051d41d76b..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/YAMLConfiguration/config-O.yaml +++ /dev/null @@ -1,8 +0,0 @@ - artifact: - name: - allowedChar: "a-zA-Z_0-9" - encoded: true - consumer: "appc,catalog" - _config: - namespace: YAMLConfig - mergeStrategy: override \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/YAMLConfiguration/config-U.yaml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/YAMLConfiguration/config-U.yaml deleted file mode 100644 index 8a9ab0e13e..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/YAMLConfiguration/config-U.yaml +++ /dev/null @@ -1,8 +0,0 @@ - artifact: - name: - minlength: 6 - maxsize: 1048 - extension: "pdf,tgz,xls" - _config: - namespace: YAMLConfig - mergeStrategy: union \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/YAMLConfiguration/config.yaml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/YAMLConfiguration/config.yaml deleted file mode 100644 index 706b22db5e..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/YAMLConfiguration/config.yaml +++ /dev/null @@ -1,27 +0,0 @@ -artifact: - name: - maxlength: 14 - allowedChar: "a-zA-Z" - allowedchar: "a-zA-Z" - #maxsize: "" - extension: - - - pdf - - - zip,xml - supportedEncryption: - - - Base64 - - - MD5 - status: - - - deleted - - - Deleted - persistLocation: "/opt/spool,${sys:user.home}/asdc" - jsonSchema: "@GeneratorList.json" - xmlSchema: "@${env:path}/myschema.json" - consumerAPPC: "${artifact.consumer}" -_config: - namespace: YAMLConfig \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/config-system.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/config-system.properties deleted file mode 100644 index cfe91e6c7d..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/config-system.properties +++ /dev/null @@ -1,22 +0,0 @@ -driverClassName=com.github.adejanovski.cassandra.jdbc.CassandraDriver -jdbcURL=jdbc:${dbname}://${dbhost}:${dbport}/${configdb} -dbuser= -dbpassword= -config.Table=configuration -config.monitor.Table=configuration_change -configKey=key -configValue=value -configNameColumn=name -configdb=dox -dbhost= -dbport=9042 -dbname=cassandra -createtablecql=create table if not exists ${configdb}.${config.Table} (name text\, key text\, value text\, PRIMARY KEY (name\, key)) with clustering order by (key asc) -createmonitoringtablecql=create table if not exists ${configdb}.${config.monitor.Table} (name text\, changed_when bigint\, key text\, old_value text\, new_value text\, PRIMARY KEY (name\, changed_when)) with clustering order by (changed_when desc) -insertconfigurationchangecql=insert into ${configdb}.${config.monitor.Table} (name\, changed_when\, key\, old_value\, new_value) values(?\, ?\, ?\, ?\, ?) -fetchkeysql=select ${configKey} from ${config.Table} where ${configNameColumn}=? -fetchlastchangecql=select changed_when from ${configdb}.${config.monitor.Table} where name=? limit 1 -fetchnamescql=select distinct name from ${configdb}.${config.Table} -config.size.max=100 -config.refresh.interval=30000 -event.fetch.delay=5000 \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/fallback/config-fallback-merge.xml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/fallback/config-fallback-merge.xml deleted file mode 100644 index 3595efd87b..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/fallback/config-fallback-merge.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - 28 - - 1048576 - gz,tgz - Base64 - deleted - - true - - - \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/fallback/config-fallback-override.json b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/fallback/config-fallback-override.json deleted file mode 100644 index dd6087b70c..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/fallback/config-fallback-override.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "artifact": { - "name": { "allowedChar": "a-zA-Z_0-9" }, - "encoded": "true", - "consumer": "appc,catalog" - } -} \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/fallback/config-fallback-union.yaml b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/fallback/config-fallback-union.yaml deleted file mode 100644 index 957b75d40a..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/fallback/config-fallback-union.yaml +++ /dev/null @@ -1,5 +0,0 @@ - artifact: - name: - minlength: 6 - maxsize: 1048 - extension: "pdf,tgz,xls" \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/fallback/config-fallback.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/fallback/config-fallback.properties deleted file mode 100644 index 7839839258..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/fallback/config-fallback.properties +++ /dev/null @@ -1,13 +0,0 @@ -artifact.name.maxlength=14 -#artifact.maxsize= -artifact.extension=pdf, zip, xml -artifact.supportedEncryption=Base64 -artifact.supportedEncryption=MD5 -artifact.name.allowedChar=a-zA-Z -artifact.name.allowedchar=a-zA-Z -artifact.status=deleted -artifact.status=Deleted -artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc -artifact.jsonSchema=@GeneratorList.json -artifact.xmlSchema=@${env:path}/myschema.json -artifact.consumerAPPC=${artifact.consumer} diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/java-properties/config-M.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/java-properties/config-M.properties deleted file mode 100644 index 8a571ebc89..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/java-properties/config-M.properties +++ /dev/null @@ -1,7 +0,0 @@ -artifact.name.maxlength=28 -artifact.maxsize=1048576 -artifact.extension=gz, tgz -artifact.supportedencryption=Base64 -artifact.mandatory.name=true -_config.namespace=javaProperties -_config.mergeStrategy=merge \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/java-properties/config-O.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/java-properties/config-O.properties deleted file mode 100644 index b27c67a78d..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/java-properties/config-O.properties +++ /dev/null @@ -1,5 +0,0 @@ -artifact.name.allowedChar=a-zA-Z_0-9 -artifact.encoded=true -artifact.consumer=appc, catalog -_config.namespace=javaProperties -_config.mergeStrategy=override \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/java-properties/config-U.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/java-properties/config-U.properties deleted file mode 100644 index 615f2a2093..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/java-properties/config-U.properties +++ /dev/null @@ -1,5 +0,0 @@ -artifact.maxsize=1048 -artifact.extension=pdf,tgz, xls -artifact.name.minlength=6 -_config.namespace=javaProperties -_config.mergeStrategy=union \ No newline at end of file diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/java-properties/config.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/java-properties/config.properties deleted file mode 100644 index d9051f6ec4..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/java-properties/config.properties +++ /dev/null @@ -1,14 +0,0 @@ -artifact.name.maxlength=14 -#artifact.maxsize= -artifact.extension=pdf, zip, xml -artifact.supportedEncryption=Base64 -artifact.supportedEncryption=MD5 -artifact.name.allowedChar=a-zA-Z -artifact.name.allowedchar=a-zA-Z -artifact.status=deleted -artifact.status=Deleted -artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc -artifact.jsonSchema=@GeneratorList.json -artifact.xmlSchema=@${env:path}/myschema.json -artifact.consumerAPPC=${artifact.consumer} -_config.namespace=javaProperties diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/multitenancy/config-at.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/multitenancy/config-at.properties deleted file mode 100644 index 3bc773369b..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/multitenancy/config-at.properties +++ /dev/null @@ -1,11 +0,0 @@ -artifact.name.maxlength=20 -#artifact.maxsize= -artifact.extension=pdf, zip, xml -artifact.supportedEncryption=Base64 -artifact.name.allowedChar=a-zA-Z -artifact.status=Deleted -artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc -artifact.jsonSchema=@GeneratorList.json -artifact.xmlSchema=@${env:path}/myschema.json -artifact.consumerAPPC=${artifact.consumer} -_config.namespace=OPENECOMP:tenancy diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/multitenancy/config-tf.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/multitenancy/config-tf.properties deleted file mode 100644 index 196bafe4e4..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/multitenancy/config-tf.properties +++ /dev/null @@ -1,10 +0,0 @@ -artifact.name.maxlength=30 -#artifact.maxsize= -artifact.extension=pdf, zip, xml -artifact.supportedEncryption=Base64 -artifact.name.allowedChar=a-zA-Z -artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc -artifact.jsonSchema=@GeneratorList.json -artifact.xmlSchema=@${env:path}/myschema.json -artifact.consumerAPPC=${artifact.consumer} -_config.namespace=Telefonica:tenancy diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/multitenancy/config-vf.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/multitenancy/config-vf.properties deleted file mode 100644 index 4c0c6ad897..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/multitenancy/config-vf.properties +++ /dev/null @@ -1,11 +0,0 @@ -artifact.name.maxlength=24 -#artifact.maxsize= -artifact.extension=pdf, zip, xml -artifact.supportedEncryption=Base64 -artifact.name.allowedChar=a-zA-Z -artifact.status=Deleted -artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc -artifact.jsonSchema=@GeneratorList.json -artifact.xmlSchema=@${env:path}/myschema.json -artifact.consumerAPPC=${artifact.consumer} -_config.namespace=Vodafone:tenancy diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/multitenancy/config.properties b/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/multitenancy/config.properties deleted file mode 100644 index 8ed2485dc2..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-test/src/test/resources/multitenancy/config.properties +++ /dev/null @@ -1,11 +0,0 @@ -artifact.name.maxlength=14 -#artifact.maxsize= -artifact.extension=pdf, zip, xml -artifact.supportedEncryption=Base64 -artifact.name.allowedChar=a-zA-Z -artifact.status=Deleted -artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc -artifact.jsonSchema=@GeneratorList.json -artifact.xmlSchema=@${env:path}/myschema.json -artifact.consumerAPPC=${artifact.consumer} -_config.namespace=tenancy diff --git a/common/openecomp-common-configuration-management/pom.xml b/common/openecomp-common-configuration-management/pom.xml deleted file mode 100644 index 24b8ded023..0000000000 --- a/common/openecomp-common-configuration-management/pom.xml +++ /dev/null @@ -1,30 +0,0 @@ - - 4.0.0 - - openecomp-common-configuration-management - org.openecomp.sdc.common - openecomp-common-configuration-management - pom - - - org.openecomp.sdc.common - openecomp-common-lib - 1.2.0-SNAPSHOT - .. - - - - openecomp-configuration-management-api - openecomp-configuration-management-core - openecomp-configuration-management-test - - - - - java.net - http://repo1.maven.org/maven2 - - - - diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/pom.xml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/pom.xml deleted file mode 100644 index ca8f6f8792..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/pom.xml +++ /dev/null @@ -1,115 +0,0 @@ - - 4.0.0 - - openecomp-sdc-artifact-generator-api - openecomp-sdc-artifact-generator-api - - - openecomp-common-lib - org.openecomp.sdc.common - 1.2.0-SNAPSHOT - ../../ - - - - - org.openecomp.sdc - openecomp-sdc-logging-api - ${project.version} - - - org.openecomp.sdc - openecomp-sdc-logging-core - ${project.version} - runtime - - - org.slf4j - slf4j-api - 1.7.10 - - - ch.qos.logback - logback-classic - ${logback.version} - provided - - - ch.qos.logback - logback-core - ${logback.version} - provided - - - com.fasterxml.jackson.core - jackson-databind - ${jackson.version} - - - com.fasterxml.jackson.dataformat - jackson-dataformat-yaml - ${jackson.version} - - - commons-codec - commons-codec - ${commons.codec.version} - - - org.reflections - reflections - ${org.reflections.version} - - - - - - - org.jvnet.jaxb2.maven2 - maven-jaxb2-plugin - ${mvn.jaxb2.version} - - - generate-sources - - generate - - - - - src/main/resources - org.openecomp.sdc.generator.aai.xml - target/generated-sources/custom/aai/xml - false - true - false - false - false - - aai_schema_v11.xsd - - true - - -Xannotate - - - - org.jvnet.jaxb2_commons - jaxb2-basics-annotate - 0.6.4 - - - - org.jvnet.jaxb2_commons - jaxb2-annotate-plugin-test-annox-annotations - 1.0.0 - - - - - - - - - diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/AaiModelGenerator.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/AaiModelGenerator.java deleted file mode 100644 index 4a1e781049..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/AaiModelGenerator.java +++ /dev/null @@ -1,68 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai; - -import static org.openecomp.sdc.generator.data.GeneratorConstants.ERROR_CATEGORY; -import static org.openecomp.sdc.generator.data.GeneratorConstants.ERROR_CODE; -import static org.openecomp.sdc.generator.data.GeneratorConstants.ERROR_DESCRIPTION; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_ERROR_CODE; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_ERROR_SERVICE_INSTANTIATION_FAILED; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_PARTNER_NAME; -import static org.openecomp.sdc.generator.data.GeneratorConstants.PARTNER_NAME; - -import org.openecomp.sdc.generator.aai.model.Resource; -import org.openecomp.sdc.generator.aai.model.Service; -import org.openecomp.sdc.generator.logging.CategoryLogLevel; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.slf4j.MDC; - -import java.io.StringWriter; - -public interface AaiModelGenerator { - - /** - * Gets instance. - * - * @return the instance - */ - public static AaiModelGenerator getInstance() { - Logger log = LoggerFactory.getLogger(AaiModelGenerator.class.getName()); - try { - return AaiModelGenerator.class.cast( - Class.forName("org.openecomp.sdc.generator.aai.AaiModelGeneratorImpl").newInstance()); - } catch (Exception exception) { - MDC.put(PARTNER_NAME, GENERATOR_PARTNER_NAME); - MDC.put(ERROR_CATEGORY, CategoryLogLevel.ERROR.name()); - MDC.put(ERROR_CODE, GENERATOR_ERROR_CODE); - MDC.put(ERROR_DESCRIPTION, GENERATOR_ERROR_SERVICE_INSTANTIATION_FAILED); - StringWriter sw = new StringWriter(); - log.error(sw.toString(), exception); - } - return null; - } - - public String generateModelFor(Service service); - - public String generateModelFor(Resource resource); - - -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/AllotedResource.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/AllotedResource.java deleted file mode 100644 index ef8555002f..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/AllotedResource.java +++ /dev/null @@ -1,29 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import org.openecomp.sdc.generator.aai.types.Cardinality; -import org.openecomp.sdc.generator.aai.types.Model; - -@Model(widget = Widget.Type.ALLOTTED_RESOURCE, cardinality = Cardinality.UNBOUNDED, - dataDeleteFlag = true) -public class AllotedResource extends Resource { -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/AllotedResourceWidget.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/AllotedResourceWidget.java deleted file mode 100644 index 0b0db794c4..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/AllotedResourceWidget.java +++ /dev/null @@ -1,32 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import org.openecomp.sdc.generator.aai.types.Cardinality; -import org.openecomp.sdc.generator.aai.types.ModelType; -import org.openecomp.sdc.generator.aai.types.ModelWidget; - - -@org.openecomp.sdc.generator.aai.types.Model(widget = Widget.Type.ALLOTTED_RESOURCE, cardinality - = Cardinality.UNBOUNDED, dataDeleteFlag = true) -@ModelWidget(type = ModelType.WIDGET, name = "allotted-resource") -public class AllotedResourceWidget extends ResourceWidget { -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/FlavorWidget.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/FlavorWidget.java deleted file mode 100644 index 0cb76ae2b5..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/FlavorWidget.java +++ /dev/null @@ -1,32 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import org.openecomp.sdc.generator.aai.types.Cardinality; -import org.openecomp.sdc.generator.aai.types.Model; -import org.openecomp.sdc.generator.aai.types.ModelType; -import org.openecomp.sdc.generator.aai.types.ModelWidget; - -@Model(widget = Widget.Type.FLAVOR, cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = false) -@ModelWidget(type = ModelType.WIDGET, name = "flavor") -public class FlavorWidget extends ResourceWidget { - -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/ImageWidget.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/ImageWidget.java deleted file mode 100644 index cb514bcc8f..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/ImageWidget.java +++ /dev/null @@ -1,33 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import org.openecomp.sdc.generator.aai.types.Cardinality; -import org.openecomp.sdc.generator.aai.types.Model; -import org.openecomp.sdc.generator.aai.types.ModelType; -import org.openecomp.sdc.generator.aai.types.ModelWidget; - -@Model(widget = Widget.Type.IMAGE, cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = false) -@ModelWidget(type = ModelType.WIDGET, name = "image") -public class ImageWidget extends ResourceWidget { - -} - diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/L3Network.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/L3Network.java deleted file mode 100644 index 3a4c564668..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/L3Network.java +++ /dev/null @@ -1,29 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import org.openecomp.sdc.generator.aai.types.Cardinality; -import org.openecomp.sdc.generator.aai.types.Model; - -@org.openecomp.sdc.generator.aai.types.Model(widget = Widget.Type.L3_NET, cardinality = Cardinality - .UNBOUNDED, dataDeleteFlag = false) -public class L3Network extends Resource{ -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/L3NetworkWidget.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/L3NetworkWidget.java deleted file mode 100644 index 67414b4ed8..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/L3NetworkWidget.java +++ /dev/null @@ -1,33 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import org.openecomp.sdc.generator.aai.types.Cardinality; -import org.openecomp.sdc.generator.aai.types.ModelType; -import org.openecomp.sdc.generator.aai.types.ModelWidget; - -@org.openecomp.sdc.generator.aai.types.Model(widget = Widget.Type.L3_NET, - cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) -@ModelWidget(type = ModelType.WIDGET, name = "l3-network") -public class L3NetworkWidget extends Widget { - -} - diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/LIntfWidget.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/LIntfWidget.java deleted file mode 100644 index 4aa6cd29aa..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/LIntfWidget.java +++ /dev/null @@ -1,32 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import org.openecomp.sdc.generator.aai.types.Cardinality; -import org.openecomp.sdc.generator.aai.types.Model; -import org.openecomp.sdc.generator.aai.types.ModelType; -import org.openecomp.sdc.generator.aai.types.ModelWidget; - -@Model(widget = Widget.Type.LINT, cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) -@ModelWidget(type = ModelType.WIDGET, name = "l-interface") -public class LIntfWidget extends ResourceWidget { - -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Model.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Model.java deleted file mode 100644 index c55abb36c2..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Model.java +++ /dev/null @@ -1,259 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import org.openecomp.sdc.generator.aai.types.Cardinality; -import org.openecomp.sdc.generator.aai.types.ModelType; -import org.openecomp.sdc.generator.data.GeneratorConstants; -import org.openecomp.sdc.generator.error.IllegalAccessException; - -import java.util.HashSet; -import java.util.Iterator; -import java.util.Map; -import java.util.Set; - -public abstract class Model { - - protected Set resources = new HashSet<>(); - protected Set widgets = new HashSet<>(); - private String modelId; - private String modelName; - private ModelType modelType; - private String modelVersion; - private String modelNameVersionId; - private String modelDescription; - - /** - * Gets model for. - * - * @param toscaType the tosca type - * @return the model for - */ - public static Model getModelFor(String toscaType) { - - Model modelToBeReturned = null; - while (toscaType != null && toscaType.lastIndexOf(".") != -1 && modelToBeReturned == null) { - - switch (toscaType) { - - case "org.openecomp.resource.vf.allottedResource": - modelToBeReturned = new AllotedResource(); - break; - case "org.openecomp.resource.vfc.AllottedResource": - modelToBeReturned = new ProvidingService(); - break; - case "org.openecomp.resource.vfc": - modelToBeReturned = new VServerWidget(); - break; - case "org.openecomp.resource.cp": - case "org.openecomp.cp": - modelToBeReturned = new LIntfWidget(); - break; - case "org.openecomp.resource.vl": - modelToBeReturned = new L3Network(); - break; - case "org.openecomp.resource.vf": - modelToBeReturned = new VirtualFunction(); - break; - case "org.openecomp.groups.vfmodule": - case "org.openecomp.groups.VfModule": - modelToBeReturned = new VfModule(); - break; - case "org.openecomp.resource.vfc.nodes.heat.cinder": - modelToBeReturned = new VolumeWidget(); - break; - default: - modelToBeReturned = null; - break; - } - - toscaType = toscaType.substring(0, toscaType.lastIndexOf(".")); - } - - return modelToBeReturned; - } - - public abstract boolean addResource(Resource resource); - - public abstract boolean addWidget(Widget resource); - - /** - * Gets widget version id. - * - * @return the widget version id - */ - public String getWidgetId() { - org.openecomp.sdc.generator.aai.types.Model model = - this.getClass().getAnnotation(org.openecomp.sdc.generator.aai.types.Model.class); - return Widget.getWidget(model.widget()).getId(); - } - - /** - * Gets invariant id. - * - * @return the invariant id - */ - public String getWidgetInvariantId() { - org.openecomp.sdc.generator.aai.types.Model model = - this.getClass().getAnnotation(org.openecomp.sdc.generator.aai.types.Model.class); - return Widget.getWidget(model.widget()).getWidgetId(); - } - - /** - * Gets delete flag. - * - * @return the delete flag - */ - public boolean getDeleteFlag() { - org.openecomp.sdc.generator.aai.types.Model model = - this.getClass().getAnnotation(org.openecomp.sdc.generator.aai.types.Model.class); - return model.dataDeleteFlag(); - } - - /** - * Gets cardinality. - * - * @return the cardinality - */ - public Cardinality getCardinality() { - org.openecomp.sdc.generator.aai.types.Model model = - this.getClass().getAnnotation(org.openecomp.sdc.generator.aai.types.Model.class); - return model.cardinality(); - } - - public abstract Widget.Type getWidgetType(); - - public String getModelId() { - checkSupported(); - return modelId; - } - - /** - * Gets model type. - * - * @return the model type - */ - public ModelType getModelType() { - //checkSupported(); - if (this instanceof Service) { - return ModelType.SERVICE; - } else if (this instanceof Resource) { - return ModelType.RESOURCE; - } else if (this instanceof Widget) { - return ModelType.WIDGET; - } else { - return null; - } - } - - public String getModelName() { - //checkSupported(); - return modelName; - } - - public String getModelVersion() { - //checkSupported(); - return modelVersion; - } - - public String getModelNameVersionId() { - checkSupported(); - return modelNameVersionId; - } - - public String getModelDescription() { - //checkSupported(); - return modelDescription; - } - - /** - * Populate model identification information. - * - * @param modelIdentInfo the model ident info - */ - public void populateModelIdentificationInformation(Map modelIdentInfo) { - Iterator iter = modelIdentInfo.keySet().iterator(); - String property; - while (iter.hasNext()) { - switch (property = iter.next()) { - - case "vfModuleModelInvariantUUID": - case "serviceInvariantUUID": - case "resourceInvariantUUID": - case "invariantUUID": - case "providing_service_invariant_uuid": - modelId = modelIdentInfo.get(property); - break; - case "vfModuleModelUUID": - case "resourceUUID": - case "serviceUUID": - case "UUID": - case "providing_service_uuid": - modelNameVersionId = modelIdentInfo.get(property); - break; - case "vfModuleModelVersion": - case "serviceVersion": - case "resourceversion": - case "version": - modelVersion = modelIdentInfo.get(property); - break; - case "vfModuleModelName": - case "serviceName": - case "resourceName": - case "name": - modelName = modelIdentInfo.get(property); - break; - case "serviceDescription": - case "resourceDescription": - case "vf_module_description": - case "description": - modelDescription = modelIdentInfo.get(property); - break; - case "providing_service_name": - modelName = modelIdentInfo.get(property); - modelDescription = modelIdentInfo.get(property); - break; - default: - break; - } - property = null; - } - - - - } - - public Set getResources() { - return resources; - } - - public Set getWidgets() { - return widgets; - } - - private void checkSupported() throws IllegalAccessException { - if (this instanceof Widget) { - throw new IllegalAccessException(GeneratorConstants - .GENERATOR_AAI_ERROR_UNSUPPORTED_WIDGET_OPERATION); - } - } - -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/OamNetwork.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/OamNetwork.java deleted file mode 100644 index f51fb529fb..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/OamNetwork.java +++ /dev/null @@ -1,32 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import org.openecomp.sdc.generator.aai.types.Cardinality; -import org.openecomp.sdc.generator.aai.types.Model; -import org.openecomp.sdc.generator.aai.types.ModelType; -import org.openecomp.sdc.generator.aai.types.ModelWidget; - -@Model(widget = Widget.Type.L3_NET, cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) -@ModelWidget(type = ModelType.WIDGET, name = "oam-network") -public class OamNetwork extends Widget { -} - diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/ProvidingService.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/ProvidingService.java deleted file mode 100644 index 1eb4095f45..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/ProvidingService.java +++ /dev/null @@ -1,29 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import org.openecomp.sdc.generator.aai.types.Cardinality; - -@org.openecomp.sdc.generator.aai.types.Model(widget = Widget.Type.ALLOTTED_RESOURCE, cardinality = Cardinality - .UNBOUNDED, - dataDeleteFlag = false) -public class ProvidingService extends Resource { -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Resource.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Resource.java deleted file mode 100644 index cc95706d9f..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Resource.java +++ /dev/null @@ -1,52 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -public class Resource extends Model { - - @Override - public int hashCode() { - return getModelNameVersionId().hashCode(); - } - - @Override - public boolean equals(Object obj) { - if (obj instanceof Resource) { - return getModelNameVersionId().equals(((Resource) obj).getModelNameVersionId()); - } - return false; - } - - public boolean addResource(Resource resource) { - return resources.add(resource); - } - - public boolean addWidget(Widget widget) { - return widgets.add(widget); - } - - @Override - public Widget.Type getWidgetType() { - org.openecomp.sdc.generator.aai.types.Model model = - this.getClass().getAnnotation(org.openecomp.sdc.generator.aai.types.Model.class); - return model.widget(); - } -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/ResourceWidget.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/ResourceWidget.java deleted file mode 100644 index 26ff95dd7a..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/ResourceWidget.java +++ /dev/null @@ -1,26 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -public class ResourceWidget extends Widget { - -} - diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Service.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Service.java deleted file mode 100644 index 8b3b7f2c60..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Service.java +++ /dev/null @@ -1,43 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import org.openecomp.sdc.generator.aai.types.Cardinality; - -@org.openecomp.sdc.generator.aai.types.Model(widget = Widget.Type.SERVICE, - cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) -public class Service extends Model { - - public boolean addResource(Resource resource) { - return resources.add(resource); - } - - public boolean addWidget(Widget widget) { - return widgets.add(widget); - } - - @Override - public Widget.Type getWidgetType() { - return null; - } - -} - diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/ServiceWidget.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/ServiceWidget.java deleted file mode 100644 index 58ae7b6e63..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/ServiceWidget.java +++ /dev/null @@ -1,30 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import org.openecomp.sdc.generator.aai.types.ModelType; -import org.openecomp.sdc.generator.aai.types.ModelWidget; - -@ModelWidget(type = ModelType.WIDGET, name = "service-instance") -public class ServiceWidget extends Widget { - -} - diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/TenantWidget.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/TenantWidget.java deleted file mode 100644 index 4fc6f6e8af..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/TenantWidget.java +++ /dev/null @@ -1,33 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import org.openecomp.sdc.generator.aai.types.Cardinality; -import org.openecomp.sdc.generator.aai.types.Model; -import org.openecomp.sdc.generator.aai.types.ModelType; -import org.openecomp.sdc.generator.aai.types.ModelWidget; - -@Model(widget = Widget.Type.TENANT, cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = false) -@ModelWidget(type = ModelType.WIDGET, name = "tenant") -public class TenantWidget extends Widget { - -} - diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/TunnelXconnectWidget.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/TunnelXconnectWidget.java deleted file mode 100644 index 87fd514fa2..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/TunnelXconnectWidget.java +++ /dev/null @@ -1,31 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import org.openecomp.sdc.generator.aai.types.Cardinality; -import org.openecomp.sdc.generator.aai.types.ModelType; -import org.openecomp.sdc.generator.aai.types.ModelWidget; - -@org.openecomp.sdc.generator.aai.types.Model(widget = Widget.Type.TUNNEL_XCONNECT, - cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) -@ModelWidget(type = ModelType.WIDGET, name = "tunnel-xconnect") -public class TunnelXconnectWidget extends Widget { -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VServerWidget.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VServerWidget.java deleted file mode 100644 index 58dd677a18..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VServerWidget.java +++ /dev/null @@ -1,46 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import org.openecomp.sdc.generator.aai.types.Cardinality; -import org.openecomp.sdc.generator.aai.types.Model; -import org.openecomp.sdc.generator.aai.types.ModelType; -import org.openecomp.sdc.generator.aai.types.ModelWidget; - -@Model(widget = Widget.Type.VSERVER, cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) -@ModelWidget(type = ModelType.WIDGET, name = "vserver") -public class VServerWidget extends Widget { - - /** - * Instantiates a new V server widget. - */ - public VServerWidget() { - addWidget(new FlavorWidget()); - addWidget(new ImageWidget()); - addWidget(new TenantWidget()); - addWidget(new VfcWidget()); - } - - public boolean addWidget(Widget widget) { - return widgets.add(widget); - } - -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VfModule.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VfModule.java deleted file mode 100644 index 594cfedcbc..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VfModule.java +++ /dev/null @@ -1,81 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import org.openecomp.sdc.generator.aai.types.Cardinality; -import org.openecomp.sdc.generator.aai.types.Model; - -import java.util.List; - -@Model(widget = Widget.Type.VFMODULE, cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) -public class VfModule extends Resource { - - Widget vserver = null; - boolean addlintf = false; - boolean addvolume = false; - - List members; - - public void setMembers(List members) { - this.members = members; - } - - /** - * Adds Widget. - * - * @param widget the widget - * @return the boolean - */ - public boolean addWidget(Widget widget) { - if (widget.memberOf(members)) { - if (vserver == null && widget.getId().equals(new VServerWidget().getId())) { - vserver = widget; - if (addlintf) { - vserver.addWidget(new LIntfWidget()); - } - if (addvolume) { - vserver.addWidget(new VolumeWidget()); - } - } else if (widget.getId().equals(new LIntfWidget().getId())) { - if (vserver != null) { - vserver.addWidget(widget); - return true; - } else { - addlintf = true; - } - return false; - } else if (widget.getId().equals(new VolumeWidget().getId())) { - if (vserver != null) { - vserver.addWidget(widget); - } else { - addvolume = true; - } - return true; - } - if (widget.getId().equals(new OamNetwork().getId())) { - return false; - } - return widgets.add(widget); - } - return false; - } - -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VfModuleWidget.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VfModuleWidget.java deleted file mode 100644 index 3641ba9171..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VfModuleWidget.java +++ /dev/null @@ -1,33 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import org.openecomp.sdc.generator.aai.types.Cardinality; -import org.openecomp.sdc.generator.aai.types.ModelType; -import org.openecomp.sdc.generator.aai.types.ModelWidget; - -@org.openecomp.sdc.generator.aai.types.Model(widget = Widget.Type.VFMODULE, - cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) -@ModelWidget(type = ModelType.WIDGET, name = "vf-module") -public class VfModuleWidget extends Widget { - -} - diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VfWidget.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VfWidget.java deleted file mode 100644 index a2fde75b20..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VfWidget.java +++ /dev/null @@ -1,33 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import org.openecomp.sdc.generator.aai.types.Cardinality; -import org.openecomp.sdc.generator.aai.types.ModelType; -import org.openecomp.sdc.generator.aai.types.ModelWidget; - -@org.openecomp.sdc.generator.aai.types.Model(widget = Widget.Type.VF, - cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) -@ModelWidget(type = ModelType.WIDGET, name = "generic-vnf") -public class VfWidget extends ResourceWidget { - -} - diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VfcWidget.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VfcWidget.java deleted file mode 100644 index 41a07ce1de..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VfcWidget.java +++ /dev/null @@ -1,33 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import org.openecomp.sdc.generator.aai.types.Cardinality; -import org.openecomp.sdc.generator.aai.types.ModelType; -import org.openecomp.sdc.generator.aai.types.ModelWidget; - -@org.openecomp.sdc.generator.aai.types.Model(widget = Widget.Type.VFC, - cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) -@ModelWidget(type = ModelType.WIDGET, name = "vnfc") -public class VfcWidget extends ResourceWidget { - -} - diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VirtualFunction.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VirtualFunction.java deleted file mode 100644 index ec2ca38cbf..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VirtualFunction.java +++ /dev/null @@ -1,30 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import org.openecomp.sdc.generator.aai.types.Cardinality; -import org.openecomp.sdc.generator.aai.types.Model; - -@Model(widget = Widget.Type.VF, cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) -public class VirtualFunction extends Resource { - -} - diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VolumeGroupWidget.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VolumeGroupWidget.java deleted file mode 100644 index c253ea9058..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VolumeGroupWidget.java +++ /dev/null @@ -1,33 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import org.openecomp.sdc.generator.aai.types.Cardinality; -import org.openecomp.sdc.generator.aai.types.ModelType; -import org.openecomp.sdc.generator.aai.types.ModelWidget; - -@org.openecomp.sdc.generator.aai.types.Model(widget = Widget.Type.VOLUME_GROUP, - cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) -@ModelWidget(type = ModelType.WIDGET, name = "volume-group") -public class VolumeGroupWidget extends Widget { - -} - diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VolumeWidget.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VolumeWidget.java deleted file mode 100644 index ddf840a822..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/VolumeWidget.java +++ /dev/null @@ -1,33 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import org.openecomp.sdc.generator.aai.types.Cardinality; -import org.openecomp.sdc.generator.aai.types.Model; -import org.openecomp.sdc.generator.aai.types.ModelType; -import org.openecomp.sdc.generator.aai.types.ModelWidget; - -@Model(widget = Widget.Type.VOLUME, cardinality = Cardinality.UNBOUNDED, dataDeleteFlag = true) -@ModelWidget(type = ModelType.WIDGET, name = "volume") -public class VolumeWidget extends ResourceWidget { - -} - diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Widget.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Widget.java deleted file mode 100644 index 6220519a3f..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Widget.java +++ /dev/null @@ -1,196 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.model; - -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_CONFIGLPROP_NOT_FOUND; - -import org.openecomp.sdc.generator.aai.types.ModelType; -import org.openecomp.sdc.generator.aai.types.ModelWidget; -import org.openecomp.sdc.generator.data.ArtifactType; -import org.openecomp.sdc.generator.data.GeneratorConstants; -import org.openecomp.sdc.generator.data.WidgetConfigurationUtil; -import org.openecomp.sdc.generator.error.IllegalAccessException; - -import java.util.Collections; -import java.util.HashSet; -import java.util.List; -import java.util.Properties; -import java.util.Set; - -public abstract class Widget extends Model { - - private Set keys = new HashSet<>(); - - /** - * Gets widget. - * - * @param type the type - * @return the widget - */ - public static Widget getWidget(Type type) { - - switch (type) { - case SERVICE: - return new ServiceWidget(); - case VF: - return new VfWidget(); - case VFC: - return new VfcWidget(); - case VSERVER: - return new VServerWidget(); - case VOLUME: - return new VolumeWidget(); - case FLAVOR: - return new FlavorWidget(); - case TENANT: - return new TenantWidget(); - case VOLUME_GROUP: - return new VolumeGroupWidget(); - case LINT: - return new LIntfWidget(); - case L3_NET: - return new L3NetworkWidget(); - case VFMODULE: - return new VfModuleWidget(); - case IMAGE: - return new ImageWidget(); - case OAM_NETWORK: - return new OamNetwork(); - case ALLOTTED_RESOURCE: - return new AllotedResourceWidget(); - case TUNNEL_XCONNECT: - return new TunnelXconnectWidget(); - default: - return null; - } - - } - - /** - * Gets id. - * - * @return the id - */ - public String getId() { - Properties properties = WidgetConfigurationUtil.getConfig(); - String id = properties.getProperty(ArtifactType.AAI.name() + ".model-version-id." + getName()); - if (id == null) { - throw new IllegalArgumentException(String.format(GENERATOR_AAI_CONFIGLPROP_NOT_FOUND, - ArtifactType.AAI.name() + ".model-version-id." + getName())); - } - return id; - } - - public ModelType getType() { - ModelWidget widgetModel = this.getClass().getAnnotation(ModelWidget.class); - return widgetModel.type(); - } - - public String getName() { - ModelWidget widgetModel = this.getClass().getAnnotation(ModelWidget.class); - return widgetModel.name(); - } - - /** - * Get Widget Id from properties file. - * @return - Widget Id - */ - public String getWidgetId() { - Properties properties = WidgetConfigurationUtil.getConfig(); - String id = properties.getProperty(ArtifactType.AAI.name() + ".model-invariant-id." - + getName()); - if (id == null) { - throw new IllegalArgumentException(String.format(GENERATOR_AAI_CONFIGLPROP_NOT_FOUND, - ArtifactType.AAI.name() + ".model-invariant-id." + getName())); - } - return id; - } - - public int hashCode() { - return getId().hashCode(); - } - - @Override - public Type getWidgetType() { - return null; - } - - /** - * Equals. - * - * @param obj Object - * @return the boolean - */ - public boolean equals(Object obj) { - if (obj instanceof Widget) { - if (getId().equals(((Widget) obj).getId())) { - ((Widget) obj).keys.addAll(this.keys); - return true; - } - return false; - } else { - return false; - } - } - - public void addKey(String key) { - this.keys.add(key); - } - - /** - * Member of boolean. - * - * @param keys the keys - * @return the boolean - */ - public boolean memberOf(List keys) { - if (keys == null) { - return false; - } - return !Collections.disjoint(this.keys, keys); - } - - /** - * All instances used boolean. - * - * @param collection the collection - * @return the boolean - */ - public boolean allInstancesUsed(Set collection) { - Set keyCopy = new HashSet<>(keys); - keyCopy.removeAll(collection); - return keyCopy.isEmpty(); - } - - public boolean addResource(Resource resource) { - throw new IllegalAccessException(GeneratorConstants - .GENERATOR_AAI_ERROR_UNSUPPORTED_WIDGET_OPERATION); - } - - public boolean addWidget(Widget widget) { - return true; - } - - public enum Type { - SERVICE, VF, VFC, VSERVER, VOLUME, FLAVOR, TENANT, VOLUME_GROUP, LINT, L3_NET, VFMODULE, IMAGE, - OAM_NETWORK,ALLOTTED_RESOURCE,TUNNEL_XCONNECT - } -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/CapabilityAssignment.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/CapabilityAssignment.java deleted file mode 100644 index 919d5176db..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/CapabilityAssignment.java +++ /dev/null @@ -1,45 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.tosca; - -import java.util.Map; - -public class CapabilityAssignment { - - private Map properties; - private Map attributes; - - public Map getProperties() { - return properties; - } - - public void setProperties(Map properties) { - this.properties = properties; - } - - public Map getAttributes() { - return attributes; - } - - public void setAttributes(Map attributes) { - this.attributes = attributes; - } -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/GroupDefinition.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/GroupDefinition.java deleted file mode 100644 index 7457929bf4..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/GroupDefinition.java +++ /dev/null @@ -1,73 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.tosca; - -import java.util.List; -import java.util.Map; - -public class GroupDefinition { - - private String type; - private String description; - private Map properties; - private List members; - private Map metadata; - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Map getProperties() { - return properties; - } - - public void setProperties(Map properties) { - this.properties = properties; - } - - public List getMembers() { - return members; - } - - public void setMembers(List members) { - this.members = members; - } - - public Map getMetadata() { - return metadata; - } - - public void setMetadata(Map metadata) { - this.metadata = metadata; - } -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/NodeTemplate.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/NodeTemplate.java deleted file mode 100644 index 330020ba22..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/NodeTemplate.java +++ /dev/null @@ -1,82 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.tosca; - -import java.util.List; -import java.util.Map; - -public class NodeTemplate { - - private String type; - private String description; - private Map metadata; - private Map properties; - private List> requirements; - private Map capabilities; - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Map getProperties() { - return properties; - } - - public void setProperties(Map properties) { - this.properties = properties; - } - - public List> getRequirements() { - return requirements; - } - - public void setRequirements(List> requirements) { - this.requirements = requirements; - } - - public Map getCapabilities() { - return capabilities; - } - - public void setCapabilities(Map capabilities) { - this.capabilities = capabilities; - } - - public Map getMetadata() { - return metadata; - } - - public void setMetadata(Map metadata) { - this.metadata = metadata; - } -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/RequirementAssignment.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/RequirementAssignment.java deleted file mode 100644 index 38c89827bc..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/RequirementAssignment.java +++ /dev/null @@ -1,53 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.tosca; - -public class RequirementAssignment { - - private String capability; - private String node; - private String relationship; - - public String getCapability() { - return capability; - } - - public void setCapability(String capability) { - this.capability = capability; - } - - public String getNode() { - return node; - } - - public void setNode(String node) { - this.node = node; - } - - public String getRelationship() { - return relationship; - } - - public void setRelationship(String relationship) { - this.relationship = relationship; - } - -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/TopologyTemplate.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/TopologyTemplate.java deleted file mode 100644 index 572e105133..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/TopologyTemplate.java +++ /dev/null @@ -1,71 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.tosca; - -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -public class TopologyTemplate { - - private String description; - private Map node_templates; - private Map groups; - - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Map getGroups() { - return groups; - } - - public void setGroups(Map groups) { - this.groups = groups; - } - - public Map getNode_templates() { - return node_templates; - } - - public void setNode_templates(Map node_templates) { - this.node_templates = node_templates; - } - - /** - * Add group. - * - * @param groupKey the group key - * @param groupDefinition the group definition - */ - public void addGroup(String groupKey, GroupDefinition groupDefinition) { - if (Objects.isNull(this.groups)) { - this.groups = new HashMap<>(); - } - this.groups.put(groupKey, groupDefinition); - } - -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/ToscaTemplate.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/ToscaTemplate.java deleted file mode 100644 index bd045b89c2..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/tosca/ToscaTemplate.java +++ /dev/null @@ -1,82 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.tosca; - -import java.util.Map; - -public class ToscaTemplate { - private String toscaDefinitionsVersion; - private Map metadata; - private String description; - private TopologyTemplate topology_template; - - public String getToscaDefinitionsVersion() { - return toscaDefinitionsVersion; - } - - public void setToscaDefinitionsVersion(String toscaDefinitionsVersion) { - this.toscaDefinitionsVersion = toscaDefinitionsVersion; - } - - public Map getMetadata() { - return metadata; - } - - public void setMetadata(Map metadata) { - this.metadata = metadata; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public TopologyTemplate getTopology_template() { - return topology_template; - } - - public void setTopology_template(TopologyTemplate topology_template) { - this.topology_template = topology_template; - } - - /** - * Is Service. - * - * @return the boolean - */ - public boolean isService() { - return metadata.containsKey("serviceUUID") - || ("Service".equalsIgnoreCase(metadata.get("Type")) - || ("Service".equalsIgnoreCase(metadata.get("type")))); - } - - public String getModelId() { - return metadata.get("invariantUUID"); - } - - public String getModelVersionId() { - return metadata.get("UUID"); - } - -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/types/Cardinality.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/types/Cardinality.java deleted file mode 100644 index 4aa967b730..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/types/Cardinality.java +++ /dev/null @@ -1,26 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.types; - -public enum Cardinality { - - UNBOUNDED -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/types/Model.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/types/Model.java deleted file mode 100644 index 5fdadf40b3..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/types/Model.java +++ /dev/null @@ -1,55 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.types; - -import org.openecomp.sdc.generator.aai.model.Widget; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -@Target(ElementType.TYPE) -@Retention(RetentionPolicy.RUNTIME) -public @interface Model { - - /** - * Widget widget . type. - * - * @return the widget . type - */ - public Widget.Type widget(); - - /** - * Data delete flag boolean. - * - * @return the boolean - */ - public boolean dataDeleteFlag(); - - /** - * Cardinality cardinality. - * - * @return the cardinality - */ - public Cardinality cardinality(); - -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/types/ModelType.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/types/ModelType.java deleted file mode 100644 index e607b6a705..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/types/ModelType.java +++ /dev/null @@ -1,47 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.types; - -public enum ModelType { - SERVICE, RESOURCE, WIDGET; - - /** - * Gets model type. - * - * @param modelType the model type - * @return the model type - */ - public static ModelType getModelType(String modelType) { - if (modelType != null) { - switch (modelType.toLowerCase()) { - case "service": - return SERVICE; - case "resource": - return RESOURCE; - case "widget": - return WIDGET; - default: - return null; - } - } - return null; - } -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/types/ModelWidget.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/types/ModelWidget.java deleted file mode 100644 index 71dbd5ef46..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/types/ModelWidget.java +++ /dev/null @@ -1,46 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai.types; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -@Target(ElementType.TYPE) -@Retention(RetentionPolicy.RUNTIME) -public @interface ModelWidget { - - /** - * Type model type. - * - * @return the model type - */ - public ModelType type(); - - /** - * Name string. - * - * @return the string - */ - public String name(); - -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/AdditionalParams.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/AdditionalParams.java deleted file mode 100644 index 2ec90cee5f..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/AdditionalParams.java +++ /dev/null @@ -1,39 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.data; - - -public enum AdditionalParams { - ServiceVersion("serviceVersion"); - - private String name; - - AdditionalParams(String name) { - this.name = name; - } - - public String getName() { - return name; - } -} - - - diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/Artifact.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/Artifact.java deleted file mode 100644 index a6fd487558..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/Artifact.java +++ /dev/null @@ -1,96 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.data; - -public class Artifact { - - String name; - String type; - String groupType; - String description; - String label; - String version; - String checksum; - byte[] payload; - - /** - * Instantiates a new Artifact. - * - * @param type the type - * @param groupType the group type - * @param checksum the checksum - * @param payload the payload - */ - public Artifact(String type, String groupType, String checksum, byte[] payload) { - this.type = type; - this.groupType = groupType; - this.checksum = checksum; - this.payload = payload; - } - - public byte[] getPayload() { - return payload; - } - - public String getChecksum() { - return checksum; - } - - public String getType() { - return type; - } - - public String getGroupType() { - return groupType; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getLabel() { - return label; - } - - public void setLabel(String label) { - this.label = label; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/ArtifactType.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/ArtifactType.java deleted file mode 100644 index d6585c1e55..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/ArtifactType.java +++ /dev/null @@ -1,27 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.data; - -public enum ArtifactType { - OTHER, - AAI, - MODEL_INVENTORY_PROFILE -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/GenerationData.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/GenerationData.java deleted file mode 100644 index 4c17924162..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/GenerationData.java +++ /dev/null @@ -1,70 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.data; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class GenerationData { - - List resultData = new ArrayList<>(); - Map> errorData = new HashMap<>(); - - public void add(List resultData, Map> errorData) { - this.resultData.addAll(resultData); - this.errorData.putAll(errorData); - } - - - public void add(Artifact generatedArtifact) { - resultData.add(generatedArtifact); - } - - /** - * Add. - * - * @param generatorId the generator id - * @param errorCode the error code - */ - public void add(String generatorId, String errorCode) { - List errorIds; - if ((errorIds = errorData.get(generatorId)) == null) { - errorIds = new ArrayList<>(); - errorData.put(generatorId, errorIds); - } - errorIds.add(errorCode); - } - - public void add(GenerationData generationData) { - this.resultData.addAll(generationData.resultData); - this.errorData.putAll(generationData.errorData); - } - - public List getResultData() { - return resultData; - } - - public Map> getErrorData() { - return errorData; - } -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/GeneratorConfiguration.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/GeneratorConfiguration.java deleted file mode 100644 index 7a6a897761..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/GeneratorConfiguration.java +++ /dev/null @@ -1,36 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.data; - -import java.util.List; - -public class GeneratorConfiguration { - - private List artifactTypes = null; - - public List getArtifactTypes() { - return artifactTypes; - } - - public void setArtifactTypes(List artifactTypes) { - this.artifactTypes = artifactTypes; - } -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/GeneratorConstants.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/GeneratorConstants.java deleted file mode 100644 index b606e0d86a..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/GeneratorConstants.java +++ /dev/null @@ -1,129 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.data; - -public class GeneratorConstants { - - public static final String GENERATOR_AAI_GENERATED_ARTIFACT_EXTENSION = "xml"; - - //Error codes - public static final String GENERATOR_INVOCATION_ERROR_CODE = - "ARTIFACT_GENERATOR_INVOCATION_ERROR"; - - - //Error Constants - public static final String GENERATOR_ERROR_INVALID_CLIENT_CONFIGURATION = - "Invalid Client Configuration"; - public static final String GENERATOR_ERROR_ARTIFACT_GENERATION_FAILED = - "Unable to generate artifacts for the provided input"; - public static final String GENERATOR_ERROR_SERVICE_INSTANTIATION_FAILED = - "Artifact Generation Service Instantiation failed"; - - //AAI Generator Error Messages - public static final String GENERATOR_AAI_ERROR_CHECKSUM_MISMATCH = - "Checksum Mismatch for file : %s"; - public static final String GENERATOR_AAI_ERROR_INVALID_TOSCA = - "Invalid format for Tosca YML : %s"; - public static final String GENERATOR_AAI_ERROR_MANDATORY_METADATA_DEFINITION = - "Invalid Service/Resource definition mandatory attribute <%s> missing in Artifact: <%s>"; - public static final String GENERATOR_AAI_ERROR_INVALID_ID = - "Invalid value for mandatory attribute <%s> in Artifact: <%s>"; - public static final String GENERATOR_AAI_ERROR_UNSUPPORTED_WIDGET_OPERATION = - "Operation Not Supported for Widgets"; - public static final String GENERATOR_AAI_ERROR_MISSING_SERVICE_TOSCA = - "Service tosca missing from list of input artifacts"; - public static final String GENERATOR_AAI_ERROR_NULL_RESOURCE_VERSION_IN_SERVICE_TOSCA = - "Invalid Service definition mandatory attribute version missing for resource with UUID: <%s>"; - - public static final String GENERATOR_AAI_ERROR_INVALID_RESOURCE_VERSION_IN_SERVICE_TOSCA = - "Cannot generate artifacts. Invalid Resource version in Service tosca for resource with " - + "UUID: " - + "<%s>"; - public static final String GENERATOR_AAI_ERROR_MISSING_RESOURCE_TOSCA = - "Cannot generate artifacts. Resource Tosca missing for resource with UUID: <%s>"; - - public static final String GENERATOR_AAI_ERROR_MISSING_SERVICE_VERSION = - "Cannot generate artifacts. Service version is not specified"; - - public static final String GENERATOR_AAI_INVALID_SERVICE_VERSION = - "Cannot generate artifacts. Service version is incorrect"; - - //Logging constants - public static final String REQUEST_ID = "uuid"; - public static final String SERVICE_INSTANCE_ID = "serviceInstanceID"; - public static final String PARTNER_NAME = "userId"; - public static final String SERVICE_NAME = "ServiceName"; - public static final String INSTANCE_UUID = "InstanceUUID"; - public static final String REMOTE_HOST = "RemoteHost"; - public static final String CLIENT_IP = "ClientIP"; - public static final String CATEGORY_LOG_LEVEL = "level"; - public static final String STATUS_CODE = "StatusCode"; - public static final String RESPONSE_CODE = "ResponseCode"; - public static final String RESPONSE_DESCRIPTION = "ResponseDescription"; - public static final String ELAPSED_TIME = "ElapsedTime"; - public static final String BEGIN_TIMESTAMP = "BeginTimestamp"; - public static final String TARGET_SERVICE_NAME = "TargetServiceName"; - public static final String TARGET_ENTITY = "TargetEntity"; - public static final String END_TIMESTAMP = "EndTimestamp"; - public static final String ERROR_CATEGORY = "ErrorCategory"; - public static final String ERROR_CODE = "ErrorCode"; - public static final String ERROR_DESCRIPTION = "ErrorDescription"; - public static final String MDC_SDC_INSTANCE_UUID = "SDC_INSTANCE_UUID"; - public static final String SERVICE_METRIC_BEGIN_TIMESTAMP = "SERVICE-METRIC-BEGIN-TIMESTAMP"; - public static final String LOCAL_ADDR = "localAddr"; //map ServerIPAddress from loggingfilter - public static final String BE_FQDN = "beFqdn"; //map ServerFQDN from logging filter - public static final String ARTIFACT_MODEL_INFO = "ARTIFACT_MODEL_INFO"; - - public static final String GENERATOR_ERROR_CODE = "300F"; - public static final String GENERATOR_PARTNER_NAME = "SDC Catalog"; - public static final String GENERATOR_METRICS_TARGET_ENTITY = "SDC Catalog"; - public static final String GENERATOR_METRICS_FAILURE_RESPONSE_CODE = "300E"; - public static final String GENERATOR_METRICS_FAILURE_RESPONSE_DESC = "Artifact generation " - + "failed for artifact type %s"; - public static final String GENERATOR_METRICS_SUCCESS_RESPONSE_CODE = "010"; - public static final String GENERATOR_METRICS_SUCCESS_RESPONSE_DESC = "Artifacts for type %s " - + "were generated successfully"; - public static final String GENERATOR_AUDIT_NO_ARTIFACT_TYPE_RESPONSE_DESC = "No Artifact Type " - + "found" ; - - //AAI Generator Error Messages for Logging - public static final String GENERATOR_AAI_ERROR_INVALID_TOSCA_MSG = - "Invalid format for Tosca YML"; - public static final String GENERATOR_AAI_ERROR_MANDATORY_METADATA_DEFINITION_MSG = - "Invalid Service/Resource definition mandatory attribute"; - public static final String GENERATOR_AAI_ERROR_MISSING_SERVICE_TOSCA_MSG = - "Service tosca missing from list of input artifacts"; - public static final String GENERATOR_ERROR_INVALID_CLIENT_CONFIGURATION_MSG = - "Invalid Client Configuration"; - public static final String GENERATOR_ERROR_ARTIFACT_GENERATION_FAILED_MSG = - "Unable to generate artifacts for the provided input"; - public static final String GENERATOR_AAI_CONFIGFILE_NOT_FOUND = - "Cannot generate artifacts. Artifact Generator Configuration file not found at %s"; - public static final String GENERATOR_AAI_CONFIGLOCATION_NOT_FOUND = - "Cannot generate artifacts. artifactgenerator.config system property not configured"; - public static final String GENERATOR_AAI_CONFIGLPROP_NOT_FOUND = - "Cannot generate artifacts. Widget configuration not found for %s"; - public static final String GENERATOR_AAI_PROVIDING_SERVICE_MISSING = - "Cannot generate artifacts. Providing Service is missing for allotted resource %s"; - public static final String GENERATOR_AAI_PROVIDING_SERVICE_METADATA_MISSING = - "Cannot generate artifacts. Providing Service Metadata is missing for allotted resource %s"; - public static final int ID_LENGTH = 36; -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/GeneratorUtil.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/GeneratorUtil.java deleted file mode 100644 index 080ae54944..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/GeneratorUtil.java +++ /dev/null @@ -1,104 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.data; - -import com.fasterxml.jackson.databind.DeserializationFeature; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.dataformat.yaml.YAMLFactory; -import org.apache.commons.codec.digest.DigestUtils; - -import java.io.IOException; -import java.util.Base64; - -/** - * Utility method class for artifact generation. - */ -public class GeneratorUtil { - /** - * Translate tosca yaml into the provided model class. - * - * @param tosca Tosca file content - * @param classOfT Model class for the translated object - * @param Template parameter for the return object - * @return Object model for the provided tosca yaml file - */ - public static T translateTosca(String tosca, Class classOfT) throws IOException { - T tos; - //changing file - ObjectMapper mapper = new ObjectMapper(new YAMLFactory()); // jackson data-bind - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - tos = mapper.readValue(tosca, classOfT); - return tos; - } - - /** - * Decodes Base64 encode byte array input. - * - * @param input Base64 encoded byte array - * @return Decoded byte array - */ - public static byte[] decoder(byte[] input) { - if (input != null) { - byte[] output = Base64.getDecoder().decode(input); - return output; - } - return null; - } - - /** - * Encode a byte array input using Base64 encoding. - * - * @param input Input byte array to be encoded - * @return Base64 encoded byte array - */ - public static byte[] encode(byte[] input) { - if (input != null) { - byte[] output = Base64.getEncoder().encode(input); - return output; - } - return null; - } - - /** - * Calculate the checksum for a given input. - * - * @param input Byte array for which the checksum has to be calculated - * @return Calculated checksum of the input byte array - */ - public static String checkSum(byte[] input) { - String checksum = null; - if (input != null) { - checksum = (DigestUtils.md5Hex(input)).toUpperCase(); - } - return checksum; - } - - /** - * Check if string is empty or null. - * - * @param input Input String - * @return true if string is empty/null and false otherwise - */ - public static boolean isEmpty(String input) { - return input == null || input.length() == 0; - } - -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/GroupType.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/GroupType.java deleted file mode 100644 index f68aaed410..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/GroupType.java +++ /dev/null @@ -1,26 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.data; - -public enum GroupType { - DEPLOYMENT, - OTHER -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/WidgetConfigurationUtil.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/WidgetConfigurationUtil.java deleted file mode 100644 index dd68544a93..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/data/WidgetConfigurationUtil.java +++ /dev/null @@ -1,36 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.data; - -import java.util.Properties; - -public class WidgetConfigurationUtil { - - private static Properties config ; - - public static Properties getConfig() { - return config; - } - - public static void setConfig(Properties config) { - WidgetConfigurationUtil.config = config; - } -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/error/IllegalAccessException.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/error/IllegalAccessException.java deleted file mode 100644 index 06c4e6df31..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/error/IllegalAccessException.java +++ /dev/null @@ -1,29 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.error; - -public class IllegalAccessException extends RuntimeException { - - public IllegalAccessException(String message) { - super(message); - } - -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/intf/ArtifactGenerator.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/intf/ArtifactGenerator.java deleted file mode 100644 index 0c45436dc7..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/intf/ArtifactGenerator.java +++ /dev/null @@ -1,35 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.intf; - -import org.openecomp.sdc.generator.data.Artifact; -import org.openecomp.sdc.generator.data.GenerationData; - -import java.util.List; -import java.util.Map; - - -public interface ArtifactGenerator { - - public GenerationData generateArtifact(List input, - Map additionalParams); - -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/intf/Generator.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/intf/Generator.java deleted file mode 100644 index 6ccf89cc72..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/intf/Generator.java +++ /dev/null @@ -1,40 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.intf; - -import org.openecomp.sdc.generator.data.ArtifactType; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -@Target(ElementType.TYPE) -@Retention(RetentionPolicy.RUNTIME) -public @interface Generator { - - /** - * Artifact type artifact type. - * - * @return the artifact type - */ - public ArtifactType artifactType(); -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/logging/ArtifactGeneratorLogResponseCode.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/logging/ArtifactGeneratorLogResponseCode.java deleted file mode 100644 index e0887876b8..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/logging/ArtifactGeneratorLogResponseCode.java +++ /dev/null @@ -1,68 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.logging; - -import java.util.HashMap; -import java.util.Map; - -public enum ArtifactGeneratorLogResponseCode { - INTERNAL_SERVER_ERROR(201), - MISSING_CONFIG_PROPERTIES_FILE(202), - MISSING_SYSTME_PROPERY_CONFIGURATION(203), - MANDATORY_ATTRIBUTE_MISSING(313), - SERVICE_TOSCA_MISSING(314), - INVALID_TOSCA_YAML(315), - INVALID_CLIENT_CONFIGURATION(316), - UNABLE_TO_GENERATE_ARTIFACT(317), - MISSING_WIDGET_CONFIGURATION(318), - INVALID_ID_VALUE(319), - MISSING_SERVICE_VERSION(320), - INVALID_SERVICE_VERSION(321), - MISSING_RESOURCE_VERSION(322), - INVALID_RESOURCE_VERSION(323), - MISSING_PRO_SERVICE(324), - MISSING_PRO_SERVICE_METADATA(325), - RESOURCE_TOSCA_MISSING(326); - - - private static Map mapValueToEnum = new HashMap<>(); - - static { - for (ArtifactGeneratorLogResponseCode responseCode : - ArtifactGeneratorLogResponseCode.values()) { - mapValueToEnum.put(responseCode.value, responseCode); - } - } - - private int value; - - ArtifactGeneratorLogResponseCode(int value) { - this.value = value; - } - - public static ArtifactGeneratorLogResponseCode parseValue(int value) { - return mapValueToEnum.get(value); - } - - public int getValue() { - return value; - } -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/logging/CategoryLogLevel.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/logging/CategoryLogLevel.java deleted file mode 100644 index 00a2e4d494..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/logging/CategoryLogLevel.java +++ /dev/null @@ -1,29 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.logging; - -public enum CategoryLogLevel { - INFO, - WARN, - DEBUG, - ERROR, - FATAL -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/logging/StatusCode.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/logging/StatusCode.java deleted file mode 100644 index 201cb973be..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/logging/StatusCode.java +++ /dev/null @@ -1,26 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.logging; - -public enum StatusCode { - COMPLETE, - ERROR -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/logging/annotations/Audit.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/logging/annotations/Audit.java deleted file mode 100644 index 9d32c1d1c0..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/logging/annotations/Audit.java +++ /dev/null @@ -1,34 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.logging.annotations; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/** - * Indicates a method for auditing during artifact generation. - */ -@Target(ElementType.METHOD) -@Retention(RetentionPolicy.RUNTIME) -public @interface Audit { -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/logging/annotations/Metrics.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/logging/annotations/Metrics.java deleted file mode 100644 index 74083a37f1..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/logging/annotations/Metrics.java +++ /dev/null @@ -1,35 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.logging.annotations; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/** - * Indicates a method for metrics recording during artifact generation. - * - */ -@Target(ElementType.METHOD) -@Retention(RetentionPolicy.RUNTIME) -public @interface Metrics { -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/service/ArtifactGenerationService.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/service/ArtifactGenerationService.java deleted file mode 100644 index 1fbd25e14e..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/service/ArtifactGenerationService.java +++ /dev/null @@ -1,77 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.service; - -import static org.openecomp.sdc.generator.data.GeneratorConstants.ERROR_CATEGORY; -import static org.openecomp.sdc.generator.data.GeneratorConstants.ERROR_CODE; -import static org.openecomp.sdc.generator.data.GeneratorConstants.ERROR_DESCRIPTION; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_ERROR_CODE; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_ERROR_SERVICE_INSTANTIATION_FAILED; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_PARTNER_NAME; -import static org.openecomp.sdc.generator.data.GeneratorConstants.PARTNER_NAME; - -import org.openecomp.sdc.logging.api.Logger; -import org.openecomp.sdc.logging.api.LoggerFactory; -import org.openecomp.sdc.generator.data.Artifact; -import org.openecomp.sdc.generator.data.GenerationData; -import org.openecomp.sdc.generator.logging.CategoryLogLevel; -import org.slf4j.MDC; - -import java.io.PrintWriter; -import java.io.StringWriter; -import java.util.List; -import java.util.Map; - - -/** - * Artifact Generation Service interface. - */ -public interface ArtifactGenerationService { - - - /** - * Method to get artifact generation service implementation. - * - * @return Artifact generation implementation instance - */ - public static ArtifactGenerationService lookup() { - - Logger log = LoggerFactory.getLogger(ArtifactGenerationService.class.getName()); - log.debug("Instantiating Artifact Generation Service"); - try { - return ArtifactGenerationService.class.cast( - Class.forName("org.openecomp.sdc.generator.impl.ArtifactGenerationServiceImpl") - .newInstance()); - } catch (Exception exception) { - MDC.put(PARTNER_NAME, GENERATOR_PARTNER_NAME); - MDC.put(ERROR_CATEGORY, CategoryLogLevel.ERROR.name()); - MDC.put(ERROR_CODE, GENERATOR_ERROR_CODE); - MDC.put(ERROR_DESCRIPTION, GENERATOR_ERROR_SERVICE_INSTANTIATION_FAILED); - log.error(GENERATOR_ERROR_SERVICE_INSTANTIATION_FAILED, exception); - } - log.debug(GENERATOR_ERROR_SERVICE_INSTANTIATION_FAILED); - return null; - } - - public GenerationData generateArtifact(List input, String overridingConfiguration, - Map additionalParams); - -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/resources/aai_schema_v10.xsd b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/resources/aai_schema_v10.xsd deleted file mode 100644 index 7bc3466506..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/resources/aai_schema_v10.xsd +++ /dev/null @@ -1,6311 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The specific type of node in the A&AI graph") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The URL to the specific resource") - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="A keyword provided by A&AI to indicate an attribute.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Value of the attribute.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Key part of a key/value pair") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Value part of a key/value pair") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="A keyword provided by A&AI to indicate type of node.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to the object in A&AI.") - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="OAM network, to be deprecated shortly. Do not use for new purposes. ",nameProps="network-name",indexedProps="cvlan-tag,network-uuid,network-name",dependentOn="cloud-region",container="oam-networks") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="UUID of the network. Unique across a cloud-region") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of the network.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="cvlan-id") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for VNF firewall rule so customer cannot send customer traffic over this oam network") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for VNF firewall rule so customer cannot send customer traffic over this oam network") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of OAM networks, to be deprecated shortly. Do not use for new purposes. ") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Digital virtual switch metadata, used by SDN-C to configure VCEs. A&AI needs to receive this data from the PO deployment team and administer it using the provisioningTool.sh into A&AI. ",indexedProps="vcenter-url,switch-name",dependentOn="cloud-region",container="dvs-switches") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="DVS switch name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL used to reach the vcenter") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of digital virtual switch metadata used for vmWare VCEs and VPEs.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Availability zone, a collection of compute hosts/pservers",indexedProps="availability-zone-name",dependentOn="cloud-region",container="availability-zones") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name of the availability zone. Unique across a cloud region") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Type of hypervisor. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="State that indicates whether the availability zone should be used, etc. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Serves a PATCH like function. Does not enforce concurrency control. Clear each usage with AAI team.") - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="APIs that are more action related than REST (e.g., notify, update).") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="A collection of C tags (vlan tags) grouped for a specific purpose.",indexedProps="availability-zone-name",dependentOn="complex",container="ctag-pools") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="The Target provider edge router") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name of the availability zone") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Describes what the intended purpose of this pool is.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Comma separated list of ctags") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of physical locations that can house cloud-regions.",indexedProps="identity-url,data-center-code,complex-name,physical-location-id",searchable="physical-location-id,data-center-code,complex-name,street1,street2,postal-code",uniqueProps="physical-location-id",container="complexes",namespace="cloud-infrastructure") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier for physical location, e.g., CLLI") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Data center code which can be an alternate way to identify a complex") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Gamma complex name for LCP instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL of the keystone identity service") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Type, e.g., central office, data center.") - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of physical locations that can house cloud-regions.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Persistent block-level storage.",indexedProps="volume-group-name,vnf-type,heat-stack-id,volume-group-id",searchable="volume-group-name",dependentOn="cloud-region",container="volume-groups") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of volume-group.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of the volume group.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this volume-group") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this volume-group") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of persistent block-level storage.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Ephemeral Block storage volume.",indexedProps="volume-id",dependentOn="vserver",container="volumes") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of block storage volume relative to the vserver.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of ephemeral Block storage volumes.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPv4 Address Range",indexedProps="l3-interface-ipv4-address,vlan-id-inner,neutron-network-id,neutron-subnet-id",dependentOn="vlan,l-interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="IP address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Prefix length, 32 for single address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Inner VLAN tag") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Outer VLAN tag") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicator of fixed or floating address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron network id of the interface that address belongs to") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron id of subnet that address belongs to") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPv6 Address Range",indexedProps="l3-interface-ipv6-address,vlan-id-inner,neutron-network-id,neutron-subnet-id",dependentOn="vlan,l-interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="IP address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Prefix length, 128 for single address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Inner VLAN tag") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Outer VLAN tag") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicator of fixed or floating address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron network id of the interface that address belongs to") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron id of subnet that address belongs to") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Definition of vlan",indexedProps="vlan-interface,vlan-id-inner,vpn-id",uniqueProps="vpn-id",dependentOn="l-interface",container="vlans") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="String that identifies the interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Inner VLAN tag") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Outer VLAN tag") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used to describe (the service associated with) the vlan") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Whether customer is going to use this VLAN for backdoor connection to another customer premise device.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This indicates the customers VPN ID associated with this vlan") - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="SR-IOV Virtual Function (not to be confused with virtual network function)",indexedProps="pci-id,vf-vlan-filter,vf-mac-filter,vf-vlan-strip,neutron-network-id",dependentOn="l-interface",container="sriov-vfs") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="PCI ID used to identify the sriov-vf") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This metadata provides option to specify list of VLAN filters applied on VF to pass the traffic to VM.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="When MAC filters are specified, VF-agent service configures VFs to do MAC level filtering before the traffic is passed to VM.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="When this field is set to true, VF will configured to strip the outer TAG before the traffic is passed to VM.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option ensures anti VLAN spoof checks are done at the VF level to comply with security. The disable check will also be honored per the VNF needs for trusted VMs.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option ensures anti MAC spoof checks are done at the VF level to comply with security. The disable check will also be honored per the VNF needs for trusted VMs.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option defines the set of Mirror objects which essentially mirrors the traffic from source to set of collector VNF Ports.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, sets the VF in promiscuous mode and allows all broadcast traffic to reach the VM") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, sets the VF in promiscuous mode and allows unknown multicast traffic to reach the VM") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, sets the VF in promiscuous mode and allows unknown unicast traffic to reach the VM") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, instructs to insert outer tag after traffic comes out of VM.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option is used to set the link status. Valid values as of 1607 are on, off, and auto.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron network id of the interface") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of SR-IOV Virtual Functions.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Logical interfaces, e.g., a vnic.",indexedProps="macaddr,interface-id,interface-name,network-name",dependentOn="generic-vnf,newvce,vpe,p-interface,vserver,lag-interface",container="l-interfaces") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name given to the interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="E.g., CUSTOMER, UPLINK, etc.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Questionably placed - v6 ip addr of this interface (is in vr-lan-interface from Mary B.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ID of interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="MAC address for the interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of the network") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Whether A&AI should be managing this interface of not. Could have value like CUSTOMER") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Human friendly text regarding this interface.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of logical interfaces.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Virtual Servers, aka virtual machine or VM.",nameProps="vserver-name",indexedProps="is-closed-loop-disabled,prov-status,vserver-name,vserver-id,in-maint,vserver-name2",searchable="vserver-name,vserver-id,vserver-name2",dependentOn="tenant",container="vservers") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier for this vserver relative to its tenant") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of vserver") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Alternative name of vserver") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Used to indicate whether closed loop function is enabled on this node") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of virtual Servers, aka virtual machines or VMs.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Openstack tenant",nameProps="tenant-name",indexedProps="tenant-name,tenant-id",searchable="tenant-name,tenant-id",dependentOn="cloud-region",container="tenants") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id relative to the cloud-region.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Readable name of tenant") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of openstack tenants.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Openstack flavor.",nameProps="flavor-name",indexedProps="flavor-name,flavor-id",dependentOn="cloud-region",container="flavors") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Flavor id, expected to be unique across cloud-region.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Flavor name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Number of CPUs") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Amount of memory") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Disk space") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Amount of ephemeral disk space") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="amount of swap space allocation") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="whether flavor is available to all users or private to the tenant it was created in.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Boolean as to whether this flavor is no longer enabled") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of openstack flavors.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Openstack group-assignment used to store exclusivity groups (EG).",nameProps="group-name",indexedProps="group-id,group-type,group-name",dependentOn="cloud-region",container="group-assignments") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Group id, expected to be unique across cloud-region.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Group type - the type of group this instance refers to") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Group name - name assigned to the group") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Group description - description of the group") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of openstack group assignments") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Openstack snapshot",nameProps="snapshot-name",uniqueProps="snapshot-id",indexedProps="application,snapshot-name,application-vendor,snapshot-id,application-version,prev-snapshot-id",dependentOn="cloud-region",container="snapshots") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Snapshot id, this is the key UUID assoc associated in glance with the snapshots.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Snapshot name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Operating system architecture") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The common name of the operating system distribution in lowercase") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The operating system version as specified by the distributor.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The application that the image instantiates.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The vendor of the application.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The version of the application.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This field contains the UUID of the previous snapshot (if any).") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of openstack snapshots") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Key/value pairs",indexedProps="metaname",dependentOn="tenant,image,service-instance,connector,model",container="metadata") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true) - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of metadatum (key/value pairs)") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Openstack image.",nameProps="image-name",indexedProps="application,image-name,application-vendor,image-id,application-version",dependentOn="cloud-region",container="images") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Image id, expected to be unique across cloud region") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Image name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Operating system architecture.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The common name of the operating system distribution in lowercase") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The operating system version as specified by the distributor.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The application that the image instantiates.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The vendor of the application.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The version of the application.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collectio of Openstack images.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of availability zones") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="cloud-region designates an installation of a cloud cluster or region or instantiation. In AT&Ts OPENECOMP cloud, this could be an LCP or DCP. Cloud regions are uniquely identified by a composite key, cloud-owner + cloud-region-id. The format of the cloud-owner is vendor-cloudname and we will use OPENECOMP for AT&T's OPENECOMP.",indexedProps="cloud-owner,cloud-region-id,cloud-type,owner-defined-type",nameProps="owner-defined-type",container="cloud-regions",namespace="cloud-infrastructure") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Identifies the vendor and cloud name, e.g., OPENECOMP. First part of composite key should be formatted as vendor-cloudname") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Identifier used by the vendor for the region. Second part of composite key") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Type of the cloud (e.g., openstack)") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Cloud-owner defined type indicator (e.g., DCP, LCP)") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Software version employed at the site") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL of the keystone identity service") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Zone where the cloud is homed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="complex name for cloud-region instance") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(maximumDepth="0") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Network profile populated by SDN-GP for SNMP",indexedProps="nm-profile-name",container="network-profiles",namespace="cloud-infrastructure") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique name of network profile.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Encrypted SNMP community string") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of network profiles") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Physical interface (e.g., nic)",indexedProps="interface-name,prov-status",nameProps="prov-status",dependentOn="vpls-pe,pserver,pnf",container="p-interfaces") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name that identifies the physical interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Nature of the services and connectivity on this port.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="CLEI or other specification for p-interface hardware.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Role specification for p-interface hardware.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicates the physical properties of the interface.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of physical interfaces.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Link aggregate interface",indexedProps="interface-name,interface-id,interface-role",dependentOn="generic-vnf,pserver,vpe,vpls-pe,pnf",container="lag-interfaces") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name that identifies the link aggregate interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ID of interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Role - assigned to this Interface, should use values as defined in OPENECOMP Yang - models.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of link aggregate interfaces.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Compute host whose hostname must be unique and must exactly match what is sent as a relationship to a vserver.",nameProps="pserver-name2",indexedProps="hostname,in-maint,pserver-id,pserver-name2,inv-status",searchable="hostname,pserver-name2,pserver-id,ipv4-oam-address",container="pservers",namespace="cloud-infrastructure") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Value from executing hostname on the compute node.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="PTNII name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Number of cpus") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Disk size, in GBs") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="RAM size, in MBs") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Equipment type. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Equipment vendor. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Equipment model. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Fully-qualified domain name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used to configure device, also used for troubleshooting and is IP used for traps generated by device.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Serial number, may be queried") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV4 Loopback 0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV6 Loopback 0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV4 AIM address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV6 AIM address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV6 OAM address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="CANOPI's inventory status. Only set with values exactly as defined by CANOPI.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ID of Pserver") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="internet topology of Pserver") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="alternative pserver name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="purpose of pserver") - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of compute hosts.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Virtual organization of cloud infrastructure elements in a data center context",nameProps="vdc-name",indexedProps="vdc-name,vdc-id",container="virtual-data-centers",namespace="cloud-infrastructure") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of the vdc") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of the virtual data center") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Virtual organization of cloud infrastructure elements in a data center context") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Namespace for cloud infrastructure.") - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata - (nameProps="name",indexedProps="assignment-group-uuid,openecomp-uuid,name",uniqueProps="openecomp-uuid",container="license-key-resources",namespace="license-management") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true) - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of resource instances used to connect a variety of disparate inventory widgets",indexedProps="resource-instance-id,persona-model-id,persona-model-version,widget-model-id,widget-model-version",container="connectors",namespace="business") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of resource instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of resource instances used to connect a variety of disparate inventory widgets") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Represents the specifics of a tunnel cross connect piece of a resource that gets separately allotted",uniqueProps="id",indexedProps="id",dependentOn="allotted-resource",container="tunnel-xconnects") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Allotted Resource id UUID assigned to this instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The WAN uplink bandwidth for WAN1") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The WAN downlink bandwidth for WAN1") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The WAN uplink bandwidth for WAN2") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The WAN downlink bandwidth for WAN2") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Concurrency value") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This object is used to store the specific tunnel cross connect aspects of an allotted resource") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Represents a slice or partial piece of a resource that gets separately allotted",nameProps="description",uniqueProps="id",indexedProps="id,persona-model-id,persona-model-version",dependentOn="service-instance",container="allotted-resources") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Allotted Resource id UUID assigned to this instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The descriptive information assigned to this allotted resource instance") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Link back to more information in the controller") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Concurrency value") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This object is used to store slices of services being offered") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Instance of a service",indexedProps="service-instance-id,persona-model-id,persona-model-version,widget-model-id,widget-model-version,service-instance-name,service-instance-location-id",nameProps="service-instance-name",searchable="service-instance-id,service-instance-name",uniqueProps="service-instance-id",dependentOn="service-subscription",container="service-instances") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Uniquely identifies this instance of a service") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This field will store a name assigned to the service-instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicates the total bandwidth to be used for this service.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="indicates the upstream bandwidth this service will use on the WAN1 port of the physical device.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="indicates the downstream bandwidth this service will use on the WAN1 port of the physical device.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="indicates the upstream bandwidth this service will use on the WAN2 port of the physical device.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="indicates the downstream bandwidth this service will use on the WAN2 port of the physical device.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL customers will use to access the vHN Portal.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Operational status of the service-instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="An identifier that customers assign to the location where this service is being used.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of service instances") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Object that group service instances.",indexedProps="service-type",dependentOn="customer",container="service-subscriptions") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Value defined by orchestration to identify this service across OPENECOMP.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This property will be deleted from A&AI in the near future. Only stop gap solution.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of objects that group service instances.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="customer identifiers to provide linkage back to BSS information.",nameProps="subscriber-name",indexedProps="subscriber-name,global-customer-id,subscriber-type",searchable="subscriber-name,global-customer-id",uniqueProps="global-customer-id,subscriber-name",alternateKeys1="subscriber-name",container="customers",namespace="business") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Global customer id used across OPENECOMP to uniquely identify customer.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Subscriber name, an alternate way to retrieve a customer.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Subscriber type, a way to provide VID with only the INFRA customers.",defaultValue="CUST") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of customer identifiers to provide linkage back to BSS information.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Namespace for business related constructs") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Image object that pertain to a VNF that doesn't have associated vservers. This is a kludge.",indexedProps="application,openecomp-uuid,application-vendor,application-version",uniqueProps="openecomp-uuid",container="vnf-images",namespace="service-design-and-creation") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of this asset") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The application that the image instantiates.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The vendor of the application.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The version of the application.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of image objects that pertain to a VNF that doesn't have associated vservers. This is a kludge.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Stand-in for service model definitions. Likely to be deprecated in favor of models from ASDC.",indexedProps="service-description,service-id",container="services",namespace="service-design-and-creation") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="This gets defined by others to provide a unique ID for the service, we accept what is sent.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Description of the service") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="service version") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of service model definitions. Likely to be deprecated in favor of models from ASDC.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Early definition of server/resource pairings, likely to be replaced by models. No new use should be made of this.",indexedProps="service-type,vnf-type",container="service-capabilities",namespace="service-design-and-creation") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="This gets defined by others to provide a unique ID for the service, we accept what is sent.") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of service capabilities.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This is how we would capture constraints defining allowed sets of elements.",uniqueProps="element-choice-set-uuid",indexedProps="element-choice-set-uuid",allowDirectRead="true",allowDirectWrite="false",container="element-choice-sets") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This is how we would capture constraints defining allowed sets of elements.",uniqueProps="constrained-element-set-uuid",indexedProps="constrained-element-set-uuid",allowDirectRead="true",allowDirectWrite="false",container="constrained-element-sets") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This is how we would capture constraints defining allowed sets of elements.",uniqueProps="model-constraint-uuid",indexedProps="model-constraint-uuid",allowDirectRead="true",allowDirectWrite="false",container="model-constraints") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Defines how other models combine to make up a higher-level model.",uniqueProps="model-element-uuid",indexedProps="model-element-uuid",allowDirectRead="true",allowDirectWrite="false",container="model-elements") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicates whether this element was created as part of instantiation from this model") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="How many of this type of element are required/allowed") - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Defines how other models combine to make up a higher-level model.",uniqueProps="model-element-uuid",indexedProps="model-element-uuid",allowDirectRead="true",allowDirectWrite="false",container="model-elements") - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Defines how other models combine to make up a higher-level model") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Describes new constraints on this model element that are not part of that model's definition") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Subgraph definition provided by ASDC to describe a specific version of an inventory asset and its connections related to ASDC models",nameProps="model-name",indexedProps="model-version-id,model-name,model-version",uniqueProps="model-version-id",container="model-vers",namespace="service-design-and-creation") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier corresponding to one version of a model in ASDC") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of the model, which can change from version to version.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Version") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Description") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Subgraph definition provided by ASDC to describe an inventory asset and its connections related to ASDC models, independent of version",nameProps="model-type",indexedProps="model-invariant-id,model-type",uniqueProps="model-invariant-id",container="models",namespace="service-design-and-creation") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier corresponding to the main definition of a model in ASDC") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Type of the model, e.g., service, resource, widget, etc.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of subgraph definitions provided by ASDC to describe the inventory assets and their connections related to ASDC models") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="TBD",uniqueProps="related-lookup-uuid",indexedProps="related-lookup-uuid",allowDirectRead="true",allowDirectWrite="false",container="related-lookups") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="TBD",uniqueProps="property-constraint-uuid",indexedProps="property-constraint-uuid",allowDirectRead="true",allowDirectWrite="false",container="property-constraints") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="TBD",uniqueProps="named-query-element-uuid",indexedProps="named-query-element-uuid",allowDirectRead="true",allowDirectWrite="false",container="named-query-elements") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="TBD",nameProps="named-query-name",uniqueProps="named-query-uuid",indexedProps="named-query-uuid,named-query-name",container="named-queries",namespace="service-design-and-creation") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true) - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="TBD",nameProps="named-query-name",uniqueProps="named-query-uuid",indexedProps="named-query-uuid,named-query-name",container="named-queries",namespace="service-design-and-creation") - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Namespace for objects managed by ASDC") - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Logical links generally connect l-interfaces but are used to express logical connectivity between two points",indexedProps="link-name,persona-model-id,persona-model-version,widget-model-id,widget-model-version,link-id,prov-status,circuit-id,purpose",uniqueProps="link-id",nameProps="prov-status,circuit-id",container="logical-links",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="e.g., evc-name, or vnf-nameA_interface-nameA_vnf-nameZ_interface-nameZ") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Type of logical link, e.g., evc") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="v4, v6, or ds for dual stack (should be openecomp-ip-version)") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="For example, static or BGP") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indication of operational status of the logical link.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this VNF by BAU Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indication of the network use of the logical link.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Alias or alternate name (CLCI or D1 name).") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="UUID of the logical-link, SDNC generates this.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Circuit id") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Reason for this entity, role it is playing") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of logical connections") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(indexedProps="cos",dependentOn="site-pair",container="classes-of-service") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="unique identifier of probe") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="identifier of probe") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="type of probe") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="class-of-service of probe") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(indexedProps="site-pair-id",uniqueProps="site-pair-id",dependentOn="routing-instance",container="site-pairs") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="unique identifier of probe") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Prefix address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Prefix address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ip version, v4, v6") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Hostname of the destination equipment to which SLAs are measured against.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The type of destinatination equipment. Could be Router, UCPE, etc.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="probe within a set") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(indexedProps="routing-instance-id",uniqueProps="routing-instance-id",dependentOn="site-pair-set",container="routing-instances") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of routing instance") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="rpm owner") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="set of probes related to generic-vnf routing instance") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Set of instances for probes used to measure service level agreements",indexedProps="site-pair-set-id",uniqueProps="site-pair-set-id",container="site-pair-sets",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of site pair set.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of sets of instances for probes related to generic-vnf") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="VPN binding",nameProps="vpn-name,vpn-type",indexedProps="vpn-name,vpn-id,global-route-target,vpn-type",searchable="vpn-name",uniqueProps="vpn-id",container="vpn-bindings",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="VPN ID, globally unique within A&AI") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="VPN Name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Number used to identify a VPN, globally unique in the network") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the platform associated with the VPN example AVPN, Mobility") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Type of the vpn, should be taken from enumerated/valid values") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used to distinguish the distinct VPN routes of separate customers who connect to the provider in an MPLS network.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Role assigned to this route target") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="l3-networks relate to vpn-bindings") - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="VPLS Provider Edge routers.",indexedProps="prov-status,equipment-name",container="vpls-pes",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true) - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this VNF by BAU Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure vpe, also used for troubleshooting and is IP used for traps generated by VPE (v4-loopback0-ip-address).") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Client should send valid enumerated value, e.g., VPLS-PE.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Temporary location for stag to get to VCE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of VPLS Provider Edge routers") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(indexedProps="multicast-configuration-id",uniqueProps="multicast-configuration-id",container="multicast-configurations",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of multicast configuration.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="protocol of multicast configuration") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="rp type of multicast configuration") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="multicast configuration of generic-vnf ip-address") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(dependentOn="port-group",indexedProps="cvlan-tag",container="cvlan-tags") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="See mis-na-virtualization-platform.yang") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used to capture the network interfaces of this VCE",nameProps="port-group-name",indexedProps="port-group-id,heat-stack-id,interface-id,interface-name,switch-name",dependentOn="vce",container="port-groups") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of the interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron network id of this Interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron network name of this Interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Role assigned to this Interface, should use values as defined in OPENECOMP Yang models.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Unique ID for port group in vmware") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Likely to duplicate value of neutron network name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="DVS or standard switch name (should be non-null for port groups associated with DVS)") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Metadata for license group.",indexedProps="group-uuid,resource-uuid",dependentOn="generic-vnf,vce,vpe",container="licenses") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID for the license group the resource belongs to, should be uuid.") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of a license resource. ") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Concurrency value") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Licenses to be allocated across resources, keyed by group-uuid and resource-uuid, related to license management") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Metadata for entitlement group.",indexedProps="group-uuid,resource-uuid",dependentOn="generic-vnf,vce,vpe",container="entitlements") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID for the entitlement group the resource comes from, should be uuid.") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of an entitlement resource. ") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Concurrency value") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Entitlements, keyed by group-uuid and resource-uuid, related to license management") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Virtual Customer Edge Router, used specifically for Gamma. This object is deprecated.",nameProps="vnf-name",indexedProps="vnf-name,vnf-name2,vnf-type,heat-stack-id,vnf-id,interface-name,regional-resource-zone,vpe-id,prov-status,service-id",searchable="vnf-id,vnf-name,vnf-name2",uniqueProps="vnf-id",container="vces",namespace="network",extendsFrom="vnf") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF. This is unique across the graph.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of VNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Alternate name of VNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Unique identifier of service from ASDC. Expect this to change as ASDC matures.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Regional way of organizing pservers, source of truth should define values") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="License key") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Network role being played by this VNF") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Unique ID of VPE connected to this VCE.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Valid v6 IP address for the WAN Link on this router. Implied length of /64.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure vce, also used for troubleshooting and is IP used for traps generated by VCE.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Loopback0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Entitlement resource uuid") - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of Virtual Customer Edge Routers, used specifically for Gamma. This object is deprecated.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Relationship-list must include related to info for complex.",nameProps="vnf-name",indexedProps="vnf-name,vnf-name2,vnf-type,heat-stack-id,vnf-id,regional-resource-zone,prov-status,service-id",searchable="vnf-id,vnf-name,vnf-name2",uniqueProps="vnf-id",container="vpes",namespace="network",extendsFrom="vnf") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF. This is unique across the graph.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of VNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Alternate name of VNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Unique identifier of service from ASDC") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Regional way of organizing pservers, source of truth should define values") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="License key") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Client should send valid enumerated value") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure vpe, also used for troubleshooting and is IP used for traps generated by VPE (v4-loopback0-ip-address).") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Prefix length for oam-address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Gateway address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Loopback0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Temporary location for stag to get to VCE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="as-number of the VPE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="details regarding the vpe operation") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="indicates whether vpe access uses SSH") - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Virtual provider edge router. In 1504, A&AI will populate this object through an M&P and tool provided to operations.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(indexedProps="vnfc-name,prov-status,vnfc-type,vnfc-function-code,ipaddress-v4-oam-vip,in-maint,is-closed-loop-disabled,group-notation",searchable="vnfc-name",container="vnfcs",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of vnfc.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="function code") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="type") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="prov status of this vnfc") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by APP-C") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Oam V4 vip address of this vnfc") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true)") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether closed loop function is enabled on this node") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Group notation of VNFC") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="virtual network components associated with a vserver from application controller.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(indexedProps="subnet-id,subnet-name",nameProps="subnet-name",uniqueProps="subnet-id",dependentOn="l3-network",container="subnets") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Subnet ID, should be UUID.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name associated with the subnet.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron id of this subnet") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="gateway ip address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="network start address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="cidr mask") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ip version") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="dhcp enabled") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the start address reserved for use by dhcp") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the last address reserved for use by dhcp") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(indexedProps="vlan-id-inner",dependentOn="l3-network",container="ctag-assignments") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="id.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Openstack segmentation assignment.",indexedProps="segmentation-id",dependentOn="l3-network",container="segmentation-assignments") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Route Table Reference id, UUID assigned to this instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Concurrency value") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of openstack segmentation assignments") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Generic network definition",nameProps="network-name",indexedProps="heat-stack-id,network-uuid,service-id,network-id,network-name,persona-model-id,persona-model-version,widget-model-id,widget-model-version,contrail-network-fqdn,network-role",searchable="network-name",uniqueProps="network-id",container="l3-networks",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Network ID, should be uuid. Unique across A&AI.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of the network, governed by some naming convention..") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Type of the network - who defines these values?") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Role the network plans - who defines these values?") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Network technology - who defines these values?") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron network id of this Interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Set to true if bound to VPN") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Unique identifier of service from ASDC") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="network role instance") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Contrail FQDN for the network") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name associated with the physical network.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="boolean indicatating whether or not network is a provider network.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="boolean indicatating whether or not network is a shared network.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="boolean indicatating whether or not network is an external network.") - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Relates to tenant (or is it a child of tenant), complex, service, vpn-binding") - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(nameProps="network-policy-fqdn",indexedProps="network-policy-id,network-policy-fqdn",searchable="network-policy-fqdn",uniqueProps="network-policy-id",container="network-policies",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="UUID representing unique key to this instance") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Contrail FQDN for the policy") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ID for the openStack Heat instance") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="a deployment unit of VNFCs",indexedProps="vf-module-id,vf-module-name,heat-stack-id,persona-model-id,persona-model-version,widget-model-id,widget-model-version,contrail-service-instance-fqdn",searchable="vf-module-name",dependentOn="generic-vnf",container="vf-modules") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of vf-module.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of vf-module") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="orchestration status of this vf-module, mastered by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is base vf module") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the Contrail unique ID for a service-instance") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of vf-modules, a deployment unit of VNFCs") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="General purpose VNF",nameProps="vnf-name",indexedProps="is-closed-loop-disabled,vnf-name2,vnf-type,heat-stack-id,in-maint,vnf-name,vnf-id,regional-resource-zone,prov-status,service-id,persona-model-id,persona-model-version,widget-model-id,widget-model-version",searchable="vnf-id,vnf-name,vnf-name2",uniqueProps="vnf-id",container="generic-vnfs",namespace="network",extendsFrom="vnf") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF. This is unique across the graph.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of VNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Alternate name of VNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Unique identifier of service from ASDC") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Regional way of organizing pservers, source of truth should define values") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="License key") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Client should send valid enumerated value") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, used by MSO.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="identifier of managed by OPENECOMP or customer") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure generic-vnf, also used for troubleshooting and is IP used for traps generated by generic-vnf.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="v4 Loopback0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="v6 Loopback address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="v6 management address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="number of vcpus ordered for this instance of VNF, used for VNFs with no vservers/flavors") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="units associated with vcpu, used for VNFs with no vservers/flavors") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="number of GB of memory ordered for this instance of VNF, used for VNFs with no vservers/flavors") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="units associated with vmemory, used for VNFs with no vservers/flavors") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="number of vdisks ordered for this instance of VNF, used for VNFs with no vservers/flavors") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="units associated with vdisk, used for VNFs with no vservers/flavors") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether closed loop function is enabled on this node") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="details regarding the generic-vnf operation") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="indicates whether generic-vnf access uses SSH") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="UUID of the Entitlement group used for licensing VNFs") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="UUID of the specific entitlement resource") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="UUID of the license assignment group") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="UUID of the actual license resource") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="as-number of the VNF") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="represents sub zone of the rr plane") - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of VNFs") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="LAG links can connect lag-interfaces",indexedProps="link-name",container="lag-links",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Alphabetical concatenation of lag-interface names") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of link aggregation connections") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This object fills in the gaps from vce that were incorporated into generic-vnf. This object will be retired with vce.",nameProps="vnf-name",indexedProps="vnf-name,vnf-name2,vnf-type,heat-stack-id,prov-status,vnf-id2",searchable="vnf-id2,vnf-name,vnf-name2",uniqueProps="vnf-id2",container="newvces",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF, can't use same attribute name right now until we promote this new object") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of VNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Alternate name of VNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this VNF by BAU Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="License key") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure vpe, also used for troubleshooting and is IP used for traps generated by VPE (v4-loopback0-ip-address).") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Client should send valid enumerated value, e.g., VPE.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="v4 Loopback0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This object fills in the gaps from vce that were incorporated into generic-vnf. This object will be retired with vce.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="PNF represents a physical network function. typically equipment used in the D1 world. in 1607, this will be populated by SDN-C to represent a premises router that a uCPE connects to. But this can be used to represent any physical device that is not an OPENECOMP node or uCPE.",indexedProps="pnf-name,orchestration-status,inv-status",searchable="pnf-name",uniqueProps="pnf-name",container="pnfs",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="unique name of Physical Network Function.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="name of Physical Network Function.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="source of name2") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="id of pnf") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Equipment type. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Equipment vendor. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Equipment model. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="identifier of managed by OPENECOMP or customer") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ipv4-oam-address with new naming convention for IP addresses") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="sw-version is the version of SW for the hosted application on the PNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="orchestration-status is the status of orchestration on the PNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ID of the physical frame (relay rack) where pnf is installed.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Serial number of the device") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV4 Loopback 0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV6 Loopback 0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV4 AIM address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV6 AIM address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV6 OAM address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="CANOPI's inventory status. Only set with values exactly as defined by CANOPI.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of Physical Network Functions.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of physical connections, typically between p-interfaces",indexedProps="circuit-id,link-name",alternateKeys1="circuit-id",container="physical-links",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="e.g., hostnameA_p-connection_nameA_hostnameZ+p_connection-nameZ") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Circuit it") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Dual access mode (e.g., primary, secondary") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="To provide information on who manages this circuit. A&AI or 3rd party transport provider") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of the service Provider on this link.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of physical connections, typically between p-interfaces") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="vig-server contains information about a vig server used for IPSec-configuration. Populated by SDN-C from 1607",indexedProps="vig-address-type",dependentOn="ipsec-configuration",container="vig-servers") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="indicates whether the VIG is for AVPN or INTERNET") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="v4 IP of the vig server") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="v6 IP of the vig server") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPSec configuration node will contain various configuration data for the NMTE VNF. This node will have an edge to the generic-vnf (vnf type = TE). Starting 1607, this data will be populated by SDN-C",indexedProps="ipsec-configuration-id",uniqueProps="ipsec-configuration-id",container="ipsec-configurations",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="UUID of this configuration") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicate the type of VIG server like AVPN, INTERNET, BOTH") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Encryption values like 3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="OPENECOMP can offer a shared DMZ or a DMZ specific to a customer") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Network address of shared DMZ") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="If the DMZ is a custom DMZ, this field will indicate the customer information") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="can be 1 or 2") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Contains values like md5, sha1, sha256, sha384") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Encyption values like 3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Diffie-Hellman group like DH-GROUP2, DH-GROUP5, DH-GROUP14") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Group name defined in VIG for clients using aggressive mode") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="pre-shared key for the above group name ") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Lifetime for IKEv1 SA") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="md5, sha1, sha256, sha384") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Life time for IPSec SA") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="enable PFS or not") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="user ID for xAuth, sm-user,ucpeHostName,nmteHostName") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Encrypted using the Juniper $9$ algorithm") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The time between DPD probe") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Maximum number of DPD before claiming the tunnel is down") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Openstack route table reference.",nameProps="route-table-reference-fqdn",uniqueProps="route-table-reference-id",indexedProps="route-table-reference-id,route-table-reference-fqdn",container="route-table-references",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Route Table Reference id, UUID assigned to this instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="FQDN entry in the route table.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Concurrency value") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of openstack route table references") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="General mechanism for grouping instances",nameProps="description",uniqueProps="id",indexedProps="id,description,type,sub-type",container="instance-groups",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Instance Group ID, UUID assigned to this instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Descriptive text to help identify the usage of this instance-group") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Only valid value today is lower case ha for high availability") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Valid values for ha type are [geo-activeactive, geo-activestandby, local-activeactive, local-activestandby]") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Concurrency value") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of openstack route table references") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Namespace for network inventory resources.") - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Internal map to define some reserved properties of a vertex",uniqueProps="aai-unique-key",indexedProps="aai-unique-key,source-of-truth,aai-node-type") - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Internal map to define the properties of an edge and interpret the map EdgeRules",edgeInfo="edgeLabel,direction,multiplicityRule,isParent,usesResource,hasDelTarget,SVC-INFRA,SVC-INFRA-REV") - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="QueryParameters for performing a named-query or model query") - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="InstanceFilters for performing a named-query or model query") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ModelAndNamedQuerySearch holds query-parameters and instance-properties for performing a named-query or model query") - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Property holder for query properties or instance properties") - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Inventory item for response list",container="inventory-response-items") - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Container for inventory items in response list",container="response-list") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Response container for the results of a named-query or model query") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Abstract vnf class",indexedProps="vnf-id",uniqueProps="vnf-id",inheritors="vce,vpe,generic-vnf",isAbstract="true") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF. This is unique across the graph.") - - - - - - - diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/resources/aai_schema_v11.xsd b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/resources/aai_schema_v11.xsd deleted file mode 100644 index 32655fd7c1..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/resources/aai_schema_v11.xsd +++ /dev/null @@ -1,6751 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The specific type of node in the A&AI graph") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The URL to the specific resource") - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="A keyword provided by A&AI to indicate an attribute.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Value of the attribute.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Key part of a key/value pair") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Value part of a key/value pair") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="A keyword provided by A&AI to indicate type of node.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to the object in A&AI.") - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="OAM network, to be deprecated shortly. Do not use for new purposes. ",nameProps="network-name",indexedProps="cvlan-tag,network-uuid,network-name",dependentOn="cloud-region",container="oam-networks") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="UUID of the network. Unique across a cloud-region") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of the network.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="cvlan-id") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for VNF firewall rule so customer cannot send customer traffic over this oam network") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for VNF firewall rule so customer cannot send customer traffic over this oam network") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of OAM networks, to be deprecated shortly. Do not use for new purposes. ") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Digital virtual switch metadata, used by SDN-C to configure VCEs. A&AI needs to receive this data from the PO deployment team and administer it using the provisioningTool.sh into A&AI. ",indexedProps="vcenter-url,switch-name",dependentOn="cloud-region",container="dvs-switches") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="DVS switch name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL used to reach the vcenter") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of digital virtual switch metadata used for vmWare VCEs and GenericVnfs.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Availability zone, a collection of compute hosts/pservers",indexedProps="availability-zone-name",dependentOn="cloud-region",container="availability-zones") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name of the availability zone. Unique across a cloud region") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Type of hypervisor. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="State that indicates whether the availability zone should be used, etc. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Serves a PATCH like function. Does not enforce concurrency control. Clear each usage with AAI team.") - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="APIs that are more action related than REST (e.g., notify, update).") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="A collection of C tags (vlan tags) grouped for a specific purpose.",indexedProps="availability-zone-name",dependentOn="complex",container="ctag-pools") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="The Target provider edge router") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name of the availability zone") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Describes what the intended purpose of this pool is.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Comma separated list of ctags") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of physical locations that can house cloud-regions.",indexedProps="identity-url,data-center-code,complex-name,physical-location-id",searchable="physical-location-id,data-center-code,complex-name,street1,street2,postal-code",uniqueProps="physical-location-id",container="complexes",namespace="cloud-infrastructure") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier for physical location, e.g., CLLI") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Data center code which can be an alternate way to identify a complex") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Gamma complex name for LCP instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL of the keystone identity service") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Type, e.g., central office, data center.") - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of physical locations that can house cloud-regions.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Persistent block-level storage.",indexedProps="volume-group-name,vnf-type,heat-stack-id,volume-group-id",searchable="volume-group-id,volume-group-name",dependentOn="cloud-region",container="volume-groups") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of volume-group.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of the volume group.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this volume-group") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded in service-specific ways and clients should expect changes to occur in the future to this field as ECOMP matures.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this volume-group") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="helps relate the volume group to the vf-module whose components will require the volume group") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of persistent block-level storage.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Ephemeral Block storage volume.",indexedProps="volume-id",dependentOn="vserver",container="volumes") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of block storage volume relative to the vserver.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of ephemeral Block storage volumes.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPv4 Address Range",indexedProps="l3-interface-ipv4-address,vlan-id-inner,neutron-network-id,neutron-subnet-id",dependentOn="vlan,l-interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="IP address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Prefix length, 32 for single address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Inner VLAN tag") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Outer VLAN tag") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicator of fixed or floating address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron network id of the interface that address belongs to") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron id of subnet that address belongs to") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPv6 Address Range",indexedProps="l3-interface-ipv6-address,vlan-id-inner,neutron-network-id,neutron-subnet-id",dependentOn="vlan,l-interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="IP address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Prefix length, 128 for single address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Inner VLAN tag") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Outer VLAN tag") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicator of fixed or floating address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron network id of the interface that address belongs to") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron id of subnet that address belongs to") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Definition of vlan",indexedProps="vlan-interface,vlan-id-inner,vpn-key",dependentOn="l-interface",container="vlans") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="String that identifies the interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Inner VLAN tag") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Outer VLAN tag") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used to describe (the service associated with) the vlan") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Whether customer is going to use this VLAN for backdoor connection to another customer premise device.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This indicates the customers VPN ID associated with this vlan") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Status of a vnf's vlan interface, on which the customer circuit resides, mastered by SDN-C.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true)") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Prov Status of the VLAN configuration related to a logical interface. Valid values [PREPROV/NVTPROV/PROV].") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Flag indicating the interface uses the IP Unnumbered configuration.") - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="SR-IOV Virtual Function (not to be confused with virtual network function)",indexedProps="pci-id,vf-vlan-filter,vf-mac-filter,vf-vlan-strip,neutron-network-id",dependentOn="l-interface",container="sriov-vfs") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="PCI ID used to identify the sriov-vf") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This metadata provides option to specify list of VLAN filters applied on VF to pass the traffic to VM.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="When MAC filters are specified, VF-agent service configures VFs to do MAC level filtering before the traffic is passed to VM.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="When this field is set to true, VF will configured to strip the outer TAG before the traffic is passed to VM.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option ensures anti VLAN spoof checks are done at the VF level to comply with security. The disable check will also be honored per the VNF needs for trusted VMs.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option ensures anti MAC spoof checks are done at the VF level to comply with security. The disable check will also be honored per the VNF needs for trusted VMs.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option defines the set of Mirror objects which essentially mirrors the traffic from source to set of collector VNF Ports.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, sets the VF in promiscuous mode and allows all broadcast traffic to reach the VM") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, sets the VF in promiscuous mode and allows unknown multicast traffic to reach the VM") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, sets the VF in promiscuous mode and allows unknown unicast traffic to reach the VM") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, instructs to insert outer tag after traffic comes out of VM.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option is used to set the link status. Valid values as of 1607 are on, off, and auto.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron network id of the interface") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of SR-IOV Virtual Functions.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Logical interfaces, e.g., a vnic.",indexedProps="macaddr,interface-id,interface-name,network-name",dependentOn="generic-vnf,newvce,p-interface,vserver,lag-interface",container="l-interfaces") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name given to the interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="E.g., CUSTOMER, UPLINK, etc.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Questionably placed - v6 ip addr of this interface (is in vr-lan-interface from Mary B.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ID of interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="MAC address for the interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of the network") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Whether A&AI should be managing this interface of not. Could have value like CUSTOMER") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Human friendly text regarding this interface.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="boolean indicatating whether or not port is a mirrored.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true)") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Prov Status of the logical interface. Valid values [PREPROV/NVTPROV/PROV].") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Flag indicating the interface uses the IP Unnumbered configuration.") - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of logical interfaces.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Virtual Servers, aka virtual machine or VM.",nameProps="vserver-name",indexedProps="is-closed-loop-disabled,prov-status,vserver-name,vserver-id,in-maint,vserver-name2",searchable="vserver-id,vserver-name,vserver-name2",dependentOn="tenant",container="vservers") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier for this vserver relative to its tenant") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of vserver") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Alternative name of vserver") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Used to indicate whether closed loop function is enabled on this node") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of virtual Servers, aka virtual machines or VMs.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Openstack tenant",nameProps="tenant-name",indexedProps="tenant-name,tenant-id,tenant-context",searchable="tenant-id,tenant-name",dependentOn="cloud-region",container="tenants") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id relative to the cloud-region.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Readable name of tenant") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This field will store the tenant context.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of openstack tenants.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Openstack flavor.",nameProps="flavor-name",indexedProps="flavor-name,flavor-id",dependentOn="cloud-region",container="flavors") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Flavor id, expected to be unique across cloud-region.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Flavor name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Number of CPUs") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Amount of memory") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Disk space") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Amount of ephemeral disk space") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="amount of swap space allocation") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="whether flavor is available to all users or private to the tenant it was created in.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Boolean as to whether this flavor is no longer enabled") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of openstack flavors.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Openstack group-assignment used to store exclusivity groups (EG).",nameProps="group-name",indexedProps="group-id,group-type,group-name",searchable="group-id,group-name",dependentOn="cloud-region",container="group-assignments") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Group id, expected to be unique across cloud-region.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Group type - the type of group this instance refers to") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Group name - name assigned to the group") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Group description - description of the group") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of openstack group assignments") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Openstack snapshot",nameProps="snapshot-name",uniqueProps="snapshot-id",indexedProps="application,snapshot-name,application-vendor,snapshot-id,application-version,prev-snapshot-id",dependentOn="cloud-region",container="snapshots") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Snapshot id, this is the key UUID assoc associated in glance with the snapshots.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Snapshot name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Operating system architecture") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The common name of the operating system distribution in lowercase") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The operating system version as specified by the distributor.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The application that the image instantiates.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The vendor of the application.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The version of the application.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This field contains the UUID of the previous snapshot (if any).") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of openstack snapshots") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Key/value pairs",indexedProps="metaname",dependentOn="tenant,image,service-instance,connector,model",container="metadata") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true) - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of metadatum (key/value pairs)") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Openstack image.",nameProps="image-name",indexedProps="application,image-name,application-vendor,image-id,application-version",dependentOn="cloud-region",container="images") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Image id, expected to be unique across cloud region") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Image name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Operating system architecture.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The common name of the operating system distribution in lowercase") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The operating system version as specified by the distributor.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The application that the image instantiates.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The vendor of the application.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The version of the application.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collectio of Openstack images.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of availability zones") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="cloud-region designates an installation of a cloud cluster or region or instantiation. In AT&Ts AIC cloud, this could be an LCP or DCP. Cloud regions are uniquely identified by a composite key, cloud-owner + cloud-region-id. The format of the cloud-owner is vendor-cloudname and we will use att-aic for AT&T's AIC.",indexedProps="cloud-owner,cloud-region-id,cloud-type,owner-defined-type",nameProps="owner-defined-type",container="cloud-regions",namespace="cloud-infrastructure") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Identifies the vendor and cloud name, e.g., att-aic. First part of composite key should be formatted as vendor-cloudname") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Identifier used by the vendor for the region. Second part of composite key") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Type of the cloud (e.g., openstack)") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Cloud-owner defined type indicator (e.g., dcp, lcp)") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Software version employed at the site. NOTE - THIS FIELD IS NOT KEPT UP TO DATE.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL of the keystone identity service") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Zone where the cloud is homed. NOTE - THIS FIELD IS NOT CORRECTLY POPULATED.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="complex name for cloud-region instance. NOTE - THIS FIELD IS NOT CORRECTLY POPULATED.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Whether the cloud region supports (true) or does not support (false) SR-IOV automation.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(maximumDepth="0") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Network profile populated by SDN-GP for SNMP",indexedProps="nm-profile-name",container="network-profiles",namespace="cloud-infrastructure") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique name of network profile.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Encrypted SNMP community string") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of network profiles") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="SR-IOV Physical Function",indexedProps="pf-pci-id",dependentOn="p-interface",container="sriov-pfs") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Identifier for the sriov-pf") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of SR-IOV Physical Functions.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Physical interface (e.g., nic)",indexedProps="interface-name,prov-status",nameProps="prov-status",dependentOn="vpls-pe,pserver,pnf",container="p-interfaces") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name that identifies the physical interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Nature of the services and connectivity on this port.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="CLEI or other specification for p-interface hardware.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Role specification for p-interface hardware.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicates the physical properties of the interface.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true)") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="inventory status") - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of physical interfaces.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Link aggregate interface",indexedProps="interface-name,interface-id,interface-role",dependentOn="generic-vnf,pserver,vpls-pe,pnf",container="lag-interfaces") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name that identifies the link aggregate interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Human friendly text regarding this interface.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ID of interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Role assigned to this Interface, should use values as defined in ECOMP Yang models.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true)") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of link aggregate interfaces.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Compute host whose hostname must be unique and must exactly match what is sent as a relationship to a vserver.",nameProps="pserver-name2",indexedProps="hostname,in-maint,pserver-id,pserver-name2,inv-status",searchable="hostname,pserver-name2,pserver-id,ipv4-oam-address",container="pservers",namespace="cloud-infrastructure") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Value from executing hostname on the compute node.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="PTNII name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Number of cpus") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Disk size, in GBs") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="RAM size, in MBs") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Equipment type. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Equipment vendor. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Equipment model. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Fully-qualified domain name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used to configure device, also used for troubleshooting and is IP used for traps generated by device.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Serial number, may be queried") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV4 Loopback 0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV6 Loopback 0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV4 AIM address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV6 AIM address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV6 OAM address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="CANOPI's inventory status. Only set with values exactly as defined by CANOPI.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ID of Pserver") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="internet topology of Pserver") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="alternative pserver name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="purpose of pserver") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Prov Status of this device (not under canopi control) Valid values [PREPROV/NVTPROV/PROV]") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicates who owns and or manages the device.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The host profile that defines the configuration of the pserver.") - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of compute hosts.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Virtual organization of cloud infrastructure elements in a data center context",nameProps="vdc-name",indexedProps="vdc-name,vdc-id",container="virtual-data-centers",namespace="cloud-infrastructure") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of the vdc") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of the virtual data center") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Virtual organization of cloud infrastructure elements in a data center context") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Namespace for cloud infrastructure.") - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="OBSOLETE OBJECT: do not use",nameProps="name",indexedProps="assignment-group-uuid,att-uuid,name",uniqueProps="att-uuid",container="license-key-resources",namespace="license-management") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true) - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of resource instances used to connect a variety of disparate inventory widgets",indexedProps="resource-instance-id,model-invariant-id,model-version-id,widget-model-id,widget-model-version",container="connectors",namespace="business") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of resource instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.",visibility="deployment",requires="model-version-id",dbAlias="model-invariant-id-local") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="deployment",requires="model-invariant-id",dbAlias="model-version-id-local") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="internal",dataCopy="service-design-and-creation/models/model/{model-invariant-id}/model-vers/model-ver/{model-version-id}#model-version") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of resource instances used to connect a variety of disparate inventory widgets") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Represents the specifics of a tunnel cross connect piece of a resource that gets separately allotted",uniqueProps="id",indexedProps="id",dependentOn="allotted-resource",container="tunnel-xconnects") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Allotted Resource id UUID assigned to this instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The WAN uplink bandwidth for WAN1") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The WAN downlink bandwidth for WAN1") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The WAN uplink bandwidth for WAN2") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The WAN downlink bandwidth for WAN2") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Concurrency value") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This object is used to store the specific tunnel cross connect aspects of an allotted resource") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Represents a slice or partial piece of a resource that gets separately allotted",nameProps="description",uniqueProps="id",indexedProps="id,model-invariant-id,model-version-id,type,role",dependentOn="service-instance",container="allotted-resources") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Allotted Resource id UUID assigned to this instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The descriptive information assigned to this allotted resource instance") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Link back to more information in the controller") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.",visibility="deployment",requires="model-version-id",dbAlias="model-invariant-id-local") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="deployment",requires="model-invariant-id",dbAlias="model-version-id-local") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="internal",dataCopy="service-design-and-creation/models/model/{model-invariant-id}/model-vers/model-ver/{model-version-id}#model-version") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Concurrency value") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Generic description of the type of allotted resource.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="role in the network that this resource will be providing.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This object is used to store slices of services being offered") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Instance of a service",indexedProps="service-instance-id,model-invariant-id,model-version-id,widget-model-id,widget-model-version,service-instance-name,service-instance-location-id,orchestration-status,environment-context,workload-context",nameProps="service-instance-name",searchable="service-instance-id,service-instance-name",uniqueProps="service-instance-id",dependentOn="service-subscription",container="service-instances") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Uniquely identifies this instance of a service") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This field will store a name assigned to the service-instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="String capturing type of service.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="String capturing the service role.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This field will store the environment context assigned to the service-instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This field will store the workload context assigned to the service-instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.",visibility="deployment",requires="model-version-id",dbAlias="model-invariant-id-local") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="deployment",requires="model-invariant-id",dbAlias="model-version-id-local") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="internal",dataCopy="service-design-and-creation/models/model/{model-invariant-id}/model-vers/model-ver/{model-version-id}#model-version") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicates the total bandwidth to be used for this service.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="indicates the upstream bandwidth this service will use on the WAN1 port of the physical device.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="indicates the downstream bandwidth this service will use on the WAN1 port of the physical device.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="indicates the upstream bandwidth this service will use on the WAN2 port of the physical device.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="indicates the downstream bandwidth this service will use on the WAN2 port of the physical device.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL customers will use to access the vHN Portal.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="An identifier that customers assign to the location where this service is being used.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Path to the controller object.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this service.") - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of service instances") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Object that group service instances.",indexedProps="service-type",dependentOn="customer",container="service-subscriptions",crossEntityReference="service-instance,service-type") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Value defined by orchestration to identify this service across ECOMP.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This property will be deleted from A&AI in the near future. Only stop gap solution.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of objects that group service instances.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="customer identifiers to provide linkage back to BSS information.",nameProps="subscriber-name",indexedProps="subscriber-name,global-customer-id,subscriber-type",searchable="global-customer-id,subscriber-name",uniqueProps="global-customer-id",container="customers",namespace="business") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Global customer id used across ECOMP to uniquely identify customer.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Subscriber name, an alternate way to retrieve a customer.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Subscriber type, a way to provide VID with only the INFRA customers.",defaultValue="CUST") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of customer identifiers to provide linkage back to BSS information.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Namespace for business related constructs") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Image object that pertain to a VNF that doesn't have associated vservers. This is a kludge.",indexedProps="application,vnf-image-uuid,application-vendor,application-version",uniqueProps="vnf-image-uuid",container="vnf-images",namespace="service-design-and-creation") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of this asset") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The application that the image instantiates.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The vendor of the application.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The version of the application.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of image objects that pertain to a VNF that doesn't have associated vservers. This is a kludge.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Stand-in for service model definitions. Likely to be deprecated in favor of models from ASDC. Does not strictly map to ASDC services.",indexedProps="service-description,service-id",container="services",namespace="service-design-and-creation") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="This gets defined by others to provide a unique ID for the service, we accept what is sent.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Description of the service") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="service version") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of service model definitions. Likely to be deprecated in favor of models from ASDC.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Early definition of server/resource pairings, likely to be replaced by models. No new use should be made of this.",indexedProps="service-type,vnf-type",container="service-capabilities",namespace="service-design-and-creation") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="This gets defined by others to provide a unique ID for the service, we accept what is sent.") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded in service-specific ways and clients should expect changes to occur in the future to this field as ECOMP matures.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of service capabilities.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This is how we would capture constraints defining allowed sets of elements.",uniqueProps="element-choice-set-uuid",indexedProps="element-choice-set-uuid",allowDirectRead="true",allowDirectWrite="false",container="element-choice-sets") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This is how we would capture constraints defining allowed sets of elements.",uniqueProps="constrained-element-set-uuid",indexedProps="constrained-element-set-uuid",allowDirectRead="true",allowDirectWrite="false",container="constrained-element-sets") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This is how we would capture constraints defining allowed sets of elements.",uniqueProps="model-constraint-uuid",indexedProps="model-constraint-uuid",allowDirectRead="true",allowDirectWrite="false",container="model-constraints") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Defines how other models combine to make up a higher-level model.",uniqueProps="model-element-uuid",indexedProps="model-element-uuid",allowDirectRead="true",allowDirectWrite="false",container="model-elements") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicates whether this element was created as part of instantiation from this model") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="How many of this type of element are required/allowed") - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Defines how other models combine to make up a higher-level model") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Describes new constraints on this model element that are not part of that model's definition") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Subgraph definition provided by ASDC to describe a specific version of an inventory asset and its connections related to ASDC models",nameProps="model-name",indexedProps="model-version-id,model-name,model-version",uniqueProps="model-version-id",container="model-vers") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier corresponding to one version of a model in ASDC") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of the model, which can change from version to version.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Version") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Description") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Subgraph definition provided by ASDC to describe an inventory asset and its connections related to ASDC models, independent of version",nameProps="model-type",indexedProps="model-invariant-id,model-type",uniqueProps="model-invariant-id",container="models",namespace="service-design-and-creation") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier corresponding to the main definition of a model in ASDC") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Type of the model, e.g., service, resource, widget, etc.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of subgraph definitions provided by ASDC to describe the inventory assets and their connections related to ASDC models") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="TBD",uniqueProps="related-lookup-uuid",indexedProps="related-lookup-uuid",allowDirectRead="true",allowDirectWrite="false",container="related-lookups") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="TBD",uniqueProps="property-constraint-uuid",indexedProps="property-constraint-uuid",allowDirectRead="true",allowDirectWrite="false",container="property-constraints") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="TBD",uniqueProps="named-query-element-uuid",indexedProps="named-query-element-uuid",allowDirectRead="true",allowDirectWrite="false",container="named-query-elements") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="TBD",nameProps="named-query-name",uniqueProps="named-query-uuid",indexedProps="named-query-uuid,named-query-name",container="named-queries",namespace="service-design-and-creation") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true) - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="TBD",nameProps="named-query-name",uniqueProps="named-query-uuid",indexedProps="named-query-uuid,named-query-name",container="named-queries",namespace="service-design-and-creation") - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Namespace for objects managed by ASDC") - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Logical links generally connect l-interfaces but are used to express logical connectivity between two points",indexedProps="link-name,model-invariant-id,model-version-id,widget-model-id,widget-model-version,link-id,prov-status,circuit-id,purpose",uniqueProps="link-id",container="logical-links",namespace="network",searchable="link-name") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="e.g., evc-name, or vnf-nameA_interface-nameA_vnf-nameZ_interface-nameZ") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Type of logical link, e.g., evc") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="v4, v6, or ds for dual stack (should be att-ip-version)") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="For example, static or BGP") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.",visibility="deployment",requires="model-version-id",dbAlias="model-invariant-id-local") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="deployment",requires="model-invariant-id",dbAlias="model-version-id-local") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="internal",dataCopy="service-design-and-creation/models/model/{model-invariant-id}/model-vers/model-ver/{model-version-id}#model-version") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indication of operational status of the logical link.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this VNF by BAU Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indication of the network use of the logical link.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Alias or alternate name (CLCI or D1 name).") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="UUID of the logical-link, SDNC generates this.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Circuit id") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Reason for this entity, role it is playing") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of logical connections") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(indexedProps="cos",dependentOn="site-pair",container="classes-of-service") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="unique identifier of probe") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="identifier of probe") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="type of probe") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="class-of-service of probe") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(indexedProps="site-pair-id",uniqueProps="site-pair-id",dependentOn="routing-instance",container="site-pairs") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="unique identifier of probe") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Prefix address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Prefix address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ip version, v4, v6") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Hostname of the destination equipment to which SLAs are measured against.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The type of destinatination equipment. Could be Router, UCPE, etc.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="probe within a set") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(indexedProps="routing-instance-id",dependentOn="site-pair-set",container="routing-instances") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of routing instance") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="rpm owner") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="set of probes related to generic-vnf routing instance") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Set of instances for probes used to measure service level agreements",indexedProps="site-pair-set-id",uniqueProps="site-pair-set-id",container="site-pair-sets",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of site pair set.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of sets of instances for probes related to generic-vnf") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Route target information",container="route-targets",dependentOn="vpn-binding",canBeLinked="true") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Number used to identify an RT, globally unique in the network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Role assigned to this route target") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of route target information") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="VPN binding",nameProps="vpn-name,vpn-type",indexedProps="vpn-name,vpn-id,vpn-type",searchable="vpn-id,vpn-name",uniqueProps="vpn-id",container="vpn-bindings",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="VPN ID, globally unique within A&AI") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="VPN Name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the platform associated with the VPN example AVPN, Mobility") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Type of the vpn, should be taken from enumerated/valid values") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="region of customer vpn") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="id for this customer vpn") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used to distinguish the distinct VPN routes of separate customers who connect to the provider in an MPLS network.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="l3-networks relate to vpn-bindings") - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="VPLS Provider Edge routers.",indexedProps="prov-status,equipment-name",container="vpls-pes",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true) - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this VNF by BAU Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure generic-vnf, also used for troubleshooting and is IP used for traps generated by GenericVnf (v4-loopback0-ip-address).") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Client should send valid enumerated value, e.g., VPLS-PE.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Temporary location for stag to get to VCE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of VPLS Provider Edge routers") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(indexedProps="multicast-configuration-id",uniqueProps="multicast-configuration-id",container="multicast-configurations",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of multicast configuration.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="protocol of multicast configuration") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="rp type of multicast configuration") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="multicast configuration of generic-vnf ip-address") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(dependentOn="port-group",indexedProps="cvlan-tag",container="cvlan-tags") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="See mis-na-virtualization-platform.yang") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used to capture the network interfaces of this VCE",nameProps="port-group-name",indexedProps="port-group-id,heat-stack-id,interface-id,interface-name,switch-name",dependentOn="vce",container="port-groups") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of the interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron network id of this Interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron network name of this Interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Role assigned to this Interface, should use values as defined in ECOMP Yang models.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Unique ID for port group in vmware") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Likely to duplicate value of neutron network name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="DVS or standard switch name (should be non-null for port groups associated with DVS)") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Metadata for license group.",indexedProps="group-uuid,resource-uuid",dependentOn="generic-vnf,vce",container="licenses") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID for the license group the resource belongs to, should be uuid.") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of a license resource. ") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Concurrency value") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Licenses to be allocated across resources, keyed by group-uuid and resource-uuid, related to license management") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Metadata for entitlement group.",indexedProps="group-uuid,resource-uuid",dependentOn="generic-vnf,vce",container="entitlements") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID for the entitlement group the resource comes from, should be uuid.") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of an entitlement resource. ") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Concurrency value") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Entitlements, keyed by group-uuid and resource-uuid, related to license management") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Virtual Customer Edge Router, used specifically for Gamma. This object is deprecated.",nameProps="vnf-name",indexedProps="vnf-name,vnf-name2,vnf-type,heat-stack-id,vnf-id,interface-name,regional-resource-zone,vpe-id,prov-status,service-id",searchable="vnf-id,vnf-name,vnf-name2",uniqueProps="vnf-id",container="vces",namespace="network",extendsFrom="vnf") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF. This is unique across the graph.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of VNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Alternate name of VNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded in service-specific ways and clients should expect changes to occur in the future to this field as ECOMP matures.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Unique identifier of service, does not strictly map to ASDC services, SOON TO BE DEPRECATED.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Regional way of organizing pservers, source of truth should define values") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="OBSOLETE - do not use") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Network role being played by this VNF") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Unique ID of VPE connected to this VCE.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Valid v6 IP address for the WAN Link on this router. Implied length of /64.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure vce, also used for troubleshooting and is IP used for traps generated by VCE.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Loopback0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="OBSOLETE - see child relationships") - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of Virtual Customer Edge Routers, used specifically for Gamma. This object is deprecated.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(indexedProps="vnfc-name,prov-status,nfc-function,nfc-naming-code,ipaddress-v4-oam-vip,in-maint,is-closed-loop-disabled,group-notation,model-invariant-id,model-version-id",searchable="vnfc-name",container="vnfcs",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of vnfc.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Short code that is used in naming instances of the item being modeled") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="English description of function that the specific resource deployment is providing. Assigned as part of the customization of a resource in a service") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="prov status of this vnfc") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by APP-C") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Oam V4 vip address of this vnfc") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true)") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether closed loop function is enabled on this node") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Group notation of VNFC") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.",visibility="deployment",requires="model-version-id") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="deployment",requires="model-invariant-id") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="virtual network components associated with a vserver from application controller.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(indexedProps="subnet-id,subnet-name",nameProps="subnet-name",uniqueProps="subnet-id",dependentOn="l3-network",container="subnets") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Subnet ID, should be UUID.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name associated with the subnet.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron id of this subnet") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="gateway ip address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="network start address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="cidr mask") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ip version") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="dhcp enabled") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the start address reserved for use by dhcp") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the last address reserved for use by dhcp") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="role of the subnet, referenced when assigning IPs") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(indexedProps="vlan-id-inner",dependentOn="l3-network",container="ctag-assignments") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="id.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Openstack segmentation assignment.",indexedProps="segmentation-id",dependentOn="l3-network",container="segmentation-assignments") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Route Table Reference id, UUID assigned to this instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Concurrency value") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of openstack segmentation assignments") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Generic network definition",nameProps="network-name",indexedProps="heat-stack-id,network-uuid,service-id,network-id,network-name,model-invariant-id,model-version-id,widget-model-id,widget-model-version,contrail-network-fqdn,network-role",searchable="network-id,network-name",uniqueProps="network-id",container="l3-networks",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Network ID, should be uuid. Unique across A&AI.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of the network, governed by some naming convention..") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Type of the network - who defines these values?") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Role the network plans - who defines these values?") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Network technology - who defines these values?") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron network id of this Interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Set to true if bound to VPN") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Unique identifier of service from ASDC. Does not strictly map to ASDC services. SOON TO BE DEPRECATED") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="network role instance") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Contrail FQDN for the network") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.",visibility="deployment",requires="model-version-id",dbAlias="model-invariant-id-local") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="deployment",requires="model-invariant-id",dbAlias="model-version-id-local") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="internal",dataCopy="service-design-and-creation/models/model/{model-invariant-id}/model-vers/model-ver/{model-version-id}#model-version") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name associated with the physical network.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="boolean indicatating whether or not network is a provider network.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="boolean indicatating whether or not network is a shared network.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="boolean indicatating whether or not network is an external network.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Path to the controller object.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational.") - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Relates to tenant (or is it a child of tenant), complex, service, vpn-binding") - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(nameProps="network-policy-fqdn",indexedProps="network-policy-id,network-policy-fqdn",searchable="network-policy-id,network-policy-fqdn",uniqueProps="network-policy-id",container="network-policies",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="UUID representing unique key to this instance") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Contrail FQDN for the policy") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ID for the openStack Heat instance") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="a deployment unit of VNFCs",indexedProps="vf-module-id,vf-module-name,heat-stack-id,model-invariant-id,model-version-id,widget-model-id,widget-model-version,contrail-service-instance-fqdn",searchable="vf-module-id,vf-module-name",dependentOn="generic-vnf",container="vf-modules") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of vf-module.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of vf-module") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="orchestration status of this vf-module, mastered by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is base vf module") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.",visibility="deployment",requires="model-version-id",dbAlias="model-invariant-id-local") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="deployment",requires="model-invariant-id",dbAlias="model-version-id-local") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="internal",dataCopy="service-design-and-creation/models/model/{model-invariant-id}/model-vers/model-ver/{model-version-id}#model-version") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the Contrail unique ID for a service-instance") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the index will track the number of modules of a given type that have been deployed in a VNF, starting with 0, and always choosing the lowest available digit") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Path to the controller object.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of vf-modules, a deployment unit of VNFCs") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="General purpose VNF",nameProps="vnf-name",indexedProps="is-closed-loop-disabled,vnf-name2,vnf-type,heat-stack-id,in-maint,vnf-name,vnf-id,regional-resource-zone,prov-status,service-id,model-invariant-id,model-version-id,widget-model-id,widget-model-version,nf-type,nf-function,nf-naming-code,nf-role",searchable="vnf-id,vnf-name,vnf-name2",uniqueProps="vnf-id",container="generic-vnfs",namespace="network",extendsFrom="vnf",containsSuggestibleProps="true",suggestionAliases="VNFs") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF. This is unique across the graph.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of VNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Alternate name of VNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded in service-specific ways and clients should expect changes to occur in the future to this field as ECOMP matures.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Unique identifier of service, does not necessarily map to ASDC service models. SOON TO BE DEPRECATED") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Regional way of organizing pservers, source of truth should define values") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.",suggestibleOnSearch="true") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational. Valid values are in-service-path and out-of-service-path.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="OBSOLETE - do not use") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Client should send valid enumerated value") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, used by MSO.",suggestibleOnSearch="true") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="identifier of managed by ATT or customer") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure generic-vnf, also used for troubleshooting and is IP used for traps generated by generic-vnf.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="v4 Loopback0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="v6 Loopback address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="v6 management address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="number of vcpus ordered for this instance of VNF, used for VNFs with no vservers/flavors, to be used only by uCPE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="units associated with vcpu, used for VNFs with no vservers/flavors, to be used only by uCPE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="number of GB of memory ordered for this instance of VNF, used for VNFs with no vservers/flavors, to be used only by uCPE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="units associated with vmemory, used for VNFs with no vservers/flavors, to be used only by uCPE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="number of vdisks ordered for this instance of VNF, used for VNFs with no vservers/flavors, to be used only uCPE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="units associated with vdisk, used for VNFs with no vservers/flavors, to be used only by uCPE") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether closed loop function is enabled on this node") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="details regarding the generic-vnf operation, PLEASE DISCONTINUE USE OF THIS FIELD.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="indicates whether generic-vnf access uses SSH") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="UUID of the Entitlement group used for licensing VNFs, OBSOLETE - See child relationships.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="UUID of the specific entitlement resource. OBSOLETE - See child relationships.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="UUID of the license assignment group. OBSOLETE - See child relationships.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="UUID of the actual license resource. OBSOLETE - See child relationships.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.",visibility="deployment",requires="model-version-id",dbAlias="model-invariant-id-local") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="deployment",requires="model-invariant-id",dbAlias="model-version-id-local") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="internal",dataCopy="service-design-and-creation/models/model/{model-invariant-id}/model-vers/model-ver/{model-version-id}#model-version") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="as-number of the VNF") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="represents sub zone of the rr plane") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Generic description of the type of NF",suggestibleOnSearch="true") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="English description of Network function that the specific VNF deployment is providing") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="role in the network that this model will be providing",suggestibleOnSearch="true") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="string assigned to this model used for naming purposes") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Path to the controller object.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Gateway address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Prefix length for oam-address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Temporary location for S-TAG to get to VCE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Network Management profile of this VNF") - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of VNFs") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="LAG links can connect lag-interfaces",indexedProps="link-name",container="lag-links",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Alphabetical concatenation of lag-interface names") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of link aggregation connections") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This object fills in the gaps from vce that were incorporated into generic-vnf. This object will be retired with vce.",nameProps="vnf-name",indexedProps="vnf-name,vnf-name2,vnf-type,heat-stack-id,prov-status,vnf-id2",searchable="vnf-id2,vnf-name,vnf-name2",uniqueProps="vnf-id2",container="newvces",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF, can't use same attribute name right now until we promote this new object") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of VNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Alternate name of VNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded in service-specific ways and clients should expect changes to occur in the future to this field as ECOMP matures.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this VNF by BAU Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="OBSOLETE - do not use") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure generic-vnf, also used for troubleshooting and is IP used for traps generated by GenericVnf (v4-loopback0-ip-address).") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Client should send valid enumerated value.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="v4 Loopback0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This object fills in the gaps from vce that were incorporated into generic-vnf. This object will be retired with vce.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="PNF represents a physical network function. typically equipment used in the D1 world. in 1607, this will be populated by SDN-C to represent a premises router that a uCPE connects to. But this can be used to represent any physical device that is not an AIC node or uCPE.",indexedProps="pnf-name,orchestration-status,inv-status",searchable="pnf-name",uniqueProps="pnf-name",container="pnfs",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="unique name of Physical Network Function.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="name of Physical Network Function.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="source of name2") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="id of pnf") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Equipment type. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Equipment vendor. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Equipment model. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="identifier of managed by ATT or customer") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ipv4-oam-address with new naming convention for IP addresses") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="sw-version is the version of SW for the hosted application on the PNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ID of the physical frame (relay rack) where pnf is installed.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Serial number of the device") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV4 Loopback 0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV6 Loopback 0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV4 AIM address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV6 AIM address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV6 OAM address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="CANOPI's inventory status. Only set with values exactly as defined by CANOPI.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Prov Status of this device (not under canopi control) Valid values [PREPROV/NVTPROV/PROV]") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Nf Role is the role performed by this instance in the network.") - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of Physical Network Functions.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of physical connections, typically between p-interfaces",indexedProps="circuit-id,link-name",alternateKeys1="circuit-id",container="physical-links",namespace="network",searchable="link-name,circuit-id") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="e.g., hostnameA_p-connection_nameA_hostnameZ+p_connection-nameZ") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Circuit it") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Dual access mode (e.g., primary, secondary") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="To provide information on who manages this circuit. A&AI or 3rd party transport provider") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of the service Provider on this link.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of physical connections, typically between p-interfaces") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="vig-server contains information about a vig server used for IPSec-configuration. Populated by SDN-C from 1607",indexedProps="vig-address-type",dependentOn="ipsec-configuration",container="vig-servers") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="indicates whether the VIG is for AVPN or INTERNET") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="v4 IP of the vig server") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="v6 IP of the vig server") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPSec configuration node will contain various configuration data for the NMTE VNF. This node will have an edge to the generic-vnf (vnf type = TE). Starting 1607, this data will be populated by SDN-C",indexedProps="ipsec-configuration-id",uniqueProps="ipsec-configuration-id",container="ipsec-configurations",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="UUID of this configuration") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicate the type of VIG server like AVPN, INTERNET, BOTH") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Encryption values like 3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ATT can offer a shared DMZ or a DMZ specific to a customer") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Network address of shared DMZ") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="If the DMZ is a custom DMZ, this field will indicate the customer information") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="can be 1 or 2") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Contains values like md5, sha1, sha256, sha384") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Encyption values like 3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Diffie-Hellman group like DH-GROUP2, DH-GROUP5, DH-GROUP14") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Group name defined in VIG for clients using aggressive mode") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="pre-shared key for the above group name ") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Lifetime for IKEv1 SA") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="md5, sha1, sha256, sha384") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Life time for IPSec SA") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="enable PFS or not") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="user ID for xAuth, sm-user,ucpeHostName,nmteHostName") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Encrypted using the Juniper $9$ algorithm") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The time between DPD probe") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Maximum number of DPD before claiming the tunnel is down") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Openstack route table reference.",nameProps="route-table-reference-fqdn",uniqueProps="route-table-reference-id",indexedProps="route-table-reference-id,route-table-reference-fqdn",container="route-table-references",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Route Table Reference id, UUID assigned to this instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="FQDN entry in the route table.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Concurrency value") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of openstack route table references") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="General mechanism for grouping instances",nameProps="description",uniqueProps="id",searchable="id,description",indexedProps="id,description,type,sub-type",container="instance-groups",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="role of the instance group.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ASDC model id for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ASDC model version uid for this resource model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Instance Group ID, UUID assigned to this instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Descriptive text to help identify the usage of this instance-group") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Only valid value today is lower case ha for high availability") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Valid values for ha type are [geo-activeactive, geo-activestandby, local-activeactive, local-activestandby]") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Concurrency value") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of openstack route table references") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="A zone is a grouping of assets in a location homing to the same connections into the CBB",nameProps="zone-name",indexedProps="zone-id,design-type,zone-context",uniqueProps="zone-id",container="zones",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Code assigned by AIC to the zone") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="English name associated with the zone") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Design of zone [Medium/Large…]") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Context of zone [production/test]") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Status of a zone.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Concurrency value") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of zones") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Namespace for network inventory resources.") - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Internal map to define some reserved properties of a vertex",uniqueProps="aai-unique-key",indexedProps="aai-unique-key,source-of-truth,aai-node-type,aai-uri") - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Internal map to define the properties of an edge and interpret the map EdgeRules",edgeInfo="edgeLabel,direction,multiplicityRule,isParent,usesResource,hasDelTarget,SVC-INFRA,SVC-INFRA-REV") - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Allows for legacy POST of old-style and new-style models") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier corresponding to the main definition of a model in ASDC") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier corresponding to one version of a model in ASDC") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Type of the model, e.g., service, resource, widget, etc.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of the model, which can change from version to version.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Invariant unique ID which does not change from version to version") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Version") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Description") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="QueryParameters for performing a named-query or model query") - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="InstanceFilters for performing a named-query or model query") - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="SecondaryFilts for performing a named-query or model query") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ModelAndNamedQuerySearch holds query-parameters and instance-properties for performing a named-query or model query") - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Property holder for query properties or instance properties") - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Extra properties for inventory item for response list") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Inventory item for response list",container="inventory-response-items") - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Container for inventory items in response list",container="response-list") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Response container for the results of a named-query or model query") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Abstract vnf class",indexedProps="vnf-id",uniqueProps="vnf-id",inheritors="vce,generic-vnf",isAbstract="true") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF. This is unique across the graph.") - - - - - - - \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/resources/aai_schema_v9.xsd b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/resources/aai_schema_v9.xsd deleted file mode 100644 index c73c583679..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/resources/aai_schema_v9.xsd +++ /dev/null @@ -1,6303 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The specific type of node in the A&AI graph") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The URL to the specific resource") - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="A keyword provided by A&AI to indicate an attribute.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Value of the attribute.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Key part of a key/value pair") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Value part of a key/value pair") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="A keyword provided by A&AI to indicate type of node.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to the object in A&AI.") - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="OAM network, to be deprecated shortly. Do not use for new purposes. ",nameProps="network-name",indexedProps="cvlan-tag,network-uuid,network-name",dependentOn="cloud-region",container="oam-networks") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="UUID of the network. Unique across a cloud-region") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of the network.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="cvlan-id") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for VNF firewall rule so customer cannot send customer traffic over this oam network") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for VNF firewall rule so customer cannot send customer traffic over this oam network") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of OAM networks, to be deprecated shortly. Do not use for new purposes. ") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Digital virtual switch metadata, used by SDN-C to configure VCEs. A&AI needs to receive this data from the PO deployment team and administer it using the provisioningTool.sh into A&AI. ",indexedProps="vcenter-url,switch-name",dependentOn="cloud-region",container="dvs-switches") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="DVS switch name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL used to reach the vcenter") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of digital virtual switch metadata used for vmWare VCEs and VPEs.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Availability zone, a collection of compute hosts/pservers",indexedProps="availability-zone-name",dependentOn="cloud-region",container="availability-zones") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name of the availability zone. Unique across a cloud region") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Type of hypervisor. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="State that indicates whether the availability zone should be used, etc. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Serves a PATCH like function. Does not enforce concurrency control. Clear each usage with AAI team.") - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="APIs that are more action related than REST (e.g., notify, update).") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="A collection of C tags (vlan tags) grouped for a specific purpose.",indexedProps="availability-zone-name",dependentOn="complex",container="ctag-pools") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="The Target provider edge router") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name of the availability zone") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Describes what the intended purpose of this pool is.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Comma separated list of ctags") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of physical locations that can house cloud-regions.",indexedProps="identity-url,data-center-code,complex-name,physical-location-id",searchable="physical-location-id,data-center-code,complex-name,street1,street2,postal-code",uniqueProps="physical-location-id",container="complexes",namespace="cloud-infrastructure") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier for physical location, e.g., CLLI") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Data center code which can be an alternate way to identify a complex") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Gamma complex name for LCP instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL of the keystone identity service") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Type, e.g., central office, data center.") - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of physical locations that can house cloud-regions.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Persistent block-level storage.",indexedProps="volume-group-name,vnf-type,heat-stack-id,volume-group-id",searchable="volume-group-name",dependentOn="cloud-region",container="volume-groups") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of volume-group.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of the volume group.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this volume-group") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this volume-group") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of persistent block-level storage.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Ephemeral Block storage volume.",indexedProps="volume-id",dependentOn="vserver",container="volumes") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of block storage volume relative to the vserver.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of ephemeral Block storage volumes.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPv4 Address Range",indexedProps="l3-interface-ipv4-address,vlan-id-inner,neutron-network-id,neutron-subnet-id",dependentOn="vlan,l-interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="IP address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Prefix length, 32 for single address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Inner VLAN tag") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Outer VLAN tag") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicator of fixed or floating address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron network id of the interface that address belongs to") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron id of subnet that address belongs to") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPv6 Address Range",indexedProps="l3-interface-ipv6-address,vlan-id-inner,neutron-network-id,neutron-subnet-id",dependentOn="vlan,l-interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="IP address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Prefix length, 128 for single address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Inner VLAN tag") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Outer VLAN tag") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicator of fixed or floating address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron network id of the interface that address belongs to") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron id of subnet that address belongs to") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Definition of vlan",indexedProps="vlan-interface,vlan-id-inner,vpn-id",uniqueProps="vpn-id",dependentOn="l-interface",container="vlans") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="String that identifies the interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Inner VLAN tag") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Outer VLAN tag") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used to describe (the service associated with) the vlan") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Whether customer is going to use this VLAN for backdoor connection to another customer premise device.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This indicates the customers VPN ID associated with this vlan") - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="SR-IOV Virtual Function (not to be confused with virtual network function)",indexedProps="pci-id,vf-vlan-filter,vf-mac-filter,vf-vlan-strip,neutron-network-id",dependentOn="l-interface",container="sriov-vfs") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="PCI ID used to identify the sriov-vf") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This metadata provides option to specify list of VLAN filters applied on VF to pass the traffic to VM.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="When MAC filters are specified, VF-agent service configures VFs to do MAC level filtering before the traffic is passed to VM.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="When this field is set to true, VF will configured to strip the outer TAG before the traffic is passed to VM.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option ensures anti VLAN spoof checks are done at the VF level to comply with security. The disable check will also be honored per the VNF needs for trusted VMs.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option ensures anti MAC spoof checks are done at the VF level to comply with security. The disable check will also be honored per the VNF needs for trusted VMs.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option defines the set of Mirror objects which essentially mirrors the traffic from source to set of collector VNF Ports.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, sets the VF in promiscuous mode and allows all broadcast traffic to reach the VM") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, sets the VF in promiscuous mode and allows unknown multicast traffic to reach the VM") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, sets the VF in promiscuous mode and allows unknown unicast traffic to reach the VM") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option, if set to true, instructs to insert outer tag after traffic comes out of VM.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This option is used to set the link status. Valid values as of 1607 are on, off, and auto.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron network id of the interface") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of SR-IOV Virtual Functions.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Logical interfaces, e.g., a vnic.",indexedProps="macaddr,interface-id,interface-name,network-name",dependentOn="generic-vnf,newvce,vpe,p-interface,vserver,lag-interface",container="l-interfaces") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name given to the interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="E.g., CUSTOMER, UPLINK, etc.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Questionably placed - v6 ip addr of this interface (is in vr-lan-interface from Mary B.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ID of interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="MAC address for the interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of the network") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Whether A&AI should be managing this interface of not. Could have value like CUSTOMER") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Human friendly text regarding this interface.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of logical interfaces.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Virtual Servers, aka virtual machine or VM.",nameProps="vserver-name",indexedProps="is-closed-loop-disabled,prov-status,vserver-name,vserver-id,in-maint,vserver-name2",searchable="vserver-name,vserver-id,vserver-name2",dependentOn="tenant",container="vservers") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier for this vserver relative to its tenant") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of vserver") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Alternative name of vserver") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Used to indicate whether closed loop function is enabled on this node") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of virtual Servers, aka virtual machines or VMs.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Openstack tenant",nameProps="tenant-name",indexedProps="tenant-name,tenant-id",searchable="tenant-name,tenant-id",dependentOn="cloud-region",container="tenants") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id relative to the cloud-region.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Readable name of tenant") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of openstack tenants.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Openstack flavor.",nameProps="flavor-name",indexedProps="flavor-name,flavor-id",dependentOn="cloud-region",container="flavors") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Flavor id, expected to be unique across cloud-region.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Flavor name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Number of CPUs") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Amount of memory") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Disk space") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Amount of ephemeral disk space") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="amount of swap space allocation") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="whether flavor is available to all users or private to the tenant it was created in.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Boolean as to whether this flavor is no longer enabled") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of openstack flavors.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Openstack group-assignment used to store exclusivity groups (EG).",nameProps="group-name",indexedProps="group-id,group-type,group-name",dependentOn="cloud-region",container="group-assignments") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Group id, expected to be unique across cloud-region.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Group type - the type of group this instance refers to") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Group name - name assigned to the group") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Group description - description of the group") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of openstack group assignments") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Openstack snapshot",nameProps="snapshot-name",uniqueProps="snapshot-id",indexedProps="application,snapshot-name,application-vendor,snapshot-id,application-version,prev-snapshot-id",dependentOn="cloud-region",container="snapshots") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Snapshot id, this is the key UUID assoc associated in glance with the snapshots.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Snapshot name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Operating system architecture") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The common name of the operating system distribution in lowercase") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The operating system version as specified by the distributor.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The application that the image instantiates.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The vendor of the application.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The version of the application.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This field contains the UUID of the previous snapshot (if any).") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of openstack snapshots") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Key/value pairs",indexedProps="metaname",dependentOn="tenant,image,service-instance,connector,model",container="metadata") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true) - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of metadatum (key/value pairs)") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Openstack image.",nameProps="image-name",indexedProps="application,image-name,application-vendor,image-id,application-version",dependentOn="cloud-region",container="images") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Image id, expected to be unique across cloud region") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Image name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Operating system architecture.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The common name of the operating system distribution in lowercase") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The operating system version as specified by the distributor.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The application that the image instantiates.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The vendor of the application.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The version of the application.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collectio of Openstack images.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of availability zones") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="cloud-region designates an installation of a cloud cluster or region or instantiation. In AT&Ts openecomp cloud, this could be an LCP or DCP. Cloud regions are uniquely identified by a composite key, cloud-owner + cloud-region-id. The format of the cloud-owner is vendor-cloudname and we will use openecomp-openecomp for AT&T's openecomp.",indexedProps="cloud-owner,cloud-region-id,cloud-type,owner-defined-type",nameProps="owner-defined-type",container="cloud-regions",namespace="cloud-infrastructure") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Identifies the vendor and cloud name, e.g., openecomp-openecomp. First part of composite key should be formatted as vendor-cloudname") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Identifier used by the vendor for the region. Second part of composite key") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Type of the cloud (e.g., openstack)") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Cloud-owner defined type indicator (e.g., DCP, LCP)") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Software version employed at the site") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL of the keystone identity service") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Zone where the cloud is homed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="complex name for cloud-region instance") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(maximumDepth="0") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Network profile populated by SDN-GP for SNMP",indexedProps="nm-profile-name",container="network-profiles",namespace="cloud-infrastructure") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique name of network profile.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Encrypted SNMP community string") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of network profiles") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Physical interface (e.g., nic)",indexedProps="interface-name,prov-status",nameProps="prov-status",dependentOn="vpls-pe,pserver,pnf",container="p-interfaces") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name that identifies the physical interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Nature of the services and connectivity on this port.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="CLEI or other specification for p-interface hardware.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Role specification for p-interface hardware.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicates the physical properties of the interface.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of physical interfaces.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Link aggregate interface",indexedProps="interface-name,interface-id,interface-role",dependentOn="generic-vnf,pserver,vpe,vpls-pe,pnf",container="lag-interfaces") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Name that identifies the link aggregate interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ID of interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Role assigned to this Interface, should use values as defined in OPENECOMP Yang models.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of link aggregate interfaces.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Compute host whose hostname must be unique and must exactly match what is sent as a relationship to a vserver.",nameProps="pserver-name2",indexedProps="hostname,in-maint,pserver-id,pserver-name2,inv-status",searchable="hostname,pserver-name2,pserver-id,ipv4-oam-address",container="pservers",namespace="cloud-infrastructure") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Value from executing hostname on the compute node.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="PTNII name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Number of cpus") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Disk size, in GBs") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="RAM size, in MBs") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Equipment type. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Equipment vendor. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Equipment model. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Fully-qualified domain name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used to configure device, also used for troubleshooting and is IP used for traps generated by device.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Serial number, may be queried") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV4 Loopback 0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV6 Loopback 0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV4 AIM address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV6 AIM address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV6 OAM address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="CANOPI's inventory status. Only set with values exactly as defined by CANOPI.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ID of Pserver") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="internet topology of Pserver") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="alternative pserver name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="purpose of pserver") - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of compute hosts.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Virtual organization of cloud infrastructure elements in a data center context",nameProps="vdc-name",indexedProps="vdc-name,vdc-id",container="virtual-data-centers",namespace="cloud-infrastructure") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of the vdc") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of the virtual data center") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Virtual organization of cloud infrastructure elements in a data center context") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Namespace for cloud infrastructure.") - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(nameProps="name",indexedProps="assignment-group-uuid,openecomp-uuid,name",uniqueProps="openecomp-uuid",container="license-key-resources",namespace="license-management") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true) - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of resource instances used to connect a variety of disparate inventory widgets",indexedProps="resource-instance-id,persona-model-id,persona-model-version,widget-model-id,widget-model-version",container="connectors",namespace="business") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of resource instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of resource instances used to connect a variety of disparate inventory widgets") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Represents the specifics of a tunnel cross connect piece of a resource that gets separately allotted",uniqueProps="id",indexedProps="id",dependentOn="allotted-resource",container="tunnel-xconnects") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Allotted Resource id UUID assigned to this instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The WAN uplink bandwidth for WAN1") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The WAN downlink bandwidth for WAN1") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The WAN uplink bandwidth for WAN2") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The WAN downlink bandwidth for WAN2") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Concurrency value") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This object is used to store the specific tunnel cross connect aspects of an allotted resource") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Represents a slice or partial piece of a resource that gets separately allotted",nameProps="description",uniqueProps="id",indexedProps="id,persona-model-id,persona-model-version",dependentOn="service-instance",container="allotted-resources") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Allotted Resource id UUID assigned to this instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The descriptive information assigned to this allotted resource instance") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Link back to more information in the controller") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Concurrency value") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This object is used to store slices of services being offered") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Instance of a service",indexedProps="service-instance-id,persona-model-id,persona-model-version,widget-model-id,widget-model-version,service-instance-name,service-instance-location-id",nameProps="service-instance-name",searchable="service-instance-id,service-instance-name",uniqueProps="service-instance-id",dependentOn="service-subscription",container="service-instances") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Uniquely identifies this instance of a service") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This field will store a name assigned to the service-instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicates the total bandwidth to be used for this service.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="indicates the upstream bandwidth this service will use on the WAN1 port of the physical device.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="indicates the downstream bandwidth this service will use on the WAN1 port of the physical device.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="indicates the upstream bandwidth this service will use on the WAN2 port of the physical device.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="indicates the downstream bandwidth this service will use on the WAN2 port of the physical device.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL customers will use to access the vHN Portal.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Operational status of the service-instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="An identifier that customers assign to the location where this service is being used.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of service instances") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Object that group service instances.",indexedProps="service-type",dependentOn="customer",container="service-subscriptions") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Value defined by orchestration to identify this service across OPENECOMP.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This property will be deleted from A&AI in the near future. Only stop gap solution.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of objects that group service instances.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="customer identifiers to provide linkage back to BSS information.",nameProps="subscriber-name",indexedProps="subscriber-name,global-customer-id,subscriber-type",searchable="subscriber-name,global-customer-id",uniqueProps="global-customer-id,subscriber-name",alternateKeys1="subscriber-name",container="customers",namespace="business") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Global customer id used across OPENECOMP to uniquely identify customer.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Subscriber name, an alternate way to retrieve a customer.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Subscriber type, a way to provide VID with only the INFRA customers.",defaultValue="CUST") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of customer identifiers to provide linkage back to BSS information.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Namespace for business related constructs") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Image object that pertain to a VNF that doesn't have associated vservers. This is a kludge.",indexedProps="application,openecomp-uuid,application-vendor,application-version",uniqueProps="openecomp-uuid",container="vnf-images",namespace="service-design-and-creation") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of this asset") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The application that the image instantiates.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The vendor of the application.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The version of the application.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of image objects that pertain to a VNF that doesn't have associated vservers. This is a kludge.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Stand-in for service model definitions. Likely to be deprecated in favor of models from ASDC.",indexedProps="service-description,service-id",container="services",namespace="service-design-and-creation") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="This gets defined by others to provide a unique ID for the service, we accept what is sent.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Description of the service") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="URL to endpoint where AAI can get more details") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="service version") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of service model definitions. Likely to be deprecated in favor of models from ASDC.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Early definition of server/resource pairings, likely to be replaced by models. No new use should be made of this.",indexedProps="service-type,vnf-type",container="service-capabilities",namespace="service-design-and-creation") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="This gets defined by others to provide a unique ID for the service, we accept what is sent.") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of service capabilities.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This is how we would capture constraints defining allowed sets of elements.",uniqueProps="element-choice-set-uuid",indexedProps="element-choice-set-uuid",allowDirectRead="true",allowDirectWrite="false",container="element-choice-sets") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This is how we would capture constraints defining allowed sets of elements.",uniqueProps="constrained-element-set-uuid",indexedProps="constrained-element-set-uuid",allowDirectRead="true",allowDirectWrite="false",container="constrained-element-sets") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This is how we would capture constraints defining allowed sets of elements.",uniqueProps="model-constraint-uuid",indexedProps="model-constraint-uuid",allowDirectRead="true",allowDirectWrite="false",container="model-constraints") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Defines how other models combine to make up a higher-level model.",uniqueProps="model-element-uuid",indexedProps="model-element-uuid",allowDirectRead="true",allowDirectWrite="false",container="model-elements") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicates whether this element was created as part of instantiation from this model") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="How many of this type of element are required/allowed") - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Defines how other models combine to make up a higher-level model.",uniqueProps="model-element-uuid",indexedProps="model-element-uuid",allowDirectRead="true",allowDirectWrite="false",container="model-elements") - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Defines how other models combine to make up a higher-level model") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Describes new constraints on this model element that are not part of that model's definition") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Subgraph definition provided by ASDC to describe a specific version of an inventory asset and its connections related to ASDC models",nameProps="model-name",indexedProps="model-version-id,model-name,model-version",uniqueProps="model-version-id",container="model-vers",namespace="service-design-and-creation") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier corresponding to one version of a model in ASDC") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of the model, which can change from version to version.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Version") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Description") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Subgraph definition provided by ASDC to describe an inventory asset and its connections related to ASDC models, independent of version",nameProps="model-type",indexedProps="model-invariant-id,model-type",uniqueProps="model-invariant-id",container="models",namespace="service-design-and-creation") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique identifier corresponding to the main definition of a model in ASDC") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Type of the model, e.g., service, resource, widget, etc.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of subgraph definitions provided by ASDC to describe the inventory assets and their connections related to ASDC models") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="TBD",uniqueProps="related-lookup-uuid",indexedProps="related-lookup-uuid",allowDirectRead="true",allowDirectWrite="false",container="related-lookups") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="TBD",uniqueProps="property-constraint-uuid",indexedProps="property-constraint-uuid",allowDirectRead="true",allowDirectWrite="false",container="property-constraints") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="TBD",uniqueProps="named-query-element-uuid",indexedProps="named-query-element-uuid",allowDirectRead="true",allowDirectWrite="false",container="named-query-elements") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,autoGenerateUuid="true") - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="TBD",nameProps="named-query-name",uniqueProps="named-query-uuid",indexedProps="named-query-uuid,named-query-name",container="named-queries",namespace="service-design-and-creation") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true) - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="TBD",nameProps="named-query-name",uniqueProps="named-query-uuid",indexedProps="named-query-uuid,named-query-name",container="named-queries",namespace="service-design-and-creation") - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Namespace for objects managed by ASDC") - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Logical links generally connect l-interfaces but are used to express logical connectivity between two points",indexedProps="link-name,persona-model-id,persona-model-version,widget-model-id,widget-model-version,link-id,prov-status,circuit-id,purpose",uniqueProps="link-id",nameProps="prov-status,circuit-id",container="logical-links",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="e.g., evc-name, or vnf-nameA_interface-nameA_vnf-nameZ_interface-nameZ") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Type of logical link, e.g., evc") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="v4, v6, or ds for dual stack (should be openecomp-ip-version)") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="For example, static or BGP") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indication of operational status of the logical link.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this VNF by BAU Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indication of the network use of the logical link.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Alias or alternate name (CLCI or D1 name).") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="UUID of the logical-link, SDNC generates this.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Circuit id") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Reason for this entity, role it is playing") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of logical connections") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(indexedProps="cos",dependentOn="site-pair",container="classes-of-service") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="unique identifier of probe") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="identifier of probe") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="type of probe") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="class-of-service of probe") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(indexedProps="site-pair-id",uniqueProps="site-pair-id",dependentOn="routing-instance",container="site-pairs") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="unique identifier of probe") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Prefix address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Prefix address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ip version, v4, v6") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Hostname of the destination equipment to which SLAs are measured against.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The type of destinatination equipment. Could be Router, UCPE, etc.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="probe within a set") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(indexedProps="routing-instance-id",uniqueProps="routing-instance-id",dependentOn="site-pair-set",container="routing-instances") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of routing instance") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="rpm owner") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="set of probes related to generic-vnf routing instance") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Set of instances for probes used to measure service level agreements",indexedProps="site-pair-set-id",uniqueProps="site-pair-set-id",container="site-pair-sets",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of site pair set.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of sets of instances for probes related to generic-vnf") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="VPN binding",nameProps="vpn-name,vpn-type",indexedProps="vpn-name,vpn-id,global-route-target,vpn-type",searchable="vpn-name",uniqueProps="vpn-id",container="vpn-bindings",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="VPN ID, globally unique within A&AI") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="VPN Name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Number used to identify a VPN, globally unique in the network") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the platform associated with the VPN example AVPN, Mobility") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Type of the vpn, should be taken from enumerated/valid values") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used to distinguish the distinct VPN routes of separate customers who connect to the provider in an MPLS network.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Role assigned to this route target") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="l3-networks relate to vpn-bindings") - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="VPLS Provider Edge routers.",indexedProps="prov-status,equipment-name",container="vpls-pes",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true) - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this VNF by BAU Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure vpe, also used for troubleshooting and is IP used for traps generated by VPE (v4-loopback0-ip-address).") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Client should send valid enumerated value, e.g., VPLS-PE.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Temporary location for stag to get to VCE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of VPLS Provider Edge routers") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(indexedProps="multicast-configuration-id",uniqueProps="multicast-configuration-id",container="multicast-configurations",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of multicast configuration.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="protocol of multicast configuration") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="rp type of multicast configuration") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="multicast configuration of generic-vnf ip-address") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(dependentOn="port-group",indexedProps="cvlan-tag",container="cvlan-tags") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="See mis-na-virtualization-platform.yang") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used to capture the network interfaces of this VCE",nameProps="port-group-name",indexedProps="port-group-id,heat-stack-id,interface-id,interface-name,switch-name",dependentOn="vce",container="port-groups") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of the interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron network id of this Interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron network name of this Interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Role assigned to this Interface, should use values as defined in OPENECOMP Yang models.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Unique ID for port group in vmware") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Likely to duplicate value of neutron network name") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="DVS or standard switch name (should be non-null for port groups associated with DVS)") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Metadata for license group.",indexedProps="group-uuid,resource-uuid",dependentOn="generic-vnf,vce,vpe",container="licenses") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID for the license group the resource belongs to, should be uuid.") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of a license resource. ") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Concurrency value") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Licenses to be allocated across resources, keyed by group-uuid and resource-uuid, related to license management") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Metadata for entitlement group.",indexedProps="group-uuid,resource-uuid",dependentOn="generic-vnf,vce,vpe",container="entitlements") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID for the entitlement group the resource comes from, should be uuid.") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of an entitlement resource. ") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Concurrency value") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Entitlements, keyed by group-uuid and resource-uuid, related to license management") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Virtual Customer Edge Router, used specifically for Gamma. This object is deprecated.",nameProps="vnf-name",indexedProps="vnf-name,vnf-name2,vnf-type,heat-stack-id,vnf-id,interface-name,regional-resource-zone,vpe-id,prov-status,service-id",searchable="vnf-id,vnf-name,vnf-name2",uniqueProps="vnf-id",container="vces",namespace="network",extendsFrom="vnf") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF. This is unique across the graph.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of VNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Alternate name of VNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Unique identifier of service from ASDC. Expect this to change as ASDC matures.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Regional way of organizing pservers, source of truth should define values") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="License key") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Network role being played by this VNF") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Unique ID of VPE connected to this VCE.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Valid v6 IP address for the WAN Link on this router. Implied length of /64.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure vce, also used for troubleshooting and is IP used for traps generated by VCE.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Loopback0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Entitlement resource uuid") - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of Virtual Customer Edge Routers, used specifically for Gamma. This object is deprecated.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Relationship-list must include related to info for complex.",nameProps="vnf-name",indexedProps="vnf-name,vnf-name2,vnf-type,heat-stack-id,vnf-id,regional-resource-zone,prov-status,service-id",searchable="vnf-id,vnf-name,vnf-name2",uniqueProps="vnf-id",container="vpes",namespace="network",extendsFrom="vnf") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF. This is unique across the graph.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of VNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Alternate name of VNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Unique identifier of service from ASDC") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Regional way of organizing pservers, source of truth should define values") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="License key") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Client should send valid enumerated value") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure vpe, also used for troubleshooting and is IP used for traps generated by VPE (v4-loopback0-ip-address).") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Prefix length for oam-address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Gateway address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Loopback0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Temporary location for stag to get to VCE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="as-number of the VPE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="details regarding the vpe operation") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="indicates whether vpe access uses SSH") - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Virtual provider edge router. In 1504, A&AI will populate this object through an M&P and tool provided to operations.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(indexedProps="vnfc-name,prov-status,vnfc-type,vnfc-function-code,ipaddress-v4-oam-vip,in-maint,is-closed-loop-disabled,group-notation",searchable="vnfc-name",container="vnfcs",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of vnfc.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="function code") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="type") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="prov status of this vnfc") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by APP-C") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Oam V4 vip address of this vnfc") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true)") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether closed loop function is enabled on this node") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Group notation of VNFC") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="virtual network components associated with a vserver from application controller.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(indexedProps="subnet-id,subnet-name",nameProps="subnet-name",uniqueProps="subnet-id",dependentOn="l3-network",container="subnets") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Subnet ID, should be UUID.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name associated with the subnet.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron id of this subnet") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="gateway ip address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="network start address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="cidr mask") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ip version") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="dhcp enabled") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the start address reserved for use by dhcp") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the last address reserved for use by dhcp") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(indexedProps="vlan-id-inner",dependentOn="l3-network",container="ctag-assignments") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="id.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Openstack segmentation assignment.",indexedProps="segmentation-id",dependentOn="l3-network",container="segmentation-assignments") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Route Table Reference id, UUID assigned to this instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Concurrency value") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of openstack segmentation assignments") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Generic network definition",nameProps="network-name",indexedProps="heat-stack-id,network-uuid,service-id,network-id,network-name,persona-model-id,persona-model-version,widget-model-id,widget-model-version,contrail-network-fqdn,network-role",searchable="network-name",uniqueProps="network-id",container="l3-networks",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Network ID, should be uuid. Unique across A&AI.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of the network, governed by some naming convention..") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Type of the network - who defines these values?") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Role the network plans - who defines these values?") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Network technology - who defines these values?") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Neutron network id of this Interface") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Set to true if bound to VPN") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Unique identifier of service from ASDC") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="network role instance") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Contrail FQDN for the network") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name associated with the physical network.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="boolean indicatating whether or not network is a provider network.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="boolean indicatating whether or not network is a shared network.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="boolean indicatating whether or not network is an external network.") - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Relates to tenant (or is it a child of tenant), complex, service, vpn-binding") - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(nameProps="network-policy-fqdn",indexedProps="network-policy-id,network-policy-fqdn",searchable="network-policy-fqdn",uniqueProps="network-policy-id",container="network-policies",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="UUID representing unique key to this instance") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Contrail FQDN for the policy") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ID for the openStack Heat instance") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="a deployment unit of VNFCs",indexedProps="vf-module-id,vf-module-name,heat-stack-id,persona-model-id,persona-model-version,widget-model-id,widget-model-version,contrail-service-instance-fqdn",searchable="vf-module-name",dependentOn="generic-vnf",container="vf-modules") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique ID of vf-module.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of vf-module") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="orchestration status of this vf-module, mastered by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is base vf module") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the Contrail unique ID for a service-instance") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of vf-modules, a deployment unit of VNFCs") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="General purpose VNF",nameProps="vnf-name",indexedProps="is-closed-loop-disabled,vnf-name2,vnf-type,heat-stack-id,in-maint,vnf-name,vnf-id,regional-resource-zone,prov-status,service-id,persona-model-id,persona-model-version,widget-model-id,widget-model-version",searchable="vnf-id,vnf-name,vnf-name2",uniqueProps="vnf-id",container="generic-vnfs",namespace="network",extendsFrom="vnf") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF. This is unique across the graph.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of VNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Alternate name of VNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Unique identifier of service from ASDC") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Regional way of organizing pservers, source of truth should define values") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this resource by Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="License key") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Client should send valid enumerated value") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, used by MSO.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="identifier of managed by openecomp or customer") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure generic-vnf, also used for troubleshooting and is IP used for traps generated by generic-vnf.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="v4 Loopback0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="v6 Loopback address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="v6 management address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="number of vcpus ordered for this instance of VNF, used for VNFs with no vservers/flavors") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="units associated with vcpu, used for VNFs with no vservers/flavors") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="number of GB of memory ordered for this instance of VNF, used for VNFs with no vservers/flavors") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="units associated with vmemory, used for VNFs with no vservers/flavors") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="number of vdisks ordered for this instance of VNF, used for VNFs with no vservers/flavors") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="units associated with vdisk, used for VNFs with no vservers/flavors") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="used to indicate whether closed loop function is enabled on this node") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="details regarding the generic-vnf operation") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="indicates whether generic-vnf access uses SSH") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="UUID of the Entitlement group used for licensing VNFs") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="UUID of the specific entitlement resource") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="UUID of the license assignment group") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="UUID of the actual license resource") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="captures the id of all the configuration used to customize the resource for the service.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary widget model. This maps directly to the A&AI widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="as-number of the VNF") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="represents sub zone of the rr plane") - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of VNFs") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="LAG links can connect lag-interfaces",indexedProps="link-name",container="lag-links",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Alphabetical concatenation of lag-interface names") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of link aggregation connections") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This object fills in the gaps from vce that were incorporated into generic-vnf. This object will be retired with vce.",nameProps="vnf-name",indexedProps="vnf-name,vnf-name2,vnf-type,heat-stack-id,prov-status,vnf-id2",searchable="vnf-id2,vnf-name,vnf-name2",uniqueProps="vnf-id2",container="newvces",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF, can't use same attribute name right now until we promote this new object") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of VNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Alternate name of VNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded and clients should expect changes to occur in the future to this field as ASDC matures.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Trigger for operational monitoring of this VNF by BAU Service Assurance systems.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="License key") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Address tail-f uses to configure vpe, also used for troubleshooting and is IP used for traps generated by VPE (v4-loopback0-ip-address).") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Client should send valid enumerated value, e.g., VPE.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="v4 Loopback0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Orchestration status of this VNF, mastered by MSO.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Heat stack id corresponding to this instance, managed by MSO") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Corresponds to the SDN-C catalog id used to configure this VCE") - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="This object fills in the gaps from vce that were incorporated into generic-vnf. This object will be retired with vce.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="PNF represents a physical network function. typically equipment used in the D1 world. in 1607, this will be populated by SDN-C to represent a premises router that a uCPE connects to. But this can be used to represent any physical device that is not an openecomp node or uCPE.",indexedProps="pnf-name,orchestration-status,inv-status",searchable="pnf-name",uniqueProps="pnf-name",container="pnfs",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="unique name of Physical Network Function.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="name of Physical Network Function.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="source of name2") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="id of pnf") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Equipment type. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Equipment vendor. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Equipment model. Source of truth should define valid values.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="identifier of managed by openecomp or customer") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ipv4-oam-address with new naming convention for IP addresses") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="sw-version is the version of SW for the hosted application on the PNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="orchestration-status is the status of orchestration on the PNF.") - - - - - - - @org.openecomp.aai.annotations.Metadata(defaultValue="false",description="Used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ID of the physical frame (relay rack) where pnf is installed.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Serial number of the device") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV4 Loopback 0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV6 Loopback 0 address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV4 AIM address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV6 AIM address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPV6 OAM address") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="CANOPI's inventory status. Only set with values exactly as defined by CANOPI.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of Physical Network Functions.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of physical connections, typically between p-interfaces",indexedProps="circuit-id,link-name",alternateKeys1="circuit-id",container="physical-links",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="e.g., hostnameA_p-connection_nameA_hostnameZ+p_connection-nameZ") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the numeric part of the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Captures the units corresponding to the speed") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Circuit it") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Dual access mode (e.g., primary, secondary") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="To provide information on who manages this circuit. A&AI or 3rd party transport provider") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Name of the service Provider on this link.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of physical connections, typically between p-interfaces") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="vig-server contains information about a vig server used for IPSec-configuration. Populated by SDN-C from 1607",indexedProps="vig-address-type",dependentOn="ipsec-configuration",container="vig-servers") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="indicates whether the VIG is for AVPN or INTERNET") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="v4 IP of the vig server") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="v6 IP of the vig server") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="IPSec configuration node will contain various configuration data for the NMTE VNF. This node will have an edge to the generic-vnf (vnf type = TE). Starting 1607, this data will be populated by SDN-C",indexedProps="ipsec-configuration-id",uniqueProps="ipsec-configuration-id",container="ipsec-configurations",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="UUID of this configuration") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Indicate the type of VIG server like AVPN, INTERNET, BOTH") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Encryption values like 3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="openecomp can offer a shared DMZ or a DMZ specific to a customer") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Network address of shared DMZ") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="If the DMZ is a custom DMZ, this field will indicate the customer information") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="can be 1 or 2") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Contains values like md5, sha1, sha256, sha384") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Encyption values like 3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Diffie-Hellman group like DH-GROUP2, DH-GROUP5, DH-GROUP14") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Group name defined in VIG for clients using aggressive mode") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="pre-shared key for the above group name ") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Lifetime for IKEv1 SA") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="md5, sha1, sha256, sha384") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Life time for IPSec SA") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="enable PFS or not") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="user ID for xAuth, sm-user,ucpeHostName,nmteHostName") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Encrypted using the Juniper $9$ algorithm") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="The time between DPD probe") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Maximum number of DPD before claiming the tunnel is down") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Used for optimistic concurrency. Must be empty on create, valid on update and delete.") - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Openstack route table reference.",nameProps="route-table-reference-fqdn",uniqueProps="route-table-reference-id",indexedProps="route-table-reference-id,route-table-reference-fqdn",container="route-table-references",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Route Table Reference id, UUID assigned to this instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="FQDN entry in the route table.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Concurrency value") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of openstack route table references") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="General mechanism for grouping instances",nameProps="description",uniqueProps="id",indexedProps="id,description,type,sub-type",container="instance-groups",namespace="network") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Instance Group ID, UUID assigned to this instance.") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Descriptive text to help identify the usage of this instance-group") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Only valid value today is lower case ha for high availability") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Valid values for ha type are [geo-activeactive, geo-activestandby, local-activeactive, local-activestandby]") - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Concurrency value") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Collection of openstack route table references") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Namespace for network inventory resources.") - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Internal map to define some reserved properties of a vertex",uniqueProps="aai-unique-key",indexedProps="aai-unique-key,source-of-truth,aai-node-type") - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Internal map to define the properties of an edge and interpret the map EdgeRules",edgeInfo="edgeLabel,direction,multiplicityRule,isParent,usesResource,hasDelTarget,SVC-INFRA,SVC-INFRA-REV") - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="QueryParameters for performing a named-query or model query") - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="InstanceFilters for performing a named-query or model query") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="ModelAndNamedQuerySearch holds query-parameters and instance-properties for performing a named-query or model query") - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Property holder for query properties or instance properties") - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Inventory item for response list",container="inventory-response-items") - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Container for inventory items in response list",container="response-list") - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Response container for the results of a named-query or model query") - - - - - - - - - - - - - - - - - - - @org.openecomp.aai.annotations.Metadata(description="Abstract vnf class",indexedProps="vnf-id",uniqueProps="vnf-id",inheritors="vce,vpe,generic-vnf",isAbstract="true") - - - - - - - @org.openecomp.aai.annotations.Metadata(isKey=true,description="Unique id of VNF. This is unique across the graph.") - - - - - - - diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/pom.xml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/pom.xml deleted file mode 100644 index 0830fa6b92..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/pom.xml +++ /dev/null @@ -1,120 +0,0 @@ - - 4.0.0 - - openecomp-sdc-artifact-generator-core - openecomp-sdc-artifact-generator-core - - - openecomp-common-lib - org.openecomp.sdc.common - 1.2.0-SNAPSHOT - ../../ - - - - - org.aspectj - aspectjrt - ${aspectj.version} - - - org.slf4j - slf4j-api - ${slf4j.version} - - - ch.qos.logback - logback-classic - ${logback.version} - provided - - - ch.qos.logback - logback-core - ${logback.version} - provided - - - com.fasterxml.jackson.core - jackson-databind - ${jackson.version} - - - com.fasterxml.jackson.dataformat - jackson-dataformat-yaml - ${jackson.version} - - - commons-codec - commons-codec - ${commons.codec.version} - - - org.openecomp.sdc - openecomp-sdc-logging-api - ${project.version} - - - org.openecomp.sdc - openecomp-sdc-logging-core - ${project.version} - runtime - - - org.openecomp.sdc.common - openecomp-sdc-artifact-generator-api - ${project.version} - - - org.testng - testng - test - ${testng.version} - - - commons-io - commons-io - RELEASE - test - - - org.reflections - reflections - ${org.reflections.version} - - - - - - - - org.codehaus.mojo - aspectj-maven-plugin - 1.8 - - - 1.8 - 1.8 - 1.8 - - - - - compile - test-compile - - - - - - - - - - org.codehaus.mojo - aspectj-maven-plugin - - - - diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/GeneratorManager.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/GeneratorManager.java deleted file mode 100644 index 90c1c332d3..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/GeneratorManager.java +++ /dev/null @@ -1,91 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator; - -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_ERROR_INVALID_CLIENT_CONFIGURATION; -import static org.openecomp.sdc.generator.util.ArtifactGeneratorUtil.logError; - -import com.fasterxml.jackson.databind.ObjectMapper; -import org.openecomp.sdc.logging.api.Logger; -import org.openecomp.sdc.logging.api.LoggerFactory; -import org.openecomp.sdc.generator.data.ArtifactType; -import org.openecomp.sdc.generator.data.GeneratorConfiguration; -import org.openecomp.sdc.generator.intf.ArtifactGenerator; -import org.openecomp.sdc.generator.intf.Generator; -import org.reflections.Reflections; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Set; - -public class GeneratorManager { - - private static Logger log = LoggerFactory.getLogger(GeneratorManager.class.getName()); - private static Map generators = new HashMap<>(); - - /** - * Gets active artifact generators. - * - * @param clientConfiguration the client configuration - * @return the active artifact generators - * @throws Exception the exception - */ - public static List getActiveArtifactGenerators(String clientConfiguration) - throws Exception { - - if (generators.isEmpty()) { - log.debug("Getting list of active generators"); - Reflections reflections = new Reflections("org.openecomp.sdc.generator"); - Set> annotated = reflections.getTypesAnnotatedWith(Generator.class); - for (Class clazz : annotated) { - Generator generator = clazz.getAnnotation(Generator.class); - generators.put(generator.artifactType(), (ArtifactGenerator) clazz.newInstance()); - } - } - - log.debug("Parsing generator configuration from the client configuration : " - + clientConfiguration); - GeneratorConfiguration gf = getGeneratorConfiguration(clientConfiguration); - List generatorList = new ArrayList<>(); - if (gf.getArtifactTypes() != null && !gf.getArtifactTypes().isEmpty()) { - for (ArtifactType type : gf.getArtifactTypes()) { - if (generators.get(type) != null) { - generatorList.add(generators.get(type)); - } - } - } - - return generatorList; - } - - private static GeneratorConfiguration getGeneratorConfiguration(String jsonConfiguration) { - try { - return new ObjectMapper().readValue(jsonConfiguration, GeneratorConfiguration.class); - } catch (Exception exception) { - logError(GENERATOR_ERROR_INVALID_CLIENT_CONFIGURATION, exception); - throw new IllegalArgumentException( - GENERATOR_ERROR_INVALID_CLIENT_CONFIGURATION, exception); - } - } - -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/GeneratorTask.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/GeneratorTask.java deleted file mode 100644 index 661aec4188..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/GeneratorTask.java +++ /dev/null @@ -1,74 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator; - -import org.openecomp.sdc.logging.api.Logger; -import org.openecomp.sdc.logging.api.LoggerFactory; -import org.openecomp.sdc.generator.data.Artifact; -import org.openecomp.sdc.generator.data.GenerationData; -import org.openecomp.sdc.generator.intf.ArtifactGenerator; - -import java.util.LinkedList; -import java.util.List; -import java.util.Map; -import java.util.concurrent.RecursiveTask; - -public class GeneratorTask extends RecursiveTask { - - private static Logger log = LoggerFactory.getLogger(GeneratorTask.class.getName()); - - List input; - List generators; - Map additionalParams; - - /** - * Instantiates a new Generator task. - * - * @param generators the generators - * @param input the input - * @param additionalParams the additional params - */ - public GeneratorTask(List generators, List input, - Map additionalParams ) { - this.input = input; - this.generators = generators; - this.additionalParams = additionalParams; - } - - @Override - protected GenerationData compute() { - if (generators.size() == 1) { - log.debug("Instantiating Generator : " + generators.get(0).getClass().getName()); - return generators.remove(0).generateArtifact(input, additionalParams); - } else { - LinkedList generator = new LinkedList<>(); - generator.add(generators.remove(0)); - GeneratorTask tobeDone = new GeneratorTask(generator, input, additionalParams); - GeneratorTask tobeForked = - new GeneratorTask(new LinkedList(generators), input, additionalParams); - tobeForked.fork(); - GenerationData output = tobeDone.compute(); - output.add(tobeForked.join()); - return output; - } - } - -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/MockArtifactGenerator.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/MockArtifactGenerator.java deleted file mode 100644 index 78241a29ad..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/MockArtifactGenerator.java +++ /dev/null @@ -1,81 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator; - -import org.openecomp.sdc.generator.data.Artifact; -import org.openecomp.sdc.generator.data.ArtifactType; -import org.openecomp.sdc.generator.data.GenerationData; -import org.openecomp.sdc.generator.data.GeneratorUtil; -import org.openecomp.sdc.generator.data.GroupType; -import org.openecomp.sdc.generator.intf.ArtifactGenerator; -import org.openecomp.sdc.generator.intf.Generator; - -import java.util.Date; -import java.util.List; -import java.util.Map; - -@Generator(artifactType = ArtifactType.OTHER) -public class MockArtifactGenerator implements ArtifactGenerator { - - @Override - public GenerationData generateArtifact(List input, - Map additionalParams) { - final GenerationData data = new GenerationData(); - - String staticArtifactName = "MOCK_Generator-Static-Artifact.xml"; - String staticArtifactLabel = "MOCK-Generator-Static-Artifact"; - final String dynamicArtifactName = "MOCK_Generator-Dynamic-Artifact.xml"; - final String dynamicArtifactLabel = "MOCK-Generator-Dynamic-Artifact"; - String staticArtifact = getStaticArtifact(); - String dynamicArtifact = getDynamicArtifact(); - - Artifact staticArtifactModel = new Artifact(ArtifactType.OTHER.name(), GroupType.OTHER.name(), - GeneratorUtil.checkSum(staticArtifact.getBytes()), - GeneratorUtil.encode(staticArtifact.getBytes())); - staticArtifactModel.setName(staticArtifactName); - staticArtifactModel.setLabel(staticArtifactLabel); - staticArtifactModel.setDescription("Mock Generator"); - - Artifact dynamicArtifactModel = new Artifact(ArtifactType.OTHER.name(), GroupType.OTHER.name(), - GeneratorUtil.checkSum(dynamicArtifact.getBytes()), - GeneratorUtil.encode(dynamicArtifact.getBytes())); - dynamicArtifactModel.setName(dynamicArtifactName); - dynamicArtifactModel.setLabel(dynamicArtifactLabel); - dynamicArtifactModel.setDescription("Mock Generator"); - - data.add(staticArtifactModel); - data.add(dynamicArtifactModel); - - return data; - - } - - private String getStaticArtifact() { - return "Hi I'm Static"; - } - - private String getDynamicArtifact() { - return - "Hi I'm Static" - + new Date() + ""; - } - -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/aai/AaiArtifactGenerator.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/aai/AaiArtifactGenerator.java deleted file mode 100644 index 8462a71a97..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/aai/AaiArtifactGenerator.java +++ /dev/null @@ -1,688 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai; - -import static org.openecomp.sdc.generator.data.GeneratorConstants.ARTIFACT_MODEL_INFO; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_CONFIGFILE_NOT_FOUND; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_CONFIGLOCATION_NOT_FOUND; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_PROVIDING_SERVICE_METADATA_MISSING; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_PROVIDING_SERVICE_MISSING; -import static org.openecomp.sdc.generator.data.GeneratorConstants.ID_LENGTH; -import static org.openecomp.sdc.generator.util.ArtifactGeneratorUtil.logError; - -import org.openecomp.sdc.logging.api.Logger; -import org.openecomp.sdc.logging.api.LoggerFactory; -import org.openecomp.sdc.generator.aai.model.AllotedResource; -import org.openecomp.sdc.generator.aai.model.ProvidingService; -import org.openecomp.sdc.generator.aai.model.L3NetworkWidget; -import org.openecomp.sdc.generator.aai.model.Model; -import org.openecomp.sdc.generator.aai.model.Resource; -import org.openecomp.sdc.generator.aai.model.Service; -import org.openecomp.sdc.generator.aai.model.TunnelXconnectWidget; -import org.openecomp.sdc.generator.aai.model.VfModule; -import org.openecomp.sdc.generator.aai.model.Widget; -import org.openecomp.sdc.generator.aai.tosca.GroupDefinition; -import org.openecomp.sdc.generator.aai.tosca.NodeTemplate; -import org.openecomp.sdc.generator.aai.tosca.ToscaTemplate; -import org.openecomp.sdc.generator.aai.types.ModelType; -import org.openecomp.sdc.generator.data.AdditionalParams; -import org.openecomp.sdc.generator.data.Artifact; -import org.openecomp.sdc.generator.data.ArtifactType; -import org.openecomp.sdc.generator.data.GenerationData; -import org.openecomp.sdc.generator.data.GeneratorConstants; -import org.openecomp.sdc.generator.data.GeneratorUtil; -import org.openecomp.sdc.generator.data.GroupType; -import org.openecomp.sdc.generator.data.WidgetConfigurationUtil; -import org.openecomp.sdc.generator.intf.ArtifactGenerator; -import org.openecomp.sdc.generator.intf.Generator; -import org.openecomp.sdc.generator.logging.annotations.Audit; -import org.openecomp.sdc.generator.util.ArtifactGeneratorUtil; -import org.slf4j.MDC; - -import java.io.File; -import java.io.FileInputStream; -import java.io.IOException; -import java.util.Collection; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.LinkedList; -import java.util.List; -import java.util.Map; -import java.util.Properties; -import java.util.Set; - -@Generator(artifactType = ArtifactType.AAI) -public class AaiArtifactGenerator implements ArtifactGenerator { - - private static Logger log = LoggerFactory.getLogger(AaiArtifactGenerator.class.getName()); - - /** - * Implementation of the method to generate AAI artifacts. - * - * @param input List of input tosca files - * @return Translated/Error data as a {@link GenerationData} object - */ - @Override - @Audit - public GenerationData generateArtifact(List input, - Map additionalParams) { - try { - if (input != null && input.size() != 0 ) { - ArtifactGeneratorUtil.initializeArtifactLoggingContext(input.get(0)); - } - initWidgetConfiguration(); - return generateArtifactInternal(input, additionalParams); - } catch (Exception exception) { - logError(exception.getMessage(), exception); - GenerationData generationData = new GenerationData(); - generationData.add(ArtifactType.AAI.name(), exception.getMessage()); - return generationData; - } - } - - /** - * Helper method to generate AAI artifacts. - * - * @param input List of input tosca files - * @return Translated/Error data as a {@link GenerationData} object - */ - private GenerationData generateArtifactInternal(List input, - Map additionalParams) { - final GenerationData generationData = new GenerationData(); - - List resources = new LinkedList<>(); - Map idTypeStore = new HashMap<>(); - Map resourcesVersion = new HashMap<>(); - - List toscas = new LinkedList<>(); - - String serviceVersion = additionalParams.get(AdditionalParams.ServiceVersion.getName()); - if (serviceVersion == null) { - throw new IllegalArgumentException(GeneratorConstants - .GENERATOR_AAI_ERROR_MISSING_SERVICE_VERSION); - } else { - String versionRegex = "^[1-9]\\d*(\\.0)$"; - if (! (serviceVersion.matches(versionRegex))) { - throw new IllegalArgumentException(String - .format(GeneratorConstants - .GENERATOR_AAI_INVALID_SERVICE_VERSION)); - } - } - - for (Artifact inputArtifact : input) { - ToscaTemplate tosca = getToscaModel(inputArtifact, serviceVersion); - validateTosca(tosca, inputArtifact); - ToscaTemplate processedTosca = preProcessingTosca(tosca); - toscas.add(processedTosca); - } - - //Get the service tosca from the list of artifacts - ToscaTemplate serviceTosca = getServiceTosca(toscas); - if (serviceTosca == null) { - throw new IllegalArgumentException(GeneratorConstants - .GENERATOR_AAI_ERROR_MISSING_SERVICE_TOSCA); - } - - Service service = new Service(); - //Populate basic service model metadata - service.populateModelIdentificationInformation(serviceTosca.getMetadata()); - - if (serviceTosca.getTopology_template() != null - && serviceTosca.getTopology_template().getNode_templates() != null) { - processServiceTosca(service, idTypeStore,resourcesVersion, serviceTosca,resources); - } - validateResourceToscaAgainstService(idTypeStore, toscas); - - //Process the resource tosca files - int counter = 0; - List currentToscaResources = new LinkedList<>(); - while (toscas.size() > 0) { - ToscaTemplate resourceTemplate = toscas.remove(0); - String resourceUuId = resourceTemplate.getMetadata().get("UUID"); - String mapValue = idTypeStore.get(resourceUuId); - if (mapValue == null) { - log.warn( - "Additional tosca file found with resource version id : " - + resourceUuId); - continue; - } - //update resource version with version from service tosca - String resourceVersion = resourcesVersion.get(resourceUuId); - resourceTemplate.getMetadata().put("version", resourceVersion); - Model model = Model.getModelFor(idTypeStore.get(resourceTemplate.getModelVersionId())); - - log.debug("Inside Resource artifact generation for resource"); - model.populateModelIdentificationInformation( - resourceTemplate.getMetadata()); //Get base resource metadata information - //Found model from the type store so removing the same - idTypeStore.remove(model.getModelNameVersionId()); - if (resourceTemplate.getTopology_template() != null - && resourceTemplate.getTopology_template().getNode_templates() != null) { - processVfTosca(idTypeStore, resourceTemplate, model); - } - - //Process group information from tosca for vfModules - if (resourceTemplate.getTopology_template() != null - && resourceTemplate.getTopology_template().getGroups() != null) { - processVfModule(resources, currentToscaResources, resourceTemplate, model); - } else { - model.getWidgets().clear(); - } - - if ("Tunnel XConnect".equals(resourceTemplate.getMetadata().get("subcategory")) - && "Allotted Resource".equals(resourceTemplate.getMetadata().get("category"))) { - model.addWidget(new TunnelXconnectWidget()); - } - - resources.add((Resource) model); - currentToscaResources - .clear(); //Clearing the current tosca resource list for the next iteration - counter = 0; - } - - AaiModelGenerator modelGenerator = AaiModelGenerator.getInstance(); - //Generate AAI XML service model - MDC.put(ARTIFACT_MODEL_INFO , service.getModelName() + "," + getArtifactLabel(service)); - String aaiServiceModel = modelGenerator.generateModelFor(service); - generationData.add(getServiceArtifact(service, aaiServiceModel)); - - //Generate AAI XML resource model - for (Resource res : resources) { - MDC.put(ARTIFACT_MODEL_INFO , res.getModelName() + "," + getArtifactLabel(res)); - String aaiResourceModel = modelGenerator.generateModelFor(res); - generationData.add(getResourceArtifact(res, aaiResourceModel)); - } - - //Resetting logging parameters since they get overridden while writing metrics logs - // recursively for service, resource and widgets. - if (input != null && input.size() != 0 ) { - ArtifactGeneratorUtil.initializeArtifactLoggingContext(input.get(0)); - } - - return generationData; - } - - private void validateResourceToscaAgainstService(Map idTypeStore, - List toscas) { - Iterator entries = idTypeStore.entrySet().iterator(); - while (entries.hasNext()) { - Map.Entry entry = (Map.Entry) entries.next(); - String resourceUuidFromService = (String)entry.getKey(); - Iterator itr = toscas.iterator(); - boolean toscaFound = false; - while (itr.hasNext()) { - ToscaTemplate toscaTemplate = itr.next(); - String resourceUuId = toscaTemplate.getMetadata().get("UUID"); - if (resourceUuidFromService.equals(resourceUuId)) { - toscaFound = true; - break; - } - } - if (toscaFound == false) { - throw new IllegalArgumentException(String - .format(GeneratorConstants.GENERATOR_AAI_ERROR_MISSING_RESOURCE_TOSCA, - resourceUuidFromService)); - } - } - - } - - private ToscaTemplate preProcessingTosca(ToscaTemplate tosca) { - ToscaTemplate processedTosca = tosca; - if (tosca.getTopology_template() != null - && tosca.getTopology_template().getNode_templates() != null) { - Collection coll = - processedTosca.getTopology_template().getNode_templates().values(); - for (NodeTemplate node : coll) { - - if (node.getType().contains("org.openecomp.resource.vf.") && node.getMetadata().get("category") - .equals("Allotted Resource")) { - node.setType("org.openecomp.resource.vf.allottedResource"); - } - if (node.getType().contains("org.openecomp.resource.vfc.") && node.getMetadata().get - ("category") - .equals("Allotted Resource")) { - node.setType("org.openecomp.resource.vfc.AllottedResource"); - } - } - } - return processedTosca; - } - - private void processVfTosca(Map idTypeStore, ToscaTemplate resourceTemplate, - Model model) { - Set keys = resourceTemplate.getTopology_template().getNode_templates().keySet(); - boolean flag = false; - for (String key : keys) { - NodeTemplate node = resourceTemplate.getTopology_template().getNode_templates().get(key); - Model resourceNode = Model.getModelFor(node.getType()); - if (resourceNode != null) { - if (resourceNode instanceof ProvidingService) { - flag = true; - Map properties = new HashMap<>(); - Map nodeProperties = node.getProperties(); - if (nodeProperties.get("providing_service_uuid") == null || nodeProperties.get( - "providing_service_invariant_uuid") == null) { - throw new IllegalArgumentException(String.format( - GENERATOR_AAI_PROVIDING_SERVICE_METADATA_MISSING - , model.getModelId())); - } - for (String key1 : nodeProperties.keySet()) { - if (nodeProperties.get(key1) instanceof String) { - properties.put(key1, nodeProperties.get(key1).toString()); - } - } - properties.put("version","1.0"); - resourceNode.populateModelIdentificationInformation(properties); - model.addResource((Resource) resourceNode); - } else if (resourceNode instanceof Resource && !(resourceNode.getWidgetType().equals( - Widget.Type - .L3_NET))) { - //resourceNode.populateModelIdentificationInformation(node.getMetadata()); - idTypeStore.put(resourceNode.getModelNameVersionId(), node.getType()); - model.addResource((Resource) resourceNode); - } - } - } - if(model instanceof AllotedResource){ - if(!flag) { - throw new IllegalArgumentException(String.format(GENERATOR_AAI_PROVIDING_SERVICE_MISSING, - model.getModelId())); - } - } - } - - /* private void vfWarnScenario(Map idTypeStore, ToscaTemplate resourceTemplate) { - if (idTypeStore.size() == 0) { - //Log message for extra model file - log.warn( - "Additional tosca file found with resource version id : " - + resourceTemplate.getModelVersionId()); - } else { - //Log message for missing model files.. Replace with logger statement - log.warn("Service-Resource Tosca mapping not found for : " - + idTypeStore.keySet().toString()); - } - return; - }*/ - - private void processVfModule(List resources, List currentToscaResources, - ToscaTemplate resourceTemplate, Model model) { - log.debug("Inside Resource artifact generation for group/vfModule"); - Collection groups = - resourceTemplate.getTopology_template().getGroups().values(); - Set nodeNameListForGroups = new HashSet<>(); - for (GroupDefinition gd : groups) { - Model group = Model.getModelFor(gd.getType()); - if (group != null) { - group.populateModelIdentificationInformation(gd.getMetadata()); - Map properties = new HashMap<>(); - Map groupProperties = gd.getProperties(); - for (String key : groupProperties.keySet()) { - if (groupProperties.get(key) instanceof String) { - properties.put(key, groupProperties.get(key).toString()); - } - } - group.populateModelIdentificationInformation(properties); - if (group instanceof VfModule && !currentToscaResources.contains(group)) { - if (gd.getMembers() != null && !gd.getMembers().isEmpty()) { - Set groupMembers = new HashSet<>(); - ((VfModule) group).setMembers(gd.getMembers()); - nodeNameListForGroups.addAll(gd.getMembers()); - groupMembers.addAll(gd.getMembers()); - - for (String member : groupMembers) { - NodeTemplate node = - resourceTemplate.getTopology_template().getNode_templates().get(member); - if (node != null) { - Model resourceNode = null; - //L3-network inside vf-module to be generated as Widget a special handling. - if (node.getType().contains("org.openecomp.resource.vl")) { - resourceNode = new L3NetworkWidget(); - } else { - resourceNode = Model.getModelFor(node.getType()); - } - if (resourceNode != null) { - if (!(resourceNode instanceof Resource)) { - Widget widget = (Widget) resourceNode; - widget.addKey(member); - //Add the widget element encountered - // in the resource tosca in the resource model - boolean isAdded = group.addWidget(widget); - - //Add only widgets which are members of vf module and remove others - if (isAdded) { - model.addWidget(widget); - } - } - } - } - } - } - - model.addResource((Resource) group); //Added group (VfModule) to the (VF) model - currentToscaResources - .add((Resource) group); //Adding the VfModule group to file specific resources - //Check if we have already encountered the same VfModule across all the artifacts - if (!resources.contains(group)) { - resources.add((Resource) group); - } - } - } - } - - Iterator iter = model.getWidgets().iterator(); - while (iter.hasNext()) { - if (iter.next().allInstancesUsed(nodeNameListForGroups) || true) { - iter.remove(); - } - } - } - - private void processServiceTosca(Service service, Map idTypeStore,Map resourcesVersion,ToscaTemplate serviceTosca, List resources) { - Collection coll = - serviceTosca.getTopology_template().getNode_templates().values(); - log.debug("Inside Service Tosca "); - //Get the resource/widgets in the service according to the node-template types - for (NodeTemplate node : coll) { - Model model = Model.getModelFor(node.getType()); - if (model != null) { - model.populateModelIdentificationInformation(node.getMetadata()); - if (model instanceof Resource) { - String resourceVersion = node.getMetadata().get("version"); - validateVersion(resourceVersion,model.getModelNameVersionId()); - //Keeping track of resource types and - // their uuid for identification during resource tosca processing - idTypeStore.put(model.getModelNameVersionId(), node.getType()); - resourcesVersion.put(model.getModelNameVersionId(),resourceVersion); - service.addResource((Resource) model); - } else { - service.addWidget((Widget) model); - } - } - } - } - - /** - * Create Service artifact model from the AAI xml model string. - * - * @param serviceModel Model of the service artifact - * @param aaiServiceModel AAI model as string - * @return Generated {@link Artifact} model for the service - */ - private Artifact getServiceArtifact(Model serviceModel, String aaiServiceModel) { - Artifact artifact = - new Artifact(ArtifactType.MODEL_INVENTORY_PROFILE.name(), GroupType.DEPLOYMENT.name(), - GeneratorUtil.checkSum(aaiServiceModel.getBytes()), - GeneratorUtil.encode(aaiServiceModel.getBytes())); - String serviceArtifactName = getArtifactName(serviceModel); - String serviceArtifactLabel = getArtifactLabel(serviceModel); - artifact.setName(serviceArtifactName); - artifact.setLabel(serviceArtifactLabel); - String description = getArtifactDescription(serviceModel); - artifact.setDescription(description); - return artifact; - } - - /** - * Create Resource artifact model from the AAI xml model string. - * - * @param resourceModel Model of the resource artifact - * @param aaiResourceModel AAI model as string - * @return Generated {@link Artifact} model for the resource - */ - private Artifact getResourceArtifact(Model resourceModel, String aaiResourceModel) { - Artifact artifact = - new Artifact(ArtifactType.MODEL_INVENTORY_PROFILE.name(), GroupType.DEPLOYMENT.name(), - GeneratorUtil.checkSum(aaiResourceModel.getBytes()), - GeneratorUtil.encode(aaiResourceModel.getBytes())); - String resourceArtifactName = getArtifactName(resourceModel); - String resourceArtifactLabel = getArtifactLabel(resourceModel); - artifact.setName(resourceArtifactName); - artifact.setLabel(resourceArtifactLabel); - String description = getArtifactDescription(resourceModel); - artifact.setDescription(description); - return artifact; - } - - /** - * Method to generate the artifact name for an AAI model. - * - * @param model AAI artifact model - * @return Model artifact name - */ - private String getArtifactName(Model model) { - StringBuilder artifactName = new StringBuilder(ArtifactType.AAI.name()); - artifactName.append("-"); - - String truncatedArtifactName = ""; - truncatedArtifactName = truncateName(model.getModelName()); - artifactName.append(truncatedArtifactName); - - artifactName.append("-"); - artifactName.append(model.getModelType().name().toLowerCase()); - artifactName.append("-"); - artifactName.append(model.getModelVersion()); - - //artifactName.append(model.getModelVersion()); - artifactName.append("."); - artifactName.append(GeneratorConstants.GENERATOR_AAI_GENERATED_ARTIFACT_EXTENSION); - return artifactName.toString(); - } - - private String getArtifactLabel(Model model) { - // String label = ""; - StringBuilder artifactName = new StringBuilder(ArtifactType.AAI.name()); - artifactName.append("-"); - artifactName.append(model.getModelType().name().toLowerCase()); - artifactName.append("-"); - artifactName.append(hashCodeUuId(model.getModelNameVersionId())); - String label = (artifactName.toString()).replaceAll("[^a-zA-Z0-9 +]+", "-"); - return label; - } - - private int hashCodeUuId(String uuId) { - int hashcode = 0; - for (int i = 0; i < uuId.length(); i++) { - hashcode = 31 * hashcode + uuId.charAt(i); - } - return hashcode; - } - - - private String truncateName(String name) { - String truncatedName = name; - if (name.length() >= 200) { - truncatedName = name.substring(0, 199); - } - return truncatedName; - } - - private String getArtifactDescription(Model model) { - String artifactDesc = model.getModelDescription(); - if (model.getModelType().equals(ModelType.SERVICE)) { - artifactDesc = "AAI Service Model"; - } else if (model.getModelType().equals(ModelType.RESOURCE)) { - artifactDesc = "AAI Resource Model"; - } - return artifactDesc; - } - - private void validateVersion(String version, String uuId) { - String versionRegex = "^[0-9]\\d*(\\.\\d+)$"; - if (null == version || version == "") { - throw new IllegalArgumentException(String - .format(GeneratorConstants.GENERATOR_AAI_ERROR_NULL_RESOURCE_VERSION_IN_SERVICE_TOSCA, - uuId)); - } else if ( version.equals("0.0") || !(version.matches(versionRegex))) { - throw new IllegalArgumentException(String - .format(GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_RESOURCE_VERSION_IN_SERVICE_TOSCA, - uuId)); - } - } - /** - * Get the tosca java model from the tosca input artifact. - * - * @param input Input tosca file and its metadata information as {@link Artifact} object - * @return Translated {@link ToscaTemplate tosca} object - */ - - private ToscaTemplate getToscaModel(Artifact input, String serviceVersion) - throws SecurityException { - byte[] decodedInput = GeneratorUtil.decoder(input.getPayload()); - String checksum = GeneratorUtil.checkSum(decodedInput); - ToscaTemplate tosca = null; - if (checksum.equalsIgnoreCase(input.getChecksum())) { - try { - log.debug("Input yaml name " + input.getName() + "payload " + new String(decodedInput)); - tosca = GeneratorUtil.translateTosca(new String(decodedInput), ToscaTemplate.class); - tosca.getMetadata().put("version", serviceVersion); - return tosca; - } catch (Exception exception) { - throw new IllegalArgumentException( - String.format(GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_TOSCA, input.getName()), exception); - } - } else { - throw new SecurityException(GeneratorConstants.GENERATOR_AAI_ERROR_CHECKSUM_MISMATCH); - } - } - - private void validateTosca(ToscaTemplate tosca, Artifact input) { - log.debug("Validating tosca for Artifact: " + input.getName()); - if (tosca.getMetadata().containsKey("invariantUUID")) { - if (tosca.getMetadata().get("invariantUUID") == null - || tosca.getMetadata().get("invariantUUID") == "") { - throw new IllegalArgumentException(String - .format(GeneratorConstants.GENERATOR_AAI_ERROR_MANDATORY_METADATA_DEFINITION, - "invariantUUID", - input.getName())); - } else if (tosca.getMetadata().get("invariantUUID").length() != ID_LENGTH) { - throw new IllegalArgumentException(String.format( - GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_ID, "invariantUUID", input.getName())); - } - } - - if (tosca.getMetadata().containsKey("UUID")) { - if (tosca.getMetadata().get("UUID") == null || tosca.getMetadata().get("UUID") == "") { - throw new IllegalArgumentException(String - .format(GeneratorConstants.GENERATOR_AAI_ERROR_MANDATORY_METADATA_DEFINITION, "UUID", - input.getName())); - } else if (tosca.getMetadata().get("UUID").length() != ID_LENGTH) { - throw new IllegalArgumentException(String - .format(GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_ID, "UUID", input.getName())); - } - - } - if (tosca.getMetadata().containsKey("name")) { - if (tosca.getMetadata().get("name") == null || tosca.getMetadata().get("name") == "") { - throw new IllegalArgumentException(String - .format(GeneratorConstants.GENERATOR_AAI_ERROR_MANDATORY_METADATA_DEFINITION, "name", - input.getName())); - } - } - - //Validate VFmodule - if (tosca.getTopology_template() != null && tosca.getTopology_template().getGroups() != null) { - Collection groups = tosca.getTopology_template().getGroups().values(); - for (GroupDefinition gd : groups) { - Model group = Model.getModelFor(gd.getType()); - if (group != null && group instanceof VfModule) { - if (gd.getMetadata().containsKey("vfModuleModelName") - && gd.getMetadata().get("vfModuleModelName") == null) { - throw new IllegalArgumentException(String - .format(GeneratorConstants.GENERATOR_AAI_ERROR_MANDATORY_METADATA_DEFINITION, - "vfModuleModelName", - input.getName())); - } - if (gd.getMetadata().containsKey("vfModuleModelInvariantUUID") - && gd.getMetadata().get("vfModuleModelInvariantUUID") == null) { - throw new IllegalArgumentException(String - .format(GeneratorConstants.GENERATOR_AAI_ERROR_MANDATORY_METADATA_DEFINITION, - "vfModuleModelInvariantUUID", input.getName())); - } else if (gd.getMetadata().get("vfModuleModelInvariantUUID").length() != ID_LENGTH) { - throw new IllegalArgumentException(String.format( - GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_ID, "vfModuleModelInvariantUUID", - input.getName())); - } - - if (gd.getMetadata().containsKey("vfModuleModelUUID") - && gd.getMetadata().get("vfModuleModelUUID") == null) { - throw new IllegalArgumentException(String - .format(GeneratorConstants.GENERATOR_AAI_ERROR_MANDATORY_METADATA_DEFINITION, - "vfModuleModelUUID", - input.getName())); - } else if (gd.getMetadata().get("vfModuleModelUUID").length() != ID_LENGTH) { - throw new IllegalArgumentException(String.format( - GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_ID, "vfModuleModelUUID", - input.getName())); - } - if (gd.getMetadata().containsKey("vfModuleModelVersion") - && gd.getMetadata().get("vfModuleModelVersion") == null) { - throw new IllegalArgumentException(String - .format(GeneratorConstants.GENERATOR_AAI_ERROR_MANDATORY_METADATA_DEFINITION, - "vfModuleModelVersion", - input.getName())); - } - } - } - } - } - - /** - * Identify the service tosca artifact from the list of translated tosca inputs. - * - * @param input List of translated {@link ToscaTemplate tosca} object models - * @return Identified service {@link ToscaTemplate tosca} - */ - private ToscaTemplate getServiceTosca(List input) { - Iterator iter = input.iterator(); - while (iter.hasNext()) { - ToscaTemplate tosca = iter.next(); - if (tosca.isService()) { - iter.remove(); - return tosca; - } - } - return null; - } - - private void initWidgetConfiguration() throws IOException { - log.debug("Getting Widget Configuration"); - String configLocation = System.getProperty("artifactgenerator.config"); - Properties properties = null; - if (configLocation != null) { - File file = new File(configLocation); - if (file.exists()) { - properties = new Properties(); - properties.load(new FileInputStream(file)); - WidgetConfigurationUtil.setConfig(properties); - } else { - throw new IllegalArgumentException(String.format(GENERATOR_AAI_CONFIGFILE_NOT_FOUND, - configLocation)); - } - } else { - throw new IllegalArgumentException(GENERATOR_AAI_CONFIGLOCATION_NOT_FOUND); - } - } - -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/aai/AaiModelGeneratorImpl.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/aai/AaiModelGeneratorImpl.java deleted file mode 100644 index 4e6153d7e4..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/aai/AaiModelGeneratorImpl.java +++ /dev/null @@ -1,278 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.aai; - -import org.openecomp.sdc.logging.api.Logger; -import org.openecomp.sdc.logging.api.LoggerFactory; -import org.openecomp.sdc.generator.aai.model.Resource; -import org.openecomp.sdc.generator.aai.model.Service; -import org.openecomp.sdc.generator.aai.model.Widget; -import org.openecomp.sdc.generator.aai.xml.Model; -import org.openecomp.sdc.generator.aai.xml.ModelElement; -import org.openecomp.sdc.generator.aai.xml.ModelElements; -import org.openecomp.sdc.generator.aai.xml.ModelVer; -import org.openecomp.sdc.generator.aai.xml.ModelVers; -import org.openecomp.sdc.generator.aai.xml.Relationship; -import org.openecomp.sdc.generator.aai.xml.RelationshipData; -import org.openecomp.sdc.generator.aai.xml.RelationshipList; -import org.openecomp.sdc.generator.logging.annotations.Metrics; -import org.w3c.dom.DOMException; - -import java.io.StringWriter; -import java.util.List; -import java.util.Set; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Marshaller; - -/** - * Implementation of the {@link AaiModelGenerator} which generates the XML models from the - * Service/Resource/Widget java models. - */ -public class AaiModelGeneratorImpl implements AaiModelGenerator { - private static Logger log = LoggerFactory.getLogger(AaiModelGeneratorImpl.class.getName()); - - /** - * Method to generate the AAI model for a Service. - * - * @param service Java object model representing an AAI {@link Service} model - * @return XML representation of the service model in String format - */ - @Override - @Metrics - public String generateModelFor(Service service) { - //Create a JAXB Model for AAI service model - Model aaiServiceModel = new Model(); - log.debug("Generating Model for Service with ModelName: " + service.getModelName()); - // after new model - aaiServiceModel.setModelInvariantId(service.getModelId()); - aaiServiceModel.setModelVers(new ModelVers()); - ModelVer modelVer = new ModelVer(); - modelVer.setModelDescription(service.getModelDescription()); - modelVer.setModelName(service.getModelName()); - modelVer.setModelVersion(service.getModelVersion()); - modelVer.setModelVersionId(service.getModelNameVersionId()); - modelVer.setModelElements(new ModelElements()); - ModelElements modelElements = modelVer.getModelElements(); - //Populate basic model details - aaiServiceModel - .setModelType(service.getModelType().name().toLowerCase()); //Using enum name as model type - List modelElementList = modelElements.getModelElement(); - - //Add service base widget model element - ModelElement serviceWidgetModelRelationshipElement = - createRelationshipModelElement(getNewDataDelFlagValue(service.getDeleteFlag()), - service.getWidgetId(),service.getWidgetInvariantId()); - modelElementList.add(serviceWidgetModelRelationshipElement); - - //Add the resource model elements - ModelElements serviceModelElements = serviceWidgetModelRelationshipElement.getModelElements(); - List serviceModelElementList = serviceModelElements.getModelElement(); - Set serviceResources = service.getResources(); - if (serviceResources != null && !serviceResources.isEmpty()) { - for (Resource resourceModel : serviceResources) { - ModelElement aaiResourceModelElement = - createRelationshipModelElement(getNewDataDelFlagValue(resourceModel.getDeleteFlag()), - resourceModel.getModelNameVersionId(),resourceModel.getModelId()); - serviceModelElementList.add(aaiResourceModelElement); - } - } - - //Add the widget model elements - Set serviceWidgets = service.getWidgets(); - if (serviceWidgets != null && !serviceWidgets.isEmpty()) { - for (Widget widgetModel : serviceWidgets) { - ModelElement widgetModelElement = - createRelationshipModelElement(getNewDataDelFlagValue(widgetModel.getDeleteFlag()), - widgetModel.getId(),widgetModel.getWidgetId()); - serviceModelElementList.add(widgetModelElement); - } - } - ModelVers modelVers = aaiServiceModel.getModelVers(); - List modelVerList = modelVers.getModelVer(); - modelVerList.add(modelVer); - return getModelAsString(aaiServiceModel); - } - - /** - * Method to generate the AAI model for a Resource. - * - * @param resource Java object model representing an AAI {@link Resource} model - * @return XML representation of the resource model in String format - */ - @Override - @Metrics - public String generateModelFor(Resource resource) { - //Create a JAXB Model for AAI Resource model - Model aaiResourceModel = new Model(); - log.debug("Generating Model for Resource with ModelName: " + resource.getModelName()); - aaiResourceModel.setModelInvariantId(resource.getModelId()); - aaiResourceModel.setModelVers(new ModelVers()); - ModelVer modelVer = new ModelVer(); - modelVer.setModelDescription(resource.getModelDescription()); - modelVer.setModelName(resource.getModelName()); - modelVer.setModelVersion(resource.getModelVersion()); - modelVer.setModelVersionId(resource.getModelNameVersionId()); - modelVer.setModelElements(new ModelElements()); - ModelElements modelElements = modelVer.getModelElements(); - aaiResourceModel - .setModelType(resource.getModelType().name().toLowerCase()); //Using enum name as model type - List modelElementList = modelElements.getModelElement(); - - //Add resource base widget model element - ModelElement resourceWidgetModelRelationshipElement = - createRelationshipModelElement(getNewDataDelFlagValue(resource.getDeleteFlag()), - resource.getWidgetId(),resource.getWidgetInvariantId()); - modelElementList.add(resourceWidgetModelRelationshipElement); - - //Add the child resources to the base widget model element list - ModelElements baseResourceWidgetModelElements = - resourceWidgetModelRelationshipElement.getModelElements(); - List baseResourceWidgetModelElementList = - baseResourceWidgetModelElements.getModelElement(); - Set childResources = resource.getResources(); - if (childResources != null && !childResources.isEmpty()) { - for (Resource childResourceModel : childResources) { - ModelElement aaiChildResourceModelElement = createRelationshipModelElement( - getNewDataDelFlagValue(childResourceModel.getDeleteFlag()), - childResourceModel.getModelNameVersionId(),childResourceModel.getModelId()); - baseResourceWidgetModelElementList.add(aaiChildResourceModelElement); - } - } - //Add resource widgets/resources to the resource widget model relationship element - Set resourceWidgets = resource.getWidgets(); - if (resourceWidgets != null && !resourceWidgets.isEmpty()) { - generateWidgetChildren(resourceWidgetModelRelationshipElement, resourceWidgets); - } - - ModelVers modelVers = aaiResourceModel.getModelVers(); - List modelVerList = modelVers.getModelVer(); - modelVerList.add(modelVer); - return getModelAsString(aaiResourceModel); - - } - - /** - * Method to create the holding the relationship value for a - * resource/widget - * model. - * - * @param newDataDelFlag Value of the attribute for - * a widget/resource in - * the model xml - * @param relationshipValue Value of the attribute - * for the widget/resource in - * the model xml - * @return Java object representation for the holding the - relationship - */ - private ModelElement createRelationshipModelElement(String newDataDelFlag, - String modelVersionId,String - modelInvariantId) { - ModelElement relationshipModelElement = new ModelElement(); - relationshipModelElement.setNewDataDelFlag(newDataDelFlag); //Set new-data-del-flag value - relationshipModelElement.setCardinality("unbounded"); - RelationshipList relationShipList = new RelationshipList(); - final List relationships = relationShipList.getRelationship(); - Relationship relationship = new Relationship(); - relationship.setRelatedTo("model-ver"); - List relationshipDataList = relationship.getRelationshipData(); - - RelationshipData modelVersionRelationshipData = new RelationshipData(); - modelVersionRelationshipData.setRelationshipKey("model-ver.model-version-id"); - modelVersionRelationshipData.setRelationshipValue( - modelVersionId); //Set the widget/resource name-version-uuid as value - relationshipDataList.add(modelVersionRelationshipData); - RelationshipData modelInvariantRelationshipData = new RelationshipData(); - modelInvariantRelationshipData.setRelationshipKey("model.model-invariant-id"); - modelInvariantRelationshipData.setRelationshipValue( - modelInvariantId); - relationshipDataList.add(modelInvariantRelationshipData); - relationships.add(relationship); - relationshipModelElement.setRelationshipList(relationShipList); - relationshipModelElement.setModelElements(new ModelElements()); - return relationshipModelElement; - } - - /** - * Method to create the child model elements of the widget. Handles the generation of recursive - * child widget elements (if any) - * - * @param parent Reference to the parent widget model element - * @param widgetChildrenSet Set of children obtained from the tosca/widget definition - */ - private void generateWidgetChildren(ModelElement parent, Set widgetChildrenSet) { - for (Widget widget : widgetChildrenSet) { - Set widgetSubChildren = widget.getWidgets(); - if (widgetSubChildren != null && !widgetSubChildren.isEmpty()) { - ModelElement widgetChildRelationshipElement = - createRelationshipModelElement(getNewDataDelFlagValue(widget.getDeleteFlag()), - widget.getId(),widget.getWidgetId()); - //Recursive call for getting the children of widgets (if any) - generateWidgetChildren(widgetChildRelationshipElement, widgetSubChildren); - parent.getModelElements().getModelElement().add(widgetChildRelationshipElement); - } else { - ModelElement widgetChildRelationshipElement = - createRelationshipModelElement(getNewDataDelFlagValue(widget.getDeleteFlag()), - widget.getId(),widget.getWidgetId() - ); - parent.getModelElements().getModelElement().add(widgetChildRelationshipElement); - } - } - } - - /** - * Converts the data delete flag value from boolean to String as per AAI model. - * - * @param delFlag Boolean value as true/false from the annotation - * @return Converted value to a flag as per AAI model - */ - private String getNewDataDelFlagValue(boolean delFlag) { - if (delFlag) { - return "T"; - } else { - return "F"; - } - } - - /** - * JAXB marshalling helper method to convert the Java object model to XML String. - * - * @param model Java Object model of a service/widget/resource - * @return XML representation of the Java model in String format - */ - private String getModelAsString(Model model) { - JAXBContext jaxbContext; - StringWriter modelStringWriter = new StringWriter(); - try { - jaxbContext = JAXBContext.newInstance(Model.class); - Marshaller jaxbMarshaller = jaxbContext.createMarshaller(); - jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); - jaxbMarshaller.setProperty(Marshaller.JAXB_ENCODING, "US-ASCII"); - jaxbMarshaller.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE); - jaxbMarshaller.marshal(model, modelStringWriter); - } catch (JAXBException jaxbException) { - throw new DOMException(DOMException.SYNTAX_ERR, jaxbException.getMessage()); - } - - return modelStringWriter.toString(); - } -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/impl/ArtifactGenerationServiceImpl.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/impl/ArtifactGenerationServiceImpl.java deleted file mode 100644 index 3f6148f0e7..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/impl/ArtifactGenerationServiceImpl.java +++ /dev/null @@ -1,86 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.impl; - -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_ERROR_ARTIFACT_GENERATION_FAILED; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_INVOCATION_ERROR_CODE; -import static org.openecomp.sdc.generator.util.ArtifactGeneratorUtil.logError; - -import org.openecomp.sdc.logging.api.Logger; -import org.openecomp.sdc.logging.api.LoggerFactory; -import org.openecomp.sdc.generator.GeneratorManager; -import org.openecomp.sdc.generator.GeneratorTask; -import org.openecomp.sdc.generator.data.Artifact; -import org.openecomp.sdc.generator.data.GenerationData; -import org.openecomp.sdc.generator.intf.ArtifactGenerator; -import org.openecomp.sdc.generator.service.ArtifactGenerationService; -import org.openecomp.sdc.generator.util.ArtifactGeneratorUtil; - -import java.util.List; -import java.util.Map; -import java.util.concurrent.ForkJoinPool; - -/** - * Artifact Generation Service implementation class. - */ -public class ArtifactGenerationServiceImpl implements ArtifactGenerationService { - - private static Logger log = - LoggerFactory.getLogger(ArtifactGenerationServiceImpl.class.getName()); - - /** - * Artifact generator method. - * - * @param input List of input files as {@link Artifact} models - * @param overridingConfiguration Configuration data for invoking generators - * @param additionalParams Additional Parameters - * @return Generated artifacts/Error data in a {@link GenerationData} object - */ - @Override - public GenerationData generateArtifact(List input, String overridingConfiguration, - Map additionalParams) { - try { - //Initialize artifact generation logging context - ArtifactGeneratorUtil.initializeLoggingContext(); - - List generatorsToBeUsed = - GeneratorManager.getActiveArtifactGenerators(overridingConfiguration); - if (generatorsToBeUsed.size() > 0) { - return ForkJoinPool.commonPool().invoke(new GeneratorTask(generatorsToBeUsed, input, - additionalParams)); - } else { - return new GenerationData(); - } - } catch (IllegalArgumentException iae) { - //Invalid client configuration - logError(GENERATOR_ERROR_ARTIFACT_GENERATION_FAILED, iae); - GenerationData errorData = new GenerationData(); - errorData.add(GENERATOR_INVOCATION_ERROR_CODE, iae.getMessage()); - return errorData; - } catch (Exception ex) { - logError(GENERATOR_ERROR_ARTIFACT_GENERATION_FAILED, ex); - GenerationData errorData = new GenerationData(); - errorData.add(GENERATOR_INVOCATION_ERROR_CODE, - GENERATOR_ERROR_ARTIFACT_GENERATION_FAILED); - return errorData; - } - } -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/util/ArtifactGeneratorUtil.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/util/ArtifactGeneratorUtil.java deleted file mode 100644 index 26bbe7f619..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/main/java/org/openecomp/sdc/generator/util/ArtifactGeneratorUtil.java +++ /dev/null @@ -1,298 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator.util; - -import static org.openecomp.sdc.generator.data.GeneratorConstants.BEGIN_TIMESTAMP; -import static org.openecomp.sdc.generator.data.GeneratorConstants.BE_FQDN; -import static org.openecomp.sdc.generator.data.GeneratorConstants.CATEGORY_LOG_LEVEL; -import static org.openecomp.sdc.generator.data.GeneratorConstants.CLIENT_IP; -import static org.openecomp.sdc.generator.data.GeneratorConstants.ELAPSED_TIME; -import static org.openecomp.sdc.generator.data.GeneratorConstants.END_TIMESTAMP; -import static org.openecomp.sdc.generator.data.GeneratorConstants.ERROR_CATEGORY; -import static org.openecomp.sdc.generator.data.GeneratorConstants.ERROR_CODE; -import static org.openecomp.sdc.generator.data.GeneratorConstants.ERROR_DESCRIPTION; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_CONFIGFILE_NOT_FOUND; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_CONFIGLOCATION_NOT_FOUND; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_CONFIGLPROP_NOT_FOUND; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_PROVIDING_SERVICE_METADATA_MISSING; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_PROVIDING_SERVICE_MISSING; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_ID; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_RESOURCE_VERSION_IN_SERVICE_TOSCA; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_TOSCA_MSG; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_ERROR_MANDATORY_METADATA_DEFINITION_MSG; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_ERROR_MISSING_RESOURCE_TOSCA; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_ERROR_MISSING_SERVICE_TOSCA_MSG; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_ERROR_MISSING_SERVICE_VERSION; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_ERROR_NULL_RESOURCE_VERSION_IN_SERVICE_TOSCA; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_INVALID_SERVICE_VERSION; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_ERROR_ARTIFACT_GENERATION_FAILED_MSG; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_ERROR_INVALID_CLIENT_CONFIGURATION_MSG; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_PARTNER_NAME; -import static org.openecomp.sdc.generator.data.GeneratorConstants.INSTANCE_UUID; -import static org.openecomp.sdc.generator.data.GeneratorConstants.LOCAL_ADDR; -import static org.openecomp.sdc.generator.data.GeneratorConstants.MDC_SDC_INSTANCE_UUID; -import static org.openecomp.sdc.generator.data.GeneratorConstants.PARTNER_NAME; -import static org.openecomp.sdc.generator.data.GeneratorConstants.REMOTE_HOST; -import static org.openecomp.sdc.generator.data.GeneratorConstants.REQUEST_ID; -import static org.openecomp.sdc.generator.data.GeneratorConstants.RESPONSE_CODE; -import static org.openecomp.sdc.generator.data.GeneratorConstants.RESPONSE_DESCRIPTION; -import static org.openecomp.sdc.generator.data.GeneratorConstants.SERVICE_INSTANCE_ID; -import static org.openecomp.sdc.generator.data.GeneratorConstants.SERVICE_METRIC_BEGIN_TIMESTAMP; -import static org.openecomp.sdc.generator.data.GeneratorConstants.SERVICE_NAME; -import static org.openecomp.sdc.generator.data.GeneratorConstants.STATUS_CODE; -import static org.openecomp.sdc.generator.data.GeneratorConstants.TARGET_ENTITY; -import static org.openecomp.sdc.generator.data.GeneratorConstants.TARGET_SERVICE_NAME; -import static org.openecomp.sdc.generator.logging.ArtifactGeneratorLogResponseCode.INTERNAL_SERVER_ERROR; -import static org.openecomp.sdc.generator.logging.ArtifactGeneratorLogResponseCode.INVALID_CLIENT_CONFIGURATION; -import static org.openecomp.sdc.generator.logging.ArtifactGeneratorLogResponseCode.INVALID_ID_VALUE; -import static org.openecomp.sdc.generator.logging.ArtifactGeneratorLogResponseCode.INVALID_RESOURCE_VERSION; -import static org.openecomp.sdc.generator.logging.ArtifactGeneratorLogResponseCode.INVALID_SERVICE_VERSION; -import static org.openecomp.sdc.generator.logging.ArtifactGeneratorLogResponseCode.INVALID_TOSCA_YAML; -import static org.openecomp.sdc.generator.logging.ArtifactGeneratorLogResponseCode.MANDATORY_ATTRIBUTE_MISSING; -import static org.openecomp.sdc.generator.logging.ArtifactGeneratorLogResponseCode.MISSING_CONFIG_PROPERTIES_FILE; -import static org.openecomp.sdc.generator.logging.ArtifactGeneratorLogResponseCode.MISSING_PRO_SERVICE; -import static org.openecomp.sdc.generator.logging.ArtifactGeneratorLogResponseCode.MISSING_PRO_SERVICE_METADATA; -import static org.openecomp.sdc.generator.logging.ArtifactGeneratorLogResponseCode.MISSING_RESOURCE_VERSION; -import static org.openecomp.sdc.generator.logging.ArtifactGeneratorLogResponseCode.MISSING_SERVICE_VERSION; -import static org.openecomp.sdc.generator.logging.ArtifactGeneratorLogResponseCode.MISSING_SYSTME_PROPERY_CONFIGURATION; -import static org.openecomp.sdc.generator.logging.ArtifactGeneratorLogResponseCode.MISSING_WIDGET_CONFIGURATION; -import static org.openecomp.sdc.generator.logging.ArtifactGeneratorLogResponseCode.RESOURCE_TOSCA_MISSING; -import static org.openecomp.sdc.generator.logging.ArtifactGeneratorLogResponseCode.SERVICE_TOSCA_MISSING; -import static org.openecomp.sdc.generator.logging.ArtifactGeneratorLogResponseCode.UNABLE_TO_GENERATE_ARTIFACT; - -import org.openecomp.sdc.logging.api.Logger; -import org.openecomp.sdc.logging.api.LoggerFactory; -import org.openecomp.sdc.generator.data.Artifact; -import org.openecomp.sdc.generator.logging.ArtifactGeneratorLogResponseCode; -import org.openecomp.sdc.generator.logging.CategoryLogLevel; -import org.openecomp.sdc.generator.logging.StatusCode; -import org.slf4j.MDC; - -import java.io.PrintWriter; -import java.io.StringWriter; -import java.net.InetAddress; -import java.net.UnknownHostException; -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.Date; -import java.util.TimeZone; - - -public class ArtifactGeneratorUtil { - - private static Logger log = LoggerFactory.getLogger(ArtifactGeneratorUtil.class.getName()); - private static final String LOG_UTC_DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSS"; - - /** - * Artifact Generator Error logging Helper. - * @param errorDescription Description of the error - */ - public static void logError(String errorDescription) { - logError(errorDescription, ""); - } - - /** - * Artifact Generator Error logging Helper. - * @param errorDescription Description of the error - * @param ex Exception object for stackstrace - */ - public static void logError(String errorDescription, Exception ex) { - StringWriter sw = new StringWriter(); - ex.printStackTrace(new PrintWriter(sw)); - String detailMessage = sw.toString(); - logError(CategoryLogLevel.ERROR, errorDescription, detailMessage); - } - - /** - * Artifact Generator Error logging Helper. - * @param errorDescription Description of the error - * @param detailMessage Detailed Error message - */ - public static void logError(String errorDescription, String detailMessage) { - logError(CategoryLogLevel.ERROR, errorDescription, detailMessage); - } - - /** - * Artifact Generator Error logging Helper. - * @param errorCategory ERROR - * @param errorDescription Description of the error - * @param detailMessage Detailed Error message - */ - public static void logError(CategoryLogLevel errorCategory, - String errorDescription, String detailMessage) { - MDC.put(ERROR_CATEGORY, errorCategory.name()); - MDC.put(STATUS_CODE, StatusCode.ERROR.name()); - artifactGeneratorErrorLogProcessor(errorCategory,errorDescription); - log.error(detailMessage); - resetLoggingContext(); - } - - /** - * Initialize generic MDC attributes for logging the current request. - * - */ - public static void initializeLoggingContext() { - log.debug("Initializing generic logging context "); - MDC.put(PARTNER_NAME, GENERATOR_PARTNER_NAME); - MDC.put(SERVICE_METRIC_BEGIN_TIMESTAMP, String.valueOf(System.currentTimeMillis())); - MDC.put(INSTANCE_UUID, MDC_SDC_INSTANCE_UUID); - MDC.put(STATUS_CODE, StatusCode.COMPLETE.name()); - MDC.put(CLIENT_IP, MDC.get(REMOTE_HOST)); - - try { - InetAddress ip = InetAddress.getLocalHost(); - MDC.put(LOCAL_ADDR, ip.getHostAddress()); - String hostname = ip.getHostName(); - MDC.put(BE_FQDN, hostname); - } catch (UnknownHostException uhe) { - log.error("Failed to get server FQDN", uhe); - } - - if (log.isDebugEnabled()) { - MDC.put(CATEGORY_LOG_LEVEL, CategoryLogLevel.DEBUG.name()); - } else if (log.isInfoEnabled()) { - MDC.put(CATEGORY_LOG_LEVEL, CategoryLogLevel.INFO.name()); - } else if (log.isWarnEnabled()) { - MDC.put(CATEGORY_LOG_LEVEL, CategoryLogLevel.WARN.name()); - } else if (log.isErrorEnabled()) { - MDC.put(CATEGORY_LOG_LEVEL, CategoryLogLevel.ERROR.name()); - } - } - - /** - * Initialize MDC for logging the current artifact request. - * - * @param artifact Current artifact - */ - public static void initializeArtifactLoggingContext(Artifact artifact) { - log.debug("Initializing logging context for " + artifact.getLabel()); - MDC.put(REQUEST_ID, artifact.getLabel()); - MDC.put(SERVICE_NAME, artifact.getType()); - MDC.put(SERVICE_INSTANCE_ID, artifact.getName()); - } - - /** - * Reset the logging context after a Audit/Metrics logging operation. - */ - public static void resetLoggingContext() { - MDC.remove(ERROR_CATEGORY); - MDC.remove(ERROR_CODE); - MDC.remove(STATUS_CODE); - MDC.remove(ERROR_DESCRIPTION); - MDC.remove(BEGIN_TIMESTAMP); - MDC.remove(END_TIMESTAMP); - MDC.remove(ELAPSED_TIME); - MDC.put(STATUS_CODE, StatusCode.COMPLETE.name()); - MDC.remove(RESPONSE_CODE); - MDC.remove(RESPONSE_DESCRIPTION); - MDC.remove(TARGET_ENTITY); - MDC.remove(TARGET_SERVICE_NAME); - } - - /** - * Convert timestamp to UTC format date string. - * - * @param timeStamp UTC timestamp to be converted to the UTC Date format. - * @return UTC formatted Date string from timestamp. - */ - public static String getLogUtcDateStringFromTimestamp(Date timeStamp) { - DateFormat df = new SimpleDateFormat(LOG_UTC_DATE_FORMAT); - df.setTimeZone(TimeZone.getTimeZone("GMT")); - return df.format(timeStamp); - } - - /** - * Artifact Gnenerator Error logging Helper. - * - * @param errorCategory WARN or ERROR. - * @param errorDescription Description of the error. - */ - public static void artifactGeneratorErrorLogProcessor(CategoryLogLevel errorCategory, - String errorDescription) { - MDC.put(ERROR_CATEGORY, errorCategory.name()); - if (errorDescription != null) { - String errorType = ""; - switch (errorCategory) { - case WARN: - errorType = "W"; - break; - case ERROR: - errorType = "E"; - break; - case FATAL: - errorType = "F"; - break; - default: - break; - } - MDC.put(ERROR_CODE, getLogResponseCode(errorDescription) + errorType); - } - MDC.put(ERROR_DESCRIPTION, errorDescription); - } - - - /** - * - * @return Audit log code corresponding to the Artifact Generator exception. - */ - public static int getLogResponseCode(String errorDescription) { - ArtifactGeneratorLogResponseCode responseCode = INTERNAL_SERVER_ERROR; - if (errorDescription.contains(GENERATOR_AAI_ERROR_MANDATORY_METADATA_DEFINITION_MSG)) { - responseCode = MANDATORY_ATTRIBUTE_MISSING; - } else if (errorDescription.contains(GENERATOR_AAI_ERROR_INVALID_TOSCA_MSG)) { - responseCode = INVALID_TOSCA_YAML; - } else if (errorDescription.contains(GENERATOR_AAI_ERROR_MISSING_SERVICE_TOSCA_MSG)) { - responseCode = SERVICE_TOSCA_MISSING; - } else if (errorDescription.contains(GENERATOR_ERROR_INVALID_CLIENT_CONFIGURATION_MSG)) { - responseCode = INVALID_CLIENT_CONFIGURATION; - } else if (errorDescription.contains(GENERATOR_ERROR_ARTIFACT_GENERATION_FAILED_MSG)) { - responseCode = UNABLE_TO_GENERATE_ARTIFACT; - } else if (errorDescription.contains(GENERATOR_AAI_CONFIGLOCATION_NOT_FOUND.split("%s")[0])) { - responseCode = MISSING_SYSTME_PROPERY_CONFIGURATION; - } else if (errorDescription.contains(GENERATOR_AAI_CONFIGFILE_NOT_FOUND.split("%s")[0])) { - responseCode = MISSING_CONFIG_PROPERTIES_FILE; - } else if (errorDescription.contains(GENERATOR_AAI_CONFIGLPROP_NOT_FOUND.split("%s")[0])) { - responseCode = MISSING_WIDGET_CONFIGURATION; - } else if (errorDescription.contains(GENERATOR_AAI_ERROR_INVALID_ID.split("%s")[0])) { - responseCode = INVALID_ID_VALUE; - } else if (errorDescription.contains(GENERATOR_AAI_ERROR_MISSING_RESOURCE_TOSCA.split("%s")[0])) - { - responseCode = RESOURCE_TOSCA_MISSING; - } else if(errorDescription.contains(GENERATOR_AAI_ERROR_MISSING_SERVICE_VERSION)) { - responseCode = MISSING_SERVICE_VERSION; - } else if(errorDescription.contains(GENERATOR_AAI_INVALID_SERVICE_VERSION)) - { - responseCode = INVALID_SERVICE_VERSION; - } else if(errorDescription.contains(GENERATOR_AAI_ERROR_NULL_RESOURCE_VERSION_IN_SERVICE_TOSCA. - split("%s")[0])) { - responseCode = MISSING_RESOURCE_VERSION; - } else if(errorDescription.contains( - GENERATOR_AAI_ERROR_INVALID_RESOURCE_VERSION_IN_SERVICE_TOSCA.split("%s")[0])) { - responseCode = INVALID_RESOURCE_VERSION; - } else if(errorDescription.contains(GENERATOR_AAI_PROVIDING_SERVICE_MISSING.split("%s")[0])) { - responseCode = MISSING_PRO_SERVICE; - } else if(errorDescription.contains( - GENERATOR_AAI_PROVIDING_SERVICE_METADATA_MISSING.split("%s")[0])) { - responseCode = MISSING_PRO_SERVICE_METADATA; - } - return responseCode.getValue(); - } -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/java/org/openecomp/sdc/generator/ArtifactGenerationServiceTest.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/java/org/openecomp/sdc/generator/ArtifactGenerationServiceTest.java deleted file mode 100644 index 2de7535a8b..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/java/org/openecomp/sdc/generator/ArtifactGenerationServiceTest.java +++ /dev/null @@ -1,1683 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator; - -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_CONFIGFILE_NOT_FOUND; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_CONFIGLOCATION_NOT_FOUND; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_CONFIGLPROP_NOT_FOUND; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_PROVIDING_SERVICE_METADATA_MISSING; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_PROVIDING_SERVICE_MISSING; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_ID; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_ERROR_MISSING_SERVICE_VERSION; -import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_INVALID_SERVICE_VERSION; - -import org.apache.commons.io.FileUtils; -import org.openecomp.sdc.generator.aai.model.Resource; -import org.openecomp.sdc.generator.aai.model.Service; -import org.openecomp.sdc.generator.aai.model.Widget; -import org.openecomp.sdc.generator.aai.tosca.GroupDefinition; -import org.openecomp.sdc.generator.aai.tosca.NodeTemplate; -import org.openecomp.sdc.generator.aai.tosca.ToscaTemplate; -import org.openecomp.sdc.generator.data.AdditionalParams; -import org.openecomp.sdc.generator.aai.xml.Model; -import org.openecomp.sdc.generator.aai.xml.ModelElement; -import org.openecomp.sdc.generator.aai.xml.ModelElements; -import org.openecomp.sdc.generator.aai.xml.ModelVer; -import org.openecomp.sdc.generator.aai.xml.Relationship; -import org.openecomp.sdc.generator.aai.xml.RelationshipData; -import org.openecomp.sdc.generator.data.Artifact; -import org.openecomp.sdc.generator.data.ArtifactType; -import org.openecomp.sdc.generator.data.GenerationData; -import org.openecomp.sdc.generator.data.GeneratorConstants; -import org.openecomp.sdc.generator.data.GeneratorUtil; -import org.openecomp.sdc.generator.data.GroupType; -import org.openecomp.sdc.generator.impl.ArtifactGenerationServiceImpl; -import org.testng.Assert; -import org.testng.annotations.BeforeSuite; -import org.testng.annotations.Test; - -import java.io.ByteArrayInputStream; -import java.io.File; -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.net.URL; -import java.util.*; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Unmarshaller; - -@SuppressWarnings("Duplicates") -public class ArtifactGenerationServiceTest { - - private static final String aaiArtifactType = ArtifactType.AAI.name(); - private static final String aaiArtifactGroupType = GroupType.DEPLOYMENT.name(); - private static final String generatorConfig = "{\"artifactTypes\": [\"OTHER\",\"AAI\"]}"; - private final Properties properties = new Properties(); - private final Map additionalParams = new HashMap<>(); - private final Map resourcesVersion = new HashMap<>(); - - @BeforeSuite - public void loadProperties() throws Exception{ - loadConfigFromClasspath(properties); - additionalParams.put(AdditionalParams.ServiceVersion.getName(), "1.0"); - } - - @Test - public void testArtifactGeneration() { - // Sunny day scenario service with VF anf vfmodule - try { - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList<>(); - String aaiResourceBasePaths = "aai/"; - List inputArtifacts = init(aaiResourceBasePaths); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - if (data.getErrorData().isEmpty()) { - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - /*for( int i = 0 ; i < resultData.size() ; i++) { - Artifact artifact = resultData.get(i); - String fileName = artifact.getName(); - while(fileName.contains(":")){ - fileName = fileName.replace(":",""); - } - File targetFile =new File("src/test/resources/"+fileName); - OutputStream outStream = new FileOutputStream(targetFile); - outStream.write(Base64.getDecoder().decode(artifact.getPayload())); - }*/ - - Assert.assertEquals(resultData.size(),5); // 1-service,1-VF-resource,1-vfmodule and 2 - // others - Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); - testServiceTosca(toscas, outputArtifactMap); - testResourceTosca(toscas.iterator(), outputArtifactMap); - } else { - Assert.fail("error encountered : " + data.getErrorData().get("AAI")); - } - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testWidgetinServiceTosca() { - // Sunny day scenario service with VF and extra widget like CP anf vf has vfmodule without - // member - try { - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList<>(); - String aaiResourceBasePaths = "testWidgetinServiceTosca/"; - List inputArtifacts = init(aaiResourceBasePaths); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - if (data.getErrorData().isEmpty()) { - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - Assert.assertEquals(resultData.size(),5); // 1-service,1-VF-resource,1-vfmodule and 2 - // others - Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); - testServiceTosca(toscas, outputArtifactMap); - testResourceTosca(toscas.iterator(), outputArtifactMap); - } else { - Assert.fail("error encountered : " + data.getErrorData().get("AAI")); - } - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testSameVLdifferentVersion() { - // Sunny day scenario service with VF and extra widget like CP anf vf has vfmodule without - // member - try { - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList<>(); - String aaiResourceBasePaths = "testSameVLdifferentVersion/"; - List inputArtifacts = init(aaiResourceBasePaths); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - if (data.getErrorData().isEmpty()) { - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - Assert.assertEquals(resultData.size(),8); - // others - Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); - testServiceTosca(toscas, outputArtifactMap); - testResourceTosca(toscas.iterator(), outputArtifactMap); - } else { - Assert.fail("error encountered : " + data.getErrorData().get("AAI")); - } - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationAllottedResourceAndL3Network() { - // Sunny day scenario service with allotted resource and L3-network - try { - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList<>(); - String aaiResourceBasePaths = "aai2/"; - List inputArtifacts = init(aaiResourceBasePaths); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - if (data.getErrorData().isEmpty()) { - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Assert.assertEquals(resultData.size(),5); - // and 2 - // others - Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); - testServiceTosca(toscas, outputArtifactMap); - testResourceTosca(toscas.iterator(), outputArtifactMap); - } else { - Assert.fail("error encountered : " + data.getErrorData().get("AAI")); - } - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test(dependsOnMethods = {"testArtifactGeneration"}) - public void testWhenMissingTosca() { - try { - //Missing Service tosca test case - String aaiResourceBasePaths = "testArtifactGeneration2/"; - List inputArtifacts = init(aaiResourceBasePaths); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals(data.getErrorData().get("AAI").get(0),"Service tosca missing from list of input artifacts"); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test(dependsOnMethods = {"testWhenMissingTosca"}) - public void testWhenInvaildConfig() { - try { - //Invalid config test case - String generatorConfig1 = "{\"artifactTypes\": [\"ABC\"]}"; - String aaiResourceBasePaths = "testArtifactGeneration2/"; - List inputArtifacts = init(aaiResourceBasePaths); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig1, additionalParams); - Assert.assertEquals(data.getErrorData().get("ARTIFACT_GENERATOR_INVOCATION_ERROR").get(0),"Invalid Client Configuration"); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test(dependsOnMethods = {"testArtifactGeneration"}) - public void testWhenOnlyServToscaNoResTosca() { - try { - //Testing only service tosca no resource Tosca - String aaiResourceBasePaths = "testArtifactGeneration4/"; - List inputArtifacts = init(aaiResourceBasePaths); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList<>(); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - List resultData = data.getResultData(); - if (data.getErrorData().isEmpty()) { - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - } - Assert.assertEquals(resultData.size(),3); // 1-service and 2-Others - Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); - testServiceTosca(toscas, outputArtifactMap); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test(dependsOnMethods = {"testArtifactGeneration"}) - public void testWhenInvaildYaml() { - try { - //Invalid Yaml file test case - String aaiResourceBasePaths = "testArtifactGeneration5/"; - List inputArtifacts = init(aaiResourceBasePaths); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals(data.getErrorData().get("AAI").get(0),"Invalid format for Tosca YML : " + inputArtifacts.get(0).getName()); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test(dependsOnMethods = {"testArtifactGeneration"}) - public void testWhenExtraResToscaNotPartOfServ() { - try { - // Valid scenario with extra resource tosca which is not part of Service - String aaiResourceBasePaths = "testArtifactGeneration6/"; - List inputArtifacts = init(aaiResourceBasePaths); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList<>(); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - List resultData = data.getResultData(); - if (data.getErrorData().isEmpty()) { - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - } - Assert.assertEquals(resultData.size(),3); // 1-service and 2 Others - Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); - testServiceTosca(toscas, outputArtifactMap); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - - @Test - public void testWhenInvUuIdAttrMissing() { - try { - // mandatory attribute missing - String aaiResourceBasePaths = "testArtifactGeneration8/"; - List inputArtifacts = init(aaiResourceBasePaths); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals( - data.getErrorData().get("AAI").get(0),"Invalid Service/Resource definition mandatory attribute missing in Artifact: <" + - inputArtifacts.get(0).getName() + ">"); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testErrorWhenInvalidInvId() { - try { - //Invariant Id in service tosca of length not 36 - String aaiResourceBasePaths = "testErrorWhenInvalidInvId/"; - List inputArtifacts = init(aaiResourceBasePaths); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals( - data.getErrorData().get("AAI").get(0),String.format(GENERATOR_AAI_ERROR_INVALID_ID, - "invariantUUID",inputArtifacts.get(0).getName())); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testWhenUuIdAttrMissing() { - try { - //mandatory attribute missing - String aaiResourceBasePaths = "testArtifactGeneration9/"; - List inputArtifacts = init(aaiResourceBasePaths); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals( - data.getErrorData().get("AAI").get(0),"Invalid Service/Resource definition mandatory attribute missing in Artifact: <" + - inputArtifacts.get(0).getName() + ">"); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testErrorWhenInvalidUuId() { - try { - //UUID Id in service tosca of length not 36 - String aaiResourceBasePaths = "testErrorWhenInvalidUuId/"; - List inputArtifacts = init(aaiResourceBasePaths); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals( - data.getErrorData().get("AAI").get(0),String.format(GENERATOR_AAI_ERROR_INVALID_ID, - "UUID",inputArtifacts.get(0).getName())); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testWhenNameAttrMissing() { - try { - //mandatory attribute missing - String aaiResourceBasePaths = "testArtifactGeneration10/"; - List inputArtifacts = init(aaiResourceBasePaths); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals( - data.getErrorData().get("AAI").get(0),"Invalid Service/Resource definition mandatory attribute missing in Artifact: <" + - inputArtifacts.get(0).getName() + ">"); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test //(dependsOnMethods = {"testArtifactGeneration"}) - public void testWhenVfModInvUuIdAttrMissing() { - try { - //mandatory attribute missing - List inputArtifacts = new ArrayList<>(); - readPayloadFromResource(inputArtifacts, "service_vmme_template_ModInvUUID.yml"); - readPayloadFromResource(inputArtifacts, "vf_vmme_template_ModInvUUID.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals( - data.getErrorData().get("AAI").get(0),"Invalid Service/Resource definition mandatory attribute missing in Artifact: <" + - inputArtifacts.get(1).getName() + ">"); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - public static void readPayload(List inputArtifacts, InputStream fis, String fileName) throws - IOException { - byte[] payload = new byte[fis.available()]; - fis.read(payload); - String checksum = GeneratorUtil.checkSum(payload); - byte[] encodedPayload = GeneratorUtil.encode(payload); - Artifact artifact = new Artifact(aaiArtifactType, aaiArtifactGroupType, checksum, encodedPayload); - artifact.setName(fileName); - artifact.setLabel(fileName); - artifact.setDescription(fileName); - artifact.setVersion("1.0"); - System.out.println(artifact.getName()); - inputArtifacts.add(artifact); - } - - @Test - public void testWhenInvalidVfModInvUuIdAttr() { - try { - //invalid id since not of length 36 for - List inputArtifacts = new ArrayList<>(); - readPayloadFromResource(inputArtifacts, "service_vmme_template_InvalidVfModInvUuIdAttr.yml"); - - readPayloadFromResource(inputArtifacts, "vf_vmme_template_InvalidVfModInvUuIdAttr.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals( - data.getErrorData().get("AAI").get(0),String.format(GENERATOR_AAI_ERROR_INVALID_ID, - "vfModuleModelInvariantUUID", inputArtifacts.get(1).getName() )); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test //(dependsOnMethods = {"testArtifactGeneration"}) - public void testWhenVfModNameAttrMissing() { - try { - //mandatory attribute missing - List inputArtifacts = new ArrayList<>(); - readPayloadFromResource(inputArtifacts, "service_vmme_template_ModelName.yml"); - - readPayloadFromResource(inputArtifacts, "vf_vmme_template_ModelName.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals( - data.getErrorData().get("AAI").get(0),"Invalid Service/Resource definition mandatory attribute missing in Artifact: <" + - inputArtifacts.get(1).getName() + ">"); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - /*public static void readPayload(List inputArtifacts,InputStream fis, String fileName) - throws - IOException { - byte[] payload = new byte[fis.available()]; - fis.read(payload); - String checksum = GeneratorUtil.checkSum(payload); - byte[] encodedPayload = GeneratorUtil.encode(payload); - Artifact artifact = new Artifact(aaiArtifactType, aaiArtifactGroupType, checksum, encodedPayload); - artifact.setName(fileName); - artifact.setLabel(fileName); - artifact.setDescription(fileName); - artifact.setVersion("1.0"); - System.out.println(artifact.getName()); - inputArtifacts.add(artifact); - }*/ - - @Test //(dependsOnMethods = {"testArtifactGeneration"}) - public void testWhenVfModUuIdAttrMissing() { - try { - //mandatory attribute missing in Artifact - List inputArtifacts = new ArrayList<>(); - readPayloadFromResource(inputArtifacts, "service_vmme_template_ModelUUID.yml"); - - readPayloadFromResource(inputArtifacts, "vf_vmme_template_ModelUUID.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals( - data.getErrorData().get("AAI").get(0),"Invalid Service/Resource definition mandatory " + - "attribute missing in Artifact: <" + - inputArtifacts.get(1).getName() + ">"); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testWhenInvalidVfModUuIdAttr() { - try { - //invalid id since not of length 36 for - List inputArtifacts = new ArrayList<>(); - readPayloadFromResource(inputArtifacts, "service_vmme_template_InvalidVfModUuIdAttr.yml"); - - readPayloadFromResource(inputArtifacts, "vf_vmme_template_InvalidVfModUuIdAttr.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals( - data.getErrorData().get("AAI").get(0),String.format(GENERATOR_AAI_ERROR_INVALID_ID, - "vfModuleModelUUID", inputArtifacts.get(1).getName() )); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test //(dependsOnMethods = {"testArtifactGeneration"}) - public void testWhenVfModVersionAttrMissing() { - try { - //mandatory attribute missing - List inputArtifacts = new ArrayList<>(); - readPayloadFromResource(inputArtifacts, "service_vmme_template_ModelVersion.yml"); - - readPayloadFromResource(inputArtifacts, "vf_vmme_template_ModelVersion.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals( - data.getErrorData().get("AAI").get(0),"Invalid Service/Resource definition mandatory attribute missing in Artifact: <" + - inputArtifacts.get(1).getName() + ">"); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testErrorWhenNoSystemPropConfigured() throws Exception { - String configLoc = System.getProperty("artifactgenerator.config"); - try { - System.clearProperty("artifactgenerator.config"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - String aaiResourceBasePaths = "aai/"; - List inputArtifacts = init(aaiResourceBasePaths); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals(false,data.getErrorData().isEmpty()); - Assert.assertEquals(data.getErrorData(). - get("AAI").get(0),GENERATOR_AAI_CONFIGLOCATION_NOT_FOUND); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - finally{ - System.setProperty("artifactgenerator.config",configLoc); - } - } - - @Test - public void testErrorWhenNoWidgetInConfig() throws Exception { - String configLoc = System.getProperty("artifactgenerator.config"); - final File configFile = new File(configLoc); - String configDir = configLoc.substring(0, configLoc.lastIndexOf(File.separator)); - final File tempFile = new File(configDir + File.separator + "temp.properties"); - try { - //copy orignal Artifact-Generator.properties to temp.properties for backup - FileUtils.copyFile(configFile, tempFile); - - String serviceWidgetName = ArtifactType.AAI.name()+".model-version-id."+Widget.getWidget - (Widget.Type.SERVICE) - .getName(); - String assertMsg = ArtifactType.AAI.name() + ".model-version-id." +Widget.getWidget - (Widget.Type.SERVICE).getName(); - - //Remove property from Artifact-Generator.properties - properties.remove(serviceWidgetName); - try (OutputStream fos = new FileOutputStream(new File(configLoc))) { - properties.store(fos,null); - } - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - String aaiResourceBasePaths = "aai/"; - List inputArtifacts = init(aaiResourceBasePaths); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals(false,data.getErrorData().isEmpty()); - String errMsg = String.format(GENERATOR_AAI_CONFIGLPROP_NOT_FOUND,assertMsg); - Assert.assertEquals(data.getErrorData().get("AAI").get(0),errMsg); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - finally{ - if(tempFile.exists()){ - //Revert the changes - FileUtils.copyFile(tempFile, configFile); - loadConfigFromClasspath(properties); - tempFile.delete(); - } - } - } - - @Test - public void testErrorWhenNoFileAtConfigLocation() throws Exception { - String configLoc = System.getProperty("artifactgenerator.config"); - try { - System.setProperty("artifactgenerator.config",configLoc + File.separator + "testErrorWhenNoFileAtConfigLocation"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - String aaiResourceBasePaths = "aai/"; - List inputArtifacts = init(aaiResourceBasePaths); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals(data.getErrorData().isEmpty(),false); - Assert.assertEquals(data.getErrorData().get("AAI").get(0),String.format(GENERATOR_AAI_CONFIGFILE_NOT_FOUND,System.getProperty - ("artifactgenerator.config"))); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - finally{ - System.setProperty("artifactgenerator.config",configLoc); - } - } - - @Test - public void testErrorWhenNoServiceVersion() { - // scenario service with VF anf vfmodule but no service version in additional parameter - try { - additionalParams.clear(); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - String aaiResourceBasePaths = "aai/"; - List inputArtifacts = init(aaiResourceBasePaths); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals(data.getErrorData().isEmpty(),false); - Assert.assertEquals(data.getErrorData().get("AAI").get(0), - GENERATOR_AAI_ERROR_MISSING_SERVICE_VERSION); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - finally{ - additionalParams.put(AdditionalParams.ServiceVersion.getName(),"1.0"); - } - } - - @Test - public void testArtifactGenerationWithServiceVersion() { - // Sunny day scenario service with VF anf vfmodule and service version as adiitional parameter - try { - additionalParams.put(AdditionalParams.ServiceVersion.getName(),"9.0"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList<>(); - String aaiResourceBasePaths = "aai/"; - List inputArtifacts = init(aaiResourceBasePaths); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - if (data.getErrorData().isEmpty()) { - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - /*for( int i = 0 ; i < resultData.size() ; i++) { - Artifact artifact = resultData.get(i); - String fileName = artifact.getName(); - while(fileName.contains(":")){ - fileName = fileName.replace(":",""); - } - File targetFile =new File("src/test/resources/"+fileName); - OutputStream outStream = new FileOutputStream(targetFile); - outStream.write(Base64.getDecoder().decode(artifact.getPayload())); - }*/ - - Assert.assertEquals(resultData.size(),5); // 1-service,1-VF-resource,1-vfmodule and 2 - // others - Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); - testServiceTosca(toscas, outputArtifactMap); - testResourceTosca(toscas.iterator(), outputArtifactMap); - } else { - Assert.fail("error encountered : " + data.getErrorData().get("AAI")); - } - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - finally{ - additionalParams.put(AdditionalParams.ServiceVersion.getName(),"1.0"); - } - } - - @Test - public void testErrorWhenInvalidServiceVersion() { - // scenario service with VF anf vfmodule but invalid service version in additional parameter - try { - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - String aaiResourceBasePaths = "aai/"; - List inputArtifacts = init(aaiResourceBasePaths); - - additionalParams.put(AdditionalParams.ServiceVersion.getName(),"1"); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals(data.getErrorData().isEmpty(),false); - Assert.assertEquals(data.getErrorData().get("AAI").get(0), - GENERATOR_AAI_INVALID_SERVICE_VERSION); - - additionalParams.put(AdditionalParams.ServiceVersion.getName(),"0.1"); - data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals(data.getErrorData().isEmpty(),false); - Assert.assertEquals(data.getErrorData().get("AAI").get(0), - GENERATOR_AAI_INVALID_SERVICE_VERSION); - - additionalParams.put(AdditionalParams.ServiceVersion.getName(),"0.0"); - data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals(data.getErrorData().isEmpty(),false); - Assert.assertEquals(data.getErrorData().get("AAI").get(0), - GENERATOR_AAI_INVALID_SERVICE_VERSION); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - finally{ - additionalParams.put(AdditionalParams.ServiceVersion.getName(),"1.0"); - } - } - - @Test - public void testMissingResourceTosca() { - try { - //Service with resource but seperate resource tosca not coming as input. - String aaiResourceBasePaths = "missingResourceTosca/"; - List inputArtifacts = init(aaiResourceBasePaths); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals(data.getErrorData().get("AAI").get(0),"Cannot generate artifacts. Resource Tosca missing for resource with UUID: "); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - @Test - public void testMissingVLTosca() { - try { - //Service with VL but seperate VL tosca not coming as input artifact. - String aaiResourceBasePaths = "missingVLTosca/"; - List inputArtifacts = init(aaiResourceBasePaths); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals(data.getErrorData().get("AAI").get(0),"Cannot generate artifacts. Resource Tosca missing for resource with UUID: <3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468>"); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testErrorWhenNoResourceVersion() { - // scenario service with VF but missing resource version in service tosca - try { - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - String aaiResourceBasePaths = "testErrorWhenNoResourceVersion/"; - List inputArtifacts = init(aaiResourceBasePaths); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals(data.getErrorData().isEmpty(),false); - Assert.assertEquals(data.getErrorData().get("AAI").get(0), - "Invalid Service definition mandatory attribute version missing for resource with UUID: "); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testErrorWhenInvalidResourceVersion1() { - // scenario service with VF but invalid resource version 0.0 in service tosca - try { - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - String aaiResourceBasePaths = "testErrorWhenInvalidResourceVersion1/"; - List inputArtifacts = init(aaiResourceBasePaths); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals(data.getErrorData().isEmpty(),false); - Assert.assertEquals(data.getErrorData().get("AAI").get(0), - "Cannot generate artifacts. Invalid Resource version in Service tosca for resource with UUID: "); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testErrorWhenInvalidResourceVersion2() { - // scenario service with VF but invalid resource version 1 in service tosca - try { - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - String aaiResourceBasePaths = "testErrorWhenInvalidResourceVersion2/"; - List inputArtifacts = init(aaiResourceBasePaths); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals(data.getErrorData().isEmpty(),false); - Assert.assertEquals(data.getErrorData().get("AAI").get(0), - "Cannot generate artifacts. Invalid Resource version in Service tosca for resource with UUID: "); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationAllottedResourceWithIpMuxAndTunnelXConn() { - try { - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList<>(); - String aaiResourceBasePaths = "testArtifactGeneration15/"; - List inputArtifacts = init(aaiResourceBasePaths); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - if (data.getErrorData().isEmpty()) { - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Assert.assertEquals(resultData.size(),5); - Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); - testServiceTosca(toscas, outputArtifactMap); - testResourceTosca(toscas.iterator(), outputArtifactMap); - } else { - Assert.fail("error encountered : " + data.getErrorData().get("AAI")); - } - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - -// @Test - public void testErrorWhenAllottedResourceWithOutProvidingServiceId() { - try { - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - String aaiResourceBasePaths = "testErrorWhenAllottedResourceWithOutDependingServiceId/"; - List inputArtifacts = init(aaiResourceBasePaths); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals(data.getErrorData().isEmpty(),false); - Assert.assertEquals(data.getErrorData().get("AAI").get(0),String.format - (GENERATOR_AAI_PROVIDING_SERVICE_METADATA_MISSING, "707b2850-e830-4b00-9902-879f44ac05a4")); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationWithoutAllottedResource() { - try { - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - String aaiResourceBasePaths = "testArtifactGeneration16/"; - List inputArtifacts = init(aaiResourceBasePaths); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - Assert.assertEquals(data.getErrorData().isEmpty(),false); - Assert.assertEquals(data.getErrorData().get("AAI").get(0),String.format - (GENERATOR_AAI_PROVIDING_SERVICE_MISSING, "a54a5235-b69d-4f8a-838b-d011e6783fa5")); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationAllottedResourceIpmuxSameInvariantDiffVersion() { - try { - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList<>(); - String aaiResourceBasePaths = "testArtifactGeneration17/"; - List inputArtifacts = init(aaiResourceBasePaths); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - if (data.getErrorData().isEmpty()) { - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Assert.assertEquals(resultData.size(),5); - Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); - testServiceTosca(toscas, outputArtifactMap); - testResourceTosca(toscas.iterator(), outputArtifactMap); - } else { - Assert.fail("error encountered : " + data.getErrorData().get("AAI")); - } - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationAllottedResourceIpmuxSameInvariantSameVersion() { - try { - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList<>(); - String aaiResourceBasePaths = "testArtifactGeneration18/"; - List inputArtifacts = init(aaiResourceBasePaths); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - if (data.getErrorData().isEmpty()) { - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - - Assert.assertEquals(resultData.size(),4); - Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); - testServiceTosca(toscas, outputArtifactMap); - testResourceTosca(toscas.iterator(), outputArtifactMap); - } else { - Assert.fail("error encountered : " + data.getErrorData().get("AAI")); - } - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationAllottedResourceIpmuxWithGroups() { - try { - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList<>(); - String aaiResourceBasePaths = "testAllotedResourceWithDependingSerWithGroups/"; - List inputArtifacts = init(aaiResourceBasePaths); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - if (data.getErrorData().isEmpty()) { - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Assert.assertEquals(resultData.size(),5); - Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); - testServiceTosca(toscas, outputArtifactMap); - testResourceTosca(toscas.iterator(), outputArtifactMap); - } else { - Assert.fail("error encountered : " + data.getErrorData().get("AAI")); - } - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationAllottedResourceWithVF() { - try { - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList<>(); - String aaiResourceBasePaths = "testArtifactGenerationAllottedResourceWithVF/"; - List inputArtifacts = init(aaiResourceBasePaths); - GenerationData data = obj.generateArtifact(inputArtifacts, generatorConfig, additionalParams); - if (data.getErrorData().isEmpty()) { - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Assert.assertEquals(resultData.size(),7); - Map outputArtifactMap = populateAAIGeneratedModelStore(resultData); - testServiceTosca(toscas, outputArtifactMap); - testResourceTosca(toscas.iterator(), outputArtifactMap); - } else { - Assert.fail("error encountered : " + data.getErrorData().get("AAI")); - } - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - - //@Test - public void testServiceTosca(List toscas, Map outputArtifactMap) { - try { - ToscaTemplate serviceTosca = getServiceTosca(toscas); - if (serviceTosca == null) { - Assert.fail("Service Tosca not found"); - } - serviceTosca.getMetadata().put("version", "1.0"); - Service service = new Service(); - service.populateModelIdentificationInformation(serviceTosca.getMetadata()); - String serviceNameVersionId = service.getModelNameVersionId(); - Model serviceAAIModel = getAAIModelByNameVersionId(serviceNameVersionId, outputArtifactMap); - validateServiceModelMetadata(service, serviceAAIModel); - //Validate Service instance base widget - ModelVer modelVersion = serviceAAIModel.getModelVers().getModelVer().get(0); - - List matchedServiceBaseWidgetElements = - getModelElementbyRelationshipValue( modelVersion.getModelElements(), - Widget.getWidget(Widget.Type.SERVICE).getId()); - validateMatchedModelElementsInService(matchedServiceBaseWidgetElements, - Widget.getWidget(Widget.Type.SERVICE).getName()); - - validateWidgetIds(matchedServiceBaseWidgetElements, Widget.getWidget(Widget.Type.SERVICE).getName(), - Widget.getWidget(Widget.Type.SERVICE).getWidgetId()); - - ModelElements baseServiceWidgetModelElements = - matchedServiceBaseWidgetElements.get(0).getModelElements(); - - - Map nodeTemplateIdTypeStore = getNodeTemplateTypeStore(serviceTosca); - if (nodeTemplateIdTypeStore != null) { - for (String key : nodeTemplateIdTypeStore.keySet()) { - if (nodeTemplateIdTypeStore.get(key).contains("org.openecomp.resource.vf")) { - List matchedResourceElements = - getModelElementbyRelationshipValue(baseServiceWidgetModelElements, key); - if (nodeTemplateIdTypeStore.get(key).contains("org.openecomp.resource.vf.allottedResource")){ - validateMatchedModelElementsInService(matchedResourceElements, - Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getName()); - }else { - validateMatchedModelElementsInService(matchedResourceElements, - Widget.getWidget(Widget.Type.VF).getName()); - } - - //Validate uuid and invariantuuid are populated in model-ver.model-version-id and model.model-invariant-id - Assert.assertEquals(matchedResourceElements.get(0).getRelationshipList() - .getRelationship().get(0) - .getRelationshipData().get(0).getRelationshipValue(),key); - - Assert.assertEquals(matchedResourceElements.get(0).getRelationshipList().getRelationship().get(0) - .getRelationshipData().get(1).getRelationshipValue(), nodeTemplateIdTypeStore - .get(key+"-INV_UID")); - } else if(nodeTemplateIdTypeStore.get(key).contains("org.openecomp.resource.vl")){ - //validate l3-network in service tosca - List matchedResourceElements = - getModelElementbyRelationshipValue(baseServiceWidgetModelElements, key); - validateMatchedModelElementsInService(matchedResourceElements, - Widget.getWidget(Widget.Type.L3_NET).getName()); - //Validate uuid and invariantuuid are populated in model-ver.model-version-id and model.model-invariant-id - Assert.assertEquals(matchedResourceElements.get(0).getRelationshipList() - .getRelationship().get(0) - .getRelationshipData().get(0).getRelationshipValue(),key); - - Assert.assertEquals(matchedResourceElements.get(0).getRelationshipList().getRelationship().get(0) - .getRelationshipData().get(1).getRelationshipValue(), nodeTemplateIdTypeStore - .get(key+"-INV_UID")); - } - } - - - System.out.println(); - - } - } catch (IllegalArgumentException e) { - Assert.fail(e.getMessage()); //Can come while populating metadata - } - } - - private void validateWidgetIds(List matchedServiceBaseWidgetElements, - String widgetName, String widgetInvUuId) { - Assert.assertEquals(matchedServiceBaseWidgetElements.get(0).getRelationshipList().getRelationship().get(0) - .getRelationshipData().get(0).getRelationshipValue(), properties.getProperty(ArtifactType.AAI.name() - + ".model-version-id."+ widgetName)); - - Assert.assertEquals(matchedServiceBaseWidgetElements.get(0).getRelationshipList().getRelationship().get(0) - .getRelationshipData().get(1).getRelationshipValue(), widgetInvUuId); - } - - - public void testL3NetworkResourceTosca(Map outputArtifactMap , ToscaTemplate - resourceTosca) { - try { - if (resourceTosca != null) { - Resource resource = new Resource(); - resource.populateModelIdentificationInformation(resourceTosca.getMetadata()); - String resourceNameVersionId = resource.getModelNameVersionId(); - Model resourceAAIModel = - getAAIModelByNameVersionId(resourceNameVersionId, outputArtifactMap); - if (resourceAAIModel != null) { - validateResourceModelMetadata(resource, resourceAAIModel); - //Validate Resource instance base widget - - ModelVer modelVersion = resourceAAIModel.getModelVers().getModelVer().get(0); - - List matchedVFBaseWidgetElements = - getModelElementbyRelationshipValue(modelVersion.getModelElements(), - Widget.getWidget(Widget.Type.L3_NET).getId()); - validateMatchedModelElementsInService(matchedVFBaseWidgetElements, - Widget.getWidget(Widget.Type.L3_NET).getName()); - - validateWidgetIds(matchedVFBaseWidgetElements, Widget.getWidget(Widget.Type.L3_NET).getName(), - Widget.getWidget(Widget.Type.L3_NET).getWidgetId()); - - }else { - System.out.println("Resource mapping not found for " + resourceNameVersionId); - } - } - - }catch (IllegalArgumentException e) { - Assert.fail(e.getMessage()); //Can come while populating metadata - } - - } - - public void testAllottedResourceTosca(Map outputArtifactMap , ToscaTemplate - resourceTosca) { - try { - if (resourceTosca != null) { - Resource resource = new Resource(); - resource.populateModelIdentificationInformation(resourceTosca.getMetadata()); - String resourceNameVersionId = resource.getModelNameVersionId(); - Model resourceAAIModel = - getAAIModelByNameVersionId(resourceNameVersionId, outputArtifactMap); - if (resourceAAIModel != null) { - validateResourceModelMetadata(resource, resourceAAIModel); - //Validate Resource instance base widget - - ModelVer modelVersion = resourceAAIModel.getModelVers().getModelVer().get(0); - - List matchedVFBaseWidgetElements = - getModelElementbyRelationshipValue(modelVersion.getModelElements(), - Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getId()); - validateMatchedModelElementsInService(matchedVFBaseWidgetElements, - Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getName()); - - validateWidgetIds(matchedVFBaseWidgetElements, Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getName(), - Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getWidgetId()); - - Map dependingServiceDetails = getProvidingServiceDetails(resourceTosca); - - ModelElements containedModelElements = modelVersion.getModelElements().getModelElement(). - get(0).getModelElements(); - Assert.assertEquals( containedModelElements.getModelElement().get(0).getRelationshipList() - .getRelationship().get(0).getRelationshipData().get(0).getRelationshipValue(), - dependingServiceDetails.get("providing_service_uuid")); - - Assert.assertEquals(containedModelElements.getModelElement().get(0).getRelationshipList() - .getRelationship().get(0).getRelationshipData().get(1).getRelationshipValue(), - dependingServiceDetails.get("providing_service_invariant_uuid")); - - if("Allotted Resource".equals(resourceTosca.getMetadata().get("category")) && - "Tunnel XConnect".equals(resourceTosca.getMetadata().get("subcategory"))) { - - List matchedTunnelXConnectWidgetElements = - getModelElementbyRelationshipValue(containedModelElements, - Widget.getWidget(Widget.Type.TUNNEL_XCONNECT).getId()); - validateMatchedModelElementsInService(matchedTunnelXConnectWidgetElements, - Widget.getWidget(Widget.Type.TUNNEL_XCONNECT).getName()); - - validateWidgetIds(matchedTunnelXConnectWidgetElements, Widget.getWidget(Widget.Type.TUNNEL_XCONNECT).getName(), - Widget.getWidget(Widget.Type.TUNNEL_XCONNECT).getWidgetId()); - } - - }else { - System.out.println("Resource mapping not found for " + resourceNameVersionId); - } - } - - }catch (IllegalArgumentException e) { - Assert.fail(e.getMessage()); //Can come while populating metadata - } - - } - - public Map getProvidingServiceDetails(ToscaTemplate resourceTemplate) { -Set keys = resourceTemplate.getTopology_template().getNode_templates().keySet(); - -Map nodeProperties =null; -for(String key : keys) { -NodeTemplate node = resourceTemplate.getTopology_template().getNode_templates().get(key); -if(node.getType().equals("org.openecomp.resource.vfc.AllottedResource")) { -nodeProperties = node.getProperties(); - } -} - - return nodeProperties; - } - - public void testVfTosca(Map outputArtifactMap , ToscaTemplate resourceTosca) { - try { - //ToscaTemplate resourceTosca = getResourceTosca(toscas); - //resourceTosca.getTopology_template().getGroups(). - if (resourceTosca != null) { - Resource resource = new Resource(); - resource.populateModelIdentificationInformation(resourceTosca.getMetadata()); - String resourceNameVersionId = resource.getModelNameVersionId(); - Model resourceAAIModel = - getAAIModelByNameVersionId(resourceNameVersionId, outputArtifactMap); - if (resourceAAIModel != null) { - validateResourceModelMetadata(resource, resourceAAIModel); - //Validate Resource instance base widget - - ModelVer modelVersion = resourceAAIModel.getModelVers().getModelVer().get(0); - - List matchedVFBaseWidgetElements = - getModelElementbyRelationshipValue(modelVersion.getModelElements(), - Widget.getWidget(Widget.Type.VF).getId()); - validateMatchedModelElementsInService(matchedVFBaseWidgetElements, - Widget.getWidget(Widget.Type.VF).getName()); - - validateWidgetIds(matchedVFBaseWidgetElements, Widget.getWidget(Widget.Type.VF).getName(), - Widget.getWidget(Widget.Type.VF).getWidgetId()); - - ModelElements baseResourceWidgetModelElements = - matchedVFBaseWidgetElements.get(0).getModelElements(); - if (resourceTosca.getTopology_template() != null) { - Map groupIdTypeStore = getGroupsTypeStore(resourceTosca); - - if (baseResourceWidgetModelElements.getModelElement().size() != - groupIdTypeStore.size()) { - Assert.fail("Missing VFModule in VF model.xml"); - } - - for (String key : groupIdTypeStore.keySet()) { - - List matchedResourceElements = - getModelElementbyRelationshipValue(baseResourceWidgetModelElements, key); - validateMatchedModelElementsInService(matchedResourceElements, - Widget.getWidget(Widget.Type.VFMODULE).getName()); - Model resourceAAIVFModel = getAAIModelByNameVersionId(key, outputArtifactMap); - Map vfModuleModelMetadata = - getVFModuleMetadataTosca(resourceTosca, key); - Map vfModuleMembers = getVFModuleMembersTosca(resourceTosca, key); - - validateVFModelMetadata(vfModuleModelMetadata, resourceAAIVFModel); - - - ModelVer modelVfVersion = resourceAAIVFModel.getModelVers().getModelVer().get(0); - - List matchedVFModuleBaseWidgetElements = - getModelElementbyRelationshipValue(modelVfVersion.getModelElements(), - Widget.getWidget(Widget.Type.VFMODULE).getId()); - validateMatchedModelElementsInService(matchedVFModuleBaseWidgetElements, - Widget.getWidget(Widget.Type.VFMODULE).getName()); - validateWidgetIds(matchedVFModuleBaseWidgetElements, Widget.getWidget(Widget.Type.VFMODULE) - .getName(), Widget.getWidget(Widget.Type.VFMODULE).getWidgetId()); - - ModelElements baseResourceVFModuleWidgetModelElements = - matchedVFModuleBaseWidgetElements.get(0).getModelElements(); - if (vfModuleMembers.containsKey("l3-network")) { - //Validate l3 - List matchedL3NetworkElements = - getModelElementbyRelationshipValue(baseResourceVFModuleWidgetModelElements, - Widget.getWidget(Widget.Type.L3_NET).getId()); - validateMatchedModelElementsInService(matchedL3NetworkElements, - Widget.getWidget(Widget.Type.L3_NET).getName()); - validateWidgetIds(matchedL3NetworkElements, Widget.getWidget(Widget.Type.L3_NET) - .getName(), Widget.getWidget(Widget.Type.L3_NET).getWidgetId()); - } - if (vfModuleMembers.containsKey("vserver")) { - //Validate vserver - List matchedVserverElements = - getModelElementbyRelationshipValue(baseResourceVFModuleWidgetModelElements, - Widget.getWidget(Widget.Type.VSERVER).getId()); - validateMatchedModelElementsInService(matchedVserverElements, - Widget.getWidget(Widget.Type.VSERVER).getName()); - ModelElements vserverWidgetModelElements = - matchedVserverElements.get(0).getModelElements(); - - validateWidgetIds(matchedVserverElements, Widget.getWidget(Widget.Type.VSERVER) - .getName(), Widget.getWidget(Widget.Type.VSERVER).getWidgetId()); - - - //Validate vserver->vfc - List matchedVfcElements = - getModelElementbyRelationshipValue(vserverWidgetModelElements, - Widget.getWidget(Widget.Type.VFC).getId()); - validateMatchedModelElementsInService(matchedVfcElements, - Widget.getWidget(Widget.Type.VFC).getName()); - validateWidgetIds(matchedVfcElements, Widget.getWidget(Widget.Type.VFC).getName(), - Widget.getWidget(Widget.Type.VFC).getWidgetId()); - - //Validate vserver->Image - List matchedImageElements = - getModelElementbyRelationshipValue(vserverWidgetModelElements, - Widget.getWidget(Widget.Type.IMAGE).getId()); - validateMatchedModelElementsInService(matchedImageElements, - Widget.getWidget(Widget.Type.IMAGE).getName()); - validateWidgetIds(matchedImageElements, Widget.getWidget(Widget.Type.IMAGE) - .getName(), Widget.getWidget(Widget.Type.IMAGE).getWidgetId()); - - - //Validate vserver->Flavor - List matchedFlavorElements = - getModelElementbyRelationshipValue(vserverWidgetModelElements, - Widget.getWidget(Widget.Type.FLAVOR).getId()); - validateMatchedModelElementsInService(matchedFlavorElements, - Widget.getWidget(Widget.Type.FLAVOR).getName()); - validateWidgetIds(matchedFlavorElements, Widget.getWidget(Widget.Type.FLAVOR).getName(), - Widget.getWidget(Widget.Type.FLAVOR).getWidgetId()); - - //Validate vserver->Tenant - List matchedTenantElements = - getModelElementbyRelationshipValue(vserverWidgetModelElements, - Widget.getWidget(Widget.Type.TENANT).getId()); - validateMatchedModelElementsInService(matchedTenantElements, - Widget.getWidget(Widget.Type.TENANT).getName()); - validateWidgetIds(matchedTenantElements, Widget.getWidget(Widget.Type.TENANT).getName(), - Widget.getWidget(Widget.Type.TENANT).getWidgetId()); - - //Validate vserver->l-interface - if (vfModuleMembers.containsKey("l-interface")) { - List matchedLinterfaceElements = - getModelElementbyRelationshipValue(vserverWidgetModelElements, - Widget.getWidget(Widget.Type.LINT).getId()); - validateMatchedModelElementsInService(matchedLinterfaceElements, - Widget.getWidget(Widget.Type.LINT).getName()); - validateWidgetIds(matchedLinterfaceElements, Widget.getWidget(Widget.Type.LINT).getName(), - Widget.getWidget(Widget.Type.LINT).getWidgetId()); - } - //Validate vserver->volume - if (vfModuleMembers.containsKey("volume")) { - List matchedVolumeElements = - getModelElementbyRelationshipValue(vserverWidgetModelElements, - Widget.getWidget(Widget.Type.VOLUME).getId()); - validateMatchedModelElementsInService(matchedVolumeElements, - Widget.getWidget(Widget.Type.VOLUME).getName()); - validateWidgetIds(matchedVolumeElements, Widget.getWidget(Widget.Type.VOLUME).getName(), - Widget.getWidget(Widget.Type.VOLUME).getWidgetId()); - } - } - } - } - } else { - System.out.println("Resource mapping not found for " + resourceNameVersionId); - } - } - - } catch (IllegalArgumentException e) { - Assert.fail(e.getMessage()); //Can come while populating metadata - } - - } - - private void validateMatchedModelElementsInService(List matchedModelElements, - String modelType) { - if (matchedModelElements.isEmpty()) { - Assert.fail(modelType + " not present "); - } - if (matchedModelElements.size() > 1) { - Assert.fail("More than one " + modelType + " present "); - } - } - - private Map getNodeTemplateTypeStore(ToscaTemplate toscaTemplate) { - if (toscaTemplate.getTopology_template() != null) { - Map nodeTemplateMap = - toscaTemplate.getTopology_template().getNode_templates(); - Map nodeTemplateIdTypeStore = new LinkedHashMap<>(); - if (nodeTemplateMap != null) { - for (Map.Entry e : nodeTemplateMap.entrySet()) { - String uuid = e.getValue().getMetadata().get("resourceUUID"); - if (GeneratorUtil.isEmpty(uuid)) { - uuid = e.getValue().getMetadata().get("UUID"); - if (GeneratorUtil.isEmpty(uuid)) { - Assert.fail("UUID Not found"); - } - } - if(e.getValue().getType().contains("org.openecomp.resource.vf.")&& (e.getValue() - .getMetadata().get("category").equals("Allotted Resource"))) - { - e.getValue().setType("org.openecomp.resource.vf.allottedResource"); - } - nodeTemplateIdTypeStore.put(uuid, e.getValue().getType()); - resourcesVersion.put(uuid,e.getValue().getMetadata().get - ("version")); - //Populate invraintUuId for V9 - String invUuId = e.getValue().getMetadata().get("invariantUUID"); - nodeTemplateIdTypeStore.put(uuid+"-INV_UID" , invUuId); - } - } - return nodeTemplateIdTypeStore; - } else { - return null; - } - } - - private Map getGroupsTypeStore(ToscaTemplate toscaTemplate) { - if (toscaTemplate.getTopology_template() != null) { - Map groupDefinitionMap = - toscaTemplate.getTopology_template().getGroups(); - Map groupDefinitionIdTypeStore = new LinkedHashMap<>(); - if (groupDefinitionMap != null) { - for (Map.Entry e : groupDefinitionMap.entrySet()) { - if (e.getValue().getType().contains("org.openecomp.groups.VfModule")) { - String uuid = e.getValue().getMetadata().get("vfModuleModelUUID"); - if (GeneratorUtil.isEmpty(uuid)) { - uuid = e.getValue().getMetadata().get("UUID"); - if (GeneratorUtil.isEmpty(uuid)) { - Assert.fail("UUID Not found"); - } - } - groupDefinitionIdTypeStore.put(uuid, e.getValue().getType()); - } - } - } - return groupDefinitionIdTypeStore; - } else { - return null; - } - - } - - private void validateServiceModelMetadata(Service serviceToscaModel, Model generatedAAIModel) { - ModelVer modelVersion = generatedAAIModel.getModelVers().getModelVer().get(0); - Assert.assertEquals(serviceToscaModel.getModelNameVersionId(), - modelVersion.getModelVersionId()); - Assert.assertEquals(serviceToscaModel.getModelId(), generatedAAIModel.getModelInvariantId()); - Assert.assertEquals(serviceToscaModel.getModelName(), modelVersion.getModelName()); - Assert.assertEquals(additionalParams.get(AdditionalParams.ServiceVersion.getName()), modelVersion - .getModelVersion()); - Assert.assertEquals(serviceToscaModel.getModelDescription(), - modelVersion.getModelDescription()); - - } - - private void validateResourceModelMetadata(Resource resouerceToscaModel, - Model generatedAAIModel) { - ModelVer modelVersion = generatedAAIModel.getModelVers().getModelVer().get(0); - Assert.assertEquals(resouerceToscaModel.getModelNameVersionId(), - modelVersion.getModelVersionId()); - Assert.assertEquals(resouerceToscaModel.getModelId(), generatedAAIModel.getModelInvariantId()); - Assert.assertEquals(resouerceToscaModel.getModelName(), modelVersion.getModelName()); - Assert - .assertEquals(resouerceToscaModel.getModelVersion(), modelVersion.getModelVersion()); - Assert.assertEquals(resouerceToscaModel.getModelDescription(), - modelVersion.getModelDescription()); - - } - - private void validateVFModelMetadata(Map vfModuleModelMetadata, - Model generatedAAIModel) { - ModelVer modelVersion = generatedAAIModel.getModelVers().getModelVer().get(0); - Assert.assertEquals(vfModuleModelMetadata.get("vfModuleModelUUID"), - modelVersion.getModelVersionId()); - Assert.assertEquals(vfModuleModelMetadata.get("vfModuleModelInvariantUUID"), - generatedAAIModel.getModelInvariantId()); - Assert.assertEquals(vfModuleModelMetadata.get("vfModuleModelName"), - modelVersion.getModelName()); - Assert.assertEquals(vfModuleModelMetadata.get("vfModuleModelVersion"), - modelVersion.getModelVersion()); - Assert.assertEquals(vfModuleModelMetadata.get("vf_module_description"), - modelVersion.getModelDescription()); - } - - private Model getAAIModelByNameVersionId(String nameVersionId, - Map outputArtifactMap) { - return outputArtifactMap.get(nameVersionId); - } - - private List getModelElementbyRelationshipValue(ModelElements modelElements, - String relationshipValue) { - List matchedModelElements = new ArrayList<>(); - if (modelElements != null) { - List modelElementList = modelElements.getModelElement(); - for (ModelElement element : modelElementList) { - List relationshipList = element.getRelationshipList().getRelationship(); - for (Relationship r : relationshipList) { - List relationshipDataList = r.getRelationshipData(); - for (RelationshipData relationshipData : relationshipDataList) { - if (relationshipData.getRelationshipValue().equals(relationshipValue)) { - matchedModelElements.add(element); - } - } - } - } - } - return matchedModelElements; - } - - private Map populateAAIGeneratedModelStore(List resultData) throws IOException { - Map outputArtifactMap = new HashMap<>(); - for (Artifact outputArtifact : resultData) { - if (outputArtifact.getType().equals(ArtifactType.MODEL_INVENTORY_PROFILE.name())) { - byte[] decodedPayload = GeneratorUtil.decoder(outputArtifact.getPayload()); - Model aaiModel = getUnmarshalledArtifactModel(new String(decodedPayload)); - List modelVersions = aaiModel.getModelVers().getModelVer(); - outputArtifactMap.put(modelVersions.get(0).getModelVersionId(), aaiModel); - } - } - return outputArtifactMap; - } - - private Model getUnmarshalledArtifactModel(String aaiModel) throws IOException { - - try { - - JAXBContext jaxbContext = JAXBContext.newInstance(Model.class); - Unmarshaller unmarshaller = jaxbContext.createUnmarshaller(); - - try (InputStream aaiModelStream = new ByteArrayInputStream(aaiModel.getBytes())) { - return (Model) unmarshaller.unmarshal(aaiModelStream); - } - - } catch (JAXBException e) { - e.printStackTrace(); - } - - return null; - } - - /** - * Get the tosca java model from the tosca input artifact - * - * @param input Input tosca file and its metadata information as {@link Artifact} object - * @return Translated {@link ToscaTemplate tosca} object - */ - private ToscaTemplate getToscaModel(Artifact input) throws SecurityException { - byte[] decodedInput = GeneratorUtil.decoder(input.getPayload()); - String checksum = GeneratorUtil.checkSum(decodedInput); - if (checksum.equals(input.getChecksum())) { - try { - return GeneratorUtil.translateTosca(new String(decodedInput), ToscaTemplate.class); - } catch (Exception e) { - e.printStackTrace(); - throw new IllegalArgumentException( - String.format(GeneratorConstants.GENERATOR_AAI_ERROR_INVALID_TOSCA, input.getName())); - } - } else { - throw new SecurityException( - String.format(GeneratorConstants.GENERATOR_AAI_ERROR_CHECKSUM_MISMATCH, input.getName())); - } - } - - /** - * Identify the service tosca artifact from the list of translated tosca inputs - * - * @param input List of translated {@link ToscaTemplate tosca} object models - * @return Identified service {@link ToscaTemplate tosca} - */ - private ToscaTemplate getServiceTosca(List input) { - Iterator iter = input.iterator(); - while (iter.hasNext()) { - ToscaTemplate tosca = iter.next(); - if (tosca.isService()) { - iter.remove(); - return tosca; - } - } - return null; - } - - private Map getVFModuleMetadataTosca(ToscaTemplate toscaTemplate, - String vfModuleModelUUID) { - Map groupDefinitionMap = - toscaTemplate.getTopology_template().getGroups(); - Map vfModuleModelMetadata = new LinkedHashMap<>(); - for (Map.Entry e : groupDefinitionMap.entrySet()) { - if (e.getValue().getType().contains("org.openecomp.groups.VfModule")) { - String uuid = e.getValue().getMetadata().get("vfModuleModelUUID"); - if (Objects.equals(uuid, vfModuleModelUUID)) { - vfModuleModelMetadata = e.getValue().getMetadata(); - vfModuleModelMetadata.put("vf_module_description", - (String) e.getValue().getProperties().get("vf_module_description")); - } - } - } - return vfModuleModelMetadata; - } - - private Map getVFModuleMembersTosca(ToscaTemplate toscaTemplate, - String vfModuleModelUUID) { - Map groupDefinitionMap = - toscaTemplate.getTopology_template().getGroups(); - Map nodeTemplateMaps = - toscaTemplate.getTopology_template().getNode_templates(); - Map vfModuleMembers = new LinkedHashMap<>(); - List vfModuleModelMetadata; - for (Map.Entry e : groupDefinitionMap.entrySet()) { - if (e.getValue().getType().contains("org.openecomp.groups.VfModule")) { - String uuid = e.getValue().getMetadata().get("vfModuleModelUUID"); - if (Objects.equals(uuid, vfModuleModelUUID)) { - vfModuleModelMetadata = e.getValue().getMembers(); - if (vfModuleModelMetadata !=null) { - for (Object key : vfModuleModelMetadata) { - NodeTemplate nodeTemplate = nodeTemplateMaps.get(key); - String nodetype = null; - if (nodeTemplate != null) { - nodetype = nodeTemplate.getType(); - } - if (nodetype != null) { - String widgetType = membersType(nodetype); - if (widgetType != null) { - vfModuleMembers.put(widgetType, key); - } - } - } - } - } - } - } - - return vfModuleMembers; - } - - - private String membersType(String toscaType) { - String modelToBeReturned = null; - while (toscaType != null && toscaType.lastIndexOf(".") != -1 && modelToBeReturned == null) { - - switch (toscaType) { - case "org.openecomp.resource.vf.allottedResource": - modelToBeReturned = "allotted-resource"; - break; - case "org.openecomp.resource.vfc": - modelToBeReturned = "vserver"; - break; - case "org.openecomp.resource.cp": - case "org.openecomp.cp": - modelToBeReturned = "l-interface"; - break; - case "org.openecomp.resource.vl": - modelToBeReturned = "l3-network"; - break; - case "org.openecomp.resource.vf": - modelToBeReturned = "generic-vnf"; - break; - case "org.openecomp.groups.VfModule": - modelToBeReturned = "vf-module"; - break; - case "org.openecomp.resource.vfc.nodes.heat.cinder": - modelToBeReturned = "volume"; - break; - default: - modelToBeReturned = null; - break; - } - - toscaType = toscaType.substring(0, toscaType.lastIndexOf(".")); - } - return modelToBeReturned; - } - - private List init(String aaiResourceBasePaths) { - List inputArtifacts1 = new ArrayList<>(); - try { - - String[] resourceFileList = {}; - URL resourceDirUrl = this.getClass().getClassLoader().getResource(aaiResourceBasePaths); - if (resourceDirUrl != null && resourceDirUrl.getProtocol().equals("file")) { - resourceFileList = new File(resourceDirUrl.toURI()).list(); - } else { - Assert.fail("Invalid resource directory"); - } - - for (String aResourceFileList : resourceFileList) { - File resourceFile = new File( - this.getClass().getClassLoader().getResource(aaiResourceBasePaths + aResourceFileList) - .getPath()); - - //convert service tosca file into array of bytes - byte[] payload = new byte[(int) resourceFile.length()]; - try (FileInputStream fileInputStream = new FileInputStream(resourceFile)) { - fileInputStream.read(payload); - } - - String checksum = GeneratorUtil.checkSum(payload); - byte[] encodedPayload = GeneratorUtil.encode(payload); - Artifact artifact = - new Artifact(aaiArtifactType, aaiArtifactGroupType, checksum, encodedPayload); - artifact.setName(aResourceFileList); - artifact.setLabel(aResourceFileList); - artifact.setDescription(aResourceFileList); - artifact.setVersion("1.0"); - inputArtifacts1.add(artifact); - - } - } catch (Exception e) { - //e.printStackTrace(); - Assert.fail(e.getMessage()); - } - return inputArtifacts1; - } - - private void loadConfigFromClasspath(Properties properties) throws IOException { - String configLocation = System.getProperty("artifactgenerator.config"); - if (configLocation != null) { - File file = new File(configLocation); - if (file.exists()) { - properties.load(new FileInputStream(file)); - } - } - } - - public void testResourceTosca(Iterator itr, Map - outputArtifactMap) { - while(itr.hasNext()){ - ToscaTemplate toscaTemplate = itr.next(); - String resourceVersion=resourcesVersion.get(toscaTemplate.getMetadata().get("UUID")); - toscaTemplate.getMetadata().put("version", resourceVersion); - if("VF".equals(toscaTemplate.getMetadata().get("type")) && !("Allotted Resource".equals - (toscaTemplate.getMetadata().get("category"))) ){ - testVfTosca(outputArtifactMap, toscaTemplate); - } else if("VF".equals(toscaTemplate.getMetadata().get("type")) && ("Allotted Resource".equals - (toscaTemplate.getMetadata().get("category"))) ){ - testAllottedResourceTosca(outputArtifactMap, toscaTemplate); - } else if("VL".equals(toscaTemplate.getMetadata().get("type"))){ - testL3NetworkResourceTosca(outputArtifactMap, toscaTemplate); - } - } - } - - private void readPayloadFromResource(List inputArtifacts, String file) throws IOException { - try (InputStream stream = ArtifactGenerationServiceTest.class.getResourceAsStream("/" + file)) { - readPayload(inputArtifacts, stream, file); - } - } -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai/service_vmme_template_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai/service_vmme_template_1.yml deleted file mode 100644 index c740f67b51..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai/service_vmme_template_1.yml +++ /dev/null @@ -1,98 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 3.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai/vf_vmme_template_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai/vf_vmme_template_1.yml deleted file mode 100644 index 6aee48b9d9..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai/vf_vmme_template_1.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai2/resource-AllottedResource-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai2/resource-AllottedResource-template.yml deleted file mode 100644 index c80e701913..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai2/resource-AllottedResource-template.yml +++ /dev/null @@ -1,78 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: Allotted Resource - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Alloted resource: - file: resource-AllotedResource-template.yml -topology_template: - node_templates: - Alloted resource 1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 - UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa - version: '1.0' - name: Alloted resource - description: This is a VFC- Allotted resource - type: VFC - category: Allotted Resource - subcategory: Allotted Resource - properties: - role: name - ecomp_naming: - naming_policy: test - ecomp_generated_naming: false - supplemental_data: - Key1: key1 - providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c - min_instances: 1 - max_instances: 1 - providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa - providing_service_name: vVIGaaS - ecomp_homing: - instance_node_target: Test - homing_policy: Test - supplemental_data: - Key: key - ecomp_selected_instance_node_target: false - substitution_mappings: - node_type: org.openecomp.resource.vf.AllottedResource - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai2/resource-Extvl-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai2/resource-Extvl-template.yml deleted file mode 100644 index 512d62bdaa..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai2/resource-Extvl-template.yml +++ /dev/null @@ -1,61 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf - UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 - name: ExtVL - description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks - type: VL - category: Generic - subcategory: Network Elements - resourceVendor: OPENECOMP (Tosca) - resourceVendorRelease: 1.0.0.wd03 -node_types: - org.openecomp.resource.vl.extVL: - derived_from: tosca.nodes.Root - description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks - properties: - physical_network: - type: org.openecomp.datatypes.network.PhysicalNetwork - network_role: - type: string - description: | - Unique label that defines the role that this network performs. example: vce oam network, vnat sr-iov1 network - network_assignments: - type: org.openecomp.datatypes.network.NetworkAssignments - network_flows: - type: org.openecomp.datatypes.network.NetworkFlows - vl_artifacts: - type: map - description: List of artifacts associated with the VL - entry_schema: - type: org.openecomp.datatypes.Artifact - network_scope: - type: string - description: | - Uniquely identifies the network scope. Valid values for the network scope includes: VF - VF-level network. Intra-VF network which connects the VFCs (VMs) inside the VF. SERVICE - Service-level network. Intra-Service network which connects the VFs within the service GLOBAL - Global network which can be shared by multiple services - network_ecomp_naming: - type: org.openecomp.datatypes.EcompNaming - network_type: - type: string - description: OPENECOMP supported network types. - network_technology: - type: string - description: OPENECOMP supported network technology - network_homing: - type: org.openecomp.datatypes.EcompHoming - capabilities: - virtual_linkable: - type: tosca.capabilities.network.Linkable - occurrences: - - 1 - - UNBOUNDED -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai2/service-ServiceWithAllotedVfAndExvl-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai2/service-ServiceWithAllotedVfAndExvl-template.yml deleted file mode 100644 index dbd039669c..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai2/service-ServiceWithAllotedVfAndExvl-template.yml +++ /dev/null @@ -1,90 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: e8a6c85c-429f-47cd-b594-376a0ffccd29 - UUID: 14fd2446-691a-4d7d-8ef4-ece19c3176f5 - name: Service with alloted VF and exVL - description: 'This service contains two instances : 1. Allotted resource VF 2. ExVL - - Network' - type: Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false -imports: -- ExtVL: - file: resource-Extvl-template.yml -- Allotted Resource: - file: resource-AllottedResource-template.yml -topology_template: - node_templates: - ExtVL 1: - type: org.openecomp.resource.vl.extVL - metadata: - invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf - UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 - version: '2.0' - name: ExtVL - description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks - type: VL - category: Generic - subcategory: Network Elements - Allotted Resource 2: - type: org.openecomp.resource.vf.AllottedResource - metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - version: '0.1' - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: Allotted Resource - substitution_mappings: - node_type: org.openecomp.service.ServiceWithAllotedVfAndExvl - capabilities: - ExtVL 1.virtual_linkable: - type: tosca.capabilities.network.Linkable - occurrences: - - 1 - - UNBOUNDED - Allotted Resource 2.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - ExtVL 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - ExtVL 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Allotted Resource 2.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Allotted Resource 2.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai3/resource-IpMuxDemux-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai3/resource-IpMuxDemux-template.yml deleted file mode 100644 index 4549306475..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai3/resource-IpMuxDemux-template.yml +++ /dev/null @@ -1,80 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 - UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 - name: IP_Mux_Demux - description: IP_Mux_Demux - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Allotedresource: - file: resource-Allotedresource-template.yml -topology_template: - inputs: - role: - type: string - ecomp_naming: - type: string - max_instances: - type: string - min_instances: - type: string - ecomp_homing: - type: string - node_templates: - Alloted resource 1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c - UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a - customizationUUID: 5eac2a36-bcb5-4158-ace4-802b81e87248 - version: '1.0' - name: Allotedresource - description: Allotedresource - type: VFC - category: Allotted Resource - subcategory: IP Mux Demux - properties: - ecomp_naming: - naming_policy: - get input: ecomp_naming - providing_service_invariant_uuid: e42ea8ff-1862-43f4-a597-4b885cf3c6e5 - min_instances: 1 - max_instances: 1 - providing_service_uuid: 2fb4b63d-7ec8-4fc0-98c7-a1c51fb4b794 - substitution_mappings: - node_type: org.openecomp.resource.vf.IpMuxDemux - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai3/resource-ServiceAdmin-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai3/resource-ServiceAdmin-template.yml deleted file mode 100644 index 549c18b55b..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai3/resource-ServiceAdmin-template.yml +++ /dev/null @@ -1,81 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 - UUID: a9c6246c-0807-4a43-a64c-442a170c2088 - name: service_admin - description: service_admin - type: VF - category: Allotted Resource - subcategory: Service admin - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Allotedresource: - file: resource-Allotedresource-template.yml -topology_template: - inputs: - role: - type: string - ecomp_naming: - type: string - max_instances: - type: string - min_instances: - type: string - ecomp_homing: - type: string - node_templates: - Alloted resource 1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c - UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a - customizationUUID: f61f785d-2c82-4d6d-9184-8cbdf2df4da0 - version: '1.0' - name: Allotedresource - description: Allotedresource - type: VFC - category: Allotted Resource - subcategory: Service admin - properties: - ecomp_naming: - naming_policy: - get input: ecomp_naming - providing_service_invariant_uuid: e42ea8ff-1862-43f4-a597-4b885cf3c6e5 - min_instances: 1 - max_instances: 1 - providing_service_uuid: 2fb4b63d-7ec8-4fc0-98c7-a1c51fb4b794 - providing_service_name: HNPortalaaS - substitution_mappings: - node_type: org.openecomp.resource.vf.ServiceAdmin - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai3/resource-TunnelXconn-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai3/resource-TunnelXconn-template.yml deleted file mode 100644 index cf97321035..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai3/resource-TunnelXconn-template.yml +++ /dev/null @@ -1,81 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 - UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb - name: Tunnel_XConn - description: Tunnel_XConn - type: VF - category: Allotted Resource - subcategory: Tunnel XConnect - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Allotedresource: - file: resource-Allotedresource-template.yml -topology_template: - inputs: - role: - type: string - ecomp_naming: - type: string - min_instances: - type: string - max_instances: - type: string - ecomp_homing: - type: string - node_templates: - Alloted resource 1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c - UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a - customizationUUID: 22ca20ca-1577-46d3-b3ef-77483cca37d6 - version: '1.0' - name: Allotedresource - description: Allotedresource - type: VFC - category: Allotted Resource - subcategory: Tunnel XConnect - properties: - ecomp_naming: - naming_policy: - get input: ecomp_naming - providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c - min_instances: 1 - max_instances: 1 - providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa - providing_service_name: vVIGaaS - substitution_mappings: - node_type: org.openecomp.resource.vf.TunnelXconn - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai3/resource-VhnfNonHeat-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai3/resource-VhnfNonHeat-template.yml deleted file mode 100644 index 8ec1c192ee..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai3/resource-VhnfNonHeat-template.yml +++ /dev/null @@ -1,24 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: f61adc31-6004-4377-a661-090f59e6b32a - UUID: 2118e830-5e0d-409a-9d7a-63b6a72d6f5f - name: vHNF non Heat - description: vHNF non Heat - type: VF - category: Generic - subcategory: Network Elements - resourceVendor: '1' - resourceVendorRelease: '1' -topology_template: - substitution_mappings: - node_type: org.openecomp.resource.vf.VhnfNonHeat -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai3/service-SdWan-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai3/service-SdWan-template.yml deleted file mode 100644 index bc3ab6dabb..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/aai3/service-SdWan-template.yml +++ /dev/null @@ -1,233 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 3d8b7a76-7c47-4974-b5b9-e24c54b817a2 - UUID: eb31504f-9f60-4936-a2f2-8ac592b611a6 - name: SD-WAN - description: SD-WAN - type: Service - category: Network L4+ - serviceEcompNaming: false - serviceHoming: false -imports: -- service_admin: - file: resource-ServiceAdmin-template.yml -- Tunnel_XConn: - file: resource-TunnelXconn-template.yml -- vHNF non Heat: - file: resource-VhnfNonHeat-template.yml -- IP_Mux_Demux: - file: resource-IpMuxDemux-template.yml -topology_template: - node_templates: - Sec_IP_Mux_Demux: - type: org.openecomp.resource.vf.IpMuxDemux - metadata: - invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 - UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 - customizationUUID: f4b764bb-6721-4219-8c69-7ce61969f755 - version: '0.1' - name: IP_Mux_Demux - description: IP_Mux_Demux - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - Pri_Tunnel_XConn: - type: org.openecomp.resource.vf.TunnelXconn - metadata: - invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 - UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb - customizationUUID: 96d0bbf6-d9f7-441d-8f00-67d79dbf30de - version: '0.1' - name: Tunnel_XConn - description: Tunnel_XConn - type: VF - category: Allotted Resource - subcategory: Tunnel XConnect - Pri_service_admin: - type: org.openecomp.resource.vf.ServiceAdmin - metadata: - invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 - UUID: a9c6246c-0807-4a43-a64c-442a170c2088 - customizationUUID: 6b4a2a55-3b82-4799-8329-4fc2939fd5b5 - version: '0.1' - name: service_admin - description: service_admin - type: VF - category: Allotted Resource - subcategory: Service admin - Pri_IP_Mux_Demux: - type: org.openecomp.resource.vf.IpMuxDemux - metadata: - invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 - UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 - customizationUUID: d8f656d9-179d-4f02-9a46-8af7421eb2a0 - version: '0.1' - name: IP_Mux_Demux - description: IP_Mux_Demux - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - Sec_Tunnel_XConn: - type: org.openecomp.resource.vf.TunnelXconn - metadata: - invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 - UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb - customizationUUID: b432136d-0a2a-460b-a3da-f921e1e0dcfa - version: '0.1' - name: Tunnel_XConn - description: Tunnel_XConn - type: VF - category: Allotted Resource - subcategory: Tunnel XConnect - vHNF non Heat 22: - type: org.openecomp.resource.vf.VhnfNonHeat - metadata: - invariantUUID: f61adc31-6004-4377-a661-090f59e6b32a - UUID: 2118e830-5e0d-409a-9d7a-63b6a72d6f5f - customizationUUID: 9c7a5f7f-6b17-4066-a6f1-094ea925495b - version: '0.1' - name: vHNF non Heat - description: vHNF non Heat - type: VF - category: Generic - subcategory: Network Elements - Sec_service_admin: - type: org.openecomp.resource.vf.ServiceAdmin - metadata: - invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 - UUID: a9c6246c-0807-4a43-a64c-442a170c2088 - customizationUUID: 5a8ef05b-451f-40f4-9531-3ee00bd3c5c4 - version: '0.1' - name: service_admin - description: service_admin - type: VF - category: Allotted Resource - subcategory: Service admin - substitution_mappings: - node_type: org.openecomp.service.SdWan - capabilities: - Sec_service_admin.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Sec_IP_Mux_Demux.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Pri_service_admin.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Pri_IP_Mux_Demux.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Pri_Tunnel_XConn.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Sec_Tunnel_XConn.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Pri_service_admin.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Sec_Tunnel_XConn.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Sec_service_admin.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Pri_IP_Mux_Demux.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Pri_Tunnel_XConn.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Sec_service_admin.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Pri_service_admin.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Sec_IP_Mux_Demux.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Sec_IP_Mux_Demux.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Pri_Tunnel_XConn.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Sec_Tunnel_XConn.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Pri_IP_Mux_Demux.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/config/Artifact-Generator.properties b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/config/Artifact-Generator.properties deleted file mode 100644 index 1d7e5fa01a..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/config/Artifact-Generator.properties +++ /dev/null @@ -1,264 +0,0 @@ -#action widget details -AAI.model-version-id.action=fd7fb09e-d930-41b9-b83f-cfde9df48640 -AAI.model-invariant-id.action=af593b4b-490e-4665-ad74-2f6351c0a7ce -#action-data widget details -AAI.model-invariant-id.action-data=9551346c-7d8b-4daf-9926-b93e96e2344a -AAI.model-version-id.action-data=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd -#allotted-resource widget details -AAI.model-invariant-id.allotted-resource=f6d6a23d-a1a9-48ff-8419-b6530da2d381 -AAI.model-version-id.allotted-resource=7ad0915f-25c0-4a70-b9bc-185a75f87564 -#availability-zone widget details -AAI.model-version-id.availability-zone=6c092fb1-21b2-456b-9e01-67fb4de1896e -AAI.model-invariant-id.availability-zone=61b88c01-d819-41c0-8e21-7fd7ba47148e -#az-and-dvs-switches widget details -AAI.model-version-id.az-and-dvs-switches=b2dea88d-78a0-49bf-95c9-5819df08e966 -AAI.model-invariant-id.az-and-dvs-switches=53dc00d4-e6d9-48ec-b6cc-3d3797e9b896 -#class-of-service widget details -AAI.model-version-id.class-of-service=d2fb27cc-15eb-4c4e-828e-71d41aaecc5b -AAI.model-invariant-id.class-of-service=18094b19-d16d-4822-8acf-e92c6aefa178 -#cloud-region widget details -AAI.model-version-id.cloud-region=2a160989-b202-47dd-874b-4a0f275998f7 -AAI.model-invariant-id.cloud-region=425b2158-e51d-4509-9945-dad4556474a3 -#complex widget details -AAI.model-invariant-id.complex=af91c2f7-35fc-43cf-a13d-443f385b2353 -AAI.model-version-id.complex=3a8ab1ee-9220-4fe8-b89c-9251d160ddc2 -#connector widget details -AAI.model-version-id.connector=22104c9f-29fd-462f-be07-96cd6b46dd33 -AAI.model-invariant-id.connector=4c01c948-7607-4d66-8a6c-99c2c2717936 -#constrained-element-set widget details -AAI.model-invariant-id.constrained-element-set=c0292b4f-ee97-40cc-8c2e-f967c48f5701 -AAI.model-version-id.constrained-element-set=01102126-9c04-4a89-945b-b131e61e95d7 -#ctag-assignment widget details -AAI.model-version-id.ctag-assignment=44e5cb1f-0938-41aa-b766-d4595109fe89 -AAI.model-invariant-id.ctag-assignment=fcb8d46b-b656-4ad6-8fa4-22cef74b443f -#ctag-pool widget details -AAI.model-invariant-id.ctag-pool=46c51d4e-d67e-4a9c-b1f5-49b1e9c6fcaa -AAI.model-version-id.ctag-pool=2056c41f-23b9-4de7-9f50-819adad37d76 -#customer widget details -AAI.model-invariant-id.customer=c1d4305f-cdbd-4bbe-9069-a2f4978fd89e -AAI.model-version-id.customer=d4df5c27-98a1-4812-a8aa-c17f055b7a3f -#cvlan-tag-entry widget details -AAI.model-version-id.cvlan-tag-entry=c3878ffb-8d85-4114-bee6-e4074a9db10b -AAI.model-invariant-id.cvlan-tag-entry=245cf4b0-7cc5-4eea-bbd9-753e939adcab -#dvs-switch widget details -AAI.model-invariant-id.dvs-switch=98fbb471-1f86-428e-bd8a-c8a25de6fa23 -AAI.model-version-id.dvs-switch=4cb44ae8-e3ab-452a-9f95-bcc8a44c55ea -#edge-prop-names widget details -AAI.model-invariant-id.edge-prop-names=7a08cad4-8759-46a5-8245-095d1ba57ac6 -AAI.model-version-id.edge-prop-names=f0442326-8201-4d0e-857c-74b4ddcbfc9f -#element-choice-set widget details -AAI.model-invariant-id.element-choice-set=9a011958-7165-47a3-b872-00951d1f09ae -AAI.model-version-id.element-choice-set=af27fbfd-598d-44da-aeae-0f9d3a5fcd6a -#entitlement widget details -AAI.model-version-id.entitlement=7e27ba2e-b7db-4e13-9fae-d142152ef98a -AAI.model-invariant-id.entitlement=ae75b5a0-d5e1-4f3a-b8fb-37626a753da3 -#flavor widget details -AAI.model-invariant-id.flavor=bace8d1c-a261-4041-9e37-823117415d0f -AAI.model-version-id.flavor=36200fb5-f251-4f5d-a520-7c5ad5c2cd4b -#generic-vnf widget details -AAI.model-version-id.generic-vnf=93a6166f-b3d5-4f06-b4ba-aed48d009ad9 -AAI.model-invariant-id.generic-vnf=acc6edd8-a8d4-4b93-afaa-0994068be14c -#group-assignment widget details -AAI.model-invariant-id.group-assignment=7cc05f25-7ba2-42b7-a237-c5662a1689e1 -AAI.model-version-id.group-assignment=fe578080-ce19-4604-8760-fc264fbb2565 -#image widget details -AAI.model-version-id.image=f6a038c2-820c-42ba-8c2b-375e24e8f932 -AAI.model-invariant-id.image=3f4c7204-739b-4bbb-87a7-8a6856439c90 -#include-node-filter widget details -AAI.model-invariant-id.include-node-filter=2a2d8ad2-af0a-4e1f-9982-0c899e7dc827 -AAI.model-version-id.include-node-filter=f05f804d-7057-4ffe-bdc5-39f2f0c9c9fd -#instance-group widget details -AAI.model-version-id.instance-group=8e6ee9dc-9017-444a-83b3-219edb018128 -AAI.model-invariant-id.instance-group=3bf1e610-45f7-4ad6-b833-ca4c5ee6a3fd -#inventory-item widget details -AAI.model-invariant-id.inventory-item=cd57d844-9017-4078-aa19-926935a3d77c -AAI.model-version-id.inventory-item=69957f4a-2155-4b95-8d72-d6dd9b88b27b -#inventory-item-data widget details -AAI.model-version-id.inventory-item-data=0e54bb87-bd6e-4a2b-ad1c-6d935b87ae51 -AAI.model-invariant-id.inventory-item-data=87a383ae-cf03-432e-a9de-04e6a622d0fd -#ipsec-configuration widget details -AAI.model-invariant-id.ipsec-configuration=aca4c310-cb45-42bd-9f88-73e40ba7b962 -AAI.model-version-id.ipsec-configuration=d949fd10-36bf-408a-ac7a-cad5004d2e0d -#key-data widget details -AAI.model-version-id.key-data=c23ea04d-1a3b-453d-bc49-a6c783a5e92b -AAI.model-invariant-id.key-data=f5faa464-c2f2-4cc3-89d2-a90452dc3a07 -#l3-interface-ipv4-address-list widget details -AAI.model-version-id.l3-interface-ipv4-address-list=41e76b6f-1e06-4fd4-82cd-81c50fc4574b -AAI.model-invariant-id.l3-interface-ipv4-address-list=aad85df2-09be-40fa-b867-16415e4e10e2 -#l3-interface-ipv6-address-list widget details -AAI.model-invariant-id.l3-interface-ipv6-address-list=82966045-43ee-4982-8307-7e9610866140 -AAI.model-version-id.l3-interface-ipv6-address-list=d040621d-541a-477b-bb1b-a2b61b14e295 -#l3-network widget details -AAI.model-version-id.l3-network=9111f20f-e680-4001-b83f-19a2fc23bfc1 -AAI.model-invariant-id.l3-network=3d560d81-57d0-438b-a2a1-5334dba0651a -#lag-interface widget details -AAI.model-version-id.lag-interface=ce95f7c3-b61b-4758-ae9e-7e943b1c103d -AAI.model-invariant-id.lag-interface=e0ee9bde-c1fc-4651-a95d-8e0597bf7d70 -#lag-link widget details -AAI.model-version-id.lag-link=d29a087a-af59-4053-a3f8-0f95a92faa75 -AAI.model-invariant-id.lag-link=86ffe6e5-4d0e-4cec-80b5-5c38aa3eff98 -#license widget details -AAI.model-invariant-id.license=b9a9b337-1f86-42d3-b9f9-f987a089507c -AAI.model-version-id.license=6889274b-a1dc-40ab-9090-93677e13e2e6 -#license-key-resource widget details -AAI.model-invariant-id.license-key-resource=9022ebfe-b54f-4911-a6b2-8c3f5ec189b7 -AAI.model-version-id.license-key-resource=24b25f8c-b8bd-4c62-9421-87c12667aac9 -#l-interface widget details -AAI.model-version-id.l-interface=a32613fd-18b9-459e-aab8-fffb3912966a -AAI.model-invariant-id.l-interface=cea0a982-8d55-4093-921e-418fbccf7060 -#logical-link widget details -AAI.model-version-id.logical-link=a1481a38-f8ba-4ae4-bdf1-06c2c6af4c54 -AAI.model-invariant-id.logical-link=fe012535-2c31-4a39-a739-612374c638a0 -#metadatum widget details -AAI.model-invariant-id.metadatum=86dbb63a-265e-4614-993f-6771c30b56a5 -AAI.model-version-id.metadatum=6bae950e-8939-41d3-a6a7-251b03e4c1fc -#model widget details -AAI.model-invariant-id.model=06d1418a-5faa-452d-a94b-a2829df5f67b -AAI.model-version-id.model=1f51c05c-b164-4c27-9c03-5cbb239fd6be -#model-constraint widget details -AAI.model-invariant-id.model-constraint=c28966f3-e758-4483-b37b-a90b05d3dd33 -AAI.model-version-id.model-constraint=ad70dd19-f156-4fb5-a865-97b5563b0d37 -#model-element widget details -AAI.model-invariant-id.model-element=2076e726-3577-477a-a300-7fa65cd4df11 -AAI.model-version-id.model-element=753e813a-ba9e-4a1d-ab34-b2f6dc6eec0c -#multicast-configuration widget details -AAI.model-invariant-id.multicast-configuration=ea78c9e3-514d-4a0a-9162-13837fa54c35 -AAI.model-version-id.multicast-configuration=666a06ee-4b57-46df-bacf-908da8f10c3f -#named-query widget details -AAI.model-version-id.named-query=5c3b7c33-afa3-4be5-8da7-1a5ac6f99896 -AAI.model-invariant-id.named-query=80b712fd-0ad3-4180-a99c-8c995cf1cc32 -#named-query-element widget details -AAI.model-version-id.named-query-element=204c641a-3494-48c8-979a-86856f5fd32a -AAI.model-invariant-id.named-query-element=3c504d40-b847-424c-9d25-4fb7e0a3e994 -#network-policy widget details -AAI.model-invariant-id.network-policy=6aa05779-94d7-4d8b-9bee-59ef2ab0c246 -AAI.model-version-id.network-policy=a0ccd9dc-7062-4940-9bcc-e91dd28af510 -#network-profile widget details -AAI.model-version-id.network-profile=01f45471-4240-498c-a9e1-235dc0b8b4a6 -AAI.model-invariant-id.network-profile=2734b44a-b8a2-40f6-957d-6256589e5d00 -#newvce widget details -AAI.model-version-id.newvce=7c79e11f-a408-4593-aa86-ba948a1236af -AAI.model-invariant-id.newvce=4b05ec9c-c55d-4987-83ff-e08d6ddb694f -#oam-network widget details -AAI.model-invariant-id.oam-network=2851cf01-9c40-4064-87d4-6184a6fcff35 -AAI.model-version-id.oam-network=f4fb34f3-fd6e-4a8f-a3fb-4ab61a343b79 -#physical-link widget details -AAI.model-invariant-id.physical-link=c822d81f-822f-4304-9623-1025b53da568 -AAI.model-version-id.physical-link=9c523936-95b4-4d7f-9f53-6bdfe0cf2c05 -#p-interface widget details -AAI.model-invariant-id.p-interface=94043c37-4e73-439c-a790-0fdd697924cd -AAI.model-version-id.p-interface=d2cdb2d0-fc1f-4a57-a89e-591b1c4e3754 -#pnf widget details -AAI.model-version-id.pnf=e9f1fa7d-c839-418a-9601-03dc0d2ad687 -AAI.model-invariant-id.pnf=862b25a1-262a-4961-bdaa-cdc55d69785a -#port-group widget details -AAI.model-version-id.port-group=03e8bb6b-b48a-46ae-b5d4-e5af577e6844 -AAI.model-invariant-id.port-group=8ce940fb-55d7-4230-9e7f-a56cc2741f77 -#property-constraint widget details -AAI.model-version-id.property-constraint=81706bbd-981e-4362-ae20-995cbcb2d995 -AAI.model-invariant-id.property-constraint=f4a863c3-6886-470a-a6ae-05723837ea45 -#pserver widget details -AAI.model-invariant-id.pserver=6d932c8f-463b-4e76-83fb-87acfbaa2e2d -AAI.model-version-id.pserver=72f0d495-bc27-4653-9e1a-eef76bd34bc9 -#related-lookup widget details -AAI.model-invariant-id.related-lookup=468f6f5b-2996-41bb-b2a3-7cf9613ebb9b -AAI.model-version-id.related-lookup=0988bab5-bf4f-4938-a419-ab249867d12a -#reserved-prop-names widget details -AAI.model-invariant-id.reserved-prop-names=0c3e0ba3-618c-498d-9127-c8d42b00170f -AAI.model-version-id.reserved-prop-names=ac49d26d-9163-430e-934a-13b738a04f5c -#result-data widget details -AAI.model-version-id.result-data=4e9b50aa-5227-4f6f-b489-62e6bbc03c79 -AAI.model-invariant-id.result-data=ff656f23-6185-406f-9006-4b26834f3e1c -#route-table-reference widget details -AAI.model-version-id.route-table-reference=fed7e326-03a7-45ff-a3f2-471470d268c4 -AAI.model-invariant-id.route-table-reference=a8614b63-2636-4c4f-98df-fd448c4241db -#routing-instance widget details -AAI.model-invariant-id.routing-instance=1c2ded4f-8b01-4193-829c-966847dfec3e -AAI.model-version-id.routing-instance=3ccbcbc7-d19e-44d5-a52f-7e18aa8d69fa -#secondary-filter widget details -AAI.model-version-id.secondary-filter=1380619d-dd1a-4cec-b755-c6407833e065 -AAI.model-invariant-id.secondary-filter=738ff299-6290-4c00-8998-bd0e96a07b93 -#segmentation-assignment widget details -AAI.model-invariant-id.segmentation-assignment=6e814aee-46e1-4583-a9d4-0049bfd2b59b -AAI.model-version-id.segmentation-assignment=c5171ae0-44fb-4c04-b482-d56702241a44 -#service widget details -AAI.model-version-id.service=ecce2c42-3957-4ae0-9442-54bc6afe27b6 -AAI.model-invariant-id.service=07a3a60b-1b6c-4367-8173-8014386f89e3 -#service-capability widget details -AAI.model-invariant-id.service-capability=b1a7cc05-d19d-443b-a5d1-733e325c4232 -AAI.model-version-id.service-capability=f9cfec1b-18da-4bba-bd83-4b26cca115cd -#service-instance widget details -AAI.model-invariant-id.service-instance=82194af1-3c2c-485a-8f44-420e22a9eaa4 -AAI.model-version-id.service-instance=46b92144-923a-4d20-b85a-3cbd847668a9 -#service-subscription widget details -AAI.model-invariant-id.service-subscription=2e1a602a-acd8-4f78-94ff-618b802a303b -AAI.model-version-id.service-subscription=5e68299a-79f2-4bfb-8fbc-2bae877a2459 -#site-pair widget details -AAI.model-version-id.site-pair=7106bc02-6552-4fc3-8a56-4f3df9034531 -AAI.model-invariant-id.site-pair=db63f3e6-f8d1-484e-8d5e-191600b7914b -#site-pair-set widget details -AAI.model-invariant-id.site-pair-set=5d4dae3e-b402-4bfd-909e-ece12ff75d26 -AAI.model-version-id.site-pair-set=a5c6c1bc-dc38-468e-9459-bb08f87247df -#snapshot widget details -AAI.model-version-id.snapshot=962a7c8b-687f-4d32-a775-fe098e214bcd -AAI.model-invariant-id.snapshot=24de00ef-aead-4b52-995b-0adf8d4bd90d -#sriov-vf widget details -AAI.model-version-id.sriov-vf=1e8b331f-3d4a-4160-b7aa-f4d5a8916625 -AAI.model-invariant-id.sriov-vf=04b2935f-33c4-40a9-8af0-8b52690042dc -#start-node-filter widget details -AAI.model-version-id.start-node-filter=aad96fd3-e75f-42fc-9777-3450c36f1168 -AAI.model-invariant-id.start-node-filter=083093a3-e407-447a-ba5d-7583e4d23e1d -#subnet widget details -AAI.model-version-id.subnet=f902a6bc-6be4-4fe5-8458-a6ec0056b374 -AAI.model-invariant-id.subnet=1b2c9ba7-e449-4831-ba15-3073672f5ef2 -#tagged-inventory-item-list widget details -AAI.model-invariant-id.tagged-inventory-item-list=e78a7eaa-f65d-4919-9c2b-5b258c8c4d7e -AAI.model-version-id.tagged-inventory-item-list=c246f6e2-e3a1-4697-94c0-5672a7fbbf04 -#tenant widget details -AAI.model-invariant-id.tenant=97c26c99-6870-44c1-8a07-1d900d3f4ce6 -AAI.model-version-id.tenant=abcc54bc-bb74-49dc-9043-7f7171707545 -#tunnel-xconnect widget details -AAI.model-invariant-id.tunnel-xconnect=50b9e2fa-005c-4bbe-b651-3251dece4cd8 -AAI.model-version-id.tunnel-xconnect=e7cb4ca8-e1a5-4487-a716-4ae0bcd8aef5 -#update-node-key widget details -AAI.model-version-id.update-node-key=6004cfa6-eb6d-4062-971f-b1fde6b74aa0 -AAI.model-invariant-id.update-node-key=fe81c801-f65d-408a-b2b7-a729a18f8154 -#vce widget details -AAI.model-version-id.vce=b6cf54b5-ec45-43e1-be64-97b4e1513333 -AAI.model-invariant-id.vce=bab6dceb-e7e6-4301-a5e0-a7399b48d792 -#vf-module widget details -AAI.model-invariant-id.vf-module=ef86f9c5-2165-44f3-8fc3-96018b609ea5 -AAI.model-version-id.vf-module=c00563ae-812b-4e62-8330-7c4d0f47088a -#vig-server widget details -AAI.model-version-id.vig-server=8e8c22f1-fbdf-48ea-844c-8bdeb44e7b16 -AAI.model-invariant-id.vig-server=bed7c3b7-35d0-4cd9-abde-41b20e68b28e -#virtual-data-center widget details -AAI.model-invariant-id.virtual-data-center=5150abcf-0c5f-4593-9afe-a19c48fc4824 -AAI.model-version-id.virtual-data-center=6dd43ced-d789-47af-a759-d3abc14e3ac1 -#vlan widget details -AAI.model-version-id.vlan=257d88a5-a269-4c35-944f-aca04fbdb791 -AAI.model-invariant-id.vlan=d2b1eaf1-ae59-4116-9ee4-aa0179faa4f8 -#vnfc widget details -AAI.model-invariant-id.vnfc=96129eb9-f0de-4e05-8af2-73146473f766 -AAI.model-version-id.vnfc=5761e0a7-c6df-4d8a-9ebd-b8f445054dec -#vnf-image widget details -AAI.model-invariant-id.vnf-image=f9a628ff-7aa0-40e2-a93d-02d91c950982 -AAI.model-version-id.vnf-image=c4d3e747-ba4a-4b17-9896-94c6f18c19d3 -#volume widget details -AAI.model-version-id.volume=0fbe2e8f-4d91-4415-a772-88387049b38d -AAI.model-invariant-id.volume=ddd739b4-2b25-46c4-affc-41a32af5cc42 -#volume-group widget details -AAI.model-invariant-id.volume-group=fcec1b02-b2d0-4834-aef8-d71be04717dd -AAI.model-version-id.volume-group=99d44c90-1f61-4418-b9a6-56586bf38c79 -#vpe widget details -AAI.model-invariant-id.vpe=053ec3a7-5b72-492d-b54d-123805a9b967 -AAI.model-version-id.vpe=203817d3-829c-42d4-942d-2a935478e993 -#vpls-pe widget details -AAI.model-version-id.vpls-pe=b1566228-6785-4ce1-aea2-053736f80341 -AAI.model-invariant-id.vpls-pe=457ba89b-334c-4fbd-acc4-160ac0e0cdc0 -#vpn-binding widget details -AAI.model-invariant-id.vpn-binding=9e23b675-db2b-488b-b459-57aa9857baa0 -AAI.model-version-id.vpn-binding=21a146e5-9901-448c-9197-723076770119 -#vserver widget details -AAI.model-invariant-id.vserver=ff69d4e0-a8e8-4108-bdb0-dd63217e63c7 -AAI.model-version-id.vserver=8ecb2c5d-7176-4317-a255-26274edfdd53 \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/logback.xml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/logback.xml deleted file mode 100644 index 68438967b1..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/logback.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - ${defaultPattern} - - - - - - - - ${logDirectory}/${eventType}.log - - ${logDirectory}/${eventType}.%i.log.zip - 1 - 9 - - - 5MB - - - ${default-log-pattern} - - - - - - - - - - \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/missingResourceTosca/service_vmme_template_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/missingResourceTosca/service_vmme_template_1.yml deleted file mode 100644 index 822484eda4..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/missingResourceTosca/service_vmme_template_1.yml +++ /dev/null @@ -1,99 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/missingVLTosca/resource-AllottedResource-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/missingVLTosca/resource-AllottedResource-template.yml deleted file mode 100644 index 8c85966229..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/missingVLTosca/resource-AllottedResource-template.yml +++ /dev/null @@ -1,60 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: Allotted Resource - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Alloted resource: - file: resource-AllotedResource-template.yml -topology_template: - node_templates: - Alloted resource 1: - type: org.openecomp.resource.vfc.AllottedResource1 - metadata: - invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 - UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa - version: '1.0' - name: Alloted resource - description: This is a VFC- Allotted resource - type: VFC - category: Allotted Resource - subcategory: Allotted Resource - substitution_mappings: - node_type: org.openecomp.resource.vf.AllottedResource - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/missingVLTosca/service-ServiceWithAllotedVfAndExvl-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/missingVLTosca/service-ServiceWithAllotedVfAndExvl-template.yml deleted file mode 100644 index dbd039669c..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/missingVLTosca/service-ServiceWithAllotedVfAndExvl-template.yml +++ /dev/null @@ -1,90 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: e8a6c85c-429f-47cd-b594-376a0ffccd29 - UUID: 14fd2446-691a-4d7d-8ef4-ece19c3176f5 - name: Service with alloted VF and exVL - description: 'This service contains two instances : 1. Allotted resource VF 2. ExVL - - Network' - type: Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false -imports: -- ExtVL: - file: resource-Extvl-template.yml -- Allotted Resource: - file: resource-AllottedResource-template.yml -topology_template: - node_templates: - ExtVL 1: - type: org.openecomp.resource.vl.extVL - metadata: - invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf - UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 - version: '2.0' - name: ExtVL - description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks - type: VL - category: Generic - subcategory: Network Elements - Allotted Resource 2: - type: org.openecomp.resource.vf.AllottedResource - metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - version: '0.1' - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: Allotted Resource - substitution_mappings: - node_type: org.openecomp.service.ServiceWithAllotedVfAndExvl - capabilities: - ExtVL 1.virtual_linkable: - type: tosca.capabilities.network.Linkable - occurrences: - - 1 - - UNBOUNDED - Allotted Resource 2.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - ExtVL 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - ExtVL 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Allotted Resource 2.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Allotted Resource 2.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_InvalidVfModInvUuIdAttr.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_InvalidVfModInvUuIdAttr.yml deleted file mode 100644 index f57a7d2300..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_InvalidVfModInvUuIdAttr.yml +++ /dev/null @@ -1,194 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - - # Virtual Links (Networks) - - gtp_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_InvalidVfModUuIdAttr.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_InvalidVfModUuIdAttr.yml deleted file mode 100644 index f57a7d2300..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_InvalidVfModUuIdAttr.yml +++ /dev/null @@ -1,194 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - - # Virtual Links (Networks) - - gtp_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModInvUUID.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModInvUUID.yml deleted file mode 100644 index 4d50982f63..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModInvUUID.yml +++ /dev/null @@ -1,194 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - - # Virtual Links (Networks) - - gtp_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelName.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelName.yml deleted file mode 100644 index 4d50982f63..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelName.yml +++ /dev/null @@ -1,194 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - - # Virtual Links (Networks) - - gtp_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelUUID.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelUUID.yml deleted file mode 100644 index 4d50982f63..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelUUID.yml +++ /dev/null @@ -1,194 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - - # Virtual Links (Networks) - - gtp_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelVersion.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelVersion.yml deleted file mode 100644 index 4d50982f63..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/service_vmme_template_ModelVersion.yml +++ /dev/null @@ -1,194 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - - # Virtual Links (Networks) - - gtp_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testAllotedResourceWithDependingSerWithGroups/resource-AllottedResource-template_IpMux_WithGroups.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testAllotedResourceWithDependingSerWithGroups/resource-AllottedResource-template_IpMux_WithGroups.yml deleted file mode 100644 index 282750351c..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testAllotedResourceWithDependingSerWithGroups/resource-AllottedResource-template_IpMux_WithGroups.yml +++ /dev/null @@ -1,283 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Alloted resource: - file: resource-AllotedResource-template.yml -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - node_templates: - allotedresource1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 - UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa - customizationUUID: 1c217567-5093-41f5-86e6-22c97ef24e75 - version: '1.0' - name: Alloted resource - description: This is a VFC- Allotted resource - type: VFC - category: Allotted Resource - subcategory: Allotted Resource - properties: - role: name - ecomp_naming: - naming_policy: test - ecomp_generated_naming: false - supplemental_data: - Key1: key1 - providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c - min_instances: 1 - max_instances: 1 - providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa - providing_service_name: vVIGaaS - ecomp_homing: - instance_node_target: Test - homing_policy: Test - supplemental_data: - Key: key - ecomp_selected_instance_node_target: false - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - substitution_mappings: - node_type: org.openecomp.resource.vf.AllottedResource - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testAllotedResourceWithDependingSerWithGroups/service-ServiceWithAllottedResourceIpmux-template_WithGroups.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testAllotedResourceWithDependingSerWithGroups/service-ServiceWithAllottedResourceIpmux-template_WithGroups.yml deleted file mode 100644 index 1fba2e727f..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testAllotedResourceWithDependingSerWithGroups/service-ServiceWithAllottedResourceIpmux-template_WithGroups.yml +++ /dev/null @@ -1,62 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: faa4359b-6ecf-4eeb-9960-6440d4cf1f2f - UUID: 614316ee-94ae-41b3-b59a-46e87d3d91a5 - name: Service with allotted resource IPMUX - description: safa - type: Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false -imports: -- Allotted Resource: - file: resource-AllottedResource-template.yml -topology_template: - node_templates: - allottedresource1: - type: org.openecomp.resource.vf.AllottedResource - metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - customizationUUID: 958fb310-184f-463d-b634-1660a626f320 - version: '0.2' - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - groups: { - } - substitution_mappings: - node_type: org.openecomp.service.ServiceWithAllottedResourceIpmux - capabilities: - Allotted Resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Allotted Resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Allotted Resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration10/service_vmme_template_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration10/service_vmme_template_1.yml deleted file mode 100644 index 4a16e555ff..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration10/service_vmme_template_1.yml +++ /dev/null @@ -1,194 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - - # Virtual Links (Networks) - - gtp_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/resource-IpMuxDemux-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/resource-IpMuxDemux-template.yml deleted file mode 100644 index 5b4ffd971e..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/resource-IpMuxDemux-template.yml +++ /dev/null @@ -1,83 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: ec95fbf0-5d05-4fea-a11e-27869c0032e2 - UUID: 41e4949f-85b3-4bc5-b7a2-2c166bf87270 - name: IP_Mux_Demux - description: nbvnbb - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - resourceVendor: stella - resourceVendorRelease: '1.0' -imports: -- newAllotted: - file: resource-Newallotted-template.yml -topology_template: - inputs: - role: - type: string - ecomp_naming: - type: string - max_instances: - type: string - min_instances: - type: string - ecomp_homing: - type: string - node_templates: - allotedresource1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: cce8d00f-1a7a-439d-b186-207599f8bbf2 - UUID: 468a08a2-10a7-4ee7-86eb-dcf2e74a028f - customizationUUID: e7a3e375-9bec-4552-88d2-26cb5dcf580d - version: '1.0' - name: newAllotted - description: vcxvcx - type: VFC - category: Allotted Resource - subcategory: IP Mux Demux - properties: - ecomp_naming: - naming_policy: - get input: ecomp_naming - providing_service_invariant_uuid: 2bec5c69-b64e-4ffe-b74a-62f14d255d46 - min_instances: 1 - max_instances: 1 - providing_service_uuid: 8ca1e477-77ec-47ed-a498-303fd0de9080 - providing_service_name: ServiceAllMichael1801 - groups: { - } - substitution_mappings: - node_type: org.openecomp.resource.vf.IpMuxDemux - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/resource-TunnelXconn-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/resource-TunnelXconn-template.yml deleted file mode 100644 index 434757d30e..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/resource-TunnelXconn-template.yml +++ /dev/null @@ -1,83 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: fadbb726-37b6-4939-ba78-9e86974232c5 - UUID: 68d68207-007a-49f3-a9ae-5f88757d5061 - name: Tunnel_XConn - description: stella - type: VF - category: Allotted Resource - subcategory: Tunnel XConnect - resourceVendor: stella - resourceVendorRelease: '1.0' -imports: -- newAllotted: - file: resource-Newallotted-template.yml -topology_template: - inputs: - role: - type: string - ecomp_naming: - type: string - max_instances: - type: string - min_instances: - type: string - ecomp_homing: - type: string - node_templates: - allotedresource1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: cce8d00f-1a7a-439d-b186-207599f8bbf2 - UUID: 468a08a2-10a7-4ee7-86eb-dcf2e74a028f - customizationUUID: a92f5f2e-fe08-4711-84f6-2e64608aca13 - version: '1.0' - name: newAllotted - description: vcxvcx - type: VFC - category: Allotted Resource - subcategory: IP Mux Demux - properties: - ecomp_naming: - naming_policy: - get input: ecomp_naming - providing_service_invariant_uuid: c964ef13-9d61-4d1b-a1a6-7060f3d7ddb4 - min_instances: 1 - max_instances: 1 - providing_service_uuid: 3d6f84f5-84fd-441a-8fd8-401f71196712 - providing_service_name: ServiceSprint38stella - groups: { - } - substitution_mappings: - node_type: org.openecomp.resource.vf.TunnelXconn - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/service-Allottedipmux-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/service-Allottedipmux-template.yml deleted file mode 100644 index 449e0925d5..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration15/service-Allottedipmux-template.yml +++ /dev/null @@ -1,126 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 9c5b8e77-6ae1-4817-994f-a14a03635868 - UUID: 2722acbc-a8cb-4d73-ab14-9b2d79dc2131 - name: AllottedIPMux - description: cbvbv - type: Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false -imports: -- Tunnel_XConn: - file: resource-TunnelXconn-template.yml -- IP_Mux_Demux: - file: resource-IpMuxDemux-template.yml -topology_template: - node_templates: - Tunnel_XConn 3: - type: org.openecomp.resource.vf.TunnelXconn - metadata: - invariantUUID: fadbb726-37b6-4939-ba78-9e86974232c5 - UUID: 68d68207-007a-49f3-a9ae-5f88757d5061 - customizationUUID: ae051f74-0d64-40f8-877b-791330cd7801 - version: '1.0' - name: Tunnel_XConn - description: stella - type: VF - category: Allotted Resource - subcategory: Tunnel XConnect - IP_Mux_Demux 2: - type: org.openecomp.resource.vf.IpMuxDemux - metadata: - invariantUUID: ec95fbf0-5d05-4fea-a11e-27869c0032e2 - UUID: 41e4949f-85b3-4bc5-b7a2-2c166bf87270 - customizationUUID: 8cb6b8f7-a9bc-4745-92bd-f815f68fa6bc - version: '1.0' - name: IP_Mux_Demux - description: nbvnbb - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - IP_Mux_Demux 1: - type: org.openecomp.resource.vf.IpMuxDemux - metadata: - invariantUUID: ec95fbf0-5d05-4fea-a11e-27869c0032e2 - UUID: 41e4949f-85b3-4bc5-b7a2-2c166bf87270 - customizationUUID: 7801f43f-f3f6-453f-89ea-4c182c569ad6 - version: '1.0' - name: IP_Mux_Demux - description: nbvnbb - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - groups: { - } - substitution_mappings: - node_type: org.openecomp.service.Allottedipmux - capabilities: - IP_Mux_Demux 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Tunnel_XConn 3.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - IP_Mux_Demux 2.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Tunnel_XConn 3.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - IP_Mux_Demux 2.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - IP_Mux_Demux 2.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - IP_Mux_Demux 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - IP_Mux_Demux 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Tunnel_XConn 3.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration16/resource-AllottedResource-template_IpMux.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration16/resource-AllottedResource-template_IpMux.yml deleted file mode 100644 index 84b412d591..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration16/resource-AllottedResource-template_IpMux.yml +++ /dev/null @@ -1,78 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Alloted resource: - file: resource-AllotedResource-template.yml -topology_template: - node_templates: - allotedresource1: - type: org.openecomp.resource.vfc.AllottedResource123 - metadata: - invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 - UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa - customizationUUID: 1c217567-5093-41f5-86e6-22c97ef24e75 - version: '1.0' - name: Alloted resource - description: This is a VFC- Allotted resource - type: VFC - category: Allotted Resource123 - subcategory: Allotted Resource - properties: - role: name - ecomp_naming: - naming_policy: test - ecomp_generated_naming: false - supplemental_data: - Key1: key1 - max_instances: 1 - min_instances: 1 - ecomp_homing: - instance_node_target: Test - homing_policy: Test - supplemental_data: - Key: key - ecomp_selected_instance_node_target: false - groups: { - } - substitution_mappings: - node_type: org.openecomp.resource.vf.AllottedResource - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration16/service-ServiceWithAllottedResourceIpmux-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration16/service-ServiceWithAllottedResourceIpmux-template.yml deleted file mode 100644 index 1fba2e727f..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration16/service-ServiceWithAllottedResourceIpmux-template.yml +++ /dev/null @@ -1,62 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: faa4359b-6ecf-4eeb-9960-6440d4cf1f2f - UUID: 614316ee-94ae-41b3-b59a-46e87d3d91a5 - name: Service with allotted resource IPMUX - description: safa - type: Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false -imports: -- Allotted Resource: - file: resource-AllottedResource-template.yml -topology_template: - node_templates: - allottedresource1: - type: org.openecomp.resource.vf.AllottedResource - metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - customizationUUID: 958fb310-184f-463d-b634-1660a626f320 - version: '0.2' - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - groups: { - } - substitution_mappings: - node_type: org.openecomp.service.ServiceWithAllottedResourceIpmux - capabilities: - Allotted Resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Allotted Resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Allotted Resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/resource-AllottedResource1SameInvariant-IpMux-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/resource-AllottedResource1SameInvariant-IpMux-template.yml deleted file mode 100644 index 2852d03568..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/resource-AllottedResource1SameInvariant-IpMux-template.yml +++ /dev/null @@ -1,81 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Alloted resource: - file: resource-AllotedResource-template.yml -topology_template: - node_templates: - allotedresource1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 - UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa - customizationUUID: 1c217567-5093-41f5-86e6-22c97ef24e75 - version: '1.0' - name: Alloted resource - description: This is a VFC- Allotted resource - type: VFC - category: Allotted Resource - subcategory: Allotted Resource - properties: - role: name - ecomp_naming: - naming_policy: test - ecomp_generated_naming: false - supplemental_data: - Key1: key1 - providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c - min_instances: 1 - max_instances: 1 - providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa - providing_service_name: vVIGaaS - ecomp_homing: - instance_node_target: Test - homing_policy: Test - supplemental_data: - Key: key - ecomp_selected_instance_node_target: false - groups: { - } - substitution_mappings: - node_type: org.openecomp.resource.vf.AllottedResource - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/resource-AllottedResource2SameInvariant-IpMux-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/resource-AllottedResource2SameInvariant-IpMux-template.yml deleted file mode 100644 index 0986300436..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/resource-AllottedResource2SameInvariant-IpMux-template.yml +++ /dev/null @@ -1,81 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f64afdc3-6308-4f0c-a476-0d39c8a1fb4d - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Alloted resource: - file: resource-AllotedResource-template.yml -topology_template: - node_templates: - allotedresource1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 - UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa - customizationUUID: 1c217567-5093-41f5-86e6-22c97ef24e75 - version: '1.0' - name: Alloted resource - description: This is a VFC- Allotted resource - type: VFC - category: Allotted Resource - subcategory: Allotted Resource - properties: - role: name - ecomp_naming: - naming_policy: test - ecomp_generated_naming: false - supplemental_data: - Key1: key1 - providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c - min_instances: 1 - max_instances: 1 - providing_service_uuid: e24a509f-b611-4b30-b38c-bc7f11b679aa - providing_service_name: vVIGaaS - ecomp_homing: - instance_node_target: Test - homing_policy: Test - supplemental_data: - Key: key - ecomp_selected_instance_node_target: false - groups: { - } - substitution_mappings: - node_type: org.openecomp.resource.vf.AllottedResource - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/service-ServiceWithAllottedResourcesIpMuxSameInvariant-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/service-ServiceWithAllottedResourcesIpMuxSameInvariant-template.yml deleted file mode 100644 index efd2dea67a..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration17/service-ServiceWithAllottedResourcesIpMuxSameInvariant-template.yml +++ /dev/null @@ -1,74 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: faa4359b-6ecf-4eeb-9960-6440d4cf1f2f - UUID: 614316ee-94ae-41b3-b59a-46e87d3d91a5 - name: Service with allotted resource IPMUX - description: safa - type: Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false -imports: -- Allotted Resource: - file: resource-AllottedResource-template.yml -topology_template: - node_templates: - allottedresource1: - type: org.openecomp.resource.vf.AllottedResource - metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - customizationUUID: 958fb310-184f-463d-b634-1660a626f320 - version: '0.2' - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - allottedresource2: - type: org.openecomp.resource.vf.AllottedResource - metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f64afdc3-6308-4f0c-a476-0d39c8a1fb4d - customizationUUID: 958fb310-184f-463d-b634-1660a626f320 - version: '0.3' - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - groups: { - } - substitution_mappings: - node_type: org.openecomp.service.ServiceWithAllottedResourceIpmux - capabilities: - Allotted Resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Allotted Resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Allotted Resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration18/resource-AllottedResourceSameInvariantSameVers-IpMux-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration18/resource-AllottedResourceSameInvariantSameVers-IpMux-template.yml deleted file mode 100644 index 2852d03568..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration18/resource-AllottedResourceSameInvariantSameVers-IpMux-template.yml +++ /dev/null @@ -1,81 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Alloted resource: - file: resource-AllotedResource-template.yml -topology_template: - node_templates: - allotedresource1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 - UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa - customizationUUID: 1c217567-5093-41f5-86e6-22c97ef24e75 - version: '1.0' - name: Alloted resource - description: This is a VFC- Allotted resource - type: VFC - category: Allotted Resource - subcategory: Allotted Resource - properties: - role: name - ecomp_naming: - naming_policy: test - ecomp_generated_naming: false - supplemental_data: - Key1: key1 - providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c - min_instances: 1 - max_instances: 1 - providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa - providing_service_name: vVIGaaS - ecomp_homing: - instance_node_target: Test - homing_policy: Test - supplemental_data: - Key: key - ecomp_selected_instance_node_target: false - groups: { - } - substitution_mappings: - node_type: org.openecomp.resource.vf.AllottedResource - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration18/service-ServiceWithAllottedResourcesIpMuxSameInvariantSameVers-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration18/service-ServiceWithAllottedResourcesIpMuxSameInvariantSameVers-template.yml deleted file mode 100644 index 08c5329212..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration18/service-ServiceWithAllottedResourcesIpMuxSameInvariantSameVers-template.yml +++ /dev/null @@ -1,74 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: faa4359b-6ecf-4eeb-9960-6440d4cf1f2f - UUID: 614316ee-94ae-41b3-b59a-46e87d3d91a5 - name: Service with allotted resource IPMUX - description: safa - type: Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false -imports: -- Allotted Resource: - file: resource-AllottedResource-template.yml -topology_template: - node_templates: - allottedresource1: - type: org.openecomp.resource.vf.AllottedResource - metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - customizationUUID: 958fb310-184f-463d-b634-1660a626f320 - version: '0.2' - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - allottedresource2: - type: org.openecomp.resource.vf.AllottedResource - metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - customizationUUID: 958fb310-184f-463d-b634-1660a626f320 - version: '0.2' - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - groups: { - } - substitution_mappings: - node_type: org.openecomp.service.ServiceWithAllottedResourceIpmux - capabilities: - Allotted Resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Allotted Resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Allotted Resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration2/Resource0-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration2/Resource0-template.yml deleted file mode 100644 index 49666f9bae..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration2/Resource0-template.yml +++ /dev/null @@ -1,24 +0,0 @@ - # _______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 461a4839-2572-4dc1-b3be-dcb4c1908764 - UUID: bca09900-d37a-48db-8cd2-de014b2fdbba - name: resource_0 - description: description - type: VF - category: Generic - subcategory: Infrastructure - resourceVendor: vendor name - resourceVendorRelease: vendor release -topology_template: - substitution_mapping: - node_type: org.openecomp.resource.vf.Resource0 - # _______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration4/service_vmme_template_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration4/service_vmme_template_1.yml deleted file mode 100644 index 76bb35ceec..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration4/service_vmme_template_1.yml +++ /dev/null @@ -1,194 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vasf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - - # Virtual Links (Networks) - - gtp_net: - type: org.openecomp.resource.vsl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: org.openecomp.resource.vasl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: org.openecomp.resource.vasl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration5/service_vmme_template_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration5/service_vmme_template_1.yml deleted file mode 100644 index 338f5511bf..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration5/service_vmme_template_1.yml +++ /dev/null @@ -1,194 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - - # Virtual Links (Networks) - - gtp_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration6/Resource0-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration6/Resource0-template.yml deleted file mode 100644 index 49666f9bae..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration6/Resource0-template.yml +++ /dev/null @@ -1,24 +0,0 @@ - # _______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 461a4839-2572-4dc1-b3be-dcb4c1908764 - UUID: bca09900-d37a-48db-8cd2-de014b2fdbba - name: resource_0 - description: description - type: VF - category: Generic - subcategory: Infrastructure - resourceVendor: vendor name - resourceVendorRelease: vendor release -topology_template: - substitution_mapping: - node_type: org.openecomp.resource.vf.Resource0 - # _______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration6/service_vmme_template_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration6/service_vmme_template_1.yml deleted file mode 100644 index 4daeca3972..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration6/service_vmme_template_1.yml +++ /dev/null @@ -1,194 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vsf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - - # Virtual Links (Networks) - - gtp_net: - type: org.openecomp.resource.vsdl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: org.openecomp.resource.vsdl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: org.openecomp.resource.vsdl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration8/service_vmme_template_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration8/service_vmme_template_1.yml deleted file mode 100644 index ff9e604bf3..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration8/service_vmme_template_1.yml +++ /dev/null @@ -1,194 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - - # Virtual Links (Networks) - - gtp_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration9/service_vmme_template_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration9/service_vmme_template_1.yml deleted file mode 100644 index 403ad87be0..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGeneration9/service_vmme_template_1.yml +++ /dev/null @@ -1,194 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - - # Virtual Links (Networks) - - gtp_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-IpMuxDemux-template_AllRes_VF.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-IpMuxDemux-template_AllRes_VF.yml deleted file mode 100644 index d8885bb84b..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-IpMuxDemux-template_AllRes_VF.yml +++ /dev/null @@ -1,81 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 - UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 - name: IP_Mux_Demux - description: IP_Mux_Demux - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Allotedresource: - file: resource-Allotedresource-template.yml -topology_template: - inputs: - role: - type: string - ecomp_naming: - type: string - max_instances: - type: string - min_instances: - type: string - ecomp_homing: - type: string - node_templates: - Alloted resource 1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c - UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a - customizationUUID: 5eac2a36-bcb5-4158-ace4-802b81e87248 - version: '1.0' - name: Allotedresource - description: Allotedresource - type: VFC - category: Allotted Resource - subcategory: IP Mux Demux - properties: - ecomp_naming: - naming_policy: - get input: ecomp_naming - providing_service_invariant_uuid: e42ea8ff-1862-43f4-a597-4b885cf3c6e5 - min_instances: 1 - max_instances: 1 - providing_service_uuid: 2fb4b63d-7ec8-4fc0-98c7-a1c51fb4b794 - providing_service_name: vVIGaaS - substitution_mappings: - node_type: org.openecomp.resource.vf.IpMuxDemux - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-ServiceAdmin-template_AllRes_VF.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-ServiceAdmin-template_AllRes_VF.yml deleted file mode 100644 index 549c18b55b..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-ServiceAdmin-template_AllRes_VF.yml +++ /dev/null @@ -1,81 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 - UUID: a9c6246c-0807-4a43-a64c-442a170c2088 - name: service_admin - description: service_admin - type: VF - category: Allotted Resource - subcategory: Service admin - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Allotedresource: - file: resource-Allotedresource-template.yml -topology_template: - inputs: - role: - type: string - ecomp_naming: - type: string - max_instances: - type: string - min_instances: - type: string - ecomp_homing: - type: string - node_templates: - Alloted resource 1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c - UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a - customizationUUID: f61f785d-2c82-4d6d-9184-8cbdf2df4da0 - version: '1.0' - name: Allotedresource - description: Allotedresource - type: VFC - category: Allotted Resource - subcategory: Service admin - properties: - ecomp_naming: - naming_policy: - get input: ecomp_naming - providing_service_invariant_uuid: e42ea8ff-1862-43f4-a597-4b885cf3c6e5 - min_instances: 1 - max_instances: 1 - providing_service_uuid: 2fb4b63d-7ec8-4fc0-98c7-a1c51fb4b794 - providing_service_name: HNPortalaaS - substitution_mappings: - node_type: org.openecomp.resource.vf.ServiceAdmin - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-TunnelXconn-template_AllRes_VF.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-TunnelXconn-template_AllRes_VF.yml deleted file mode 100644 index 1eb97a0976..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-TunnelXconn-template_AllRes_VF.yml +++ /dev/null @@ -1,81 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 - UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb - name: Tunnel_XConn - description: Tunnel_XConn - type: VF - category: Allotted Resource - subcategory: Tunnel XConnect - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Allotedresource: - file: resource-Allotedresource-template.yml -topology_template: - inputs: - role: - type: string - ecomp_naming: - type: string - min_instances: - type: string - max_instances: - type: string - ecomp_homing: - type: string - node_templates: - Alloted resource 1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c - UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a - customizationUUID: 22ca20ca-1577-46d3-b3ef-77483cca37d6 - version: '1.0' - name: Allotedresource - description: Allotedresource - type: VFC - category: Allotted Resource - subcategory: Tunnel XConnect - properties: - ecomp_naming: - naming_policy: - get input: ecomp_naming - providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c - min_instances: 1 - max_instances: 1 - providing_service_uuid: 2fb4b63d-7ec8-4fc0-98c7-a1c51fb4b794 - providing_service_name: vVIGaaS - substitution_mappings: - node_type: org.openecomp.resource.vf.TunnelXconn - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-VhnfNonHeat-template_AllRes_VF.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-VhnfNonHeat-template_AllRes_VF.yml deleted file mode 100644 index 8ec1c192ee..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/resource-VhnfNonHeat-template_AllRes_VF.yml +++ /dev/null @@ -1,24 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: f61adc31-6004-4377-a661-090f59e6b32a - UUID: 2118e830-5e0d-409a-9d7a-63b6a72d6f5f - name: vHNF non Heat - description: vHNF non Heat - type: VF - category: Generic - subcategory: Network Elements - resourceVendor: '1' - resourceVendorRelease: '1' -topology_template: - substitution_mappings: - node_type: org.openecomp.resource.vf.VhnfNonHeat -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/service-SdWan-template_AllRes_VF.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/service-SdWan-template_AllRes_VF.yml deleted file mode 100644 index bc3ab6dabb..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testArtifactGenerationAllottedResourceWithVF/service-SdWan-template_AllRes_VF.yml +++ /dev/null @@ -1,233 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 3d8b7a76-7c47-4974-b5b9-e24c54b817a2 - UUID: eb31504f-9f60-4936-a2f2-8ac592b611a6 - name: SD-WAN - description: SD-WAN - type: Service - category: Network L4+ - serviceEcompNaming: false - serviceHoming: false -imports: -- service_admin: - file: resource-ServiceAdmin-template.yml -- Tunnel_XConn: - file: resource-TunnelXconn-template.yml -- vHNF non Heat: - file: resource-VhnfNonHeat-template.yml -- IP_Mux_Demux: - file: resource-IpMuxDemux-template.yml -topology_template: - node_templates: - Sec_IP_Mux_Demux: - type: org.openecomp.resource.vf.IpMuxDemux - metadata: - invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 - UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 - customizationUUID: f4b764bb-6721-4219-8c69-7ce61969f755 - version: '0.1' - name: IP_Mux_Demux - description: IP_Mux_Demux - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - Pri_Tunnel_XConn: - type: org.openecomp.resource.vf.TunnelXconn - metadata: - invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 - UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb - customizationUUID: 96d0bbf6-d9f7-441d-8f00-67d79dbf30de - version: '0.1' - name: Tunnel_XConn - description: Tunnel_XConn - type: VF - category: Allotted Resource - subcategory: Tunnel XConnect - Pri_service_admin: - type: org.openecomp.resource.vf.ServiceAdmin - metadata: - invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 - UUID: a9c6246c-0807-4a43-a64c-442a170c2088 - customizationUUID: 6b4a2a55-3b82-4799-8329-4fc2939fd5b5 - version: '0.1' - name: service_admin - description: service_admin - type: VF - category: Allotted Resource - subcategory: Service admin - Pri_IP_Mux_Demux: - type: org.openecomp.resource.vf.IpMuxDemux - metadata: - invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 - UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 - customizationUUID: d8f656d9-179d-4f02-9a46-8af7421eb2a0 - version: '0.1' - name: IP_Mux_Demux - description: IP_Mux_Demux - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - Sec_Tunnel_XConn: - type: org.openecomp.resource.vf.TunnelXconn - metadata: - invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 - UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb - customizationUUID: b432136d-0a2a-460b-a3da-f921e1e0dcfa - version: '0.1' - name: Tunnel_XConn - description: Tunnel_XConn - type: VF - category: Allotted Resource - subcategory: Tunnel XConnect - vHNF non Heat 22: - type: org.openecomp.resource.vf.VhnfNonHeat - metadata: - invariantUUID: f61adc31-6004-4377-a661-090f59e6b32a - UUID: 2118e830-5e0d-409a-9d7a-63b6a72d6f5f - customizationUUID: 9c7a5f7f-6b17-4066-a6f1-094ea925495b - version: '0.1' - name: vHNF non Heat - description: vHNF non Heat - type: VF - category: Generic - subcategory: Network Elements - Sec_service_admin: - type: org.openecomp.resource.vf.ServiceAdmin - metadata: - invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 - UUID: a9c6246c-0807-4a43-a64c-442a170c2088 - customizationUUID: 5a8ef05b-451f-40f4-9531-3ee00bd3c5c4 - version: '0.1' - name: service_admin - description: service_admin - type: VF - category: Allotted Resource - subcategory: Service admin - substitution_mappings: - node_type: org.openecomp.service.SdWan - capabilities: - Sec_service_admin.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Sec_IP_Mux_Demux.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Pri_service_admin.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Pri_IP_Mux_Demux.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Pri_Tunnel_XConn.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Sec_Tunnel_XConn.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Pri_service_admin.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Sec_Tunnel_XConn.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Sec_service_admin.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Pri_IP_Mux_Demux.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Pri_Tunnel_XConn.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Sec_service_admin.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Pri_service_admin.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Sec_IP_Mux_Demux.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Sec_IP_Mux_Demux.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Pri_Tunnel_XConn.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Sec_Tunnel_XConn.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Pri_IP_Mux_Demux.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-IpMuxDemux-template_WithOutDepSerId.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-IpMuxDemux-template_WithOutDepSerId.yml deleted file mode 100644 index 2e06cf467b..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-IpMuxDemux-template_WithOutDepSerId.yml +++ /dev/null @@ -1,80 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 - UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 - name: IP_Mux_Demux - description: IP_Mux_Demux - type: VF - category: Allotted Resource - subcategory: Allotted Resource - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Allotedresource: - file: resource-Allotedresource-template.yml -topology_template: - inputs: - role: - type: string - ecomp_naming: - type: string - max_instances: - type: string - min_instances: - type: string - ecomp_homing: - type: string - node_templates: - Alloted resource 1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c - UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a - customizationUUID: 5eac2a36-bcb5-4158-ace4-802b81e87248 - version: '1.0' - name: Allotedresource - description: Allotedresource - type: VFC - category: Allotted Resource - subcategory: Allotted Resource - properties: - ecomp_naming: - naming_policy: - get input: ecomp_naming - providing_service_invariant_uuid: - min_instances: 1 - max_instances: 1 - providing_service_uuid: - substitution_mappings: - node_type: org.openecomp.resource.vf.IpMuxDemux - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-ServiceAdmin-template_WithOutDepSerId.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-ServiceAdmin-template_WithOutDepSerId.yml deleted file mode 100644 index c8a641d1ac..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-ServiceAdmin-template_WithOutDepSerId.yml +++ /dev/null @@ -1,81 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 - UUID: a9c6246c-0807-4a43-a64c-442a170c2088 - name: service_admin - description: service_admin - type: VF - category: Allotted Resource - subcategory: Allotted Resource - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Allotedresource: - file: resource-Allotedresource-template.yml -topology_template: - inputs: - role: - type: string - ecomp_naming: - type: string - max_instances: - type: string - min_instances: - type: string - ecomp_homing: - type: string - node_templates: - Alloted resource 1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c - UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a - customizationUUID: f61f785d-2c82-4d6d-9184-8cbdf2df4da0 - version: '1.0' - name: Allotedresource - description: Allotedresource - type: VFC - category: Allotted Resource - subcategory: Allotted Resource - properties: - ecomp_naming: - naming_policy: - get input: ecomp_naming - providing_service_invariant_uuid: - min_instances: 1 - max_instances: 1 - providing_service_uuid: - providing_service_name: HNPortalaaS - substitution_mappings: - node_type: org.openecomp.resource.vf.ServiceAdmin - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-TunnelXconn-template_WithOutDepSerId.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-TunnelXconn-template_WithOutDepSerId.yml deleted file mode 100644 index eb248d1d65..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-TunnelXconn-template_WithOutDepSerId.yml +++ /dev/null @@ -1,81 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 - UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb - name: Tunnel_XConn - description: Tunnel_XConn - type: VF - category: Allotted Resource - subcategory: Allotted Resource - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Allotedresource: - file: resource-Allotedresource-template.yml -topology_template: - inputs: - role: - type: string - ecomp_naming: - type: string - min_instances: - type: string - max_instances: - type: string - ecomp_homing: - type: string - node_templates: - Alloted resource 1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c - UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a - customizationUUID: 22ca20ca-1577-46d3-b3ef-77483cca37d6 - version: '1.0' - name: Allotedresource - description: Allotedresource - type: VFC - category: Allotted Resource - subcategory: Allotted Resource - properties: - ecomp_naming: - naming_policy: - get input: ecomp_naming - providing_service_invariant_uuid: - min_instances: 1 - max_instances: 1 - providing_service_uuid: - providing_service_name: vVIGaaS - substitution_mappings: - node_type: org.openecomp.resource.vf.TunnelXconn - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-VhnfNonHeat-template_WithOutDepSerId.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-VhnfNonHeat-template_WithOutDepSerId.yml deleted file mode 100644 index 8ec1c192ee..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/resource-VhnfNonHeat-template_WithOutDepSerId.yml +++ /dev/null @@ -1,24 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: f61adc31-6004-4377-a661-090f59e6b32a - UUID: 2118e830-5e0d-409a-9d7a-63b6a72d6f5f - name: vHNF non Heat - description: vHNF non Heat - type: VF - category: Generic - subcategory: Network Elements - resourceVendor: '1' - resourceVendorRelease: '1' -topology_template: - substitution_mappings: - node_type: org.openecomp.resource.vf.VhnfNonHeat -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/service-SdWan-template_WithOutDepSerId.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/service-SdWan-template_WithOutDepSerId.yml deleted file mode 100644 index 51d8c2d8ba..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenAllottedResourceWithOutDependingServiceId/service-SdWan-template_WithOutDepSerId.yml +++ /dev/null @@ -1,233 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 3d8b7a76-7c47-4974-b5b9-e24c54b817a2 - UUID: eb31504f-9f60-4936-a2f2-8ac592b611a6 - name: SD-WAN - description: SD-WAN - type: Service - category: Network L4+ - serviceEcompNaming: false - serviceHoming: false -imports: -- service_admin: - file: resource-ServiceAdmin-template.yml -- Tunnel_XConn: - file: resource-TunnelXconn-template.yml -- vHNF non Heat: - file: resource-VhnfNonHeat-template.yml -- IP_Mux_Demux: - file: resource-IpMuxDemux-template.yml -topology_template: - node_templates: - Sec_IP_Mux_Demux: - type: org.openecomp.resource.vf.IpMuxDemux - metadata: - invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 - UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 - customizationUUID: f4b764bb-6721-4219-8c69-7ce61969f755 - version: '0.1' - name: IP_Mux_Demux - description: IP_Mux_Demux - type: VF - category: Allotted Resource - subcategory: Allotted Resource - Pri_Tunnel_XConn: - type: org.openecomp.resource.vf.TunnelXconn - metadata: - invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 - UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb - customizationUUID: 96d0bbf6-d9f7-441d-8f00-67d79dbf30de - version: '0.1' - name: Tunnel_XConn - description: Tunnel_XConn - type: VF - category: Allotted Resource - subcategory: Allotted Resource - Pri_service_admin: - type: org.openecomp.resource.vf.ServiceAdmin - metadata: - invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 - UUID: a9c6246c-0807-4a43-a64c-442a170c2088 - customizationUUID: 6b4a2a55-3b82-4799-8329-4fc2939fd5b5 - version: '0.1' - name: service_admin - description: service_admin - type: VF - category: Allotted Resource - subcategory: Allotted Resource - Pri_IP_Mux_Demux: - type: org.openecomp.resource.vf.IpMuxDemux - metadata: - invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 - UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 - customizationUUID: d8f656d9-179d-4f02-9a46-8af7421eb2a0 - version: '0.1' - name: IP_Mux_Demux - description: IP_Mux_Demux - type: VF - category: Allotted Resource - subcategory: Allotted Resource - Sec_Tunnel_XConn: - type: org.openecomp.resource.vf.TunnelXconn - metadata: - invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 - UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb - customizationUUID: b432136d-0a2a-460b-a3da-f921e1e0dcfa - version: '0.1' - name: Tunnel_XConn - description: Tunnel_XConn - type: VF - category: Allotted Resource - subcategory: Allotted Resource - vHNF non Heat 22: - type: org.openecomp.resource.vf.VhnfNonHeat - metadata: - invariantUUID: f61adc31-6004-4377-a661-090f59e6b32a - UUID: 2118e830-5e0d-409a-9d7a-63b6a72d6f5f - customizationUUID: 9c7a5f7f-6b17-4066-a6f1-094ea925495b - version: '0.1' - name: vHNF non Heat - description: vHNF non Heat - type: VF - category: Generic - subcategory: Network Elements - Sec_service_admin: - type: org.openecomp.resource.vf.ServiceAdmin - metadata: - invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 - UUID: a9c6246c-0807-4a43-a64c-442a170c2088 - customizationUUID: 5a8ef05b-451f-40f4-9531-3ee00bd3c5c4 - version: '0.1' - name: service_admin - description: service_admin - type: VF - category: Allotted Resource - subcategory: Allotted Resource - substitution_mappings: - node_type: org.openecomp.service.SdWan - capabilities: - Sec_service_admin.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Sec_IP_Mux_Demux.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Pri_service_admin.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Pri_IP_Mux_Demux.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Pri_Tunnel_XConn.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Sec_Tunnel_XConn.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Pri_service_admin.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Sec_Tunnel_XConn.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Sec_service_admin.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Pri_IP_Mux_Demux.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Pri_Tunnel_XConn.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Sec_service_admin.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Pri_service_admin.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Sec_IP_Mux_Demux.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Sec_IP_Mux_Demux.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Pri_Tunnel_XConn.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Sec_Tunnel_XConn.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Pri_IP_Mux_Demux.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidInvId/service_vmme_template_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidInvId/service_vmme_template_1.yml deleted file mode 100644 index 50c4c8230a..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidInvId/service_vmme_template_1.yml +++ /dev/null @@ -1,194 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: 7787da18-123 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - - # Virtual Links (Networks) - - gtp_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion1/service_vmme_template_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion1/service_vmme_template_1.yml deleted file mode 100644 index fbb1e62a89..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion1/service_vmme_template_1.yml +++ /dev/null @@ -1,98 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 0.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion1/vf_vmme_template_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion1/vf_vmme_template_1.yml deleted file mode 100644 index 6aee48b9d9..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion1/vf_vmme_template_1.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion2/service_vmme_template_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion2/service_vmme_template_1.yml deleted file mode 100644 index 94b6c9b29b..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion2/service_vmme_template_1.yml +++ /dev/null @@ -1,98 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion2/vf_vmme_template_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion2/vf_vmme_template_1.yml deleted file mode 100644 index 6aee48b9d9..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidResourceVersion2/vf_vmme_template_1.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidUuId/service_vmme_template_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidUuId/service_vmme_template_1.yml deleted file mode 100644 index 5edb3bf8af..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenInvalidUuId/service_vmme_template_1.yml +++ /dev/null @@ -1,194 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - UUID: 7787da18-123 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - - # Virtual Links (Networks) - - gtp_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - category: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenNoResourceVersion/service_vmme_template_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenNoResourceVersion/service_vmme_template_1.yml deleted file mode 100644 index d50b285b70..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenNoResourceVersion/service_vmme_template_1.yml +++ /dev/null @@ -1,98 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenNoResourceVersion/vf_vmme_template_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenNoResourceVersion/vf_vmme_template_1.yml deleted file mode 100644 index 6aee48b9d9..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testErrorWhenNoResourceVersion/vf_vmme_template_1.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-AllottedResource-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-AllottedResource-template.yml deleted file mode 100644 index c80e701913..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-AllottedResource-template.yml +++ /dev/null @@ -1,78 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: Allotted Resource - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Alloted resource: - file: resource-AllotedResource-template.yml -topology_template: - node_templates: - Alloted resource 1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 - UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa - version: '1.0' - name: Alloted resource - description: This is a VFC- Allotted resource - type: VFC - category: Allotted Resource - subcategory: Allotted Resource - properties: - role: name - ecomp_naming: - naming_policy: test - ecomp_generated_naming: false - supplemental_data: - Key1: key1 - providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c - min_instances: 1 - max_instances: 1 - providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa - providing_service_name: vVIGaaS - ecomp_homing: - instance_node_target: Test - homing_policy: Test - supplemental_data: - Key: key - ecomp_selected_instance_node_target: false - substitution_mappings: - node_type: org.openecomp.resource.vf.AllottedResource - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-Extvl-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-Extvl-template.yml deleted file mode 100644 index aa32d4ae01..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-Extvl-template.yml +++ /dev/null @@ -1,61 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf - UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 - name: ExtVL1 - description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks - type: VL - category: Generic - subcategory: Network Elements - resourceVendor: OPENECOMP (Tosca) - resourceVendorRelease: 1.0.0.wd03 -node_types: - org.openecomp.resource.vl.extVL: - derived_from: tosca.nodes.Root - description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks - properties: - physical_network: - type: org.openecomp.datatypes.network.PhysicalNetwork - network_role: - type: string - description: | - Unique label that defines the role that this network performs. example: vce oam network, vnat sr-iov1 network - network_assignments: - type: org.openecomp.datatypes.network.NetworkAssignments - network_flows: - type: org.openecomp.datatypes.network.NetworkFlows - vl_artifacts: - type: map - description: List of artifacts associated with the VL - entry_schema: - type: org.openecomp.datatypes.Artifact - network_scope: - type: string - description: | - Uniquely identifies the network scope. Valid values for the network scope includes: VF - VF-level network. Intra-VF network which connects the VFCs (VMs) inside the VF. SERVICE - Service-level network. Intra-Service network which connects the VFs within the service GLOBAL - Global network which can be shared by multiple services - network_ecomp_naming: - type: org.openecomp.datatypes.EcompNaming - network_type: - type: string - description: OPENECOMP supported network types. - network_technology: - type: string - description: OPENECOMP supported network technology - network_homing: - type: org.openecomp.datatypes.EcompHoming - capabilities: - virtual_linkable: - type: tosca.capabilities.network.Linkable - occurrences: - - 1 - - UNBOUNDED -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-Extvl-template_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-Extvl-template_1.yml deleted file mode 100644 index e474f9a637..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/resource-Extvl-template_1.yml +++ /dev/null @@ -1,61 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf - UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57433 - name: ExtVL2 - description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks - type: VL - category: Generic - subcategory: Network Elements - resourceVendor: OPENECOMP (Tosca) - resourceVendorRelease: 1.0.0.wd03 -node_types: - org.openecomp.resource.vl.extVL: - derived_from: tosca.nodes.Root - description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks - properties: - physical_network: - type: org.openecomp.datatypes.network.PhysicalNetwork - network_role: - type: string - description: | - Unique label that defines the role that this network performs. example: vce oam network, vnat sr-iov1 network - network_assignments: - type: org.openecomp.datatypes.network.NetworkAssignments - network_flows: - type: org.openecomp.datatypes.network.NetworkFlows - vl_artifacts: - type: map - description: List of artifacts associated with the VL - entry_schema: - type: org.openecomp.datatypes.Artifact - network_scope: - type: string - description: | - Uniquely identifies the network scope. Valid values for the network scope includes: VF - VF-level network. Intra-VF network which connects the VFCs (VMs) inside the VF. SERVICE - Service-level network. Intra-Service network which connects the VFs within the service GLOBAL - Global network which can be shared by multiple services - network_ecomp_naming: - type: org.openecomp.datatypes.EcompNaming - network_type: - type: string - description: OPENECOMP supported network types. - network_technology: - type: string - description: OPENECOMP supported network technology - network_homing: - type: org.openecomp.datatypes.EcompHoming - capabilities: - virtual_linkable: - type: tosca.capabilities.network.Linkable - occurrences: - - 1 - - UNBOUNDED -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/service_vmme_template_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/service_vmme_template_1.yml deleted file mode 100644 index c2b2875c75..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/service_vmme_template_1.yml +++ /dev/null @@ -1,139 +0,0 @@ ---- -description: "Service Template for deploing MME Service" -imports: - - - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - - - ExtVL: - file: resource-Extvl-template.yml - - - ? "Allotted Resource" - : - file: resource-AllottedResource-template.yml -metadata: - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - category: Mobility - description: vMME_Service - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - name: vMME_Service - serviceEcompNaming: false - serviceHoming: false - type: Service -topology_template: - groups: - external_networks: - members: - - sctp_a_net - - sctp_b_net - - gtp_net - properties: - availability_zone_count: 1 - contrail_service_instance: true - type: org.openecomp.groups.externalNetworks - inputs: - gtp_net_cidr: - default: 107.243.37.64/27 - description: "The GTP network cidr" - type: string - gtp_net_end_ip: - default: "107.243.37.94" - description: "The GTP network end ip" - type: string - gtp_net_gateway_ip: - default: "107.243.37.65" - description: "The GTP network gateway" - type: string - gtp_net_network_name: - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 - description: "The GTP network route targets" - type: string - gtp_net_route_targets: - default: "13979:105715" - description: "The GTP network route targets" - type: string - gtp_net_start_ip: - default: "107.243.37.67" - description: "The GTP network start ip" - type: string - mme_vf_deployment_node: - description: "The target LCP node for deployment of this VF instance" - type: string - mme_vf_instance_name: - description: "VF instance name" - type: string - node_templates: - ? "Allotted Resource 2" - : - metadata: - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - category: "Allotted Resource" - description: "This is a VF - Allotted resource" - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - name: "Allotted Resource" - subcategory: "Allotted Resource" - type: VF - version: "1.0" - type: org.openecomp.resource.vf.AllottedResource - ? "ExtVL 1" - : - metadata: - UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 - category: Generic - description: "OPENECOMP generic virtual link (network) base type for all other service-level and global networks" - invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf - name: ExtVL - subcategory: "Network Elements" - type: VL - version: "2.0" - type: org.openecomp.resource.vl.extVL - ? "ExtVL 2" - : - metadata: - UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57433 - category: Generic - description: "OPENECOMP generic virtual link (network) base type for all other service-level and global networks" - invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf - name: ExtVL - subcategory: "Network Elements" - type: VL - version: "4.0" - type: org.openecomp.resource.vl.extVL - - mme: - metadata: - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - resourceVendor: Ericsson - subcategory: Firewall - type: VF - version: 1.0 - properties: - vf_deployment_node: - get_input: vf_deployment_node - vf_ecomp_name: false - vf_homing: false - vf_instance_name: - get_input: vf_instance_name - requirements: - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vf.vmme - -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/vf_vmme_template_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/vf_vmme_template_1.yml deleted file mode 100644 index 6aee48b9d9..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testSameVLdifferentVersion/vf_vmme_template_1.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testWidgetinServiceTosca/ServiceMock-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testWidgetinServiceTosca/ServiceMock-template.yml deleted file mode 100644 index 84ba6c9298..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testWidgetinServiceTosca/ServiceMock-template.yml +++ /dev/null @@ -1,74 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: c2749b42-28db-45e0-ab55-b05d0118d91d - UUID: b8ff69ca-786d-479e-9f9c-217a90ee0ebc - name: service_mock - description: aaa - type: Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false -imports: -- Network: - file: NeutronNet-template.yml -- vadtran_Demo: - file: VadtranDemo-template.yml -- Port: - file: ContrailPort-template.yml -topology_template: - node_templates: - Port 1: - type: org.openecomp.resource.cp.nodes.heat.network.contrail.Port - metadata: - invariantUUID: fc94daa0-a1a9-405e-a84c-b15987f92357 - UUID: 4dd2144f-72d4-47de-b361-8ed51c33c4a8 - resourceCustomizationUUID: 6402d92d-0050-46a9-8202-623a46680ba7 - version: '1.0' - name: ContrailPort - description: Represents a logical entity that associates between Compute and Network normative types for contrail. - type: CP - category: Generic - subcategory: Network Elements - - vadtran_Demo 1: - type: org.openecomp.resource.vf.VadtranDemo - metadata: - invariantUUID: 886d689d-351d-485a-829c-d86ec2dde4c4 - UUID: 3d6e1e60-14ac-4665-83de-6e2c729f0222 - resourceCustomizationUUID: 8cc0b0f6-d0fd-4742-b054-8d1786e07ff8 - version: '1.0' - name: vadtran_Demo - description: test - type: VF - category: Generic - subcategory: Database - - groups: - vadtran_Demo..base_adtran_pmaa_heat_04..module-0: - type: org.openecomp.groups.VfModule - metadata: - vfModuleModelName: vadtran_Demo..base_adtran_pmaa_heat_04..module-0 - vfModuleModelCustomizationUUID: fbf41c77-6b84-4e77-ae26-d86ec2dde4c4 - vfModuleModelInvariantUUID: d84f61c9-160a-44b6-a008-6caadbb6c612 - vfModuleModelUUID: fbf41c77-a7ee-4203-ad6c-eeb8a4ad7178 - vfModuleModelVersion: '1' - properties: - vf_module_type: Base - vf_module_description: - volume_group: false - vf_module_label: - min_vf_module_instances: 2 - max_vf_module_instances: 2 - initial_count: 2 - - -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testWidgetinServiceTosca/VadtranDemo-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testWidgetinServiceTosca/VadtranDemo-template.yml deleted file mode 100644 index bddcf9f284..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/testWidgetinServiceTosca/VadtranDemo-template.yml +++ /dev/null @@ -1,170 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 886d689d-351d-485a-829c-d86ec2dde4c4 - UUID: 3d6e1e60-14ac-4665-83de-6e2c729f0222 - name: vadtran_Demo - description: test - type: VF - category: Generic - subcategory: Database - resourceVendor: Test - resourceVendorRelease: '1.0' -imports: -- NeutronPort: - file: Neutronport-template.yml -- VadtranDemo.nodes.heat.vnf: - file: VadtrandemoNodesHeatVnf-template.yml -topology_template: - inputs: - pmaa_dpu_net_id: - type: string - default: bd3be094-ddf0-43b3-91e7-d424f09dd2b9 - description: PMAA DPU network ID - pmaa_dpu_fixed_ip: - type: string - default: 10.0.2.50 - description: PMAA fixed IP address for DPU network port - pmaa_flavor: - type: string - default: m1.medium - description: PMAA instance Flavor (RAM, DISK, vCPUs) - pmaa_image: - type: string - default: adtran_pmaa_ubuntu_multi - description: PMAA image for compute instance - pmaa_mgt_net_id: - type: string - default: 991cdd94-18ca-4bf8-a931-922a64500840 - description: PMAA management network - vnf_id: - type: string - default: pmaa_vnf_id - description: PMAA unique ID - pmaa_availability_zone: - type: string - default: nova - description: PMAA availability zone ID to deploy the instance - vnf_name: - type: string - default: pmaa - description: PMAA vnf name - pmaa_dpu_cidr: - type: string - default: 10.0.2.0/24 - description: PMAA DPU subnetwork CIDR address block - pmaa_dpu_subnet_id: - type: string - default: e848430b-e956-4b47-9cc8-f7a6ca2c790a - description: PMAA DPU subnetwork ID - pmaa_dpu_gateway: - type: string - default: 10.0.2.254 - description: PMAA DPU subnetwork gateway IP address - node_templates: - pmaa_mgt_port: - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - metadata: - invariantUUID: cba26d10-4613-4c82-9f9e-af95eaf959a3 - UUID: 2606755b-d301-45c6-900e-ca676cc9f348 - resourceCustomizationUUID: 6402d92d-0050-46a9-8202-f7a6ca2c790a - version: '1.0' - name: NeutronPort - description: Represents a logical entity that associates between Compute and Network normative types. - type: CP - category: Generic - subcategory: Network Elements - properties: - network: - get_input: pmaa_mgt_net_id - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: pmaa_server_0 - relationship: tosca.relationships.network.BindsTo - pmaa_dpu_port: - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - metadata: - invariantUUID: cba26d10-4613-4c82-9f9e-af95eaf959a3 - UUID: 2606755b-d301-45c6-900e-ca676cc9f348 - resourceCustomizationUUID: 6402d92d-4613-4c82-9f9e-f7a6ca2c790a - version: '1.0' - name: NeutronPort - description: Represents a logical entity that associates between Compute and Network normative types. - type: CP - category: Generic - subcategory: Network Elements - properties: - fixed_ips: - - ip_address: - get_input: pmaa_dpu_fixed_ip - network: - get_input: pmaa_dpu_net_id - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: pmaa_server_0 - relationship: tosca.relationships.network.BindsTo - pmaa_server_0: - type: org.openecomp.resource.vfc.VadtranDemo.abstact.nodes.heat.vnf - metadata: - invariantUUID: 660310f4-8851-46d3-9cb7-9f1188b43aa7 - UUID: 82150098-aead-4ae0-a3e0-d5273b4ab923 - resourceCustomizationUUID: 6402d92d-8851-46d3-9cb7-f7a6ca2c790a - version: '1.0' - name: VadtranDemo.nodes.heat.vnf - description: Not reusable inner VFC - type: VFC - category: Generic - subcategory: Abstract - properties: - flavor: - get_input: pmaa_flavor - image: - get_input: pmaa_image - availability_zone: - get_input: pmaa_availability_zone - metadata: - pmaa.sb_nic: - address: - get_input: pmaa_dpu_fixed_ip - cidr: - get_input: pmaa_dpu_cidr - gateway: - get_input: pmaa_dpu_gateway - user_data_format: - name: - get_input: vnf_name - groups: - vadtran_Demo..base_adtran_pmaa_heat_04..module-0: - type: org.openecomp.groups.VfModule - metadata: - vfModuleModelName: vadtran_Demo..base_adtran_pmaa_heat_04..module-0 - vfModuleModelInvariantUUID: d84f61c9-160a-44b6-a008-6caadbb6c612 - vfModuleModelUUID: fbf41c77-a7ee-4203-ad6c-eeb8a4ad7178 - vfModuleModelVersion: '1' - properties: - vf_module_type: Base - vf_module_description: - volume_group: false - base_adtran_pmaa_heat_04: - type: org.openecomp.groups.heat.HeatStack - members: - - pmaa_mgt_port - - pmaa_dpu_port - - pmaa_server_0 - metadata: - invariantUUID: d2e21beb-b7e4-44cf-bf6c-f8c8802fe532 - UUID: c9d6f49a-6785-4693-a921-d980e4d11aa4 - version: '1' - name: base_adtran_pmaa_heat_04 - - #_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_InvalidVfModInvUuIdAttr.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_InvalidVfModInvUuIdAttr.yml deleted file mode 100644 index 7d3a420a00..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_InvalidVfModInvUuIdAttr.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc3333 - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_InvalidVfModUuIdAttr.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_InvalidVfModUuIdAttr.yml deleted file mode 100644 index a2d65041b0..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_InvalidVfModUuIdAttr.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: adf1a1- - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModInvUUID.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModInvUUID.yml deleted file mode 100644 index 0961302ead..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModInvUUID.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelName.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelName.yml deleted file mode 100644 index 2f5f4267b5..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelName.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelUUID.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelUUID.yml deleted file mode 100644 index 7dec66c31b..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelUUID.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelVersion.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelVersion.yml deleted file mode 100644 index 5ae33ed8ab..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/src/test/resources/vf_vmme_template_ModelVersion.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/dependency-reduced-pom.xml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/dependency-reduced-pom.xml deleted file mode 100644 index b1c35cf3a9..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/dependency-reduced-pom.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - openecomp-common-lib - org.openecomp.sdc.common - 1.2.0-SNAPSHOT - ../../pom.xml - - 4.0.0 - openecomp-sdc-artifact-generator-test - - - - maven-shade-plugin - ${mvn.shade.version} - - - package - - shade - - - - - com.google.guava:* - - - - - - - - - - diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/pom.xml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/pom.xml deleted file mode 100644 index 202028269f..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/pom.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - 4.0.0 - - openecomp-sdc-artifact-generator-test - - - openecomp-common-lib - org.openecomp.sdc.common - 1.2.0-SNAPSHOT - ../../ - - - - - - - org.apache.maven.plugins - maven-shade-plugin - ${mvn.shade.version} - - - package - - shade - - - - - com.google.guava:* - - - - - - - - - - - - - org.testng - testng - 6.8.8 - - - junit - junit - 4.11 - - - org.openecomp.sdc.common - openecomp-sdc-artifact-generator-api - ${project.version} - - - - org.openecomp.sdc.common - openecomp-sdc-artifact-generator-core - ${project.version} - - - - diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/java/org/openecomp/sdc/generator/ArtifactGenerationServiceTest.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/java/org/openecomp/sdc/generator/ArtifactGenerationServiceTest.java deleted file mode 100644 index 38462d05bb..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/java/org/openecomp/sdc/generator/ArtifactGenerationServiceTest.java +++ /dev/null @@ -1,696 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator; - -import org.openecomp.sdc.generator.aai.model.*; -import org.openecomp.sdc.generator.aai.model.Service; -import org.openecomp.sdc.generator.aai.tosca.GroupDefinition; -import org.openecomp.sdc.generator.aai.tosca.NodeTemplate; -import org.openecomp.sdc.generator.aai.tosca.ToscaTemplate; -import org.openecomp.sdc.generator.aai.xml.*; -import org.openecomp.sdc.generator.aai.xml.Model; -import org.openecomp.sdc.generator.data.*; -import org.junit.Assert; - -import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Unmarshaller; -import java.io.ByteArrayInputStream; -import java.io.IOException; -import java.io.InputStream; -import java.util.*; -import java.util.Properties; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import static org.openecomp.sdc.generator.SampleJUnitTest.additionalParams; - -@SuppressWarnings("Duplicates") -public class ArtifactGenerationServiceTest { - - public static final String RESOURCE_MAPPING_NOT_FOUND = "Resource mapping not found for "; - public static final String INV_UID = "-INV_UID"; - public static final String VF_MODULE_NAMESPACE = "org.openecomp.groups.VfModule"; - public static final String VF_MODULE_DESCRIPTION = "vf_module_description"; - public static final String CATEGORY = "category"; - static Map resourcesVersion = new HashMap<>(); - public static Properties properties = new Properties(); - - @SuppressWarnings("Since15") - public static void validateName(List artifactList) throws JAXBException { - for(Artifact artifact : artifactList){ - String xml = new String(Base64.getDecoder().decode(artifact.getPayload())); - Model model = getUnmarshalledArtifactModel(xml); - String xmlName = "AAI-"+ model.getModelVers().getModelVer().get(0).getModelName() - +"-"+model - .getModelType - ()+"-"+model.getModelVers().getModelVer().get(0) - .getModelVersion()+".xml"; - - Assert.assertEquals(true,artifact.getName().equals(xmlName)); - - } - } - - public static void checkArtifactName(String name){ - Assert.assertEquals(true,name.length()<=255); - } - - public static void checkArtifactLabel(String label){ - Pattern pattern = Pattern.compile("[a-zA-Z0-9-+\\s]+"); - Matcher matcher = pattern.matcher(label); - Assert.assertEquals(true,matcher.matches()); - } - - public static void checkArtifactDescription(String description){ - Pattern pattern = Pattern.compile("[a-zA-Z\\s\\t\\n]+"); - Matcher matcher = pattern.matcher(description); - Assert.assertEquals(true,matcher.matches()); - Assert.assertEquals(true,description.length()<=256); - - } - - public static void testResourceTosca(Iterator itr, Map - outputArtifactMap) { - while(itr.hasNext()){ - ToscaTemplate toscaTemplate = itr.next(); - String resourceVersion= resourcesVersion.get(toscaTemplate.getMetadata().get("UUID")); - toscaTemplate.getMetadata().put("version", resourceVersion); - if("VF".equals(toscaTemplate.getMetadata().get("type")) && !("Allotted Resource".equals - (toscaTemplate.getMetadata().get(CATEGORY))) ){ - testVfTosca(outputArtifactMap, toscaTemplate); - } else if("VF".equals(toscaTemplate.getMetadata().get("type")) && ("Allotted Resource".equals - (toscaTemplate.getMetadata().get(CATEGORY))) ){ - testAllottedResourceTosca(outputArtifactMap, toscaTemplate); - } else if("VL".equals(toscaTemplate.getMetadata().get("type"))){ - testL3NetworkResourceTosca(outputArtifactMap, toscaTemplate); - } - } - } - - public static void testVfTosca(Map outputArtifactMap , ToscaTemplate resourceTosca) { - - if (resourceTosca != null) { - Resource resource = new Resource(); - resource.populateModelIdentificationInformation(resourceTosca.getMetadata()); - String resourceNameVersionId = resource.getModelNameVersionId(); - Model resourceAAIModel = - getAAIModelByNameVersionId(resourceNameVersionId, outputArtifactMap); - if (resourceAAIModel != null) { - validateResourceModelMetadata(resource, resourceAAIModel); - //Validate Resource instance base widget - - ModelVer modelVersion = resourceAAIModel.getModelVers().getModelVer().get(0); - - List matchedVFBaseWidgetElements = - getModelElementbyRelationshipValue(modelVersion.getModelElements(), - Widget.getWidget(Widget.Type.VF).getId()); - validateMatchedModelElementsInService(matchedVFBaseWidgetElements, - Widget.getWidget(Widget.Type.VF).getName()); - - validateWidgetIds(matchedVFBaseWidgetElements, Widget.getWidget(Widget.Type.VF).getName(), - Widget.getWidget(Widget.Type.VF).getWidgetId()); - - ModelElements baseResourceWidgetModelElements = - matchedVFBaseWidgetElements.get(0).getModelElements(); - if (resourceTosca.getTopology_template() != null) { - Map groupIdTypeStore = getGroupsTypeStore(resourceTosca); - - if (baseResourceWidgetModelElements.getModelElement().size() != - groupIdTypeStore.size()) { - org.testng.Assert.fail("Missing VFModule in VF model.xml"); - } - - for (String key : groupIdTypeStore.keySet()) { - - List matchedResourceElements = - getModelElementbyRelationshipValue(baseResourceWidgetModelElements, key); - validateMatchedModelElementsInService(matchedResourceElements, - Widget.getWidget(Widget.Type.VFMODULE).getName()); - Model resourceAAIVFModel = getAAIModelByNameVersionId(key, outputArtifactMap); - Map vfModuleModelMetadata = - getVFModuleMetadataTosca(resourceTosca, key); - Map vfModuleMembers = getVFModuleMembersTosca(resourceTosca, key); - - validateVFModelMetadata(vfModuleModelMetadata, resourceAAIVFModel); - - - ModelVer modelVfVersion = resourceAAIVFModel.getModelVers().getModelVer().get(0); - - List matchedVFModuleBaseWidgetElements = - getModelElementbyRelationshipValue(modelVfVersion.getModelElements(), - Widget.getWidget(Widget.Type.VFMODULE).getId()); - validateMatchedModelElementsInService(matchedVFModuleBaseWidgetElements, - Widget.getWidget(Widget.Type.VFMODULE).getName()); - validateWidgetIds(matchedVFModuleBaseWidgetElements, Widget.getWidget(Widget.Type.VFMODULE) - .getName(), Widget.getWidget(Widget.Type.VFMODULE).getWidgetId()); - - ModelElements baseResourceVFModuleWidgetModelElements = - matchedVFModuleBaseWidgetElements.get(0).getModelElements(); - if (vfModuleMembers.containsKey("l3-network")) { - //Validate l3 - List matchedL3NetworkElements = - getModelElementbyRelationshipValue(baseResourceVFModuleWidgetModelElements, - Widget.getWidget(Widget.Type.L3_NET).getId()); - validateMatchedModelElementsInService(matchedL3NetworkElements, - Widget.getWidget(Widget.Type.L3_NET).getName()); - validateWidgetIds(matchedL3NetworkElements, Widget.getWidget(Widget.Type.L3_NET) - .getName(), Widget.getWidget(Widget.Type.L3_NET).getWidgetId()); - } - if (vfModuleMembers.containsKey("vserver")) { - //Validate vserver - List matchedVserverElements = - getModelElementbyRelationshipValue(baseResourceVFModuleWidgetModelElements, - Widget.getWidget(Widget.Type.VSERVER).getId()); - validateMatchedModelElementsInService(matchedVserverElements, - Widget.getWidget(Widget.Type.VSERVER).getName()); - ModelElements vserverWidgetModelElements = - matchedVserverElements.get(0).getModelElements(); - - validateWidgetIds(matchedVserverElements, Widget.getWidget(Widget.Type.VSERVER) - .getName(), Widget.getWidget(Widget.Type.VSERVER).getWidgetId()); - - - //Validate vserver->vfc - List matchedVfcElements = - getModelElementbyRelationshipValue(vserverWidgetModelElements, - Widget.getWidget(Widget.Type.VFC).getId()); - validateMatchedModelElementsInService(matchedVfcElements, - Widget.getWidget(Widget.Type.VFC).getName()); - validateWidgetIds(matchedVfcElements, Widget.getWidget(Widget.Type.VFC).getName(), - Widget.getWidget(Widget.Type.VFC).getWidgetId()); - - //Validate vserver->Image - List matchedImageElements = - getModelElementbyRelationshipValue(vserverWidgetModelElements, - Widget.getWidget(Widget.Type.IMAGE).getId()); - validateMatchedModelElementsInService(matchedImageElements, - Widget.getWidget(Widget.Type.IMAGE).getName()); - validateWidgetIds(matchedImageElements, Widget.getWidget(Widget.Type.IMAGE) - .getName(), Widget.getWidget(Widget.Type.IMAGE).getWidgetId()); - - - //Validate vserver->Flavor - List matchedFlavorElements = - getModelElementbyRelationshipValue(vserverWidgetModelElements, - Widget.getWidget(Widget.Type.FLAVOR).getId()); - validateMatchedModelElementsInService(matchedFlavorElements, - Widget.getWidget(Widget.Type.FLAVOR).getName()); - validateWidgetIds(matchedFlavorElements, Widget.getWidget(Widget.Type.FLAVOR).getName(), - Widget.getWidget(Widget.Type.FLAVOR).getWidgetId()); - - //Validate vserver->Tenant - List matchedTenantElements = - getModelElementbyRelationshipValue(vserverWidgetModelElements, - Widget.getWidget(Widget.Type.TENANT).getId()); - validateMatchedModelElementsInService(matchedTenantElements, - Widget.getWidget(Widget.Type.TENANT).getName()); - validateWidgetIds(matchedTenantElements, Widget.getWidget(Widget.Type.TENANT).getName(), - Widget.getWidget(Widget.Type.TENANT).getWidgetId()); - - //Validate vserver->l-interface - if (vfModuleMembers.containsKey("l-interface")) { - List matchedLinterfaceElements = - getModelElementbyRelationshipValue(vserverWidgetModelElements, - Widget.getWidget(Widget.Type.LINT).getId()); - validateMatchedModelElementsInService(matchedLinterfaceElements, - Widget.getWidget(Widget.Type.LINT).getName()); - validateWidgetIds(matchedLinterfaceElements, Widget.getWidget(Widget.Type.LINT).getName(), - Widget.getWidget(Widget.Type.LINT).getWidgetId()); - } - //Validate vserver->volume - if (vfModuleMembers.containsKey("volume")) { - List matchedVolumeElements = - getModelElementbyRelationshipValue(vserverWidgetModelElements, - Widget.getWidget(Widget.Type.VOLUME).getId()); - validateMatchedModelElementsInService(matchedVolumeElements, - Widget.getWidget(Widget.Type.VOLUME).getName()); - validateWidgetIds(matchedVolumeElements, Widget.getWidget(Widget.Type.VOLUME).getName(), - Widget.getWidget(Widget.Type.VOLUME).getWidgetId()); - } - } - } - } - } else { - System.out.println(RESOURCE_MAPPING_NOT_FOUND + resourceNameVersionId); - } - } - } - - public static void testAllottedResourceTosca(Map outputArtifactMap , ToscaTemplate - resourceTosca) { - - if (resourceTosca != null) { - Resource resource = new Resource(); - resource.populateModelIdentificationInformation(resourceTosca.getMetadata()); - String resourceNameVersionId = resource.getModelNameVersionId(); - Model resourceAAIModel = - getAAIModelByNameVersionId(resourceNameVersionId, outputArtifactMap); - if (resourceAAIModel != null) { - validateResourceModelMetadata(resource, resourceAAIModel); - //Validate Resource instance base widget - - ModelVer modelVersion = resourceAAIModel.getModelVers().getModelVer().get(0); - - List matchedVFBaseWidgetElements = - getModelElementbyRelationshipValue(modelVersion.getModelElements(), - Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getId()); - validateMatchedModelElementsInService(matchedVFBaseWidgetElements, - Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getName()); - - validateWidgetIds(matchedVFBaseWidgetElements, Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getName(), - Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getWidgetId()); - - validateWidgetIds(matchedVFBaseWidgetElements, Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getName(), - Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getWidgetId()); - - Map providingServiceDetails = getProvidingServiceDetails(resourceTosca); - - ModelElements containedModelElements = modelVersion.getModelElements().getModelElement(). - get(0).getModelElements(); - - org.testng.Assert.assertEquals(containedModelElements.getModelElement().get(0).getRelationshipList() - .getRelationship().get(0).getRelationshipData().get(0).getRelationshipValue(), - providingServiceDetails.get("providing_service_uuid")); - - org.testng.Assert.assertEquals(containedModelElements.getModelElement().get(0).getRelationshipList() - .getRelationship().get(0).getRelationshipData().get(1).getRelationshipValue(), - providingServiceDetails.get("providing_service_invariant_uuid")); - - - if("Allotted Resource".equals(resourceTosca.getMetadata().get(CATEGORY)) && - "Tunnel XConnect".equals(resourceTosca.getMetadata().get("subcategory"))) { - - List matchedTunnelXConnectWidgetElements = - getModelElementbyRelationshipValue(containedModelElements, - Widget.getWidget(Widget.Type.TUNNEL_XCONNECT).getId()); - validateMatchedModelElementsInService(matchedTunnelXConnectWidgetElements, - Widget.getWidget(Widget.Type.TUNNEL_XCONNECT).getName()); - - validateWidgetIds(matchedTunnelXConnectWidgetElements, Widget.getWidget(Widget.Type.TUNNEL_XCONNECT).getName(), - Widget.getWidget(Widget.Type.TUNNEL_XCONNECT).getWidgetId()); - } - - }else { - System.out.println(RESOURCE_MAPPING_NOT_FOUND + resourceNameVersionId); - } - } - } - - public static Map getProvidingServiceDetails(ToscaTemplate resourceTemplate) { - Set keys = resourceTemplate.getTopology_template().getNode_templates().keySet(); - - Map nodeProperties =null; - for(String key : keys) { - NodeTemplate node = resourceTemplate.getTopology_template().getNode_templates().get(key); - if(node.getType().contains("org.openecomp.resource.vfc") && - node.getMetadata().get(CATEGORY).equals("Allotted Resource")) { - nodeProperties = node.getProperties(); - } - } - - return nodeProperties; - } - - public static void testL3NetworkResourceTosca(Map outputArtifactMap , ToscaTemplate - resourceTosca) { - - if (resourceTosca != null) { - Resource resource = new Resource(); - resource.populateModelIdentificationInformation(resourceTosca.getMetadata()); - String resourceNameVersionId = resource.getModelNameVersionId(); - Model resourceAAIModel = - getAAIModelByNameVersionId(resourceNameVersionId, outputArtifactMap); - if (resourceAAIModel != null) { - validateResourceModelMetadata(resource, resourceAAIModel); - //Validate Resource instance base widget - - ModelVer modelVersion = resourceAAIModel.getModelVers().getModelVer().get(0); - - List matchedVFBaseWidgetElements = - getModelElementbyRelationshipValue(modelVersion.getModelElements(), - Widget.getWidget(Widget.Type.L3_NET).getId()); - validateMatchedModelElementsInService(matchedVFBaseWidgetElements, - Widget.getWidget(Widget.Type.L3_NET).getName()); - - validateWidgetIds(matchedVFBaseWidgetElements, Widget.getWidget(Widget.Type.L3_NET).getName(), - Widget.getWidget(Widget.Type.L3_NET).getWidgetId()); - - }else { - System.out.println(RESOURCE_MAPPING_NOT_FOUND + resourceNameVersionId); - } - } - } - - public static void testServiceTosca(Map outputArtifactMap,List - toscas) { - - ToscaTemplate serviceTosca = getServiceTosca(toscas); - if (serviceTosca == null) { - org.testng.Assert.fail("Service Tosca not found"); - } - serviceTosca.getMetadata().put("version", additionalParams.get(AdditionalParams - .ServiceVersion.getName())); - Service service = new Service(); - service.populateModelIdentificationInformation(serviceTosca.getMetadata()); - String serviceNameVersionId = service.getModelNameVersionId(); - Model serviceAAIModel = getAAIModelByNameVersionId(serviceNameVersionId, outputArtifactMap); - validateServiceModelMetadata(service, serviceAAIModel); - //Validate Service instance base widget - ModelVer modelVersion = serviceAAIModel.getModelVers().getModelVer().get(0); - - List matchedServiceBaseWidgetElements = - getModelElementbyRelationshipValue( modelVersion.getModelElements(), - Widget.getWidget(Widget.Type.SERVICE).getId()); - validateMatchedModelElementsInService(matchedServiceBaseWidgetElements, - Widget.getWidget(Widget.Type.SERVICE).getName()); - - validateWidgetIds(matchedServiceBaseWidgetElements, Widget.getWidget(Widget.Type.SERVICE).getName(), - Widget.getWidget(Widget.Type.SERVICE).getWidgetId()); - - ModelElements baseServiceWidgetModelElements = - matchedServiceBaseWidgetElements.get(0).getModelElements(); - - - Map nodeTemplateIdTypeStore = getNodeTemplateTypeStore(serviceTosca); - if (nodeTemplateIdTypeStore != null) { - for (Map.Entry entry : nodeTemplateIdTypeStore.entrySet()) { - if (entry.getValue().contains("org.openecomp.resource.vf")) { - List matchedResourceElements = - getModelElementbyRelationshipValue(baseServiceWidgetModelElements, entry.getKey()); - if (entry.getValue().contains("org.openecomp.resource.vf.allottedResource")){ - validateMatchedModelElementsInService(matchedResourceElements, - Widget.getWidget(Widget.Type.ALLOTTED_RESOURCE).getName()); - }else { - validateMatchedModelElementsInService(matchedResourceElements, - Widget.getWidget(Widget.Type.VF).getName()); - } - - //Validate uuid and invariantuuid are populated in model-ver.model-version-id and model.model-invariant-id - org.testng.Assert.assertEquals(matchedResourceElements.get(0).getRelationshipList() - .getRelationship().get(0) - .getRelationshipData().get(0).getRelationshipValue(),entry.getKey()); - - org.testng.Assert.assertEquals(matchedResourceElements.get(0).getRelationshipList().getRelationship().get(0) - .getRelationshipData().get(1).getRelationshipValue(), nodeTemplateIdTypeStore - .get(entry.getKey()+ INV_UID)); - } else if(entry.getValue().contains("org.openecomp.resource.vl")){ - //validate l3-network in service tosca - List matchedResourceElements = - getModelElementbyRelationshipValue(baseServiceWidgetModelElements, entry.getKey()); - validateMatchedModelElementsInService(matchedResourceElements, - Widget.getWidget(Widget.Type.L3_NET).getName()); - //Validate uuid and invariantuuid are populated in model-ver.model-version-id and model.model-invariant-id - org.testng.Assert.assertEquals(matchedResourceElements.get(0).getRelationshipList() - .getRelationship().get(0) - .getRelationshipData().get(0).getRelationshipValue(),entry.getKey()); - - org.testng.Assert.assertEquals(matchedResourceElements.get(0).getRelationshipList().getRelationship().get(0) - .getRelationshipData().get(1).getRelationshipValue(), nodeTemplateIdTypeStore - .get(entry.getKey() + INV_UID)); - } - } - } - } - - private static void validateWidgetIds(List matchedServiceBaseWidgetElements, - String widgetName, String widgetInvUuId) { - org.testng.Assert.assertEquals(matchedServiceBaseWidgetElements.get(0).getRelationshipList().getRelationship().get(0) - .getRelationshipData().get(0).getRelationshipValue(), properties.getProperty(ArtifactType.AAI.name() - + ".model-version-id."+ widgetName)); - - org.testng.Assert.assertEquals(matchedServiceBaseWidgetElements.get(0).getRelationshipList().getRelationship().get(0) - .getRelationshipData().get(1).getRelationshipValue(), widgetInvUuId); - } - - - - private static void validateMatchedModelElementsInService(List matchedModelElements, String modelType) { - if (matchedModelElements.isEmpty()) { - Assert.fail(modelType + " not present "); - } - if (matchedModelElements.size() > 1) { - Assert.fail("More than one " + modelType + " present "); - } - } - - private static Map getNodeTemplateTypeStore(ToscaTemplate toscaTemplate) { - if (toscaTemplate.getTopology_template() != null) { - Map nodeTemplateMap = - toscaTemplate.getTopology_template().getNode_templates(); - Map nodeTemplateIdTypeStore = new LinkedHashMap<>(); - if (nodeTemplateMap != null) { - for (Map.Entry e : nodeTemplateMap.entrySet()) { - String uuid = e.getValue().getMetadata().get("resourceUUID"); - if (GeneratorUtil.isEmpty(uuid)) { - uuid = e.getValue().getMetadata().get("UUID"); - if (GeneratorUtil.isEmpty(uuid)) { - Assert.fail("UUID Not found"); - } - } - if(e.getValue().getType().contains("org.openecomp.resource.vf.")&& (e.getValue() - .getMetadata().get(CATEGORY).equals("Allotted Resource"))) - { - e.getValue().setType("org.openecomp.resource.vf.allottedResource"); - } - nodeTemplateIdTypeStore.put(uuid, e.getValue().getType()); - resourcesVersion.put(uuid,e.getValue().getMetadata().get - ("version")); - //Populate invraintUuId for V9 - String invUuId = e.getValue().getMetadata().get("invariantUUID"); - nodeTemplateIdTypeStore.put(uuid + INV_UID , invUuId); - } - } - return nodeTemplateIdTypeStore; - } else { - return null; - } - } - - - private static Map getGroupsTypeStore(ToscaTemplate toscaTemplate) { - if(toscaTemplate.getTopology_template() !=null) { - Map groupDefinitionMap = toscaTemplate.getTopology_template().getGroups(); - Map groupDefinitionIdTypeStore = new LinkedHashMap<>(); - if (groupDefinitionMap != null) { - for (Map.Entry e : groupDefinitionMap.entrySet()) { - if (e.getValue().getType().contains(VF_MODULE_NAMESPACE)) { - String uuid = e.getValue().getMetadata().get("vfModuleModelUUID"); - if (GeneratorUtil.isEmpty(uuid)) { - uuid = e.getValue().getMetadata().get("UUID"); - if (GeneratorUtil.isEmpty(uuid)) - Assert.fail("UUID Not found"); - } - groupDefinitionIdTypeStore.put(uuid, e.getValue().getType()); - } - } - } - return groupDefinitionIdTypeStore; - } - else { - return null; - } - } - - private static void validateServiceModelMetadata(Service serviceToscaModel, Model generatedAAIModel) { - Assert.assertEquals(serviceToscaModel.getModelNameVersionId(), generatedAAIModel - .getModelVers().getModelVer().get(0).getModelVersionId()); - Assert.assertEquals(serviceToscaModel.getModelId(), generatedAAIModel.getModelInvariantId()); - Assert.assertEquals(serviceToscaModel.getModelName(), generatedAAIModel.getModelVers() - .getModelVer().get(0).getModelName()); - Assert.assertEquals(serviceToscaModel.getModelVersion(), generatedAAIModel.getModelVers() - .getModelVer().get(0).getModelVersion()); - Assert.assertEquals(serviceToscaModel.getModelDescription(), generatedAAIModel.getModelVers() - .getModelVer().get(0).getModelDescription()); - } - - private static void validateResourceModelMetadata(Resource resouerceToscaModel, Model generatedAAIModel) { - Assert.assertEquals(resouerceToscaModel.getModelNameVersionId(), generatedAAIModel - .getModelVers().getModelVer().get(0).getModelVersionId()); - Assert.assertEquals(resouerceToscaModel.getModelId(), generatedAAIModel.getModelInvariantId()); - Assert.assertEquals(resouerceToscaModel.getModelName(), generatedAAIModel.getModelVers() - .getModelVer().get(0).getModelName()); - Assert.assertEquals(resouerceToscaModel.getModelVersion(), generatedAAIModel.getModelVers() - .getModelVer().get(0).getModelVersion()); - Assert.assertEquals(resouerceToscaModel.getModelDescription(), generatedAAIModel.getModelVers() - .getModelVer().get(0).getModelDescription()); - } - - private static void validateVFModelMetadata(Map vfModuleModelMetadata, Model generatedAAIModel) { - Assert.assertEquals(vfModuleModelMetadata.get("vfModuleModelUUID"), generatedAAIModel - .getModelVers().getModelVer().get(0).getModelVersionId()); - Assert.assertEquals(vfModuleModelMetadata.get("vfModuleModelInvariantUUID"), generatedAAIModel.getModelInvariantId()); - Assert.assertEquals(vfModuleModelMetadata.get("vfModuleModelName"), generatedAAIModel.getModelVers() - .getModelVer().get(0).getModelName()); - Assert.assertEquals(vfModuleModelMetadata.get("vfModuleModelVersion"), generatedAAIModel.getModelVers() - .getModelVer().get(0).getModelVersion()); - Assert.assertEquals(vfModuleModelMetadata.get(VF_MODULE_DESCRIPTION), generatedAAIModel.getModelVers() - .getModelVer().get(0).getModelDescription()); - - } - - private static Model getAAIModelByNameVersionId(String nameVersionId, - Map outputArtifactMap) { - return outputArtifactMap.get(nameVersionId); - } - - private static List getModelElementbyRelationshipValue(ModelElements modelElements, - String relationshipValue) { - List matchedModelElements = new ArrayList<>(); - if (modelElements != null) { - List modelElementList = modelElements.getModelElement(); - for (ModelElement element : modelElementList) { - List relationshipList = element.getRelationshipList().getRelationship(); - for (Relationship r : relationshipList) { - List relationshipDataList = r.getRelationshipData(); - for (RelationshipData relationshipData : relationshipDataList) { - if (relationshipData.getRelationshipValue().equals(relationshipValue)) - matchedModelElements.add(element); - } - } - } - } - return matchedModelElements; - } - - public static void populateAAIGeneratedModelStore(Map outputArtifactMap,List resultData) throws JAXBException { - for (Artifact outputArtifact : resultData) { - if (outputArtifact.getType().equals(ArtifactType.MODEL_INVENTORY_PROFILE.name())) { - byte[] decodedPayload = GeneratorUtil.decoder(outputArtifact.getPayload()); - Model aaiModel = getUnmarshalledArtifactModel(new String(decodedPayload)); - outputArtifactMap.put(aaiModel.getModelVers().getModelVer().get(0).getModelVersionId(), aaiModel); - } - } - } - - private static Model getUnmarshalledArtifactModel(String aaiModel) throws JAXBException { - JAXBContext jaxbContext; - - jaxbContext = JAXBContext.newInstance(Model.class); - Unmarshaller unmarshaller = jaxbContext.createUnmarshaller(); - - try (InputStream aaiModelStream = new ByteArrayInputStream(aaiModel.getBytes())) { - return (Model) unmarshaller.unmarshal(aaiModelStream); - } catch (IOException ignored) { /* ignore */ } - throw new RuntimeException("could not resolve artifact model"); - } - - /** - * Identify the service tosca artifact from the list of translated tosca inputs - * - * @param input List of translated {@link ToscaTemplate tosca} object models - * @return Identified service {@link ToscaTemplate tosca} - */ - private static ToscaTemplate getServiceTosca(List input) { - Iterator iter = input.iterator(); - while (iter.hasNext()) { - ToscaTemplate tosca = iter.next(); - if (tosca.isService()) { - iter.remove(); - return tosca; - } - } - return null; - } - - - private static Map getVFModuleMetadataTosca(ToscaTemplate toscaTemplate, String vfModuleModelUUID) { - Map groupDefinitionMap = toscaTemplate.getTopology_template().getGroups(); - Map vfModuleModelMetadata = new LinkedHashMap<>(); - for (Map.Entry e : groupDefinitionMap.entrySet()) { - if (e.getValue().getType().contains(VF_MODULE_NAMESPACE)) { - String uuid = e.getValue().getMetadata().get("vfModuleModelUUID"); - if (uuid == vfModuleModelUUID) { - vfModuleModelMetadata = e.getValue().getMetadata(); - vfModuleModelMetadata.put(VF_MODULE_DESCRIPTION, (String) e.getValue().getProperties().get(VF_MODULE_DESCRIPTION)); - } - } - } - return vfModuleModelMetadata; - } - - private static Map getVFModuleMembersTosca(ToscaTemplate toscaTemplate, String vfModuleModelUUID) { - Map groupDefinitionMap = toscaTemplate.getTopology_template().getGroups(); - Map nodeTemplateMaps = toscaTemplate.getTopology_template().getNode_templates(); - Map vfModuleMembers = new LinkedHashMap<>(); - List vfModuleModelMetadata; - for (Map.Entry e : groupDefinitionMap.entrySet()) { - if (e.getValue().getType().contains(VF_MODULE_NAMESPACE)) { - String uuid = e.getValue().getMetadata().get("vfModuleModelUUID"); - if (uuid == vfModuleModelUUID) { - vfModuleModelMetadata = e.getValue().getMembers(); - Iterator itr = vfModuleModelMetadata.iterator(); - while (itr.hasNext()) { - Object obj= itr.next(); - NodeTemplate nodeTemplate = nodeTemplateMaps.get(obj); - String nodetype = null; - if (nodeTemplate != null) - nodetype = nodeTemplate.getType(); - if (nodetype != null) { - String widgetType = membersType(nodetype); - if (widgetType != null) - vfModuleMembers.put(widgetType, obj); - } - } - - } - } - } - - return vfModuleMembers; - } - - - private static String membersType(String toscaType) { - String modelToBeReturned = null; - while (toscaType != null && toscaType.lastIndexOf('.') != -1 && modelToBeReturned == null) { - - switch (toscaType) { - - case "org.openecomp.resource.vfc": - modelToBeReturned = "vserver"; - break; - case "org.openecomp.resource.cp": - case "org.openecomp.cp": - modelToBeReturned = "l-interface"; - break; - case "org.openecomp.resource.vl": - modelToBeReturned = "l3-network"; - break; - case "org.openecomp.resource.vf": - modelToBeReturned = "generic-vnf"; - break; - case VF_MODULE_NAMESPACE: - modelToBeReturned = "vf-module"; - break; - case "org.openecomp.resource.vfc.nodes.heat.cinder": - modelToBeReturned = "volume"; - break; - default: - modelToBeReturned = null; - break; - } - - toscaType = toscaType.substring(0, toscaType.lastIndexOf(".")); - } - return modelToBeReturned; - } -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/java/org/openecomp/sdc/generator/SampleJUnitTest.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/java/org/openecomp/sdc/generator/SampleJUnitTest.java deleted file mode 100644 index 089d773f94..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/java/org/openecomp/sdc/generator/SampleJUnitTest.java +++ /dev/null @@ -1,1594 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.generator; - -import org.openecomp.sdc.generator.aai.model.Widget; -import org.openecomp.sdc.generator.aai.tosca.ToscaTemplate; -import org.openecomp.sdc.generator.aai.xml.Model; -import org.openecomp.sdc.generator.data.*; -import org.openecomp.sdc.generator.impl.ArtifactGenerationServiceImpl; - -import junit.framework.TestCase; -import org.junit.Assert; -import org.junit.Test; - -import java.io.*; -import java.util.*; - -import static org.openecomp.sdc.generator.ArtifactGenerationServiceTest.*; -import static org.openecomp.sdc.generator.data.GeneratorConstants.*; - -public class SampleJUnitTest extends TestCase { - - private static final String AAI_ARTIFACT_TYPE = ArtifactType.AAI.name(); - private static final String AAI_ARTIFACT_GROUP_TYPE = GroupType.DEPLOYMENT.name(); - private static final String GENERATOR_CONFIG = "{\"artifactTypes\": [\"OTHER\",\"AAI\"]}"; - private static final String ARTIFACT_GENERATOR_CONFIG = "artifactgenerator.config"; - private static final String CONFIG_PATH = "/qa-test-repo/jmeter3/apache-jmeter-3" + - ".0/lib/junit/"; - private static final String GENERATOR_AAI_CONFIGLPROP_NOT_FOUND = - "Cannot generate artifacts. Widget configuration not found for %s"; - private static final String GENERATOR_AAI_CONFIGFILE_NOT_FOUND = - "Cannot generate artifacts. Artifact Generator Configuration file not found at %s"; - private static final String GENERATOR_AAI_CONFIGLOCATION_NOT_FOUND = - "Cannot generate artifacts. artifactgenerator.config system property not configured"; - private static final String INVALID_VALUE_INVARIANT = - "Invalid value for mandatory attribute in Artifact"; - private static final String INVALID_VALUE_UUID = - "Invalid value for mandatory attribute in Artifact:"; - static final Map additionalParams = new HashMap<>(); - public static final String ARTIFACT_GENERATOR_PROPERTIES = "Artifact-Generator.properties"; - public static final String VF_VMME_TEMPLATE_NO_SYSTEM_PROP_CONFIGURED_YML = "vf_vmme_template_NoSystemPropConfigured.yml"; - public static final String SERVICE_VMME_TEMPLATE_NO_SYSTEM_PROP_CONFIGURED_YML = "service_vmme_template_NoSystemPropConfigured.yml"; - - static{ - additionalParams.put(AdditionalParams.ServiceVersion.getName(),"1.0"); - } - - public SampleJUnitTest(String name) throws IOException { - super(name); - System.setProperty(ARTIFACT_GENERATOR_CONFIG,CONFIG_PATH + ARTIFACT_GENERATOR_PROPERTIES); - loadConfig(ArtifactGenerationServiceTest.properties); - } - - private void loadConfig(Properties properties) throws IOException { - String configLocation = System.getProperty(ARTIFACT_GENERATOR_CONFIG); - if (configLocation != null) { - File file = new File(configLocation); - if (file.exists()) { - - try (InputStream fis = new FileInputStream(file)) { - properties.load(fis); - } - } - } - } - - public SampleJUnitTest() { - super(); - System.setProperty(ARTIFACT_GENERATOR_CONFIG,CONFIG_PATH + ARTIFACT_GENERATOR_PROPERTIES); - } - - @Test - public void testArtifactGenerationSingleVFSingleVFModule() { - try { - List inputArtifacts = new ArrayList(); - readPayloadFromResource(inputArtifacts, "vf_vmme_template_SingleVFVFMod.yml"); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_SingleVFVFMod.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap, resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap, toscas); - - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(5, data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationMissingVFInServiceTOSCA() { - try { - List inputArtifacts = new ArrayList(); - readPayloadFromResource(inputArtifacts, "service_vmme_template_MissingVFInServiceTOSCA.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap, resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap, toscas); - - Assert.assertEquals(3, data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationVerifySameStaticWidgetsForAllServices() { - try { - List inputArtifacts = new ArrayList(); - readPayloadFromResource(inputArtifacts, "vf_vmme_template_SameWidgets1.yml"); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_SameWidget1.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap, resultData); - - removeMockArtifact(data.getResultData().iterator()); - - - List inputArtifacts2 = new ArrayList(); - readPayloadFromResource(inputArtifacts2, "vf_vmme_template_SameWidgets2.yml"); - - readPayloadFromResource(inputArtifacts2, "service_vmme_template_SameWidget2.yml"); - ArtifactGenerationServiceImpl obj2 = new ArtifactGenerationServiceImpl(); - - GenerationData data2 = obj2.generateArtifact(inputArtifacts2, GENERATOR_CONFIG,additionalParams); - List resultData2 = data2.getResultData(); - - List toscas2 = new LinkedList(); - - for (Artifact inputArtifact : inputArtifacts2) { - toscas2.add(getToscaModel(inputArtifact)); - } - - Map outputArtifactMap2 = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap2, resultData2); - removeMockArtifact(data2.getResultData().iterator()); - - Map map = new HashMap<>(); - Iterator itr = data.getResultData().iterator(); - while(itr.hasNext()){ - Artifact artifact=itr.next(); - if(artifact.getLabel().contains("AAI-widget")){ - map.put(artifact.getName(),artifact.getChecksum()); - } - } - Map map2 = new HashMap<>(); - Iterator itr2 = data2.getResultData().iterator(); - while(itr2.hasNext()){ - Artifact artifact=itr2.next(); - if(artifact.getLabel().contains("AAI-widget")){ - map2.put(artifact.getName(),artifact.getChecksum()); - } - } - Assert.assertEquals(map.size(),map2.size()); - for(Map.Entry entry : map.entrySet()){ - Assert.assertEquals(entry.getValue(), map2.get(entry.getKey())); - } - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationMulVFModule() { - try { - List inputArtifacts = new ArrayList(); - readPayloadFromResource(inputArtifacts, "vf_vmme_template_MulVFVFMod.yml"); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_MulVFVFMod.yml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(3,data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationMulVFs() { - try { - List inputArtifacts = new ArrayList(); - - readPayloadFromResource(inputArtifacts, "CMAUI_VF.yaml"); - - readPayloadFromResource(inputArtifacts, "ECA_OAM_VF.yaml"); - - readPayloadFromResource(inputArtifacts, "MMSC_Sevice_07_25_16.yaml"); - - readPayloadFromResource(inputArtifacts, "MMSC_VF.yaml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(8,data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationDupVFUUID() { - try { - List inputArtifacts = new ArrayList(); - readPayloadFromResource(inputArtifacts, "vf_vmme_template_DupVFUUID.yml"); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_DupVFUUID.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(5,data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationDupVFModUUID() { - try { - List inputArtifacts = new ArrayList(); - readPayloadFromResource(inputArtifacts, "vf_vmme_template_DupVFModUUID.yml"); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_DupVFModUUID.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(5,data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationVerifyVFModWithoutVNFC() { - try { - List inputArtifacts = new ArrayList(); - readPayloadFromResource(inputArtifacts, "vf_vmme_template_VerifyVFModWithoutVNFC.yml"); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_VerifyVFModWithoutVNFC.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(5,data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationVerifyVFModWithInvalidMember() { - try { - List inputArtifacts = new ArrayList(); - readPayloadFromResource(inputArtifacts, "vf_vmme_template_VerifyVFModWithInvalidNo.yml"); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_VerifyVFModWithInvalidNo.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(5,data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationNullFields() { - try { - List inputArtifacts = new ArrayList(); - readPayloadFromResource(inputArtifacts, "vf_vmme_template_NullFields.yml"); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_NullFields.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - Assert.assertEquals(false,data.getErrorData().isEmpty()); - - Assert.assertEquals("Invalid Service/Resource definition mandatory attribute missing in Artifact: <"+inputArtifacts.get(0).getName()+">",data.getErrorData().get("AAI").get(0)); - - Assert.assertEquals(2,data.getResultData().size()); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationInCorrectYmlFormat() { - try { - List inputArtifacts = new ArrayList(); - - readPayloadFromResource(inputArtifacts, "CMAUI_VFInvalidFormat.yaml"); - - readPayloadFromResource(inputArtifacts, "ECA_OAM_VFInvalidFormat.yaml"); - - readPayloadFromResource(inputArtifacts, "MMSC_Sevice_07_25_16InvalidFormat.yaml"); - - readPayloadFromResource(inputArtifacts, "MMSC_VFInvalidFormat.yaml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - Assert.assertEquals(false,data.getErrorData().isEmpty()); - - Assert.assertEquals("Invalid format for Tosca YML : "+inputArtifacts.get(1).getName(),data.getErrorData().get("AAI").get(0)); - - Assert.assertEquals(2,data.getResultData().size()); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationMulComp() { - try { - List inputArtifacts = new ArrayList(); - readPayloadFromResource(inputArtifacts, "vf_vmme_template_MulComp.yml"); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_MulComp.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(5,data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationOrphan() { - try { - List inputArtifacts = new ArrayList(); - - readPayloadFromResource(inputArtifacts, "vf_vmme_template_Orphan.yml"); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_Orphan.yml"); - - readPayloadFromResource(inputArtifacts, "ECA_OAM_VFOrphan.yaml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(5,data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationMissingVFTemplate() { - try { - List inputArtifacts = new ArrayList(); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_MissingVFTemplate.yml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); - - - Assert.assertEquals(3,data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationMissingVFModule() { - try { - List inputArtifacts = new ArrayList(); - - readPayloadFromResource(inputArtifacts, "CMAUI_VFMissingVFModule.yaml"); - - readPayloadFromResource(inputArtifacts, "ECA_OAM_VFMissingVFModule.yaml"); - - readPayloadFromResource(inputArtifacts, "MMSC_Sevice_07_25_16MissingVFModule.yaml"); - - readPayloadFromResource(inputArtifacts, "MMSC_VFMissingVFModule.yaml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(8,data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationEmptyArtifact() { - try { - List inputArtifacts = new ArrayList(); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - Assert.assertEquals(false,data.getErrorData().isEmpty()); - Assert.assertEquals("Service tosca missing from list of input artifacts",data.getErrorData().get("AAI").get(0)); - - Assert.assertEquals(2,data.getResultData().size()); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationMissingConfigFile() { - try { - List inputArtifacts = new ArrayList(); - - readPayloadFromResource(inputArtifacts, "vf_vmme_template_SingleVFVFMod.yml"); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_SingleVFVFMod.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - - GenerationData data = obj.generateArtifact(inputArtifacts, "",additionalParams); - Assert.assertEquals(false,data.getErrorData().isEmpty()); - Assert.assertEquals("Invalid Client Configuration",data.getErrorData().get("ARTIFACT_GENERATOR_INVOCATION_ERROR").get(0)); - - Assert.assertEquals(0,data.getResultData().size()); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - - @Test - public void testArtifactGenerationWithNodeTemplates() { - try { - List inputArtifacts = new ArrayList(); - - readPayloadFromResource(inputArtifacts, "ServiceWithNodetemplate.yml"); - - readPayloadFromResource(inputArtifacts, "Resource0-template.yml"); - - readPayloadFromResource(inputArtifacts, "Resource1-template.yml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(5,data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationWithoutNodeTemplates() { - try { - List inputArtifacts = new ArrayList(); - - readPayloadFromResource(inputArtifacts, "Service0-template.yml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); - - - Assert.assertEquals(3,data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationWithArtifactNameAndDescMoreThan256() { - try { - List inputArtifacts = new ArrayList(); - - readPayloadFromResource(inputArtifacts, "Service0-templateMoreThan256.yml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); - - - Assert.assertEquals(3,data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - for(Artifact artifact : data.getResultData()){ - checkArtifactName(artifact.getName()); - checkArtifactLabel(artifact.getLabel()); - checkArtifactDescription(artifact.getDescription()); - - } - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationWithDifferentVersionOfSameVF() { - try { - List inputArtifacts = new ArrayList(); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_DiffVerOfSameVF.yml"); - - readPayloadFromResource(inputArtifacts, "vf_vmme_template_DiffVerOfSameVF_1.yml"); - - readPayloadFromResource(inputArtifacts, "vf_vmme_template_DiffVerOfSameVF_2.yml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(6,data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationWithDifferentVersionOfSameVFModWithSameInvId() { - try { - List inputArtifacts = new ArrayList(); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_DiffVerOfSameVFModWithSameInvId.yml"); - - readPayloadFromResource(inputArtifacts, "vf_vmme_template_DiffVerOfSameVFModWithSameInvId.yml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(6,data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationWithServiceContainingL3Network() { - try { - List inputArtifacts = new ArrayList(); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_WithL3Network.yml"); - - readPayloadFromResource(inputArtifacts, "vf_vmme_template_WithL3Network.yml"); - - readPayloadFromResource(inputArtifacts, "resource-AllottedResource-template_WithL3Network.yml"); - - readPayloadFromResource(inputArtifacts, "resource-Extvl-template_WithL3Network.yml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(7,data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationWithServiceContainingDupL3Network() { - try { - List inputArtifacts = new ArrayList(); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_WithDupL3Network.yml"); - - readPayloadFromResource(inputArtifacts, "vf_vmme_template_WithDupL3Network.yml"); - - readPayloadFromResource(inputArtifacts, "resource-AllottedResource-template_WithDupL3Network.yml"); - - readPayloadFromResource(inputArtifacts, "resource-Extvl-template_WithDupL3Network.yml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(7,data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationWithL3NetworkInVFMod() { - try { - List inputArtifacts = new ArrayList(); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_WithL3NetworkInVFMod.yml"); - - readPayloadFromResource(inputArtifacts, "vf_vmme_template_WithL3NetworkInVFMod.yml"); - - readPayloadFromResource(inputArtifacts, "resource-AllottedResource-template_WithL3NetworkInVFMod.yml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(6,data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationWithDiffVersionOfSameL3Network() { - try { - List inputArtifacts = new ArrayList(); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_WithDiffVersionOfSameL3Network.yml"); - - readPayloadFromResource(inputArtifacts, "vf_vmme_template_WithDiffVersionOfSameL3Network.yml"); - - readPayloadFromResource(inputArtifacts, "resource-AllottedResource-template_WithDiffVersionOfSameL3Network.yml"); - - readPayloadFromResource(inputArtifacts, "resource-Extvl-template_WithDiffVersionOfSameL3Network.yml"); - - readPayloadFromResource(inputArtifacts, "resource-Extvl-template_1_WithDiffVersionOfSameL3Network.yml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap,resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap,toscas); - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(8,data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationWithInvIdGreaterThanSpecifiedLimit() { - try { - List inputArtifacts = new ArrayList(); - readPayloadFromResource(inputArtifacts, "vf_vmme_template_WithInvIdGreaterThanSpecifiedLimit.yml"); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_WithInvIdGreaterThanSpecifiedLimit.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - Assert.assertEquals(false,data.getErrorData().isEmpty()); - - Assert.assertEquals(INVALID_VALUE_INVARIANT + ": <" +inputArtifacts.get(1).getName()+">",data.getErrorData().get("AAI").get(0)); - - Assert.assertEquals(2,data.getResultData().size()); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationWithInvIdLesserThanSpecifiedLimit() { - try { - List inputArtifacts = new ArrayList(); - readPayloadFromResource(inputArtifacts, "vf_vmme_template_WithInvIdLesserThanSpecifiedLimit.yml"); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_WithInvIdLesserThanSpecifiedLimit.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - Assert.assertEquals(false,data.getErrorData().isEmpty()); - - Assert.assertEquals(INVALID_VALUE_UUID + " <" - +inputArtifacts.get(1).getName()+">",data.getErrorData().get("AAI").get(0)); - - Assert.assertEquals(2,data.getResultData().size()); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - - @Test - public void testErrorWhenNoSystemPropConfigured() { - String configLoc = System.getProperty(ARTIFACT_GENERATOR_CONFIG); - try { - List inputArtifacts = new ArrayList(); - readPayloadFromResource(inputArtifacts, VF_VMME_TEMPLATE_NO_SYSTEM_PROP_CONFIGURED_YML); - - readPayloadFromResource(inputArtifacts, SERVICE_VMME_TEMPLATE_NO_SYSTEM_PROP_CONFIGURED_YML); - - System.clearProperty(ARTIFACT_GENERATOR_CONFIG); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - Assert.assertEquals(false,data.getErrorData().isEmpty()); - Assert.assertEquals(data.getErrorData(). - get("AAI").get(0), GENERATOR_AAI_CONFIGLOCATION_NOT_FOUND); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - finally{ - System.setProperty(ARTIFACT_GENERATOR_CONFIG,configLoc); - } - } - - @Test - public void testErrorWhenNoFileAtConfigLocation() { - String configLoc = System.getProperty(ARTIFACT_GENERATOR_CONFIG); - try { - List inputArtifacts = new ArrayList(); - readPayloadFromResource(inputArtifacts, VF_VMME_TEMPLATE_NO_SYSTEM_PROP_CONFIGURED_YML); - - readPayloadFromResource(inputArtifacts, SERVICE_VMME_TEMPLATE_NO_SYSTEM_PROP_CONFIGURED_YML); - - System.setProperty(ARTIFACT_GENERATOR_CONFIG,configLoc + File.separator + "testErrorWhenNoFileAtConfigLocation"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - Assert.assertEquals(data.getErrorData().isEmpty(),false); - Assert.assertEquals(data.getErrorData().get("AAI").get(0),String.format( - GENERATOR_AAI_CONFIGFILE_NOT_FOUND,System.getProperty - (ARTIFACT_GENERATOR_CONFIG))); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - finally{ - System.setProperty(ARTIFACT_GENERATOR_CONFIG,configLoc); - } - } - - @Test - public void testErrorWhenNoWidgetInConfig() throws IOException { - System.setProperty(ARTIFACT_GENERATOR_CONFIG,CONFIG_PATH+"Artifact-Generator1.properties"); - loadConfig(ArtifactGenerationServiceTest.properties); - try { - List inputArtifacts = new ArrayList(); - readPayloadFromResource(inputArtifacts, VF_VMME_TEMPLATE_NO_SYSTEM_PROP_CONFIGURED_YML); - - readPayloadFromResource(inputArtifacts, SERVICE_VMME_TEMPLATE_NO_SYSTEM_PROP_CONFIGURED_YML); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - String assertMsg = ArtifactType.AAI.name() + ".model-version-id." + Widget.getWidget - (Widget.Type.SERVICE).getName(); - - Assert.assertEquals(false,data.getErrorData().isEmpty()); - String errMsg = String.format(GENERATOR_AAI_CONFIGLPROP_NOT_FOUND,assertMsg); - Assert.assertEquals(data.getErrorData().get("AAI").get(0),errMsg); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } finally { - System.setProperty(ARTIFACT_GENERATOR_CONFIG, CONFIG_PATH + ARTIFACT_GENERATOR_PROPERTIES); - loadConfig(ArtifactGenerationServiceTest.properties); - } - } - - @Test - public void testArtifactGenerationWithUpdatedUUIDInConfig() throws IOException { - try { - List inputArtifacts = new ArrayList(); - readPayloadFromResource(inputArtifacts, "vf_vmme_template_WithUpdatedUUIDInConfig.yml"); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_WithUpdatedUUIDInConfig.yml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - List toscas = new LinkedList(); - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap, resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap, toscas); - testResourceTosca(toscas.iterator(), outputArtifactMap); - - System.setProperty(ARTIFACT_GENERATOR_CONFIG,CONFIG_PATH+"Artifact-Generator2.properties"); - loadConfig(ArtifactGenerationServiceTest.properties); - - List toscas2 = new LinkedList(); - for (Artifact inputArtifact : inputArtifacts) { - toscas2.add(getToscaModel(inputArtifact)); - } - GenerationData data2 = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - Map outputArtifactMap2 = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap2, - data2.getResultData()); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap2, toscas2); - testResourceTosca(toscas2.iterator(), outputArtifactMap2); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } finally { - System.setProperty(ARTIFACT_GENERATOR_CONFIG,CONFIG_PATH + ARTIFACT_GENERATOR_PROPERTIES); - loadConfig(ArtifactGenerationServiceTest.properties); - } - } - - @Test - public void testArtifactGenerationVerifyMandatoryParameterServiceVersion() { - try { - List inputArtifacts = new ArrayList(); - readPayloadFromResource(inputArtifacts, "vf_vmme_template_VerifyMandatoryParameterServiceVersion.yml"); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_VerifyMandatoryParameterServiceVersion.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, new HashMap()); - - Assert.assertEquals(data.getErrorData().isEmpty(),false); - Assert.assertEquals(data.getErrorData().get("AAI").get(0),GENERATOR_AAI_ERROR_MISSING_SERVICE_VERSION); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationVerifyServiceVersionFormat() { - try { - List inputArtifacts = new ArrayList(); - readPayloadFromResource(inputArtifacts, "vf_vmme_template_VerifyServiceVersionFormat.yml"); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_VerifyServiceVersionFormat.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - - additionalParams.put(AdditionalParams.ServiceVersion.getName(),"1"); - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - Assert.assertEquals(data.getErrorData().isEmpty(),false); - Assert.assertEquals(data.getErrorData().get("AAI").get(0),GENERATOR_AAI_INVALID_SERVICE_VERSION); - - additionalParams.put(AdditionalParams.ServiceVersion.getName(),"0.1"); - GenerationData data2 = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, - additionalParams); - Assert.assertEquals(data2.getErrorData().isEmpty(),false); - Assert.assertEquals(data2.getErrorData().get("AAI").get(0), - GENERATOR_AAI_INVALID_SERVICE_VERSION); - - additionalParams.put(AdditionalParams.ServiceVersion.getName(),"0.0"); - GenerationData data3 = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, - additionalParams); - Assert.assertEquals(data3.getErrorData().isEmpty(),false); - Assert.assertEquals(data3.getErrorData().get("AAI").get(0), - GENERATOR_AAI_INVALID_SERVICE_VERSION); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } finally{ - additionalParams.put(AdditionalParams.ServiceVersion.getName(),"1.0"); - } - } - - @Test - public void testArtifactGenerationVerifyServiceVersion() { - try { - List inputArtifacts = new ArrayList(); - readPayloadFromResource(inputArtifacts, "vf_vmme_template_VerifyServiceVersion.yml"); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_VerifyServiceVersion.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - additionalParams.put(AdditionalParams.ServiceVersion.getName(),"9.0"); - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap, resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap, toscas); - - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(5, data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } finally{ - additionalParams.put(AdditionalParams.ServiceVersion.getName(),"1.0"); - } - } - - - @Test - public void testArtifactGenerationVerifyResourceVersionFormat() { - try { - List inputArtifacts = new ArrayList(); - readPayloadFromResource(inputArtifacts, "vf_vmme_template_VerifyResourceVersionFormat.yml"); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_VerifyResourceVersionFormat1.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - - List toscas = new LinkedList(); - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - Assert.assertEquals(data.getErrorData().isEmpty(),false); - Assert.assertEquals(data.getErrorData().get("AAI").get(0), - String.format(GENERATOR_AAI_ERROR_INVALID_RESOURCE_VERSION_IN_SERVICE_TOSCA, - toscas.get(0).getMetadata().get("UUID"))); - - inputArtifacts.remove(1); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_VerifyResourceVersionFormat2.yml"); - GenerationData data2 = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, - additionalParams); - Assert.assertEquals(data2.getErrorData().isEmpty(),false); - Assert.assertEquals(data2.getErrorData().get("AAI").get(0), - String.format(GENERATOR_AAI_ERROR_INVALID_RESOURCE_VERSION_IN_SERVICE_TOSCA, - toscas.get(0).getMetadata().get("UUID"))); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationVerifyMandatoryParameterResourceVersion() { - try { - List inputArtifacts = new ArrayList(); - readPayloadFromResource(inputArtifacts, "vf_vmme_template_VerifyMandatoryParameterResourceVersion.yml"); - - readPayloadFromResource(inputArtifacts, "service_vmme_template_VerifyMandatoryParameterResourceVersion.yml"); - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - Assert.assertEquals(data.getErrorData().isEmpty(),false); - Assert.assertEquals(data.getErrorData().get("AAI").get(0),String.format(GENERATOR_AAI_ERROR_NULL_RESOURCE_VERSION_IN_SERVICE_TOSCA,toscas.get(0).getMetadata().get("UUID"))); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationWithoutAllottedResource() { - try { - List inputArtifacts = new ArrayList(); - - readPayloadFromResource(inputArtifacts, "service-ServiceWithAllottedResourceIpmux-template.yml"); - - readPayloadFromResource(inputArtifacts, "resource-AllottedResource-template_IpMux.yml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - Assert.assertEquals(data.getErrorData().isEmpty(),false); - Assert.assertEquals(data.getErrorData().get("AAI").get(0),String.format - (GENERATOR_AAI_PROVIDING_SERVICE_MISSING, toscas.get(1).getModelId())); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationAllottedResourceIpmuxWithGroups() { - try { - List inputArtifacts = new ArrayList(); - - readPayloadFromResource(inputArtifacts, "service-ServiceWithAllottedResourceIpmux-template_WithGroups.yml"); - - readPayloadFromResource(inputArtifacts, "resource-AllottedResource-template_IpMux_WithGroups.yml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap, resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap, toscas); - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(5, data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationAllottedResourceIpmuxSameInvariantDiffVersion() { - try { - List inputArtifacts = new ArrayList(); - - readPayloadFromResource(inputArtifacts, "service-ServiceWithAllottedResourcesIpMuxSameInvariant-template.yml"); - - readPayloadFromResource(inputArtifacts, "resource-AllottedResource1SameInvariant-IpMux-template.yml"); - - readPayloadFromResource(inputArtifacts, "resource-AllottedResource2SameInvariant-IpMux-template.yml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap, resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap, toscas); - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(5, data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationAllottedResourceIpmuxSameInvariantSameVersion() { - try { - List inputArtifacts = new ArrayList(); - - readPayloadFromResource(inputArtifacts, "service-ServiceWithAllottedResourcesIpMuxSameInvariantSameVers-template.yml"); - - readPayloadFromResource(inputArtifacts, "resource-AllottedResourceSameInvariantSameVers-IpMux-template.yml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap, resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap, toscas); - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(4, data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationAllottedResourceWithIpMuxAndTunnelXConn() { - try { - List inputArtifacts = new ArrayList(); - - readPayloadFromResource(inputArtifacts, "service-Allottedipmux-template.yml"); - - readPayloadFromResource(inputArtifacts, "resource-IpMuxDemux-template.yml"); - - readPayloadFromResource(inputArtifacts, "resource-TunnelXconn-template.yml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap, resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap, toscas); - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(5, data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationAllottedResourceWithOutProvidingServiceId() { - try { - List inputArtifacts = new ArrayList(); - - readPayloadFromResource(inputArtifacts, "service-SdWan-template_WithOutDepSerId.yml"); - - readPayloadFromResource(inputArtifacts, "resource-VhnfNonHeat-template_WithOutDepSerId.yml"); - - readPayloadFromResource(inputArtifacts, "resource-TunnelXconn-template_WithOutDepSerId.yml"); - - readPayloadFromResource(inputArtifacts, "resource-ServiceAdmin-template_WithOutDepSerId.yml"); - - readPayloadFromResource(inputArtifacts, "resource-IpMuxDemux-template_WithOutDepSerId.yml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - Assert.assertEquals(data.getErrorData().isEmpty(),false); - Assert.assertEquals(data.getErrorData().get("AAI").get(0),String.format - (GENERATOR_AAI_PROVIDING_SERVICE_METADATA_MISSING, toscas.get(2).getModelId())); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - @Test - public void testArtifactGenerationAllottedResourceWithVF() { - try { - List inputArtifacts = new ArrayList(); - - readPayloadFromResource(inputArtifacts, "service-SdWan-template_AllRes_VF.yml"); - - readPayloadFromResource(inputArtifacts, "resource-VhnfNonHeat-template_AllRes_VF.yml"); - - readPayloadFromResource(inputArtifacts, "resource-TunnelXconn-template_AllRes_VF.yml"); - - readPayloadFromResource(inputArtifacts, "resource-ServiceAdmin-template_AllRes_VF.yml"); - - readPayloadFromResource(inputArtifacts, "resource-IpMuxDemux-template_AllRes_VF.yml"); - - ArtifactGenerationServiceImpl obj = new ArtifactGenerationServiceImpl(); - List toscas = new LinkedList(); - - GenerationData data = obj.generateArtifact(inputArtifacts, GENERATOR_CONFIG, additionalParams); - for (Artifact inputArtifact : inputArtifacts) { - toscas.add(getToscaModel(inputArtifact)); - } - List resultData = data.getResultData(); - - Map outputArtifactMap = new HashMap<>(); - ArtifactGenerationServiceTest.populateAAIGeneratedModelStore(outputArtifactMap, resultData); - ArtifactGenerationServiceTest.testServiceTosca(outputArtifactMap, toscas); - testResourceTosca(toscas.iterator(), outputArtifactMap); - - Assert.assertEquals(7, data.getResultData().size()); - - removeMockArtifact(data.getResultData().iterator()); - - ArtifactGenerationServiceTest.validateName(data.getResultData()); - } catch (Exception e) { - Assert.fail(e.getMessage()); - } - } - - public static void readPayload(List inputArtifacts,InputStream fis, String fileName) throws IOException { - byte[] payload = new byte[fis.available()]; - fis.read(payload); - String checksum = GeneratorUtil.checkSum(payload); - byte[] encodedPayload = GeneratorUtil.encode(payload); - Artifact artifact = new Artifact(AAI_ARTIFACT_TYPE, AAI_ARTIFACT_GROUP_TYPE, checksum, encodedPayload); - artifact.setName(fileName); - artifact.setLabel(fileName); - artifact.setDescription(fileName); - inputArtifacts.add(artifact); - } - - - /** - * Get the tosca java model from the tosca input artifact - * - * @param input Input tosca file and its metadata information as {@link Artifact} object - * @return Translated {@link ToscaTemplate tosca} object - * @throws SecurityException - */ - public static ToscaTemplate getToscaModel(Artifact input) { - byte[] decodedInput = GeneratorUtil.decoder(input.getPayload()); - String checksum = GeneratorUtil.checkSum(decodedInput); - if (checksum.equals(input.getChecksum())) { - try { - return GeneratorUtil.translateTosca(new String(decodedInput), ToscaTemplate.class); - } catch (Exception e) { - throw new IllegalArgumentException(String.format(GENERATOR_AAI_ERROR_INVALID_TOSCA, input.getName())); - } - } else { - throw new SecurityException(String.format(GENERATOR_AAI_ERROR_CHECKSUM_MISMATCH, input.getName())); - } - } - - public static void removeMockArtifact(Iterator itr) { - while (itr.hasNext()){ - if(itr.next().getType().equals("OTHER")){ - itr.remove(); - } - } - } - - private void readPayloadFromResource(List inputArtifacts, String fileName) throws IOException { - - try (InputStream fis = SampleJUnitTest.class.getResourceAsStream("/" + fileName)) { - readPayload(inputArtifacts, fis, fileName); - } - } -} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/CMAUI_VF.yaml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/CMAUI_VF.yaml deleted file mode 100644 index 72bbca9a61..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/CMAUI_VF.yaml +++ /dev/null @@ -1,92 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: vMMSC VF Topology Template - -metadata: - invariantUUID: dd4f3d68-1223-4a97-127c-11ab729d4da2 # generated by ASDC - UUID: 2a14db52-5116-d3af-1240-1236221cab8d # generated by ASDC - name: CMAUI VF - description: CMAUI MMSC VF - type: VF - category: Mobility - subCategory: MMSC - vendor: Nokia - vendorVersion: 5.0.2.5.37 - - - # reference to template definitions -imports: - - tosca_simple_profile_for_ecomp_1_0.yml - -topology_template: - - # This section provides the parameters which OPENECOMP is not providing values to during instantiation. - # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP - # during the orchestration - - inputes: - - node_templates: - - vCMAUI: # vMMSC VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 0a258d08-2223-4a97-127c-11ab729d2bc3 - UUID: 7214db52-1216-3aaf-1240-a236221ca404 - version: 1.0 - name: vMMC VFC - description: - type: VFC - category: Generic - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 6.0.2.14 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vCMAUI VFC - vfc_image_name: cmaui-5.0.2.5_v37.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - capabilities: - nfv_compute: - properties: - vfc_flavor: cmaui_flavor # from HEAT ENV - scaling: - properties: - min_instances: 2 - max_instances: 2 - - cmaui_oam: - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - - policies: - # Placement policy - - mmsc_anti_affinity_placement_policy: - type: org.openecomp.policy.Placement - - properties: - conatiner_type: compute - policy: anti_affinity - - target: [ vMMSC ] \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/CMAUI_VFInvalidFormat.yaml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/CMAUI_VFInvalidFormat.yaml deleted file mode 100644 index 72bbca9a61..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/CMAUI_VFInvalidFormat.yaml +++ /dev/null @@ -1,92 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: vMMSC VF Topology Template - -metadata: - invariantUUID: dd4f3d68-1223-4a97-127c-11ab729d4da2 # generated by ASDC - UUID: 2a14db52-5116-d3af-1240-1236221cab8d # generated by ASDC - name: CMAUI VF - description: CMAUI MMSC VF - type: VF - category: Mobility - subCategory: MMSC - vendor: Nokia - vendorVersion: 5.0.2.5.37 - - - # reference to template definitions -imports: - - tosca_simple_profile_for_ecomp_1_0.yml - -topology_template: - - # This section provides the parameters which OPENECOMP is not providing values to during instantiation. - # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP - # during the orchestration - - inputes: - - node_templates: - - vCMAUI: # vMMSC VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 0a258d08-2223-4a97-127c-11ab729d2bc3 - UUID: 7214db52-1216-3aaf-1240-a236221ca404 - version: 1.0 - name: vMMC VFC - description: - type: VFC - category: Generic - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 6.0.2.14 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vCMAUI VFC - vfc_image_name: cmaui-5.0.2.5_v37.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - capabilities: - nfv_compute: - properties: - vfc_flavor: cmaui_flavor # from HEAT ENV - scaling: - properties: - min_instances: 2 - max_instances: 2 - - cmaui_oam: - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - - policies: - # Placement policy - - mmsc_anti_affinity_placement_policy: - type: org.openecomp.policy.Placement - - properties: - conatiner_type: compute - policy: anti_affinity - - target: [ vMMSC ] \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/CMAUI_VFMissingVFModule.yaml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/CMAUI_VFMissingVFModule.yaml deleted file mode 100644 index 72bbca9a61..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/CMAUI_VFMissingVFModule.yaml +++ /dev/null @@ -1,92 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: vMMSC VF Topology Template - -metadata: - invariantUUID: dd4f3d68-1223-4a97-127c-11ab729d4da2 # generated by ASDC - UUID: 2a14db52-5116-d3af-1240-1236221cab8d # generated by ASDC - name: CMAUI VF - description: CMAUI MMSC VF - type: VF - category: Mobility - subCategory: MMSC - vendor: Nokia - vendorVersion: 5.0.2.5.37 - - - # reference to template definitions -imports: - - tosca_simple_profile_for_ecomp_1_0.yml - -topology_template: - - # This section provides the parameters which OPENECOMP is not providing values to during instantiation. - # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP - # during the orchestration - - inputes: - - node_templates: - - vCMAUI: # vMMSC VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 0a258d08-2223-4a97-127c-11ab729d2bc3 - UUID: 7214db52-1216-3aaf-1240-a236221ca404 - version: 1.0 - name: vMMC VFC - description: - type: VFC - category: Generic - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 6.0.2.14 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vCMAUI VFC - vfc_image_name: cmaui-5.0.2.5_v37.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - capabilities: - nfv_compute: - properties: - vfc_flavor: cmaui_flavor # from HEAT ENV - scaling: - properties: - min_instances: 2 - max_instances: 2 - - cmaui_oam: - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - - policies: - # Placement policy - - mmsc_anti_affinity_placement_policy: - type: org.openecomp.policy.Placement - - properties: - conatiner_type: compute - policy: anti_affinity - - target: [ vMMSC ] \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VF.yaml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VF.yaml deleted file mode 100644 index 2cbc0e9b86..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VF.yaml +++ /dev/null @@ -1,217 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: vECA VF Topology Template - -metadata: - invariantUUID: 3d4f3d68-d3a3-4f52-127c-ab188c9d4da2 # generated by ASDC - UUID: a2c4dc32-9c16-a3df-d2c0-e5ab221c69f0 # generated by ASDC - name: vECA VF - description: | - Performs intelligent adaptation of Multimedia Messages (MMs), and adaptation of individual media, - such as videos, audio files, images, animations, and text. Sits on the MM1 downlink path and performs - optimization offline. It intercepts the entire media and completes the optimizations before sending - the message to handsets. - type: VF - category: Mobility - subCategory: MMSC - vendor: Nokia - vendorVersion: 13 - - - # reference to template definitions -imports: - - tosca_simple_profile_for_ecomp_1_0.yml - -topology_template: - - # This section provides the parameters which OPENECOMP is not providing values to during instantiation. - # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP - # during the orchestration - - inputs: - - node_templates: - - vECA_OAM: # vECA OAM VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 12243d33-d3a3-4f42-770a-5710009d3baa - UUID: ab08dc12-0716-abcf-13c0-afd4111c69a0 - version: 1.0 - name: vECA_OAM VFC - description: ECA Management - type: VFC - category: Generic_VFC - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 13 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vECA_OAM VFC - vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - capabilities: - nfv_compute: - properties: - vfc_flavor: eca_oam_flavor # from HEAT ENV - scaling: - properties: - min_instances: 2 # set by service designer - max_instances: 2 # set by service designer - - vECA_ARB: # vECA ARB VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 0ab53d33-d3a3-4f42-770a-5710009d301a - UUID: 8808dc12-0716-abcf-23c0-afd4111c60d0 - version: 1.0 - name: vECA_ARB VFC - description: ECA Arbitrator - type: VFC - category: Generic_VFC - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 13 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vECA_ABR VFC - vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - - capabilities: - nfv_compute: - properties: - vfc_flavor: eca_arb_flavor # from HEAT ENV - scaling: - properties: - min_instances: 1 # set by service designer - max_instances: 1 # set by service designer - - # Internal VF Connection Points (VFCs connection points) - - eca_oam_oam: - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - eca_oam_internal: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - eca_arb_oam: - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - eca_arb_internal: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - groups: - - # VF Modules - - VFModuleECA_OAM_Base: - type: org.openecomp.groups.VfModule - - metadata: - vfModuleModelName: vECA::module-0 - vfModuleModelInvariantUUID: 13aba10a-f788-492f-9ea7-7ff91dd05aaa - vfModuleModelUUID: 1230ed1e-4bc7-4fc0-ba7e-cc7af6da7000 - vfModuleModelVersion: 1 - - properties: - vf_module_type: Base # set by service designer - vf_module_description: vECA Base VF Module # set by service designer - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - volume_group: false # from HEAT / service Designer - artifacts: # HEAT Templates - - 099a6909-290f-4293-a347-736f11b8ff18 - - 0db84f21-d298-4a4b-b11e-37b92a734066 - - members: - - vECA_OAM - - vECA_ARB - - eca_arb_internal - - eca_arb_oam - - eca_oam_oam - - eca_oam_internal - policies: - # Placement policy - - mmsc_anti_affinity_placement_policy: - type: org.openecomp.policy.Placement - - properties: - conatiner_type: compute - policy: anti_affinity - - target: [vECA_OAM, vECA_ARB ] \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFInvalidFormat.yaml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFInvalidFormat.yaml deleted file mode 100644 index 5ef3805c30..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFInvalidFormat.yaml +++ /dev/null @@ -1,217 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: vECA VF Topology Template - -metadata: - invariantUUID: 3d4f3d68-d3a3-4f52-127c-ab188c9d4da2 # generated by ASDC - UUID: a2c4dc32-9c16-a3df-d2c0-e5ab221c69f0 # generated by ASDC - name: vECA VF - description: | - Performs intelligent adaptation of Multimedia Messages (MMs), and adaptation of individual media, - such as videos, audio files, images, animations, and text. Sits on the MM1 downlink path and performs - optimization offline. It intercepts the entire media and completes the optimizations before sending - the message to handsets. - type: VF - category: Mobility - subCategory: MMSC - vendor: Nokia - vendorVersion: 13 - - - # reference to template definitions -imports: - - tosca_simple_profile_for_ecomp_1_0.yml - -topology_template: - - # This section provides the parameters which OPENECOMP is not providing values to during instantiation. - # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP - # during the orchestration - - inputs: - - node_templates: - - vECA_OAM: # vECA OAM VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 12243d33-d3a3-4f42-770a-5710009d3baa - UUID: ab08dc12-0716-abcf-13c0-afd4111c69a0 - version: 1.0 - name: vECA_OAM VFC - description: ECA Management - type: VFC - category: Generic_VFC - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 13 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vECA_OAM VFC - vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - capabilities: - nfv_compute: - properties: - vfc_flavor: eca_oam_flavor # from HEAT ENV - scaling: - properties: - min_instances: 2 # set by service designer - max_instances: 2 # set by service designer - - vECA_ARB: # vECA ARB VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 0ab53d33-d3a3-4f42-770a-5710009d301a - UUID: 8808dc12-0716-abcf-23c0-afd4111c60d0 - version: 1.0 - name: vECA_ARB VFC - description: ECA Arbitrator - type: VFC - category: Generic_VFC - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 13 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vECA_ABR VFC - vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - - capabilities: - nfv_compute: - properties: - vfc_flavor: eca_arb_flavor # from HEAT ENV - scaling: - properties: - min_instances: 1 # set by service designer - max_instances: 1 # set by service designer - - # Internal VF Connection Points (VFCs connection points) - - eca_oam_oam: - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - eca_oam_internal: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - eca_arb_oam: - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - eca_arb_internal: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - groups: - - # VF Modules - - VFModuleECA_OAM_Base: - type: org.openecomp.groups.VfModule - - metadata: - vfModuleModelName: vECA::module-0 - vfModuleModelInvariantUUID: 13aba10a-f788-492f-9ea7-7ff91dd05aaa - vfModuleModelUUID: 1230ed1e-4bc7-4fc0-ba7e-cc7af6da7000 - vfModuleModelVersion: 1 - - properties: - vf_module_type: Base # set by service designer - vf_module_description: vECA Base VF Module # set by service designer - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - volume_group: false # from HEAT / service Designer - artifacts: # HEAT Templates - - 099a6909-290f-4293-a347-736f11b8ff18 - - 0db84f21-d298-4a4b-b11e-37b92a734066 - - members: - - vECA_OAM - - vECA_ARB - - eca_arb_internal - - eca_arb_oam - - eca_oam_oam - - eca_oam_internal - policies: - # Placement policy - - mmsc_anti_affinity_placement_policy: - type: org.openecomp.policy.Placement - - properties: - conatiner_type: compute - policy: anti_affinity - - target: [vECA_OAM, vECA_ARB ] \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFMissingVFModule.yaml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFMissingVFModule.yaml deleted file mode 100644 index 2cbc0e9b86..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFMissingVFModule.yaml +++ /dev/null @@ -1,217 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: vECA VF Topology Template - -metadata: - invariantUUID: 3d4f3d68-d3a3-4f52-127c-ab188c9d4da2 # generated by ASDC - UUID: a2c4dc32-9c16-a3df-d2c0-e5ab221c69f0 # generated by ASDC - name: vECA VF - description: | - Performs intelligent adaptation of Multimedia Messages (MMs), and adaptation of individual media, - such as videos, audio files, images, animations, and text. Sits on the MM1 downlink path and performs - optimization offline. It intercepts the entire media and completes the optimizations before sending - the message to handsets. - type: VF - category: Mobility - subCategory: MMSC - vendor: Nokia - vendorVersion: 13 - - - # reference to template definitions -imports: - - tosca_simple_profile_for_ecomp_1_0.yml - -topology_template: - - # This section provides the parameters which OPENECOMP is not providing values to during instantiation. - # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP - # during the orchestration - - inputs: - - node_templates: - - vECA_OAM: # vECA OAM VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 12243d33-d3a3-4f42-770a-5710009d3baa - UUID: ab08dc12-0716-abcf-13c0-afd4111c69a0 - version: 1.0 - name: vECA_OAM VFC - description: ECA Management - type: VFC - category: Generic_VFC - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 13 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vECA_OAM VFC - vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - capabilities: - nfv_compute: - properties: - vfc_flavor: eca_oam_flavor # from HEAT ENV - scaling: - properties: - min_instances: 2 # set by service designer - max_instances: 2 # set by service designer - - vECA_ARB: # vECA ARB VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 0ab53d33-d3a3-4f42-770a-5710009d301a - UUID: 8808dc12-0716-abcf-23c0-afd4111c60d0 - version: 1.0 - name: vECA_ARB VFC - description: ECA Arbitrator - type: VFC - category: Generic_VFC - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 13 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vECA_ABR VFC - vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - - capabilities: - nfv_compute: - properties: - vfc_flavor: eca_arb_flavor # from HEAT ENV - scaling: - properties: - min_instances: 1 # set by service designer - max_instances: 1 # set by service designer - - # Internal VF Connection Points (VFCs connection points) - - eca_oam_oam: - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - eca_oam_internal: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - eca_arb_oam: - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - eca_arb_internal: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - groups: - - # VF Modules - - VFModuleECA_OAM_Base: - type: org.openecomp.groups.VfModule - - metadata: - vfModuleModelName: vECA::module-0 - vfModuleModelInvariantUUID: 13aba10a-f788-492f-9ea7-7ff91dd05aaa - vfModuleModelUUID: 1230ed1e-4bc7-4fc0-ba7e-cc7af6da7000 - vfModuleModelVersion: 1 - - properties: - vf_module_type: Base # set by service designer - vf_module_description: vECA Base VF Module # set by service designer - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - volume_group: false # from HEAT / service Designer - artifacts: # HEAT Templates - - 099a6909-290f-4293-a347-736f11b8ff18 - - 0db84f21-d298-4a4b-b11e-37b92a734066 - - members: - - vECA_OAM - - vECA_ARB - - eca_arb_internal - - eca_arb_oam - - eca_oam_oam - - eca_oam_internal - policies: - # Placement policy - - mmsc_anti_affinity_placement_policy: - type: org.openecomp.policy.Placement - - properties: - conatiner_type: compute - policy: anti_affinity - - target: [vECA_OAM, vECA_ARB ] \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFOrphan.yaml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFOrphan.yaml deleted file mode 100644 index d27bc63c35..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/ECA_OAM_VFOrphan.yaml +++ /dev/null @@ -1,211 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: vECA VF Topology Template - -metadata: - invariantUUID: 3d4f3d68-d3a3-4f52-127c-ab188c9d4da2 # generated by ASDC - UUID: a2c4dc32-9c16-a3df-d2c0-e5ab221c69f0 # generated by ASDC - name: vECA VF - description: | - Performs intelligent adaptation of Multimedia Messages (MMs), and adaptation of individual media, - such as videos, audio files, images, animations, and text. Sits on the MM1 downlink path and performs - optimization offline. It intercepts the entire media and completes the optimizations before sending - the message to handsets. - type: VF - category: Mobility - subCategory: MMSC - vendor: Nokia - vendorVersion: 13 - - - # reference to template definitions -imports: - - tosca_simple_profile_for_ecomp_1_0.yml - -topology_template: - - # This section provides the parameters which OPENECOMP is not providing values to during instantiation. - # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP - # during the orchestration - - inputs: - - node_templates: - - vECA_OAM: # vECA OAM VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 12243d33-d3a3-4f42-770a-5710009d3baa - UUID: ab08dc12-0716-abcf-13c0-afd4111c69a0 - version: 1.0 - name: vECA_OAM VFC - description: ECA Management - type: VFC - category: Generic_VFC - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 13 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vECA_OAM VFC - vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - capabilities: - nfv_compute: - properties: - vfc_flavor: eca_oam_flavor # from HEAT ENV - scaling: - properties: - min_instances: 2 # set by service designer - max_instances: 2 # set by service designer - - vECA_ARB: # vECA ARB VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 0ab53d33-d3a3-4f42-770a-5710009d301a - UUID: 8808dc12-0716-abcf-23c0-afd4111c60d0 - version: 1.0 - name: vECA_ARB VFC - description: ECA Arbitrator - type: VFC - category: Generic_VFC - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 13 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vECA_ABR VFC - vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - capabilities: - nfv_compute: - properties: - vfc_flavor: eca_arb_flavor # from HEAT ENV - scaling: - properties: - min_instances: 1 # set by service designer - max_instances: 1 # set by service designer - - # Internal VF Connection Points (VFCs connection points) - - eca_oam_oam: - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - eca_oam_internal: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - eca_arb_oam: - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - eca_arb_internal: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - groups: - - # VF Modules - - VFModuleECA_OAM_Base: - type: org.openecomp.groups.VfModule - - metadata: - vfModuleModelName: vECA::module-0 - vfModuleModelInvariantUUID: 13aba10a-f788-492f-9ea7-7ff91dd05aaa - vfModuleModelUUID: 1230ed1e-4bc7-4fc0-ba7e-cc7af6da7000 - vfModuleModelVersion: 1 - - properties: - vf_module_type: Base # set by service designer - vf_module_description: vECA Base VF Module # set by service designer - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - volume_group: false # from HEAT / service Designer - artifacts: # HEAT Templates - - 099a6909-290f-4293-a347-736f11b8ff18 - - 0db84f21-d298-4a4b-b11e-37b92a734066 - - members: - - vECA_OAM - - vECA_ARB - - eca_arb_internal - - eca_arb_oam - - eca_oam_oam - - eca_oam_internal - policies: - # Placement policy - - mmsc_anti_affinity_placement_policy: - type: org.openecomp.policy.Placement - - properties: - conatiner_type: compute - policy: anti_affinity - - target: [vECA_OAM, vECA_ARB ] \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16.yaml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16.yaml deleted file mode 100644 index 62daf34eab..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16.yaml +++ /dev/null @@ -1,179 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: vMMSC Service Topology Template - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - name: vMMSC_Service - description: vMMSC Service - type: Service - category: Mobility - ecompNaming: false - homing: false - - # reference to template definitions -imports: - - tosca_simple_profile_for_ecomp_1_0.yml - - vmmsc_vf.yml - - veca_oam_vf.yml - - cmaui_vf.yml - - service_network.yml # - -topology_template: - - # This section provides the parameters which OPENECOMP is not providing values to during instantiation. - # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP - # during the orchestration - - inputes: - service_instance_name: - type: string - description: service instance name - service_deployment_node: - type: string - description: The target LCP node for deployment of this service instance - vMMSC_init_instances: - type: integer - description: The number of instances to instantiate - constraints: - - in_range: [1, 5] - vECA_OAM_init_instances: - type: integer - description: The number of instances to instantiate - constraints: - - in_range: [1, 3] - - node_templates: - - vMMSC: # vMMSC VNF - type: org.openecomp.resource.vf.Generic - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMMC VF - description: | - Delivers messages composed of text, images, and other media types (for example audio and video) - in an operator's network. It is responsible for storing and handling incoming and outgoing Multimedia - Messages (MMs); therefore, acting as an MMS Relay and MMS Server at the same time. - type: VF - category: Mobility - subCategory: MMC - vendor: Nokia - vendorVersion: 6.0.2.14 - - properties: - vf_ecomp_name: true - vf_instance_name: # to be set by OPENECOMP during instantiation - vf_homing: true - vf_deployment_node: # to be set by OPENECOMP during instantiation - min_instances: 1 - max_instances: 5 - init_instances: # number of instances to initialize. This number can be in the range of min_instances and max_instances. - # if no value provided use min_instances value. - - - vECA_OAM: # vECA VF - type: org.openecomp.resource.vf.Generic - - metadata: - invariantUUID: 3d4f3d68-d3a3-4f52-127c-ab188c9d4da2 # generated by ASDC - UUID: a2c4dc32-9c16-a3df-d2c0-e5ab221c69f0 # generated by ASDC - version: 1.0 # set by ASDC - name: vECA VF - description: | - Performs intelligent adaptation of Multimedia Messages (MMs), and adaptation of individual media, - such as videos, audio files, images, animations, and text. Sits on the MM1 downlink path and performs - optimization offline. It intercepts the entire media and completes the optimizations before sending - the message to handsets. - type: VF - category: Generic - resourceCategory: Mobility - subCategory: MMSC - vendor: Nokia - vendorVersion: 13 - - properties: - vf_ecomp_name: true - vf_instance_name: # to be set by OPENECOMP during instantiation - vf_homing: true - vf_deployment_node: # to be set by OPENECOMP during instantiation - min_instances: 1 - max_instances: 3 - - - - CMAUI: # CMAUI VF - type: org.openecomp.resource.vf.Generic - - metadata: - invariantUUID: dd4f3d68-1223-4a97-127c-11ab729d4da2 # generated by ASDC - UUID: 2a14db52-5116-d3af-1240-1236221cab8d # generated by ASDC - version: 1.0 # set by ASDC - name: CMAUI VF - description: CMAUI MMSC VF - type: VF - category: Generic - resourceCategory: Mobility - subCategory: MMSC - vendor: Nokia - vendorVersion: 5.0.2.5.37 - - properties: - vf_ecomp_name: true - vf_instance_name: # to be set by OPENECOMP during instantiation - vf_homing: true - vf_deployment_node: # to be set by OPENECOMP during instantiation - min_instances: 1 - max_instances: 1 - - - - # service level network - - eca_internal_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: ECA traffic network - description: ECA traffic network - type: VL - category: VL - vendor: Nokia - - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - network_name: # provided by OPENECOMP (SDNC) - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16InvalidFormat.yaml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16InvalidFormat.yaml deleted file mode 100644 index 1df7c177fe..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16InvalidFormat.yaml +++ /dev/null @@ -1,177 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: vMMSC Service Topology Template - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - name: vMMSC_Service - description: vMMSC Service - type: Service - category: Mobility - ecompNaming: false - homing: false - - # reference to template definitions -imports: - - tosca_simple_profile_for_ecomp_1_0.yml - - vmmsc_vf.yml - - veca_oam_vf.yml - - cmaui_vf.yml - - service_network.yml # - -topology_template: - - # This section provides the parameters which OPENECOMP is not providing values to during instantiation. - # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP - # during the orchestration - - inputes: - service_instance_name: - type: string - description: service instance name - service_deployment_node: - type: string - description: The target LCP node for deployment of this service instance - vMMSC_init_instances: - type: integer - description: The number of instances to instantiate - constraints: - - in_range: [1, 5] - vECA_OAM_init_instances: - type: integer - description: The number of instances to instantiate - constraints: - - in_range: [1, 3] - - node_templates: - - vMMSC: # vMMSC VNF - type: org.openecomp.resource.vf.Generic - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMMC VF - description: | - Delivers messages composed of text, images, and other media types (for example audio and video) - in an operator's network. It is responsible for storing and handling incoming and outgoing Multimedia - Messages (MMs); therefore, acting as an MMS Relay and MMS Server at the same time. - type: VF - category: Mobility - subCategory: MMC - vendor: Nokia - vendorVersion: 6.0.2.14 - - properties: - vf_ecomp_name: true - vf_instance_name: # to be set by OPENECOMP during instantiation - vf_homing: true - vf_deployment_node: # to be set by OPENECOMP during instantiation - min_instances: 1 - max_instances: 5 - init_instances: # number of instances to initialize. This number can be in the range of min_instances and max_instances. - # if no value provided use min_instances value. - - - vECA_OAM: # vECA VF - type: org.openecomp.resource.vf.Generic - - metadata: - invariantUUID: 3d4f3d68-d3a3-4f52-127c-ab188c9d4da2 # generated by ASDC - UUID: a2c4dc32-9c16-a3df-d2c0-e5ab221c69f0 # generated by ASDC - version: 1.0 # set by ASDC - name: vECA VF - description: | - Performs intelligent adaptation of Multimedia Messages (MMs), and adaptation of individual media, - such as videos, audio files, images, animations, and text. Sits on the MM1 downlink path and performs - optimization offline. It intercepts the entire media and completes the optimizations before sending - the message to handsets. - type: VF - category: Mobility - subCategory: MMSC - vendor: Nokia - vendorVersion: 13 - - properties: - vf_ecomp_name: true - vf_instance_name: # to be set by OPENECOMP during instantiation - vf_homing: true - vf_deployment_node: # to be set by OPENECOMP during instantiation - min_instances: 1 - max_instances: 3 - - - - CMAUI: # CMAUI VF - type: org.openecomp.resource.vf.Generic - - metadata: - invariantUUID: dd4f3d68-1223-4a97-127c-11ab729d4da2 # generated by ASDC - UUID: 2a14db52-5116-d3af-1240-1236221cab8d # generated by ASDC - version: 1.0 # set by ASDC - name: CMAUI VF - description: CMAUI MMSC VF - type: VF - category: Mobility - subCategory: MMSC - vendor: Nokia - vendorVersion: 5.0.2.5.37 - - properties: - vf_ecomp_name: true - vf_instance_name: # to be set by OPENECOMP during instantiation - vf_homing: true - vf_deployment_node: # to be set by OPENECOMP during instantiation - min_instances: 1 - max_instances: 1 - - - - # service level network - - eca_internal_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: ECA traffic network - description: ECA traffic network - type: VL - category: VL - vendor: Nokia - - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - network_name: # provided by OPENECOMP (SDNC) - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16MissingVFModule.yaml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16MissingVFModule.yaml deleted file mode 100644 index 31d95200ad..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_Sevice_07_25_16MissingVFModule.yaml +++ /dev/null @@ -1,177 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: vMMSC Service Topology Template - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - name: vMMSC_Service - description: vMMSC Service - type: Service - category: Mobility - ecompNaming: false - homing: false - - # reference to template definitions -imports: - - tosca_simple_profile_for_ecomp_1_0.yml - - vmmsc_vf.yml - - veca_oam_vf.yml - - cmaui_vf.yml - - service_network.yml # - -topology_template: - - # This section provides the parameters which OPENECOMP is not providing values to during instantiation. - # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP - # during the orchestration - - inputes: - service_instance_name: - type: string - description: service instance name - service_deployment_node: - type: string - description: The target LCP node for deployment of this service instance - vMMSC_init_instances: - type: integer - description: The number of instances to instantiate - constraints: - - in_range: [1, 5] - vECA_OAM_init_instances: - type: integer - description: The number of instances to instantiate - constraints: - - in_range: [1, 3] - - node_templates: - - vMMSC: # vMMSC VNF - type: org.openecomp.resource.vf.Generic - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMMC VF - description: | - Delivers messages composed of text, images, and other media types (for example audio and video) - in an operator's network. It is responsible for storing and handling incoming and outgoing Multimedia - Messages (MMs); therefore, acting as an MMS Relay and MMS Server at the same time. - type: VF - category: Mobility - subCategory: MMC - vendor: Nokia - vendorVersion: 6.0.2.14 - - properties: - vf_ecomp_name: true - vf_instance_name: # to be set by OPENECOMP during instantiation - vf_homing: true - vf_deployment_node: # to be set by OPENECOMP during instantiation - min_instances: 1 - max_instances: 5 - init_instances: # number of instances to initialize. This number can be in the range of min_instances and max_instances. - # if no value provided use min_instances value. - - - vECA_OAM: # vECA VF - type: org.openecomp.resource.vf.Generic - - metadata: - invariantUUID: 3d4f3d68-d3a3-4f52-127c-ab188c9d4da2 # generated by ASDC - UUID: a2c4dc32-9c16-a3df-d2c0-e5ab221c69f0 # generated by ASDC - version: 1.0 # set by ASDC - name: vECA VF - description: | - Performs intelligent adaptation of Multimedia Messages (MMs), and adaptation of individual media, - such as videos, audio files, images, animations, and text. Sits on the MM1 downlink path and performs - optimization offline. It intercepts the entire media and completes the optimizations before sending - the message to handsets. - type: VF - category: Mobility - subCategory: MMSC - vendor: Nokia - vendorVersion: 13 - - properties: - vf_ecomp_name: true - vf_instance_name: # to be set by OPENECOMP during instantiation - vf_homing: true - vf_deployment_node: # to be set by OPENECOMP during instantiation - min_instances: 1 - max_instances: 3 - - - - CMAUI: # CMAUI VF - type: org.openecomp.resource.vf.Generic - - metadata: - invariantUUID: dd4f3d68-1223-4a97-127c-11ab729d4da2 # generated by ASDC - UUID: 2a14db52-5116-d3af-1240-1236221cab8d # generated by ASDC - version: 1.0 # set by ASDC - name: CMAUI VF - description: CMAUI MMSC VF - type: VF - category: Mobility - subCategory: MMSC - vendor: Nokia - vendorVersion: 5.0.2.5.37 - - properties: - vf_ecomp_name: true - vf_instance_name: # to be set by OPENECOMP during instantiation - vf_homing: true - vf_deployment_node: # to be set by OPENECOMP during instantiation - min_instances: 1 - max_instances: 1 - - - - # service level network - - eca_internal_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: ECA traffic network - description: ECA traffic network - type: VL - category: VL - vendor: Nokia - - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - network_name: # provided by OPENECOMP (SDNC) - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_VF.yaml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_VF.yaml deleted file mode 100644 index 7398e45e95..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_VF.yaml +++ /dev/null @@ -1,976 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: vMMSC VF Topology Template - -metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - name: vMMC VF - description: | - Delivers messages composed of text, images, and other media types (for example audio and video) - in an operator's network. It is responsible for storing and handling incoming and outgoing Multimedia - Messages (MMs); therefore, acting as an MMS Relay and MMS Server at the same time. - type: VF - category: Mobility - subCategory: MMC - vendor: Nokia - vendorVersion: 6.0.2.14 - - - # reference to template definitions -imports: - - tosca_simple_profile_for_ecomp_1_0.yml - -topology_template: - - # This section provides the parameters which OPENECOMP is not providing values to during - # instantiation. - # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP - # during the orchestration - - inputs: - - node_templates: - - vMMSC: # vMMSC VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc - UUID: 2714db52-2116-a3af-1240-a236221ca004 - version: 1.0 - name: vMMC VFC - description: - type: VFC - category: Generic - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 6.0.2.14 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vMMSC VFC - vfc_image_name: mmsc-6.0.2_v14.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - capabilities: - nfv_compute: - properties: - vfc_flavor: mmsc_flavor # from HEAT ENV - scaling: - properties: - min_instances: 5 - max_instances: 5 - initial_instance: - - vNEMS_FE: # vNEMS VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc - UUID: 2714db52-2116-a3af-1240-a236221ca004 - version: 1.0 - name: vNEMS_FE VFC - description: | - Legacy support that makes it possible for subscribers without MMS-enabled phones to receive - multimedia messages (MMs) through a web or WAP interface. - E-mail smart push that lets subscribers send and receive MMs to and from the Internet (MM3 interface). - type: VFC - category: Generic_VFC - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 2.1.2.44 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vNEMS_FE VFC - vfc_image_name: nems-2.1.2_v44.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - - capabilities: - nfv_compute: - properties: - vfc_flavor: nems_fe_flavor # from HEAT ENV - scaling: - properties: - min_instances: 2 # set by service designer - max_instances: 4 # set by service designer - - vNEMS_BE: # vNEMS VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc - UUID: 2714db52-2116-a3af-1240-a236221ca004 - version: 1.0 - name: vNEMS_BE VFC - description: | - Legacy support that makes it possible for subscribers without MMS-enabled phones to receive - multimedia messages (MMs) through a web or WAP interface. - E-mail smart push that lets subscribers send and receive MMs to and from the Internet (MM3 interface). - type: VFC - category: Generic_VFC - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 2.1.2.44 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vNEMS_FE VFC - vfc_image_name: nems-2.1.2_v44.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - - capabilities: - nfv_compute: - properties: - vfc_flavor: nems_be_flavor # from HEAT ENV - scaling: - properties: - min_instances: 1 # set by service designer - max_instances: 2 # set by service designer - - vECA_TRX: # vNEMS VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc - UUID: 2714db52-2116-a3af-1240-a236221ca004 - version: 1.0 - name: vECA_TRX VFC - description: Traffic handling - type: VFC - category: Generic_VFC - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 13 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vECA_TRX VFC - vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - - capabilities: - nfv_compute: - properties: - vfc_flavor: eca_trx_flavor # from HEAT ENV - scaling: - properties: - min_instances: 20 # set by service designer - max_instances: 20 # set by service designer - - vLB: # F5 VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc - UUID: 2714db52-2116-a3af-1240-a236221ca004 - version: 1.0 - name: F5 LB VFC - description: Load Balancer - type: VFC - category: Generic - subCategory: Generic_VFC - vendor: F5 Networks - vendorVersion: 11.5.3.163 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: F5 VFC - vfc_image_name: F5-11_5_3-EngHF-34_163.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - - capabilities: - nfv_compute: - properties: - vfc_flavor: bigip_flavor # from HEAT ENV - scaling: - properties: - min_instances: 2 - max_instances: 2 - - # Internal VF Connection Points (VFCs connection points) - - mmsc_oam: # external OAM CP to mobility OAM network - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - - mmsc_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_fe_oam: # external OAM CP to mobility OAM network - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - - nems_fe_internal: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_fe_imap: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_fe_web: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_fe_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_be_oam: # external OAM CP to mobility OAM network - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - nems_be_internal: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_be_imap: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - eca_trx_oam: # external OAM CP to mobility OAM network - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - - eca_trx_internal: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - eca_trx_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_ha: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_mmsc_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_nems_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_nems_web: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_eca_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_oam: # external OAM CP to mobility OAM network - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - - lb_dmz_protected: # external CP to mobility DMZ protected network - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_core_direct: # external CP to mobility core direct network - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - # Intra-VF Virtual Links (Networks) - - mmsc_traffic_net: - type: org.openecomp.resource.vl.VL - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: MMSC traffic network - description: mmsc traffic network - type: VL - category: VL - vendor: Nokia - properties: - network_type: Tenant_Layer_3 - network_role: Intra-service - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.253.0.0/17 # HEAT ENV - gateway_ip: 169.253.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - nems_imap_net: - type: org.openecomp.resource.vl.VL - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: NEMS IMAP network - description: NEMS internal IMAP network - type: VL - category: VL - vendor: Nokia - - properties: - network_type: Tenant_Layer_3 - network_role: Intra-service - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.253.0.0/17 # HEAT ENV - gateway_ip: 169.253.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - nems_internal_net: - type: org.openecomp.resource.vl.VL - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: NEMS internal traffic network - description: NEMS internal traffic network - type: VL - category: VL - vendor: Nokia - - properties: - network_type: Tenant_Layer_3 - network_role: Intra-service - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.253.0.0/17 # HEAT ENV - gateway_ip: 169.253.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - nems_web_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: NEMS web network - description: nems web nwtwork - type: VL - category: VL - vendor: Nokia - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.255.0.0/17 # HEAT ENV - gateway_ip: 169.255.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - nems_traffic_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: NEMS traffic network - description: NEMS traffic network - type: VL - category: VL - vendor: Nokia - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - network_name: # provided by OPENECOMP (SDNC) - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - eca_traffic_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: ECA traffic network - description: ECA traffic network - type: VL - category: VL - vendor: Nokia - - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - network_name: # provided by OPENECOMP (SDNC) - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - eca_internal_net: - type: org.openecomp.resource.vl.VL - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: ECA internal traffic network - description: ECA internal traffic network - type: VL - category: VL - vendor: Nokia - - properties: - network_type: Tenant_Layer_3 - network_role: Intra-service - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.253.0.0/17 # HEAT ENV - gateway_ip: 169.253.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP # service level network - - lb_ha_net: - type: org.openecomp.resource.vl.VL - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: LB HA network - description: LB sync network - type: VL - category: VL - vendor: Nokia - properties: - network_type: Tenant_Layer_3 - network_role: Intra-service - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.253.0.0/17 # HEAT ENV - gateway_ip: 169.253.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - - groups: - - # Server Groups for applying placement policy - LbGroup: - type: tosca.groups.Root - members: [vLB] - - mmscGroup: - type: tosca.groups.Root - members: [vMMSC] - - nemas_feGroup: - type: tosca.groups.Root - members: [vNEMS_FE] - - eca_trxGroup: - type: tosca.groups.Root - members: [vECA_TRX] - - # VF Modules - VFModuleMMSC_Expansion: - type: org.openecomp.groups.VfModule - - metadata: - vfModuleModelName: vMMSC::module-1 - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelUUID: b020dd1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - - properties: - vf_module_type: Expansion # set by service designer - vf_module_description: vMMSC growth unit # set by service designer - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - volume_group: false # from HEAT / service Designer - artifacts: # HEAT Templates - - 099a6909-290f-4293-a347-736f11b8ff18 - - 0db84f21-d298-4a4b-b11e-37b92a734066 - - members: - - vMMSC - - vNEMS_FE - - vNEMS_BE - - vECA_TRX - - vLB - - mmsc_oam - - mmsc_traffic - - nems_fe_web - - mmsc_traffic_net - - nems_imap_net - - nems_internal_net - - - policies: - # Autoscaling policy - - mmsc_autoscale_policy: - type: org.openecomp.policy.Autoscaling - - properties: - min_instances: 1 - max_instances: 4 - increment: 1 - factor: bandwidth - threshold: 5 Gpbs - - target: [ VFModuleMMSC_Expansion ] - - # Placement policy - - mmsc_anti_affinity_placement_policy: - type: org.openecomp.policy.Placement - - properties: - conatiner_type: compute - policy: anti_affinity - - target: [ LbGroup, mmscGroup, nemas_feGroup, eca_trxGroup, eca_oamGroup, cmauiGroup ] \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_VFInvalidFormat.yaml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_VFInvalidFormat.yaml deleted file mode 100644 index 4e99ade400..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_VFInvalidFormat.yaml +++ /dev/null @@ -1,975 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: vMMSC VF Topology Template - -metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - name: vMMC VF - description: | - Delivers messages composed of text, images, and other media types (for example audio and video) - in an operator's network. It is responsible for storing and handling incoming and outgoing Multimedia - Messages (MMs); therefore, acting as an MMS Relay and MMS Server at the same time. - type: VF - category: Mobility - subCategory: MMC - vendor: Nokia - vendorVersion: 6.0.2.14 - - - # reference to template definitions -imports: - - tosca_simple_profile_for_ecomp_1_0.yml - -topology_template: - - # This section provides the parameters which OPENECOMP is not providing values to during instantiation. - # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP - # during the orchestration - - inputs: - - node_templates: - - vMMSC: # vMMSC VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc - UUID: 2714db52-2116-a3af-1240-a236221ca004 - version: 1.0 - name: vMMC VFC - description: - type: VFC - category: Generic - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 6.0.2.14 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vMMSC VFC - vfc_image_name: mmsc-6.0.2_v14.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - capabilities: - nfv_compute: - properties: - vfc_flavor: mmsc_flavor # from HEAT ENV - scaling: - properties: - min_instances: 5 - max_instances: 5 - initial_instance: - - vNEMS_FE: # vNEMS VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc - UUID: 2714db52-2116-a3af-1240-a236221ca004 - version: 1.0 - name: vNEMS_FE VFC - description: | - Legacy support that makes it possible for subscribers without MMS-enabled phones to receive - multimedia messages (MMs) through a web or WAP interface. - E-mail smart push that lets subscribers send and receive MMs to and from the Internet (MM3 interface). - type: VFC - category: Generic_VFC - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 2.1.2.44 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vNEMS_FE VFC - vfc_image_name: nems-2.1.2_v44.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - - capabilities: - nfv_compute: - properties: - vfc_flavor: nems_fe_flavor # from HEAT ENV - scaling: - properties: - min_instances: 2 # set by service designer - max_instances: 4 # set by service designer - - vNEMS_BE: # vNEMS VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc - UUID: 2714db52-2116-a3af-1240-a236221ca004 - version: 1.0 - name: vNEMS_BE VFC - description: | - Legacy support that makes it possible for subscribers without MMS-enabled phones to receive - multimedia messages (MMs) through a web or WAP interface. - E-mail smart push that lets subscribers send and receive MMs to and from the Internet (MM3 interface). - type: VFC - category: Generic_VFC - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 2.1.2.44 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vNEMS_FE VFC - vfc_image_name: nems-2.1.2_v44.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - - capabilities: - nfv_compute: - properties: - vfc_flavor: nems_be_flavor # from HEAT ENV - scaling: - properties: - min_instances: 1 # set by service designer - max_instances: 2 # set by service designer - - vECA_TRX: # vNEMS VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc - UUID: 2714db52-2116-a3af-1240-a236221ca004 - version: 1.0 - name: vECA_TRX VFC - description: Traffic handling - type: VFC - category: Generic_VFC - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 13 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vECA_TRX VFC - vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - - capabilities: - nfv_compute: - properties: - vfc_flavor: eca_trx_flavor # from HEAT ENV - scaling: - properties: - min_instances: 20 # set by service designer - max_instances: 20 # set by service designer - - vLB: # F5 VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc - UUID: 2714db52-2116-a3af-1240-a236221ca004 - version: 1.0 - name: F5 LB VFC - description: Load Balancer - type: VFC - category: Generic - subCategory: Generic_VFC - vendor: F5 Networks - vendorVersion: 11.5.3.163 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: F5 VFC - vfc_image_name: F5-11_5_3-EngHF-34_163.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - - capabilities: - nfv_compute: - properties: - vfc_flavor: bigip_flavor # from HEAT ENV - scaling: - properties: - min_instances: 2 - max_instances: 2 - - # Internal VF Connection Points (VFCs connection points) - - mmsc_oam: # external OAM CP to mobility OAM network - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - - mmsc_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_fe_oam: # external OAM CP to mobility OAM network - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - - nems_fe_internal: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_fe_imap: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_fe_web: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_fe_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_be_oam: # external OAM CP to mobility OAM network - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - nems_be_internal: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_be_imap: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - eca_trx_oam: # external OAM CP to mobility OAM network - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - - eca_trx_internal: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - eca_trx_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_ha: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_mmsc_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_nems_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_nems_web: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_eca_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_oam: # external OAM CP to mobility OAM network - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - - lb_dmz_protected: # external CP to mobility DMZ protected network - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_core_direct: # external CP to mobility core direct network - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - # Intra-VF Virtual Links (Networks) - - mmsc_traffic_net: - type: org.openecomp.resource.vl.VL - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: MMSC traffic network - description: mmsc traffic network - type: VL - category: VL - vendor: Nokia - properties: - network_type: Tenant_Layer_3 - network_role: Intra-service - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.253.0.0/17 # HEAT ENV - gateway_ip: 169.253.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - nems_imap_net: - type: org.openecomp.resource.vl.VL - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: NEMS IMAP network - description: NEMS internal IMAP network - type: VL - category: VL - vendor: Nokia - - properties: - network_type: Tenant_Layer_3 - network_role: Intra-service - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.253.0.0/17 # HEAT ENV - gateway_ip: 169.253.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - nems_internal_net: - type: org.openecomp.resource.vl.VL - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: NEMS internal traffic network - description: NEMS internal traffic network - type: VL - category: VL - vendor: Nokia - - properties: - network_type: Tenant_Layer_3 - network_role: Intra-service - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.253.0.0/17 # HEAT ENV - gateway_ip: 169.253.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - nems_web_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: NEMS web network - description: nems web nwtwork - type: VL - category: VL - vendor: Nokia - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.255.0.0/17 # HEAT ENV - gateway_ip: 169.255.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - nems_traffic_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: NEMS traffic network - description: NEMS traffic network - type: VL - category: VL - vendor: Nokia - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - network_name: # provided by OPENECOMP (SDNC) - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - eca_traffic_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: ECA traffic network - description: ECA traffic network - type: VL - category: VL - vendor: Nokia - - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - network_name: # provided by OPENECOMP (SDNC) - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - eca_internal_net: - type: org.openecomp.resource.vl.VL - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: ECA internal traffic network - description: ECA internal traffic network - type: VL - category: VL - vendor: Nokia - - properties: - network_type: Tenant_Layer_3 - network_role: Intra-service - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.253.0.0/17 # HEAT ENV - gateway_ip: 169.253.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP # service level network - - lb_ha_net: - type: org.openecomp.resource.vl.VL - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: LB HA network - description: LB sync network - type: VL - category: VL - vendor: Nokia - properties: - network_type: Tenant_Layer_3 - network_role: Intra-service - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.253.0.0/17 # HEAT ENV - gateway_ip: 169.253.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - - groups: - - # Server Groups for applying placement policy - LbGroup: - type: tosca.groups.Root - members: [vLB] - - mmscGroup: - type: tosca.groups.Root - members: [vMMSC] - - nemas_feGroup: - type: tosca.groups.Root - members: [vNEMS_FE] - - eca_trxGroup: - type: tosca.groups.Root - members: [vECA_TRX] - - # VF Modules - VFModuleMMSC_Expansion: - type: org.openecomp.groups.VfModule - - metadata: - vfModuleModelName: vMMSC::module-1 - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelUUID: b020dd1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - - properties: - vf_module_type: Expansion # set by service designer - vf_module_description: vMMSC growth unit # set by service designer - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - volume_group: false # from HEAT / service Designer - artifacts: # HEAT Templates - - 099a6909-290f-4293-a347-736f11b8ff18 - - 0db84f21-d298-4a4b-b11e-37b92a734066 - - members: - - vMMSC - - vNEMS_FE - - vNEMS_BE - - vECA_TRX - - vLB - - mmsc_oam - - mmsc_traffic - - nems_fe_web - - mmsc_traffic_net - - nems_imap_net - - nems_internal_net - - - policies: - # Autoscaling policy - - mmsc_autoscale_policy: - type: org.openecomp.policy.Autoscaling - - properties: - min_instances: 1 - max_instances: 4 - increment: 1 - factor: bandwidth - threshold: 5 Gpbs - - target: [ VFModuleMMSC_Expansion ] - - # Placement policy - - mmsc_anti_affinity_placement_policy: - type: org.openecomp.policy.Placement - - properties: - conatiner_type: compute - policy: anti_affinity - - target: [ LbGroup, mmscGroup, nemas_feGroup, eca_trxGroup, eca_oamGroup, cmauiGroup ] \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_VFMissingVFModule.yaml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_VFMissingVFModule.yaml deleted file mode 100644 index 4e99ade400..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/MMSC_VFMissingVFModule.yaml +++ /dev/null @@ -1,975 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: vMMSC VF Topology Template - -metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - name: vMMC VF - description: | - Delivers messages composed of text, images, and other media types (for example audio and video) - in an operator's network. It is responsible for storing and handling incoming and outgoing Multimedia - Messages (MMs); therefore, acting as an MMS Relay and MMS Server at the same time. - type: VF - category: Mobility - subCategory: MMC - vendor: Nokia - vendorVersion: 6.0.2.14 - - - # reference to template definitions -imports: - - tosca_simple_profile_for_ecomp_1_0.yml - -topology_template: - - # This section provides the parameters which OPENECOMP is not providing values to during instantiation. - # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP - # during the orchestration - - inputs: - - node_templates: - - vMMSC: # vMMSC VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc - UUID: 2714db52-2116-a3af-1240-a236221ca004 - version: 1.0 - name: vMMC VFC - description: - type: VFC - category: Generic - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 6.0.2.14 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vMMSC VFC - vfc_image_name: mmsc-6.0.2_v14.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - capabilities: - nfv_compute: - properties: - vfc_flavor: mmsc_flavor # from HEAT ENV - scaling: - properties: - min_instances: 5 - max_instances: 5 - initial_instance: - - vNEMS_FE: # vNEMS VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc - UUID: 2714db52-2116-a3af-1240-a236221ca004 - version: 1.0 - name: vNEMS_FE VFC - description: | - Legacy support that makes it possible for subscribers without MMS-enabled phones to receive - multimedia messages (MMs) through a web or WAP interface. - E-mail smart push that lets subscribers send and receive MMs to and from the Internet (MM3 interface). - type: VFC - category: Generic_VFC - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 2.1.2.44 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vNEMS_FE VFC - vfc_image_name: nems-2.1.2_v44.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - - capabilities: - nfv_compute: - properties: - vfc_flavor: nems_fe_flavor # from HEAT ENV - scaling: - properties: - min_instances: 2 # set by service designer - max_instances: 4 # set by service designer - - vNEMS_BE: # vNEMS VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc - UUID: 2714db52-2116-a3af-1240-a236221ca004 - version: 1.0 - name: vNEMS_BE VFC - description: | - Legacy support that makes it possible for subscribers without MMS-enabled phones to receive - multimedia messages (MMs) through a web or WAP interface. - E-mail smart push that lets subscribers send and receive MMs to and from the Internet (MM3 interface). - type: VFC - category: Generic_VFC - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 2.1.2.44 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vNEMS_FE VFC - vfc_image_name: nems-2.1.2_v44.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - - capabilities: - nfv_compute: - properties: - vfc_flavor: nems_be_flavor # from HEAT ENV - scaling: - properties: - min_instances: 1 # set by service designer - max_instances: 2 # set by service designer - - vECA_TRX: # vNEMS VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc - UUID: 2714db52-2116-a3af-1240-a236221ca004 - version: 1.0 - name: vECA_TRX VFC - description: Traffic handling - type: VFC - category: Generic_VFC - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 13 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vECA_TRX VFC - vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - - capabilities: - nfv_compute: - properties: - vfc_flavor: eca_trx_flavor # from HEAT ENV - scaling: - properties: - min_instances: 20 # set by service designer - max_instances: 20 # set by service designer - - vLB: # F5 VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc - UUID: 2714db52-2116-a3af-1240-a236221ca004 - version: 1.0 - name: F5 LB VFC - description: Load Balancer - type: VFC - category: Generic - subCategory: Generic_VFC - vendor: F5 Networks - vendorVersion: 11.5.3.163 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: F5 VFC - vfc_image_name: F5-11_5_3-EngHF-34_163.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - - capabilities: - nfv_compute: - properties: - vfc_flavor: bigip_flavor # from HEAT ENV - scaling: - properties: - min_instances: 2 - max_instances: 2 - - # Internal VF Connection Points (VFCs connection points) - - mmsc_oam: # external OAM CP to mobility OAM network - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - - mmsc_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_fe_oam: # external OAM CP to mobility OAM network - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - - nems_fe_internal: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_fe_imap: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_fe_web: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_fe_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_be_oam: # external OAM CP to mobility OAM network - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - nems_be_internal: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_be_imap: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - eca_trx_oam: # external OAM CP to mobility OAM network - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - - eca_trx_internal: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - eca_trx_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_ha: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_mmsc_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_nems_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_nems_web: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_eca_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_oam: # external OAM CP to mobility OAM network - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - - lb_dmz_protected: # external CP to mobility DMZ protected network - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_core_direct: # external CP to mobility core direct network - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - # Intra-VF Virtual Links (Networks) - - mmsc_traffic_net: - type: org.openecomp.resource.vl.VL - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: MMSC traffic network - description: mmsc traffic network - type: VL - category: VL - vendor: Nokia - properties: - network_type: Tenant_Layer_3 - network_role: Intra-service - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.253.0.0/17 # HEAT ENV - gateway_ip: 169.253.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - nems_imap_net: - type: org.openecomp.resource.vl.VL - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: NEMS IMAP network - description: NEMS internal IMAP network - type: VL - category: VL - vendor: Nokia - - properties: - network_type: Tenant_Layer_3 - network_role: Intra-service - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.253.0.0/17 # HEAT ENV - gateway_ip: 169.253.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - nems_internal_net: - type: org.openecomp.resource.vl.VL - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: NEMS internal traffic network - description: NEMS internal traffic network - type: VL - category: VL - vendor: Nokia - - properties: - network_type: Tenant_Layer_3 - network_role: Intra-service - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.253.0.0/17 # HEAT ENV - gateway_ip: 169.253.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - nems_web_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: NEMS web network - description: nems web nwtwork - type: VL - category: VL - vendor: Nokia - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.255.0.0/17 # HEAT ENV - gateway_ip: 169.255.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - nems_traffic_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: NEMS traffic network - description: NEMS traffic network - type: VL - category: VL - vendor: Nokia - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - network_name: # provided by OPENECOMP (SDNC) - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - eca_traffic_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: ECA traffic network - description: ECA traffic network - type: VL - category: VL - vendor: Nokia - - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - network_name: # provided by OPENECOMP (SDNC) - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - eca_internal_net: - type: org.openecomp.resource.vl.VL - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: ECA internal traffic network - description: ECA internal traffic network - type: VL - category: VL - vendor: Nokia - - properties: - network_type: Tenant_Layer_3 - network_role: Intra-service - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.253.0.0/17 # HEAT ENV - gateway_ip: 169.253.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP # service level network - - lb_ha_net: - type: org.openecomp.resource.vl.VL - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: LB HA network - description: LB sync network - type: VL - category: VL - vendor: Nokia - properties: - network_type: Tenant_Layer_3 - network_role: Intra-service - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.253.0.0/17 # HEAT ENV - gateway_ip: 169.253.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - - groups: - - # Server Groups for applying placement policy - LbGroup: - type: tosca.groups.Root - members: [vLB] - - mmscGroup: - type: tosca.groups.Root - members: [vMMSC] - - nemas_feGroup: - type: tosca.groups.Root - members: [vNEMS_FE] - - eca_trxGroup: - type: tosca.groups.Root - members: [vECA_TRX] - - # VF Modules - VFModuleMMSC_Expansion: - type: org.openecomp.groups.VfModule - - metadata: - vfModuleModelName: vMMSC::module-1 - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelUUID: b020dd1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - - properties: - vf_module_type: Expansion # set by service designer - vf_module_description: vMMSC growth unit # set by service designer - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - volume_group: false # from HEAT / service Designer - artifacts: # HEAT Templates - - 099a6909-290f-4293-a347-736f11b8ff18 - - 0db84f21-d298-4a4b-b11e-37b92a734066 - - members: - - vMMSC - - vNEMS_FE - - vNEMS_BE - - vECA_TRX - - vLB - - mmsc_oam - - mmsc_traffic - - nems_fe_web - - mmsc_traffic_net - - nems_imap_net - - nems_internal_net - - - policies: - # Autoscaling policy - - mmsc_autoscale_policy: - type: org.openecomp.policy.Autoscaling - - properties: - min_instances: 1 - max_instances: 4 - increment: 1 - factor: bandwidth - threshold: 5 Gpbs - - target: [ VFModuleMMSC_Expansion ] - - # Placement policy - - mmsc_anti_affinity_placement_policy: - type: org.openecomp.policy.Placement - - properties: - conatiner_type: compute - policy: anti_affinity - - target: [ LbGroup, mmscGroup, nemas_feGroup, eca_trxGroup, eca_oamGroup, cmauiGroup ] \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/Resource0-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/Resource0-template.yml deleted file mode 100644 index 49666f9bae..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/Resource0-template.yml +++ /dev/null @@ -1,24 +0,0 @@ - # _______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 461a4839-2572-4dc1-b3be-dcb4c1908764 - UUID: bca09900-d37a-48db-8cd2-de014b2fdbba - name: resource_0 - description: description - type: VF - category: Generic - subcategory: Infrastructure - resourceVendor: vendor name - resourceVendorRelease: vendor release -topology_template: - substitution_mapping: - node_type: org.openecomp.resource.vf.Resource0 - # _______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/Resource1-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/Resource1-template.yml deleted file mode 100644 index 3152660125..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/Resource1-template.yml +++ /dev/null @@ -1,24 +0,0 @@ - # _______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: af39c951-3a61-4324-9a1f-892a26f713fb - UUID: 438eecb8-bdf0-4356-b8f4-80dfcaafecbf - name: resource_1 - description: description - type: VF - category: Generic - subcategory: Infrastructure - resourceVendor: vendor name - resourceVendorRelease: vendor release -topology_template: - substitution_mapping: - node_type: org.openecomp.resource.vf.Resource1 - # _______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/Service0-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/Service0-template.yml deleted file mode 100644 index 0ddab00927..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/Service0-template.yml +++ /dev/null @@ -1,28 +0,0 @@ - # _______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: ba65d050-f98a-4950-ab2f-3b6557d9476f - UUID: b79f52b8-57ab-43a0-a6d8-9db685f08073 - name: service_0 - description: desc - type: Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false -imports: - resource_0: - file: Resource0-template.yml - resource_1: - file: Resource1-template.yml -topology_template: - substitution_mapping: - node_type: org.openecomp.service.Service0 - # _______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/Service0-templateMoreThan256.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/Service0-templateMoreThan256.yml deleted file mode 100644 index 0411603163..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/Service0-templateMoreThan256.yml +++ /dev/null @@ -1,28 +0,0 @@ - # _______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: ba65d050-f98a-4950-ab2f-3b6557d9476f - UUID: b79f52b8-57ab-43a0-a6d8-9db685f08073 - name: service_00bbbbbbbbbbbbbbbbbbbbbbbb_______________________bbbbbbbbbbbbb bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb - description: desc0123bbbbbbbbbbbbb______________bbbbbbbbbbbbbbbbbbbbbbbbbb bbbbbbbbbbbb_____________bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb - type: Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false -imports: - resource_0: - file: Resource0-template.yml - resource_1: - file: Resource1-template.yml -topology_template: - substitution_mapping: - node_type: org.openecomp.service.Service0 - # _______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/ServiceWithNodetemplate.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/ServiceWithNodetemplate.yml deleted file mode 100644 index b28bda56f9..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/ServiceWithNodetemplate.yml +++ /dev/null @@ -1,51 +0,0 @@ - # _______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: ba65d050-f98a-4950-ab2f-3b6557d9476f - UUID: b79f52b8-57ab-43a0-a6d8-9db685f08073 - name: service_0 - description: desc - type: Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false -imports: - resource_0: - file: Resource0-template.yml - resource_1: - file: Resource1-template.yml -topology_template: - node_templates: - resource_1 2: - type: org.openecomp.resource.vf.Resource1 - metadata: - invariantUUID: af39c951-3a61-4324-9a1f-892a26f713fb - UUID: 438eecb8-bdf0-4356-b8f4-80dfcaafecbf - version: 1.0 - name: resource_1 - description: description - type: VF - category: Generic - subcategory: Infrastructure - resource_0 1: - type: org.openecomp.resource.vf.Resource0 - metadata: - invariantUUID: 461a4839-2572-4dc1-b3be-dcb4c1908764 - UUID: bca09900-d37a-48db-8cd2-de014b2fdbba - version: 1.0 - name: resource_0 - description: description - type: VF - category: Generic - subcategory: Infrastructure - substitution_mapping: - node_type: org.openecomp.service.Service0 - # _______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/aai/service_vmme_template_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/aai/service_vmme_template_1.yml deleted file mode 100644 index b3b7889453..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/aai/service_vmme_template_1.yml +++ /dev/null @@ -1,193 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - serviceInvariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - serviceUUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - serviceVersion: 1.0 - serviceName: vMME_Service - serviceDescription: vMME_Service - serviceCategory: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - resourceInvariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - resourceUUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceversion: 1.0 - resourceName: vMME_VF - resourceDescription: vMME_VF - resourceType: VF - resourceCategry: Application L4+ - resourceSubcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - # Virtual Links (Networks) - - gtp_net: - type: org.openecomp.resource.vl.VL - metadata: - resourceInvariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - resourceUUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - resourceversion: 1.0 - resourceName: GTPNet - resourceDescription: GTP External Network - resourceType: VL - resourceCategry: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: org.openecomp.resource.vl.VL - metadata: - resourceInvariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - resourceUUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - resourceversion: 1.0 - resourceName: SCTPANet - resourceDescription: SCTP A External Network - resourceType: VL - resourceCategry: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: org.openecomp.resource.vl.VL - metadata: - resourceInvariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - resourceUUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - resourceversion: 1.0 - resourceName: SCTPBNet - resourceDescription: SCTP B External Network - resourceType: VL - resourceCategry: VL - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/aai/vf_vmme_template_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/aai/vf_vmme_template_1.yml deleted file mode 100644 index 2a169e69f8..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/aai/vf_vmme_template_1.yml +++ /dev/null @@ -1,1219 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: VF Template for pseodo vMME - -# metadata of the VF model -metadata: - resourceInvariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - resourceUUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceversion: 1.0 - resourceName: vMME_VF - resourceDescription: vMME_VF - resourceType: VF - resourceCategry: Application L4+ - resourceSubcategory: Firewall - resourceVendor: Ericsson - -# imports include all other tosca definitions that are required for this template -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml - -topology_template: - -# inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks) - inputs: - fsb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - fsb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - fsb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_FSB1_16ACP03.qcow2 - fsb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - fsb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB002 - fsb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - fsb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_FSB2_16ACP03.qcow2 - fsb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - defualt: m4.xlarge4 - ncb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - ncb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - ncb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_NCB1_16ACP03.qcow2 - ncb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - ncb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - ncb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - ncb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_NCB2_16ACP03.qcow2 - ncb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - gpb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - gpb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - gpb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_GPB1_16ACP03.qcow2 - gpb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - gpb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - gpb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - gpb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_GPB2_16ACP03.qcow2 - gpb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - vlc1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - vlc1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - vlc1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_VLC1_16ACP03.qcow2 - vlc1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - vlc2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - vlc2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - vlc2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_VLC2_16ACP03.qcow2 - vlc2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - - fsb1_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - fsb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - fsb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - fsb2_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - fsb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - fsb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - - ncb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - ncb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - ncb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - ncb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - gpb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - gpb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - gpb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - gpb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - vlc1_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_gtp_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_sctp_a_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_sctp_b_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - vlc1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - vlc2_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_gtp_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_sctp_a_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_sctp_b_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - vlc2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - Internal1_net_dhcp: - hidden: false - immutable: false - type: string - default: 'False' - Internal1_net_cidr: - hidden: false - immutable: false - type: string - default: 169.253.0.0/17 - Internal1_net_gateway_ip: - hidden: false - immutable: false - type: string - default: 169.253.0.3 - Internal2_net_dhcp: - hidden: false - immutable: false - type: string - default: 'False' - Internal2_net_cidr: - hidden: false - immutable: false - type: string - default: 169.255.0.0/17 - Internal2_net_gateway_ip: - hidden: false - immutable: false - type: string - default: 169.255.0.3 - network_deployment_node: - type: string - description: The target LCP node for deployment of this Network instance - oam_net_id: - hidden: false - immutable: false - type: string - description: uuid of oam network - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - - node_templates: - - # VFCs / VMs - FSB1: # VFC1 / VM1 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - resourceInvariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - resourceUUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceversion: 1.0 - resourceName: Nova Server - resourceDescription: VFC based on OpenStack Nova Server - resourceType: VFC - resourceCategry: Generic - resourceSubcategry: Infrastructure - resourceVendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: fsb1_vfc_instance_name} - vfc_type_tag: {get_input: fsb1_vfc_type_tag} - vfc_description: FSB1 - vfc_image_name: {get_input: fsb1_vfc_image_name} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: fsb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capabilty: - properties: - name: high_cpu - - - FSB2: # VFC2 / VM2 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - resourceInvariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - resourceUUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceversion: 1.0 - resourceName: Nova Server - resourceDescription: VFC based on OpenStack Nova Server - resourceType: VFC - resourceCategry: Generic - resourceSubcategry: Infrastructure - resourceVendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: fsb2_vfc_instance_name} - vfc_type_tag: {get_input: fsb2_vfc_type_tag} - vfc_description: FSB2 - vfc_image_name: {get_input: fsb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: fsb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - NCB1: # VFC3 / MV3 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - resourceInvariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - resourceUUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceversion: 1.0 - resourceName: Nova Server - resourceDescription: VFC based on OpenStack Nova Server - resourceType: VFC - resourceCategry: Generic - resourceSubcategry: Infrastructure - resourceVendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: ncb1_vfc_instance_name} - vfc_type_tag: {get_input: ncb1_vfc_type_tag} - vfc_description: NCB1 - vfc_image_name: {get_input: ncb1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: ncb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - NCB2: # VFC4 / VM4 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - resourceInvariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - resourceUUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceversion: 1.0 - resourceName: Nova Server - resourceDescription: VFC based on OpenStack Nova Server - resourceType: VFC - resourceCategry: Generic - resourceSubcategry: Infrastructure - resourceVendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: ncb2_vfc_instance_name} - vfc_type_tag: {get_input: ncb2_vfc_type_tag} - vfc_description: NCB2 - vfc_image_name: {get_input: ncb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: ncb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - GPB1: # VFC5 / VM5 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - resourceInvariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - resourceUUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceversion: 1.0 - resourceName: Nova Server - resourceDescription: VFC based on OpenStack Nova Server - resourceType: VFC - resourceCategry: Generic - resourceSubcategry: Infrastructure - resourceVendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: gpb1_vfc_instance_name} - vfc_type_tag: {get_input: gpb1_vfc_type_tag} - vfc_description: GPB1 - vfc_image_name: {get_input: gpb1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: gpb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - GPB2: # VFC6 / VM6 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - resourceInvariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - resourceUUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceversion: 1.0 - resourceName: Nova Server - resourceDescription: VFC based on OpenStack Nova Server - resourceType: VFC - resourceCategry: Generic - resourceSubcategry: Infrastructure - resourceVendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: gpb2_vfc_instance_name} - vfc_type_tag: {get_input: gpb2_vfc_type_tag} - vfc_description: GPB2 - vfc_image_name: {get_input: gpb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: gpb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - VLC1: # VFC7 / VM7 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - resourceInvariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - resourceUUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceversion: 1.0 - resourceName: Nova Server - resourceDescription: VFC based on OpenStack Nova Server - resourceType: VFC - resourceCategry: Generic - resourceSubcategry: Infrastructure - resourceVendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: vlc1_vfc_instance_name} - vfc_type_tag: {get_input: vlc1_vfc_type_tag} - vfc_description: VLC1 - vfc_image_name: {get_input: vlc1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: vlc1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - VLC2: # VFC8 / VM8 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - resourceInvariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - resourceUUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceversion: 1.0 - resourceName: Nova Server - resourceDescription: VFC based on OpenStack Nova Server - resourceType: VFC - resourceCategry: Generic - resourceSubcategry: Infrastructure - resourceVendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: vlc2_vfc_instance_name} - vfc_type_tag: {get_input: vlc2_vfc_type_tag} - vfc_description: VLC2 - vfc_image_name: {get_input: vlc2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: vlc2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - - # Connection Points - - fsb1_oam: # VFC1 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: fsb1_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - fsb1_internal1: # VFC1 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - fsb1_internal2: # VFC1 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - fsb2_oam: # VFC2 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: fsb2_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - fsb2_internal1: # VFC2 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - fsb2_internal2: # VFC2 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - ncb1_internal1: # VFC3 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - ncb1_internal2: # VFC3 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - ncb2_internal1: # VFC4 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - ncb2_internal2: # VFC4 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - gpb1_internal1: # VFC5 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - gpb1_internal2: # VFC5 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - gpb2_internal1: # VFC6 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - gpb2_internal2: # VFC6 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc1_oam: # VFC7 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc1_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - vlc1_internal2: # VFC7 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_a: # VFC7 eca_sctp_a CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_a_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_a_net - # relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b: # VFC7 eca_sctp_b CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_b_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_b_net - # relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net: # VFC7 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc1_gtp_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: gtp_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_oam: # VFC8 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - vlc2_internal1: # VFC8 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - vlc2_internal2: # VFC8 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc2_sctp_a: # VFC8 eca_sctp_a CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_a_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_a_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_sctp_b: # VFC8 eca_sctp_b CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_b_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_b_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_gtp_net: # VFC8 gtp CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_gtp_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: gtp_net - # relationship: tosca.relationships.network.BindsTo - - # Virtual Links (Networks) - - Internal1_net: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - - metadata: - resourceInvariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - resourceUUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceversion: 1.0 - resourceName: Network - resourceDescription: Internal Network - resourceType: VL - resourceCategry: Generic - resourceSubcategory: Infrastructure - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_role: - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - ip_version: 4 - enable_dhcp: {get_input: Internal1_net_enable_dhcp} - cidr: {get_input: Internal1_net_cidr} - gateway_ip: {get_input: Internal1_net_gateway_ip} - - Internal2_net: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - metadata: - resourceInvariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - resourceUUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceversion: 1.0 - resourceName: Network - resourceDescription: Internal Network - resourceType: VL - resourceCategry: Generic - resourceSubcategory: Infrastructure - resourceVendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_role: - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - ip_version: 4 - enable_dhcp: {get_input: Internal2_net_enable_dhcp} - cidr: {get_input: Internal2_net_cidr} - gateway_ip: {get_input: Internal2_net_gateway_ip} - - - oam_net: - type: org.openecomp.resource.vl.OAM - - metadata: - resourceInvariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - resourceUUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceversion: 2.0 - resourceName: Mobility OAM Network - resourceDescription: Mobility OAM Network - resourceType: VL - resourceCategry: VL - resourceVendor: AT&T - - properties: - network_type: vIPR_ATM_OAM - network_technology: Contrail - network_id: {get_input: oam_net_id} - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - - - groups: - - # VF Modules - vfmoduleVmmeModule-1: - type: org.openecomp.groups.VfModule - - metadata: - vfModuleModelName: vMME::module-1 - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - - properties: - vf_module_type: Expansion # set by service designer - vf_module_label: vMME Expansion VF Module # set by service designer - vf_module_description: vMME expansion VF Module # set by service designer - contrail_service_instance: true # from HEAT - availability_zone_count: 2 # from HEAT - volume_group: false # from HEAT / service Designer - artifacts: # HEAT Templates - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC2 - - oam_net - - vlc2_gtp_net - - Internal1_net - - fsb1_oam - - Internal2_net - - - - # HEAT Stacks - - vmme_small: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/vmme_small.yml - description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc - - members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, - fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2, - ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1, - gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, - vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ] - - vmme_small_create_fsb: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/vmme_small_create_fsb.yml - description: server template for vMME - - members: [ FSB1_volume, FSB2_volume ] - - policies: - # Autoscaling policy - - mme_autoscale_policy: - type: org.openecomp.policy.Autoscaling - properties: - min_instances: 1 - max_instances: 4 - increment: 1 - factor: cpu_load - threshold: 80% - - target: [ vfmoduleVmmeModule-1] - - - substitution_mapping: - type: org.openecomp.resource.vf.vmme - - requirements: - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_IpMux.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_IpMux.yml deleted file mode 100644 index 030fa24603..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_IpMux.yml +++ /dev/null @@ -1,78 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Alloted resource: - file: resource-AllotedResource-template.yml -topology_template: - node_templates: - allotedresource1: - type: org.openecomp.resource.vfc.AllottedResource1 - metadata: - invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 - UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa - customizationUUID: 1c217567-5093-41f5-86e6-22c97ef24e75 - version: '1.0' - name: Alloted resource - description: This is a VFC- Allotted resource - type: VFC - category: Allotted Resource1 - subcategory: Allotted Resource - properties: - role: name - ecomp_naming: - naming_policy: test - ecomp_generated_naming: false - supplemental_data: - Key1: key1 - max_instances: 1 - min_instances: 1 - ecomp_homing: - instance_node_target: Test - homing_policy: Test - supplemental_data: - Key: key - ecomp_selected_instance_node_target: false - groups: { - } - substitution_mappings: - node_type: org.openecomp.resource.vf.AllottedResource - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_IpMux_WithGroups.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_IpMux_WithGroups.yml deleted file mode 100644 index 282750351c..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_IpMux_WithGroups.yml +++ /dev/null @@ -1,283 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Alloted resource: - file: resource-AllotedResource-template.yml -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - node_templates: - allotedresource1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 - UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa - customizationUUID: 1c217567-5093-41f5-86e6-22c97ef24e75 - version: '1.0' - name: Alloted resource - description: This is a VFC- Allotted resource - type: VFC - category: Allotted Resource - subcategory: Allotted Resource - properties: - role: name - ecomp_naming: - naming_policy: test - ecomp_generated_naming: false - supplemental_data: - Key1: key1 - providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c - min_instances: 1 - max_instances: 1 - providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa - providing_service_name: vVIGaaS - ecomp_homing: - instance_node_target: Test - homing_policy: Test - supplemental_data: - Key: key - ecomp_selected_instance_node_target: false - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - substitution_mappings: - node_type: org.openecomp.resource.vf.AllottedResource - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithDiffVersionOfSameL3Network.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithDiffVersionOfSameL3Network.yml deleted file mode 100644 index c80e701913..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithDiffVersionOfSameL3Network.yml +++ /dev/null @@ -1,78 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: Allotted Resource - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Alloted resource: - file: resource-AllotedResource-template.yml -topology_template: - node_templates: - Alloted resource 1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 - UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa - version: '1.0' - name: Alloted resource - description: This is a VFC- Allotted resource - type: VFC - category: Allotted Resource - subcategory: Allotted Resource - properties: - role: name - ecomp_naming: - naming_policy: test - ecomp_generated_naming: false - supplemental_data: - Key1: key1 - providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c - min_instances: 1 - max_instances: 1 - providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa - providing_service_name: vVIGaaS - ecomp_homing: - instance_node_target: Test - homing_policy: Test - supplemental_data: - Key: key - ecomp_selected_instance_node_target: false - substitution_mappings: - node_type: org.openecomp.resource.vf.AllottedResource - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithDupL3Network.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithDupL3Network.yml deleted file mode 100644 index c80e701913..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithDupL3Network.yml +++ /dev/null @@ -1,78 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: Allotted Resource - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Alloted resource: - file: resource-AllotedResource-template.yml -topology_template: - node_templates: - Alloted resource 1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 - UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa - version: '1.0' - name: Alloted resource - description: This is a VFC- Allotted resource - type: VFC - category: Allotted Resource - subcategory: Allotted Resource - properties: - role: name - ecomp_naming: - naming_policy: test - ecomp_generated_naming: false - supplemental_data: - Key1: key1 - providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c - min_instances: 1 - max_instances: 1 - providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa - providing_service_name: vVIGaaS - ecomp_homing: - instance_node_target: Test - homing_policy: Test - supplemental_data: - Key: key - ecomp_selected_instance_node_target: false - substitution_mappings: - node_type: org.openecomp.resource.vf.AllottedResource - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithL3Network.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithL3Network.yml deleted file mode 100644 index c80e701913..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithL3Network.yml +++ /dev/null @@ -1,78 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: Allotted Resource - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Alloted resource: - file: resource-AllotedResource-template.yml -topology_template: - node_templates: - Alloted resource 1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 - UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa - version: '1.0' - name: Alloted resource - description: This is a VFC- Allotted resource - type: VFC - category: Allotted Resource - subcategory: Allotted Resource - properties: - role: name - ecomp_naming: - naming_policy: test - ecomp_generated_naming: false - supplemental_data: - Key1: key1 - providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c - min_instances: 1 - max_instances: 1 - providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa - providing_service_name: vVIGaaS - ecomp_homing: - instance_node_target: Test - homing_policy: Test - supplemental_data: - Key: key - ecomp_selected_instance_node_target: false - substitution_mappings: - node_type: org.openecomp.resource.vf.AllottedResource - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithL3NetworkInVFMod.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithL3NetworkInVFMod.yml deleted file mode 100644 index c80e701913..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource-template_WithL3NetworkInVFMod.yml +++ /dev/null @@ -1,78 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: Allotted Resource - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Alloted resource: - file: resource-AllotedResource-template.yml -topology_template: - node_templates: - Alloted resource 1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 - UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa - version: '1.0' - name: Alloted resource - description: This is a VFC- Allotted resource - type: VFC - category: Allotted Resource - subcategory: Allotted Resource - properties: - role: name - ecomp_naming: - naming_policy: test - ecomp_generated_naming: false - supplemental_data: - Key1: key1 - providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c - min_instances: 1 - max_instances: 1 - providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa - providing_service_name: vVIGaaS - ecomp_homing: - instance_node_target: Test - homing_policy: Test - supplemental_data: - Key: key - ecomp_selected_instance_node_target: false - substitution_mappings: - node_type: org.openecomp.resource.vf.AllottedResource - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource1SameInvariant-IpMux-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource1SameInvariant-IpMux-template.yml deleted file mode 100644 index 76ae589dd9..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource1SameInvariant-IpMux-template.yml +++ /dev/null @@ -1,81 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Alloted resource: - file: resource-AllotedResource-template.yml -topology_template: - node_templates: - allotedresource1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 - UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa - customizationUUID: 1c217567-5093-41f5-86e6-22c97ef24e75 - version: '1.0' - name: Alloted resource - description: This is a VFC- Allotted resource - type: VFC - category: Allotted Resource - subcategory: Allotted Resource - properties: - role: name - ecomp_naming: - naming_policy: test - ecomp_generated_naming: false - supplemental_data: - Key1: key1 - providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c - min_instances: 1 - max_instances: 1 - providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b678aa - providing_service_name: vVIGaaS - ecomp_homing: - instance_node_target: Test - homing_policy: Test - supplemental_data: - Key: key - ecomp_selected_instance_node_target: false - groups: { - } - substitution_mappings: - node_type: org.openecomp.resource.vf.AllottedResource - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource2SameInvariant-IpMux-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource2SameInvariant-IpMux-template.yml deleted file mode 100644 index afd085df89..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResource2SameInvariant-IpMux-template.yml +++ /dev/null @@ -1,81 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f64afdc3-6308-4f0c-a476-0d39c8a1fb4d - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Alloted resource: - file: resource-AllotedResource-template.yml -topology_template: - node_templates: - allotedresource1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 - UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa - customizationUUID: 1c217567-5093-41f5-86e6-22c97ef24e75 - version: '1.0' - name: Alloted resource - description: This is a VFC- Allotted resource - type: VFC - category: Allotted Resource - subcategory: Allotted Resource - properties: - role: name - ecomp_naming: - naming_policy: test - ecomp_generated_naming: false - supplemental_data: - Key1: key1 - providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c - min_instances: 1 - max_instances: 1 - providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa - providing_service_name: vVIGaaS - ecomp_homing: - instance_node_target: Test - homing_policy: Test - supplemental_data: - Key: key - ecomp_selected_instance_node_target: false - groups: { - } - substitution_mappings: - node_type: org.openecomp.resource.vf.AllottedResource - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResourceSameInvariantSameVers-IpMux-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResourceSameInvariantSameVers-IpMux-template.yml deleted file mode 100644 index 2852d03568..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-AllottedResourceSameInvariantSameVers-IpMux-template.yml +++ /dev/null @@ -1,81 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Alloted resource: - file: resource-AllotedResource-template.yml -topology_template: - node_templates: - allotedresource1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 - UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa - customizationUUID: 1c217567-5093-41f5-86e6-22c97ef24e75 - version: '1.0' - name: Alloted resource - description: This is a VFC- Allotted resource - type: VFC - category: Allotted Resource - subcategory: Allotted Resource - properties: - role: name - ecomp_naming: - naming_policy: test - ecomp_generated_naming: false - supplemental_data: - Key1: key1 - providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c - min_instances: 1 - max_instances: 1 - providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa - providing_service_name: vVIGaaS - ecomp_homing: - instance_node_target: Test - homing_policy: Test - supplemental_data: - Key: key - ecomp_selected_instance_node_target: false - groups: { - } - substitution_mappings: - node_type: org.openecomp.resource.vf.AllottedResource - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_1_WithDiffVersionOfSameL3Network.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_1_WithDiffVersionOfSameL3Network.yml deleted file mode 100644 index e474f9a637..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_1_WithDiffVersionOfSameL3Network.yml +++ /dev/null @@ -1,61 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf - UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57433 - name: ExtVL2 - description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks - type: VL - category: Generic - subcategory: Network Elements - resourceVendor: OPENECOMP (Tosca) - resourceVendorRelease: 1.0.0.wd03 -node_types: - org.openecomp.resource.vl.extVL: - derived_from: tosca.nodes.Root - description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks - properties: - physical_network: - type: org.openecomp.datatypes.network.PhysicalNetwork - network_role: - type: string - description: | - Unique label that defines the role that this network performs. example: vce oam network, vnat sr-iov1 network - network_assignments: - type: org.openecomp.datatypes.network.NetworkAssignments - network_flows: - type: org.openecomp.datatypes.network.NetworkFlows - vl_artifacts: - type: map - description: List of artifacts associated with the VL - entry_schema: - type: org.openecomp.datatypes.Artifact - network_scope: - type: string - description: | - Uniquely identifies the network scope. Valid values for the network scope includes: VF - VF-level network. Intra-VF network which connects the VFCs (VMs) inside the VF. SERVICE - Service-level network. Intra-Service network which connects the VFs within the service GLOBAL - Global network which can be shared by multiple services - network_ecomp_naming: - type: org.openecomp.datatypes.EcompNaming - network_type: - type: string - description: OPENECOMP supported network types. - network_technology: - type: string - description: OPENECOMP supported network technology - network_homing: - type: org.openecomp.datatypes.EcompHoming - capabilities: - virtual_linkable: - type: tosca.capabilities.network.Linkable - occurrences: - - 1 - - UNBOUNDED -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithDiffVersionOfSameL3Network.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithDiffVersionOfSameL3Network.yml deleted file mode 100644 index aa32d4ae01..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithDiffVersionOfSameL3Network.yml +++ /dev/null @@ -1,61 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf - UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 - name: ExtVL1 - description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks - type: VL - category: Generic - subcategory: Network Elements - resourceVendor: OPENECOMP (Tosca) - resourceVendorRelease: 1.0.0.wd03 -node_types: - org.openecomp.resource.vl.extVL: - derived_from: tosca.nodes.Root - description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks - properties: - physical_network: - type: org.openecomp.datatypes.network.PhysicalNetwork - network_role: - type: string - description: | - Unique label that defines the role that this network performs. example: vce oam network, vnat sr-iov1 network - network_assignments: - type: org.openecomp.datatypes.network.NetworkAssignments - network_flows: - type: org.openecomp.datatypes.network.NetworkFlows - vl_artifacts: - type: map - description: List of artifacts associated with the VL - entry_schema: - type: org.openecomp.datatypes.Artifact - network_scope: - type: string - description: | - Uniquely identifies the network scope. Valid values for the network scope includes: VF - VF-level network. Intra-VF network which connects the VFCs (VMs) inside the VF. SERVICE - Service-level network. Intra-Service network which connects the VFs within the service GLOBAL - Global network which can be shared by multiple services - network_ecomp_naming: - type: org.openecomp.datatypes.EcompNaming - network_type: - type: string - description: OPENECOMP supported network types. - network_technology: - type: string - description: OPENECOMP supported network technology - network_homing: - type: org.openecomp.datatypes.EcompHoming - capabilities: - virtual_linkable: - type: tosca.capabilities.network.Linkable - occurrences: - - 1 - - UNBOUNDED -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithDupL3Network.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithDupL3Network.yml deleted file mode 100644 index 512d62bdaa..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithDupL3Network.yml +++ /dev/null @@ -1,61 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf - UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 - name: ExtVL - description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks - type: VL - category: Generic - subcategory: Network Elements - resourceVendor: OPENECOMP (Tosca) - resourceVendorRelease: 1.0.0.wd03 -node_types: - org.openecomp.resource.vl.extVL: - derived_from: tosca.nodes.Root - description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks - properties: - physical_network: - type: org.openecomp.datatypes.network.PhysicalNetwork - network_role: - type: string - description: | - Unique label that defines the role that this network performs. example: vce oam network, vnat sr-iov1 network - network_assignments: - type: org.openecomp.datatypes.network.NetworkAssignments - network_flows: - type: org.openecomp.datatypes.network.NetworkFlows - vl_artifacts: - type: map - description: List of artifacts associated with the VL - entry_schema: - type: org.openecomp.datatypes.Artifact - network_scope: - type: string - description: | - Uniquely identifies the network scope. Valid values for the network scope includes: VF - VF-level network. Intra-VF network which connects the VFCs (VMs) inside the VF. SERVICE - Service-level network. Intra-Service network which connects the VFs within the service GLOBAL - Global network which can be shared by multiple services - network_ecomp_naming: - type: org.openecomp.datatypes.EcompNaming - network_type: - type: string - description: OPENECOMP supported network types. - network_technology: - type: string - description: OPENECOMP supported network technology - network_homing: - type: org.openecomp.datatypes.EcompHoming - capabilities: - virtual_linkable: - type: tosca.capabilities.network.Linkable - occurrences: - - 1 - - UNBOUNDED -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithL3Network.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithL3Network.yml deleted file mode 100644 index 512d62bdaa..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-Extvl-template_WithL3Network.yml +++ /dev/null @@ -1,61 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf - UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 - name: ExtVL - description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks - type: VL - category: Generic - subcategory: Network Elements - resourceVendor: OPENECOMP (Tosca) - resourceVendorRelease: 1.0.0.wd03 -node_types: - org.openecomp.resource.vl.extVL: - derived_from: tosca.nodes.Root - description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks - properties: - physical_network: - type: org.openecomp.datatypes.network.PhysicalNetwork - network_role: - type: string - description: | - Unique label that defines the role that this network performs. example: vce oam network, vnat sr-iov1 network - network_assignments: - type: org.openecomp.datatypes.network.NetworkAssignments - network_flows: - type: org.openecomp.datatypes.network.NetworkFlows - vl_artifacts: - type: map - description: List of artifacts associated with the VL - entry_schema: - type: org.openecomp.datatypes.Artifact - network_scope: - type: string - description: | - Uniquely identifies the network scope. Valid values for the network scope includes: VF - VF-level network. Intra-VF network which connects the VFCs (VMs) inside the VF. SERVICE - Service-level network. Intra-Service network which connects the VFs within the service GLOBAL - Global network which can be shared by multiple services - network_ecomp_naming: - type: org.openecomp.datatypes.EcompNaming - network_type: - type: string - description: OPENECOMP supported network types. - network_technology: - type: string - description: OPENECOMP supported network technology - network_homing: - type: org.openecomp.datatypes.EcompHoming - capabilities: - virtual_linkable: - type: tosca.capabilities.network.Linkable - occurrences: - - 1 - - UNBOUNDED -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template.yml deleted file mode 100644 index 5b4ffd971e..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template.yml +++ /dev/null @@ -1,83 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: ec95fbf0-5d05-4fea-a11e-27869c0032e2 - UUID: 41e4949f-85b3-4bc5-b7a2-2c166bf87270 - name: IP_Mux_Demux - description: nbvnbb - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - resourceVendor: stella - resourceVendorRelease: '1.0' -imports: -- newAllotted: - file: resource-Newallotted-template.yml -topology_template: - inputs: - role: - type: string - ecomp_naming: - type: string - max_instances: - type: string - min_instances: - type: string - ecomp_homing: - type: string - node_templates: - allotedresource1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: cce8d00f-1a7a-439d-b186-207599f8bbf2 - UUID: 468a08a2-10a7-4ee7-86eb-dcf2e74a028f - customizationUUID: e7a3e375-9bec-4552-88d2-26cb5dcf580d - version: '1.0' - name: newAllotted - description: vcxvcx - type: VFC - category: Allotted Resource - subcategory: IP Mux Demux - properties: - ecomp_naming: - naming_policy: - get input: ecomp_naming - providing_service_invariant_uuid: 2bec5c69-b64e-4ffe-b74a-62f14d255d46 - min_instances: 1 - max_instances: 1 - providing_service_uuid: 8ca1e477-77ec-47ed-a498-303fd0de9080 - providing_service_name: ServiceAllMichael1801 - groups: { - } - substitution_mappings: - node_type: org.openecomp.resource.vf.IpMuxDemux - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template_AllRes_VF.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template_AllRes_VF.yml deleted file mode 100644 index d8885bb84b..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template_AllRes_VF.yml +++ /dev/null @@ -1,81 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 - UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 - name: IP_Mux_Demux - description: IP_Mux_Demux - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Allotedresource: - file: resource-Allotedresource-template.yml -topology_template: - inputs: - role: - type: string - ecomp_naming: - type: string - max_instances: - type: string - min_instances: - type: string - ecomp_homing: - type: string - node_templates: - Alloted resource 1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c - UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a - customizationUUID: 5eac2a36-bcb5-4158-ace4-802b81e87248 - version: '1.0' - name: Allotedresource - description: Allotedresource - type: VFC - category: Allotted Resource - subcategory: IP Mux Demux - properties: - ecomp_naming: - naming_policy: - get input: ecomp_naming - providing_service_invariant_uuid: e42ea8ff-1862-43f4-a597-4b885cf3c6e5 - min_instances: 1 - max_instances: 1 - providing_service_uuid: 2fb4b63d-7ec8-4fc0-98c7-a1c51fb4b794 - providing_service_name: vVIGaaS - substitution_mappings: - node_type: org.openecomp.resource.vf.IpMuxDemux - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template_WithOutDepSerId.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template_WithOutDepSerId.yml deleted file mode 100644 index 2e06cf467b..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-IpMuxDemux-template_WithOutDepSerId.yml +++ /dev/null @@ -1,80 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 - UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 - name: IP_Mux_Demux - description: IP_Mux_Demux - type: VF - category: Allotted Resource - subcategory: Allotted Resource - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Allotedresource: - file: resource-Allotedresource-template.yml -topology_template: - inputs: - role: - type: string - ecomp_naming: - type: string - max_instances: - type: string - min_instances: - type: string - ecomp_homing: - type: string - node_templates: - Alloted resource 1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c - UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a - customizationUUID: 5eac2a36-bcb5-4158-ace4-802b81e87248 - version: '1.0' - name: Allotedresource - description: Allotedresource - type: VFC - category: Allotted Resource - subcategory: Allotted Resource - properties: - ecomp_naming: - naming_policy: - get input: ecomp_naming - providing_service_invariant_uuid: - min_instances: 1 - max_instances: 1 - providing_service_uuid: - substitution_mappings: - node_type: org.openecomp.resource.vf.IpMuxDemux - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-ServiceAdmin-template_AllRes_VF.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-ServiceAdmin-template_AllRes_VF.yml deleted file mode 100644 index 549c18b55b..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-ServiceAdmin-template_AllRes_VF.yml +++ /dev/null @@ -1,81 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 - UUID: a9c6246c-0807-4a43-a64c-442a170c2088 - name: service_admin - description: service_admin - type: VF - category: Allotted Resource - subcategory: Service admin - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Allotedresource: - file: resource-Allotedresource-template.yml -topology_template: - inputs: - role: - type: string - ecomp_naming: - type: string - max_instances: - type: string - min_instances: - type: string - ecomp_homing: - type: string - node_templates: - Alloted resource 1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c - UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a - customizationUUID: f61f785d-2c82-4d6d-9184-8cbdf2df4da0 - version: '1.0' - name: Allotedresource - description: Allotedresource - type: VFC - category: Allotted Resource - subcategory: Service admin - properties: - ecomp_naming: - naming_policy: - get input: ecomp_naming - providing_service_invariant_uuid: e42ea8ff-1862-43f4-a597-4b885cf3c6e5 - min_instances: 1 - max_instances: 1 - providing_service_uuid: 2fb4b63d-7ec8-4fc0-98c7-a1c51fb4b794 - providing_service_name: HNPortalaaS - substitution_mappings: - node_type: org.openecomp.resource.vf.ServiceAdmin - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-ServiceAdmin-template_WithOutDepSerId.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-ServiceAdmin-template_WithOutDepSerId.yml deleted file mode 100644 index c8a641d1ac..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-ServiceAdmin-template_WithOutDepSerId.yml +++ /dev/null @@ -1,81 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 - UUID: a9c6246c-0807-4a43-a64c-442a170c2088 - name: service_admin - description: service_admin - type: VF - category: Allotted Resource - subcategory: Allotted Resource - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Allotedresource: - file: resource-Allotedresource-template.yml -topology_template: - inputs: - role: - type: string - ecomp_naming: - type: string - max_instances: - type: string - min_instances: - type: string - ecomp_homing: - type: string - node_templates: - Alloted resource 1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c - UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a - customizationUUID: f61f785d-2c82-4d6d-9184-8cbdf2df4da0 - version: '1.0' - name: Allotedresource - description: Allotedresource - type: VFC - category: Allotted Resource - subcategory: Allotted Resource - properties: - ecomp_naming: - naming_policy: - get input: ecomp_naming - providing_service_invariant_uuid: - min_instances: 1 - max_instances: 1 - providing_service_uuid: - providing_service_name: HNPortalaaS - substitution_mappings: - node_type: org.openecomp.resource.vf.ServiceAdmin - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template.yml deleted file mode 100644 index 434757d30e..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template.yml +++ /dev/null @@ -1,83 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: fadbb726-37b6-4939-ba78-9e86974232c5 - UUID: 68d68207-007a-49f3-a9ae-5f88757d5061 - name: Tunnel_XConn - description: stella - type: VF - category: Allotted Resource - subcategory: Tunnel XConnect - resourceVendor: stella - resourceVendorRelease: '1.0' -imports: -- newAllotted: - file: resource-Newallotted-template.yml -topology_template: - inputs: - role: - type: string - ecomp_naming: - type: string - max_instances: - type: string - min_instances: - type: string - ecomp_homing: - type: string - node_templates: - allotedresource1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: cce8d00f-1a7a-439d-b186-207599f8bbf2 - UUID: 468a08a2-10a7-4ee7-86eb-dcf2e74a028f - customizationUUID: a92f5f2e-fe08-4711-84f6-2e64608aca13 - version: '1.0' - name: newAllotted - description: vcxvcx - type: VFC - category: Allotted Resource - subcategory: IP Mux Demux - properties: - ecomp_naming: - naming_policy: - get input: ecomp_naming - providing_service_invariant_uuid: c964ef13-9d61-4d1b-a1a6-7060f3d7ddb4 - min_instances: 1 - max_instances: 1 - providing_service_uuid: 3d6f84f5-84fd-441a-8fd8-401f71196712 - providing_service_name: ServiceSprint38stella - groups: { - } - substitution_mappings: - node_type: org.openecomp.resource.vf.TunnelXconn - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template_AllRes_VF.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template_AllRes_VF.yml deleted file mode 100644 index 1eb97a0976..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template_AllRes_VF.yml +++ /dev/null @@ -1,81 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 - UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb - name: Tunnel_XConn - description: Tunnel_XConn - type: VF - category: Allotted Resource - subcategory: Tunnel XConnect - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Allotedresource: - file: resource-Allotedresource-template.yml -topology_template: - inputs: - role: - type: string - ecomp_naming: - type: string - min_instances: - type: string - max_instances: - type: string - ecomp_homing: - type: string - node_templates: - Alloted resource 1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c - UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a - customizationUUID: 22ca20ca-1577-46d3-b3ef-77483cca37d6 - version: '1.0' - name: Allotedresource - description: Allotedresource - type: VFC - category: Allotted Resource - subcategory: Tunnel XConnect - properties: - ecomp_naming: - naming_policy: - get input: ecomp_naming - providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c - min_instances: 1 - max_instances: 1 - providing_service_uuid: 2fb4b63d-7ec8-4fc0-98c7-a1c51fb4b794 - providing_service_name: vVIGaaS - substitution_mappings: - node_type: org.openecomp.resource.vf.TunnelXconn - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template_WithOutDepSerId.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template_WithOutDepSerId.yml deleted file mode 100644 index eb248d1d65..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-TunnelXconn-template_WithOutDepSerId.yml +++ /dev/null @@ -1,81 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 - UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb - name: Tunnel_XConn - description: Tunnel_XConn - type: VF - category: Allotted Resource - subcategory: Allotted Resource - resourceVendor: '1' - resourceVendorRelease: '1' -imports: -- Allotedresource: - file: resource-Allotedresource-template.yml -topology_template: - inputs: - role: - type: string - ecomp_naming: - type: string - min_instances: - type: string - max_instances: - type: string - ecomp_homing: - type: string - node_templates: - Alloted resource 1: - type: org.openecomp.resource.vfc.AllottedResource - metadata: - invariantUUID: bc0bebc1-6dc1-4637-883e-aed77bffd63c - UUID: 7763d3a3-048f-4e5b-96c5-e7818dbc066a - customizationUUID: 22ca20ca-1577-46d3-b3ef-77483cca37d6 - version: '1.0' - name: Allotedresource - description: Allotedresource - type: VFC - category: Allotted Resource - subcategory: Allotted Resource - properties: - ecomp_naming: - naming_policy: - get input: ecomp_naming - providing_service_invariant_uuid: - min_instances: 1 - max_instances: 1 - providing_service_uuid: - providing_service_name: vVIGaaS - substitution_mappings: - node_type: org.openecomp.resource.vf.TunnelXconn - capabilities: - Alloted resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Alloted resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Alloted resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-VhnfNonHeat-template_AllRes_VF.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-VhnfNonHeat-template_AllRes_VF.yml deleted file mode 100644 index 8ec1c192ee..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-VhnfNonHeat-template_AllRes_VF.yml +++ /dev/null @@ -1,24 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: f61adc31-6004-4377-a661-090f59e6b32a - UUID: 2118e830-5e0d-409a-9d7a-63b6a72d6f5f - name: vHNF non Heat - description: vHNF non Heat - type: VF - category: Generic - subcategory: Network Elements - resourceVendor: '1' - resourceVendorRelease: '1' -topology_template: - substitution_mappings: - node_type: org.openecomp.resource.vf.VhnfNonHeat -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-VhnfNonHeat-template_WithOutDepSerId.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-VhnfNonHeat-template_WithOutDepSerId.yml deleted file mode 100644 index 8ec1c192ee..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/resource-VhnfNonHeat-template_WithOutDepSerId.yml +++ /dev/null @@ -1,24 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: f61adc31-6004-4377-a661-090f59e6b32a - UUID: 2118e830-5e0d-409a-9d7a-63b6a72d6f5f - name: vHNF non Heat - description: vHNF non Heat - type: VF - category: Generic - subcategory: Network Elements - resourceVendor: '1' - resourceVendorRelease: '1' -topology_template: - substitution_mappings: - node_type: org.openecomp.resource.vf.VhnfNonHeat -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-Allottedipmux-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-Allottedipmux-template.yml deleted file mode 100644 index 449e0925d5..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-Allottedipmux-template.yml +++ /dev/null @@ -1,126 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 9c5b8e77-6ae1-4817-994f-a14a03635868 - UUID: 2722acbc-a8cb-4d73-ab14-9b2d79dc2131 - name: AllottedIPMux - description: cbvbv - type: Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false -imports: -- Tunnel_XConn: - file: resource-TunnelXconn-template.yml -- IP_Mux_Demux: - file: resource-IpMuxDemux-template.yml -topology_template: - node_templates: - Tunnel_XConn 3: - type: org.openecomp.resource.vf.TunnelXconn - metadata: - invariantUUID: fadbb726-37b6-4939-ba78-9e86974232c5 - UUID: 68d68207-007a-49f3-a9ae-5f88757d5061 - customizationUUID: ae051f74-0d64-40f8-877b-791330cd7801 - version: '1.0' - name: Tunnel_XConn - description: stella - type: VF - category: Allotted Resource - subcategory: Tunnel XConnect - IP_Mux_Demux 2: - type: org.openecomp.resource.vf.IpMuxDemux - metadata: - invariantUUID: ec95fbf0-5d05-4fea-a11e-27869c0032e2 - UUID: 41e4949f-85b3-4bc5-b7a2-2c166bf87270 - customizationUUID: 8cb6b8f7-a9bc-4745-92bd-f815f68fa6bc - version: '1.0' - name: IP_Mux_Demux - description: nbvnbb - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - IP_Mux_Demux 1: - type: org.openecomp.resource.vf.IpMuxDemux - metadata: - invariantUUID: ec95fbf0-5d05-4fea-a11e-27869c0032e2 - UUID: 41e4949f-85b3-4bc5-b7a2-2c166bf87270 - customizationUUID: 7801f43f-f3f6-453f-89ea-4c182c569ad6 - version: '1.0' - name: IP_Mux_Demux - description: nbvnbb - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - groups: { - } - substitution_mappings: - node_type: org.openecomp.service.Allottedipmux - capabilities: - IP_Mux_Demux 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Tunnel_XConn 3.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - IP_Mux_Demux 2.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Tunnel_XConn 3.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - IP_Mux_Demux 2.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - IP_Mux_Demux 2.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - IP_Mux_Demux 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - IP_Mux_Demux 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Tunnel_XConn 3.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-SdWan-template_AllRes_VF.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-SdWan-template_AllRes_VF.yml deleted file mode 100644 index bc3ab6dabb..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-SdWan-template_AllRes_VF.yml +++ /dev/null @@ -1,233 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 3d8b7a76-7c47-4974-b5b9-e24c54b817a2 - UUID: eb31504f-9f60-4936-a2f2-8ac592b611a6 - name: SD-WAN - description: SD-WAN - type: Service - category: Network L4+ - serviceEcompNaming: false - serviceHoming: false -imports: -- service_admin: - file: resource-ServiceAdmin-template.yml -- Tunnel_XConn: - file: resource-TunnelXconn-template.yml -- vHNF non Heat: - file: resource-VhnfNonHeat-template.yml -- IP_Mux_Demux: - file: resource-IpMuxDemux-template.yml -topology_template: - node_templates: - Sec_IP_Mux_Demux: - type: org.openecomp.resource.vf.IpMuxDemux - metadata: - invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 - UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 - customizationUUID: f4b764bb-6721-4219-8c69-7ce61969f755 - version: '0.1' - name: IP_Mux_Demux - description: IP_Mux_Demux - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - Pri_Tunnel_XConn: - type: org.openecomp.resource.vf.TunnelXconn - metadata: - invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 - UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb - customizationUUID: 96d0bbf6-d9f7-441d-8f00-67d79dbf30de - version: '0.1' - name: Tunnel_XConn - description: Tunnel_XConn - type: VF - category: Allotted Resource - subcategory: Tunnel XConnect - Pri_service_admin: - type: org.openecomp.resource.vf.ServiceAdmin - metadata: - invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 - UUID: a9c6246c-0807-4a43-a64c-442a170c2088 - customizationUUID: 6b4a2a55-3b82-4799-8329-4fc2939fd5b5 - version: '0.1' - name: service_admin - description: service_admin - type: VF - category: Allotted Resource - subcategory: Service admin - Pri_IP_Mux_Demux: - type: org.openecomp.resource.vf.IpMuxDemux - metadata: - invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 - UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 - customizationUUID: d8f656d9-179d-4f02-9a46-8af7421eb2a0 - version: '0.1' - name: IP_Mux_Demux - description: IP_Mux_Demux - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - Sec_Tunnel_XConn: - type: org.openecomp.resource.vf.TunnelXconn - metadata: - invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 - UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb - customizationUUID: b432136d-0a2a-460b-a3da-f921e1e0dcfa - version: '0.1' - name: Tunnel_XConn - description: Tunnel_XConn - type: VF - category: Allotted Resource - subcategory: Tunnel XConnect - vHNF non Heat 22: - type: org.openecomp.resource.vf.VhnfNonHeat - metadata: - invariantUUID: f61adc31-6004-4377-a661-090f59e6b32a - UUID: 2118e830-5e0d-409a-9d7a-63b6a72d6f5f - customizationUUID: 9c7a5f7f-6b17-4066-a6f1-094ea925495b - version: '0.1' - name: vHNF non Heat - description: vHNF non Heat - type: VF - category: Generic - subcategory: Network Elements - Sec_service_admin: - type: org.openecomp.resource.vf.ServiceAdmin - metadata: - invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 - UUID: a9c6246c-0807-4a43-a64c-442a170c2088 - customizationUUID: 5a8ef05b-451f-40f4-9531-3ee00bd3c5c4 - version: '0.1' - name: service_admin - description: service_admin - type: VF - category: Allotted Resource - subcategory: Service admin - substitution_mappings: - node_type: org.openecomp.service.SdWan - capabilities: - Sec_service_admin.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Sec_IP_Mux_Demux.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Pri_service_admin.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Pri_IP_Mux_Demux.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Pri_Tunnel_XConn.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Sec_Tunnel_XConn.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Pri_service_admin.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Sec_Tunnel_XConn.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Sec_service_admin.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Pri_IP_Mux_Demux.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Pri_Tunnel_XConn.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Sec_service_admin.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Pri_service_admin.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Sec_IP_Mux_Demux.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Sec_IP_Mux_Demux.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Pri_Tunnel_XConn.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Sec_Tunnel_XConn.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Pri_IP_Mux_Demux.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-SdWan-template_WithOutDepSerId.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-SdWan-template_WithOutDepSerId.yml deleted file mode 100644 index 51d8c2d8ba..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-SdWan-template_WithOutDepSerId.yml +++ /dev/null @@ -1,233 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: 3d8b7a76-7c47-4974-b5b9-e24c54b817a2 - UUID: eb31504f-9f60-4936-a2f2-8ac592b611a6 - name: SD-WAN - description: SD-WAN - type: Service - category: Network L4+ - serviceEcompNaming: false - serviceHoming: false -imports: -- service_admin: - file: resource-ServiceAdmin-template.yml -- Tunnel_XConn: - file: resource-TunnelXconn-template.yml -- vHNF non Heat: - file: resource-VhnfNonHeat-template.yml -- IP_Mux_Demux: - file: resource-IpMuxDemux-template.yml -topology_template: - node_templates: - Sec_IP_Mux_Demux: - type: org.openecomp.resource.vf.IpMuxDemux - metadata: - invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 - UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 - customizationUUID: f4b764bb-6721-4219-8c69-7ce61969f755 - version: '0.1' - name: IP_Mux_Demux - description: IP_Mux_Demux - type: VF - category: Allotted Resource - subcategory: Allotted Resource - Pri_Tunnel_XConn: - type: org.openecomp.resource.vf.TunnelXconn - metadata: - invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 - UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb - customizationUUID: 96d0bbf6-d9f7-441d-8f00-67d79dbf30de - version: '0.1' - name: Tunnel_XConn - description: Tunnel_XConn - type: VF - category: Allotted Resource - subcategory: Allotted Resource - Pri_service_admin: - type: org.openecomp.resource.vf.ServiceAdmin - metadata: - invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 - UUID: a9c6246c-0807-4a43-a64c-442a170c2088 - customizationUUID: 6b4a2a55-3b82-4799-8329-4fc2939fd5b5 - version: '0.1' - name: service_admin - description: service_admin - type: VF - category: Allotted Resource - subcategory: Allotted Resource - Pri_IP_Mux_Demux: - type: org.openecomp.resource.vf.IpMuxDemux - metadata: - invariantUUID: 707b2850-e830-4b00-9902-879f44ac05a4 - UUID: 495b483b-282a-45df-bbfe-63d1d1d80813 - customizationUUID: d8f656d9-179d-4f02-9a46-8af7421eb2a0 - version: '0.1' - name: IP_Mux_Demux - description: IP_Mux_Demux - type: VF - category: Allotted Resource - subcategory: Allotted Resource - Sec_Tunnel_XConn: - type: org.openecomp.resource.vf.TunnelXconn - metadata: - invariantUUID: 63b95d9a-9c89-40d3-a646-36a1418c5246 - UUID: ae79ba1b-5d12-4813-b01c-755fa6c800bb - customizationUUID: b432136d-0a2a-460b-a3da-f921e1e0dcfa - version: '0.1' - name: Tunnel_XConn - description: Tunnel_XConn - type: VF - category: Allotted Resource - subcategory: Allotted Resource - vHNF non Heat 22: - type: org.openecomp.resource.vf.VhnfNonHeat - metadata: - invariantUUID: f61adc31-6004-4377-a661-090f59e6b32a - UUID: 2118e830-5e0d-409a-9d7a-63b6a72d6f5f - customizationUUID: 9c7a5f7f-6b17-4066-a6f1-094ea925495b - version: '0.1' - name: vHNF non Heat - description: vHNF non Heat - type: VF - category: Generic - subcategory: Network Elements - Sec_service_admin: - type: org.openecomp.resource.vf.ServiceAdmin - metadata: - invariantUUID: 0df08d3e-9701-4f5a-b3ed-82a0b504b366 - UUID: a9c6246c-0807-4a43-a64c-442a170c2088 - customizationUUID: 5a8ef05b-451f-40f4-9531-3ee00bd3c5c4 - version: '0.1' - name: service_admin - description: service_admin - type: VF - category: Allotted Resource - subcategory: Allotted Resource - substitution_mappings: - node_type: org.openecomp.service.SdWan - capabilities: - Sec_service_admin.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Sec_IP_Mux_Demux.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Pri_service_admin.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Pri_IP_Mux_Demux.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Pri_Tunnel_XConn.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - Sec_Tunnel_XConn.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Pri_service_admin.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Sec_Tunnel_XConn.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Sec_service_admin.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Pri_IP_Mux_Demux.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Pri_Tunnel_XConn.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Sec_service_admin.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Pri_service_admin.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Sec_IP_Mux_Demux.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn - Sec_IP_Mux_Demux.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Pri_Tunnel_XConn.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Sec_Tunnel_XConn.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Pri_IP_Mux_Demux.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourceIpmux-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourceIpmux-template.yml deleted file mode 100644 index 1fba2e727f..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourceIpmux-template.yml +++ /dev/null @@ -1,62 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: faa4359b-6ecf-4eeb-9960-6440d4cf1f2f - UUID: 614316ee-94ae-41b3-b59a-46e87d3d91a5 - name: Service with allotted resource IPMUX - description: safa - type: Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false -imports: -- Allotted Resource: - file: resource-AllottedResource-template.yml -topology_template: - node_templates: - allottedresource1: - type: org.openecomp.resource.vf.AllottedResource - metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - customizationUUID: 958fb310-184f-463d-b634-1660a626f320 - version: '0.2' - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - groups: { - } - substitution_mappings: - node_type: org.openecomp.service.ServiceWithAllottedResourceIpmux - capabilities: - Allotted Resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Allotted Resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Allotted Resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourceIpmux-template_WithGroups.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourceIpmux-template_WithGroups.yml deleted file mode 100644 index 1fba2e727f..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourceIpmux-template_WithGroups.yml +++ /dev/null @@ -1,62 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: faa4359b-6ecf-4eeb-9960-6440d4cf1f2f - UUID: 614316ee-94ae-41b3-b59a-46e87d3d91a5 - name: Service with allotted resource IPMUX - description: safa - type: Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false -imports: -- Allotted Resource: - file: resource-AllottedResource-template.yml -topology_template: - node_templates: - allottedresource1: - type: org.openecomp.resource.vf.AllottedResource - metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - customizationUUID: 958fb310-184f-463d-b634-1660a626f320 - version: '0.2' - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - groups: { - } - substitution_mappings: - node_type: org.openecomp.service.ServiceWithAllottedResourceIpmux - capabilities: - Allotted Resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Allotted Resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Allotted Resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourcesIpMuxSameInvariant-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourcesIpMuxSameInvariant-template.yml deleted file mode 100644 index efd2dea67a..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourcesIpMuxSameInvariant-template.yml +++ /dev/null @@ -1,74 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: faa4359b-6ecf-4eeb-9960-6440d4cf1f2f - UUID: 614316ee-94ae-41b3-b59a-46e87d3d91a5 - name: Service with allotted resource IPMUX - description: safa - type: Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false -imports: -- Allotted Resource: - file: resource-AllottedResource-template.yml -topology_template: - node_templates: - allottedresource1: - type: org.openecomp.resource.vf.AllottedResource - metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - customizationUUID: 958fb310-184f-463d-b634-1660a626f320 - version: '0.2' - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - allottedresource2: - type: org.openecomp.resource.vf.AllottedResource - metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f64afdc3-6308-4f0c-a476-0d39c8a1fb4d - customizationUUID: 958fb310-184f-463d-b634-1660a626f320 - version: '0.3' - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - groups: { - } - substitution_mappings: - node_type: org.openecomp.service.ServiceWithAllottedResourceIpmux - capabilities: - Allotted Resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Allotted Resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Allotted Resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourcesIpMuxSameInvariantSameVers-template.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourcesIpMuxSameInvariantSameVers-template.yml deleted file mode 100644 index 08c5329212..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service-ServiceWithAllottedResourcesIpMuxSameInvariantSameVers-template.yml +++ /dev/null @@ -1,74 +0,0 @@ -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| -tosca_definitions_version: tosca_simple_yaml_1_0 -metadata: - invariantUUID: faa4359b-6ecf-4eeb-9960-6440d4cf1f2f - UUID: 614316ee-94ae-41b3-b59a-46e87d3d91a5 - name: Service with allotted resource IPMUX - description: safa - type: Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false -imports: -- Allotted Resource: - file: resource-AllottedResource-template.yml -topology_template: - node_templates: - allottedresource1: - type: org.openecomp.resource.vf.AllottedResource - metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - customizationUUID: 958fb310-184f-463d-b634-1660a626f320 - version: '0.2' - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - allottedresource2: - type: org.openecomp.resource.vf.AllottedResource - metadata: - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - customizationUUID: 958fb310-184f-463d-b634-1660a626f320 - version: '0.2' - name: Allotted Resource - description: This is a VF - Allotted resource - type: VF - category: Allotted Resource - subcategory: IP Mux Demux - groups: { - } - substitution_mappings: - node_type: org.openecomp.service.ServiceWithAllottedResourceIpmux - capabilities: - Allotted Resource 1.feature: - type: tosca.capabilities.Node - occurrences: - - 1 - - UNBOUNDED - requirements: - Allotted Resource 1.dependency: - occurrences: - - 0 - - UNBOUNDED - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - Allotted Resource 1.service_dependency: - occurrences: - - 1 - - 1 - capability: org.openecomp.capabilities.AllottedResource - node: tosca.services.Root - relationship: tosca.relationships.DependsOn -#_______________________________________________________________________________________________________________________________________ - #| AT&T Proprietary (Restricted) | - #| Only for use by authorized individuals or any above-designated team(s) | - #| within the AT&T companies and not for general distribution | - #|_______________________________________________________________________________________________________________________________________| diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DiffVerOfSameVF.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DiffVerOfSameVF.yml deleted file mode 100644 index 6a5af0d56b..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DiffVerOfSameVF.yml +++ /dev/null @@ -1,112 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - mme1: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7fef - version: 2.0 - name: vMME_VF1 - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DiffVerOfSameVFModWithSameInvId.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DiffVerOfSameVFModWithSameInvId.yml deleted file mode 100644 index 11ab6e1343..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DiffVerOfSameVFModWithSameInvId.yml +++ /dev/null @@ -1,98 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DupVFModUUID.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DupVFModUUID.yml deleted file mode 100644 index e75f7ab1a8..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DupVFModUUID.yml +++ /dev/null @@ -1,194 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - name: vMME_Service - description: vMME_Service - type: Service - category: Mobility - ecompNaming: false - homing: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - vendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - - # Virtual Links (Networks) - - gtp_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DupVFUUID.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DupVFUUID.yml deleted file mode 100644 index f92b048f5e..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_DupVFUUID.yml +++ /dev/null @@ -1,229 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - name: vMME_Service - description: vMME_Service - type: Service - category: Mobility - ecompNaming: false - homing: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - vendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - mme1: # vMME VNF1 - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF2 - description: vMME_VF2 - type: VF - category: Application L4+ - subcategory: Firewall - vendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - - # Virtual Links (Networks) - - gtp_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MissingVFInServiceTOSCA.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MissingVFInServiceTOSCA.yml deleted file mode 100644 index d112817569..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MissingVFInServiceTOSCA.yml +++ /dev/null @@ -1,158 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - name: vMME_Service - type: Service - description: vMME_Service - category: Mobility - ecompNaming: false - homing: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - # Virtual Links (Networks) - - gtp_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - categry: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - categry: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - categry: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: abc.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MissingVFTemplate.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MissingVFTemplate.yml deleted file mode 100644 index 81982bdf50..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MissingVFTemplate.yml +++ /dev/null @@ -1,193 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - name: vMME_Service - description: vMME_Service - type: Service - category: Mobility - ecompNaming: false - homing: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: abc.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - vendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - # Virtual Links (Networks) - - gtp_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MulComp.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MulComp.yml deleted file mode 100644 index dd0a8eba3d..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MulComp.yml +++ /dev/null @@ -1,193 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - name: vMME_Service - description: vMME_Service - type: Service - category: Mobility - ecompNaming: false - homing: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - vendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - # Virtual Links (Networks) - - gtp_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MulVFVFMod.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MulVFVFMod.yml deleted file mode 100644 index 353a233d74..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_MulVFVFMod.yml +++ /dev/null @@ -1,194 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - version: 1.0 - name: vMME_Service - type: Service - description: vMME_Service - category: Mobility - ecompNaming: false - homing: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: abc.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - resourceSubcategory: Firewall - vendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - # Virtual Links (Networks) - - gtp_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: abc.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_NoSystemPropConfigured.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_NoSystemPropConfigured.yml deleted file mode 100644 index 11ab6e1343..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_NoSystemPropConfigured.yml +++ /dev/null @@ -1,98 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_NullFields.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_NullFields.yml deleted file mode 100644 index 2ca342cd46..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_NullFields.yml +++ /dev/null @@ -1,193 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: - name: vMME_Service - type: Service - description: vMME_Service - category: Mobility - ecompNaming: false - homing: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - vendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - # Virtual Links (Networks) - - gtp_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_Orphan.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_Orphan.yml deleted file mode 100644 index 6ca0957b8f..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_Orphan.yml +++ /dev/null @@ -1,229 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - name: vMME_Service - type: Service - description: vMME_Service - category: Mobility - ecompNaming: false - homing: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - vendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - mme1: # vMME VNF1 - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF2 - type: VF - category: Application L4+ - subcategory: Firewall - vendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - - # Virtual Links (Networks) - - gtp_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SameWidget1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SameWidget1.yml deleted file mode 100644 index d83e44be1c..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SameWidget1.yml +++ /dev/null @@ -1,193 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e266f20c-5331-4245-9ad5-8861a73080b7 - UUID: 8887da18-7516-40cf-bec0-ebd4202c60f0 - name: vMME_Service - type: Service - description: vMME_Service - category: Mobility - ecompNaming: false - homing: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8753c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b031ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - categry: Application L4+ - subcategory: Firewall - vendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - # Virtual Links (Networks) - - gtp_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - categry: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - categry: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - categry: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SameWidget2.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SameWidget2.yml deleted file mode 100644 index 989c623fd3..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SameWidget2.yml +++ /dev/null @@ -1,193 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - name: vMME_Service - type: Service - description: vMME_Service - category: Mobility - ecompNaming: false - homing: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - categry: Application L4+ - subcategory: Firewall - vendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - # Virtual Links (Networks) - - gtp_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - categry: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - categry: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - categry: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SingleVFVFMod.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SingleVFVFMod.yml deleted file mode 100644 index 0d586db1a8..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_SingleVFVFMod.yml +++ /dev/null @@ -1,98 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyMandatoryParameterResourceVersion.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyMandatoryParameterResourceVersion.yml deleted file mode 100644 index 2d92782ce4..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyMandatoryParameterResourceVersion.yml +++ /dev/null @@ -1,178 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: vMMSC Service Topology Template - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - name: vMMSC_Service - description: vMMSC Service - type: Service - category: Mobility - ecompNaming: false - homing: false - - # reference to template definitions -imports: - - tosca_simple_profile_for_ecomp_1_0.yml - - vmmsc_vf.yml - - veca_oam_vf.yml - - cmaui_vf.yml - - service_network.yml # - -topology_template: - - # This section provides the parameters which OPENECOMP is not providing values to during instantiation. - # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP - # during the orchestration - - inputes: - service_instance_name: - type: string - description: service instance name - service_deployment_node: - type: string - description: The target LCP node for deployment of this service instance - vMMSC_init_instances: - type: integer - description: The number of instances to instantiate - constraints: - - in_range: [1, 5] - vECA_OAM_init_instances: - type: integer - description: The number of instances to instantiate - constraints: - - in_range: [1, 3] - - node_templates: - - vMMSC: # vMMSC VNF - type: org.openecomp.resource.vf.Generic - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - name: vMMC VF - description: | - Delivers messages composed of text, images, and other media types (for example audio and video) - in an operator's network. It is responsible for storing and handling incoming and outgoing Multimedia - Messages (MMs); therefore, acting as an MMS Relay and MMS Server at the same time. - type: VF - category: Mobility - subCategory: MMC - vendor: Nokia - vendorVersion: 6.0.2.14 - - properties: - vf_ecomp_name: true - vf_instance_name: # to be set by OPENECOMP during instantiation - vf_homing: true - vf_deployment_node: # to be set by OPENECOMP during instantiation - min_instances: 1 - max_instances: 5 - init_instances: # number of instances to initialize. This number can be in the range of min_instances and max_instances. - # if no value provided use min_instances value. - - - vECA_OAM: # vECA VF - type: org.openecomp.resource.vf.Generic - - metadata: - invariantUUID: 3d4f3d68-d3a3-4f52-127c-ab188c9d4da2 # generated by ASDC - UUID: a2c4dc32-9c16-a3df-d2c0-e5ab221c69f0 # generated by ASDC - version: 1.0 # set by ASDC - name: vECA VF - description: | - Performs intelligent adaptation of Multimedia Messages (MMs), and adaptation of individual media, - such as videos, audio files, images, animations, and text. Sits on the MM1 downlink path and performs - optimization offline. It intercepts the entire media and completes the optimizations before sending - the message to handsets. - type: VF - category: Generic - resourceCategory: Mobility - subCategory: MMSC - vendor: Nokia - vendorVersion: 13 - - properties: - vf_ecomp_name: true - vf_instance_name: # to be set by OPENECOMP during instantiation - vf_homing: true - vf_deployment_node: # to be set by OPENECOMP during instantiation - min_instances: 1 - max_instances: 3 - - - - CMAUI: # CMAUI VF - type: org.openecomp.resource.vf.Generic - - metadata: - invariantUUID: dd4f3d68-1223-4a97-127c-11ab729d4da2 # generated by ASDC - UUID: 2a14db52-5116-d3af-1240-1236221cab8d # generated by ASDC - version: 1.0 # set by ASDC - name: CMAUI VF - description: CMAUI MMSC VF - type: VF - category: Generic - resourceCategory: Mobility - subCategory: MMSC - vendor: Nokia - vendorVersion: 5.0.2.5.37 - - properties: - vf_ecomp_name: true - vf_instance_name: # to be set by OPENECOMP during instantiation - vf_homing: true - vf_deployment_node: # to be set by OPENECOMP during instantiation - min_instances: 1 - max_instances: 1 - - - - # service level network - - eca_internal_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: ECA traffic network - description: ECA traffic network - type: VL - category: VL - vendor: Nokia - - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - network_name: # provided by OPENECOMP (SDNC) - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyMandatoryParameterServiceVersion.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyMandatoryParameterServiceVersion.yml deleted file mode 100644 index 0d586db1a8..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyMandatoryParameterServiceVersion.yml +++ /dev/null @@ -1,98 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyResourceVersionFormat1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyResourceVersionFormat1.yml deleted file mode 100644 index 2e0d2d4bc7..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyResourceVersionFormat1.yml +++ /dev/null @@ -1,98 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 9 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyResourceVersionFormat2.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyResourceVersionFormat2.yml deleted file mode 100644 index 9ab98f3c01..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyResourceVersionFormat2.yml +++ /dev/null @@ -1,98 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 0.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyServiceVersion.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyServiceVersion.yml deleted file mode 100644 index 0d586db1a8..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyServiceVersion.yml +++ /dev/null @@ -1,98 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyServiceVersionFormat.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyServiceVersionFormat.yml deleted file mode 100644 index 0d586db1a8..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyServiceVersionFormat.yml +++ /dev/null @@ -1,98 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyVFModWithInvalidNo.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyVFModWithInvalidNo.yml deleted file mode 100644 index ae7d9cec4a..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyVFModWithInvalidNo.yml +++ /dev/null @@ -1,102 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - version: 1.0 - name: vMME_Service - type: Service - description: vMME_Service - category: Mobility - ecompNaming: false - homing: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - vendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - # Virtual Links (Networks) - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyVFModWithoutVNFC.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyVFModWithoutVNFC.yml deleted file mode 100644 index 7789017a68..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_VerifyVFModWithoutVNFC.yml +++ /dev/null @@ -1,193 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - name: vMME_Service - type: Service - description: vMME_Service - category: Mobility - ecompNaming: false - homing: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - vendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - - # Virtual Links (Networks) - - gtp_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - version: 1.0 - name: GTPNet - description: GTP External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: {get_input: gtp_net_network_name} - route_targets: {get_input: gtp_net_route_targets} - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: {get_input: gtp_net_cidr} - gateway_ip: {get_input: gtp_net_gateway_ip} - start_ip: {get_input: gtp_net_start_ip} - end_ip: {get_input: gtp_net_end_ip} - - sctp_a_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - version: 1.0 - name: SCTPANet - description: SCTP A External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - - sctp_b_net: - type: abc.openecomp.resource.vl.VL - metadata: - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - version: 1.0 - name: SCTPBNet - description: SCTP B External Network - type: VL - category: VL - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithDiffVersionOfSameL3Network.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithDiffVersionOfSameL3Network.yml deleted file mode 100644 index e4139550fe..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithDiffVersionOfSameL3Network.yml +++ /dev/null @@ -1,235 +0,0 @@ ---- -description: "Service Template for deploing MME Service" -imports: - - - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - - - ExtVL: - file: resource-Extvl-template.yml - - - ? "Allotted Resource" - : - file: resource-AllottedResource-template.yml -metadata: - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - category: Mobility - description: vMME_Service - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - name: vMME_Service - serviceEcompNaming: false - serviceHoming: false - type: Service -topology_template: - groups: - external_networks: - members: - - sctp_a_net - - sctp_b_net - - gtp_net - properties: - availability_zone_count: 1 - contrail_service_instance: true - type: org.openecomp.groups.externalNetworks - inputs: - gtp_net_cidr: - default: 107.243.37.64/27 - description: "The GTP network cidr" - type: string - gtp_net_end_ip: - default: "107.243.37.94" - description: "The GTP network end ip" - type: string - gtp_net_gateway_ip: - default: "107.243.37.65" - description: "The GTP network gateway" - type: string - gtp_net_network_name: - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 - description: "The GTP network route targets" - type: string - gtp_net_route_targets: - default: "13979:105715" - description: "The GTP network route targets" - type: string - gtp_net_start_ip: - default: "107.243.37.67" - description: "The GTP network start ip" - type: string - mme_vf_deployment_node: - description: "The target LCP node for deployment of this VF instance" - type: string - mme_vf_instance_name: - description: "VF instance name" - type: string - node_templates: - ? "Allotted Resource 2" - : - metadata: - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - category: "Allotted Resource" - description: "This is a VF - Allotted resource" - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - name: "Allotted Resource" - subcategory: "Allotted Resource" - type: VF - version: 1.0 - type: org.openecomp.resource.vf.AllottedResource - ? "ExtVL 1" - : - metadata: - UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 - category: Generic - description: "OPENECOMP generic virtual link (network) base type for all other service-level and global networks" - invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf - name: ExtVL - subcategory: "Network Elements" - type: VL - version: 2.0 - type: org.openecomp.resource.vl.extVL - ? "ExtVL 2" - : - metadata: - UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57433 - category: Generic - description: "OPENECOMP generic virtual link (network) base type for all other service-level and global networks" - invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf - name: ExtVL - subcategory: "Network Elements" - type: VL - version: 2.0 - type: org.openecomp.resource.vl.extVL - gtp_net: - metadata: - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - category: VL - description: "GTP External Network" - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - name: GTPNet - resourceVendor: AT&T - type: VL - version: 1.0 - properties: - contrail_virtual_network: - network_name: - get_input: gtp_net_network_name - route_targets: - get_input: gtp_net_route_targets - flow_pattern: E-LAN - l3_access_parameters: - cidr: - get_input: gtp_net_cidr - end_ip: - get_input: gtp_net_end_ip - gateway_ip: - get_input: gtp_net_gateway_ip - ip_version: 4 - start_ip: - get_input: gtp_net_start_ip - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_id: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: abc.openecomp.resource.vl.VL - mme: - metadata: - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - resourceVendor: Ericsson - subcategory: Firewall - type: VF - version: 1.0 - properties: - vf_deployment_node: - get_input: vf_deployment_node - vf_ecomp_name: false - vf_homing: false - vf_instance_name: - get_input: vf_instance_name - requirements: - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vf.vmme - sctp_a_net: - metadata: - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - category: VL - description: "SCTP A External Network" - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - name: SCTPANet - resourceVendor: AT&T - type: VL - version: 1.0 - properties: - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: "13979:105717" - flow_pattern: E-LAN - l3_access_parameters: - cidr: 107.243.37.0/27 - end_ip: "107.243.37.30" - gateway_ip: "107.243.37.1" - ip_version: 4 - start_ip: "107.243.37.3" - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: abc.openecomp.resource.vl.VL - sctp_b_net: - metadata: - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - category: VL - description: "SCTP B External Network" - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - name: SCTPBNet - resourceVendor: AT&T - type: VL - version: 1.0 - properties: - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: "13979:105719" - flow_pattern: E-LAN - l3_access_parameters: - cidr: 107.243.37.32/24 - end_ip: "107.243.37.62" - gateway_ip: "107.243.37.33" - ip_version: 4 - start_ip: "107.243.37.35" - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_id: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: abc.openecomp.resource.vl.VL -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithDupL3Network.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithDupL3Network.yml deleted file mode 100644 index c72aab10bc..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithDupL3Network.yml +++ /dev/null @@ -1,235 +0,0 @@ ---- -description: "Service Template for deploing MME Service" -imports: - - - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - - - ExtVL: - file: resource-Extvl-template.yml - - - ? "Allotted Resource" - : - file: resource-AllottedResource-template.yml -metadata: - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - category: Mobility - description: vMME_Service - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - name: vMME_Service - serviceEcompNaming: false - serviceHoming: false - type: Service -topology_template: - groups: - external_networks: - members: - - sctp_a_net - - sctp_b_net - - gtp_net - properties: - availability_zone_count: 1 - contrail_service_instance: true - type: org.openecomp.groups.externalNetworks - inputs: - gtp_net_cidr: - default: 107.243.37.64/27 - description: "The GTP network cidr" - type: string - gtp_net_end_ip: - default: "107.243.37.94" - description: "The GTP network end ip" - type: string - gtp_net_gateway_ip: - default: "107.243.37.65" - description: "The GTP network gateway" - type: string - gtp_net_network_name: - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 - description: "The GTP network route targets" - type: string - gtp_net_route_targets: - default: "13979:105715" - description: "The GTP network route targets" - type: string - gtp_net_start_ip: - default: "107.243.37.67" - description: "The GTP network start ip" - type: string - mme_vf_deployment_node: - description: "The target LCP node for deployment of this VF instance" - type: string - mme_vf_instance_name: - description: "VF instance name" - type: string - node_templates: - ? "Allotted Resource 2" - : - metadata: - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - category: "Allotted Resource" - description: "This is a VF - Allotted resource" - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - name: "Allotted Resource" - subcategory: "Allotted Resource" - type: VF - version: 1.0 - type: org.openecomp.resource.vf.AllottedResource - ? "ExtVL 1" - : - metadata: - UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 - category: Generic - description: "OPENECOMP generic virtual link (network) base type for all other service-level and global networks" - invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf - name: ExtVL - subcategory: "Network Elements" - type: VL - version: 2.0 - type: org.openecomp.resource.vl.extVL - ? "ExtVL 2" - : - metadata: - UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 - category: Generic - description: "OPENECOMP generic virtual link (network) base type for all other service-level and global networks" - invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf - name: ExtVL - subcategory: "Network Elements" - type: VL - version: 2.0 - type: org.openecomp.resource.vl.extVL - gtp_net: - metadata: - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - category: VL - description: "GTP External Network" - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - name: GTPNet - resourceVendor: AT&T - type: VL - version: 1.0 - properties: - contrail_virtual_network: - network_name: - get_input: gtp_net_network_name - route_targets: - get_input: gtp_net_route_targets - flow_pattern: E-LAN - l3_access_parameters: - cidr: - get_input: gtp_net_cidr - end_ip: - get_input: gtp_net_end_ip - gateway_ip: - get_input: gtp_net_gateway_ip - ip_version: 4 - start_ip: - get_input: gtp_net_start_ip - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_id: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: abc.openecomp.resource.vl.VL - mme: - metadata: - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - resourceVendor: Ericsson - subcategory: Firewall - type: VF - version: 1.0 - properties: - vf_deployment_node: - get_input: vf_deployment_node - vf_ecomp_name: false - vf_homing: false - vf_instance_name: - get_input: vf_instance_name - requirements: - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vf.vmme - sctp_a_net: - metadata: - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - category: VL - description: "SCTP A External Network" - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - name: SCTPANet - resourceVendor: AT&T - type: VL - version: 1.0 - properties: - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: "13979:105717" - flow_pattern: E-LAN - l3_access_parameters: - cidr: 107.243.37.0/27 - end_ip: "107.243.37.30" - gateway_ip: "107.243.37.1" - ip_version: 4 - start_ip: "107.243.37.3" - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: abc.openecomp.resource.vl.VL - sctp_b_net: - metadata: - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - category: VL - description: "SCTP B External Network" - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - name: SCTPBNet - resourceVendor: AT&T - type: VL - version: 1.0 - properties: - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: "13979:105719" - flow_pattern: E-LAN - l3_access_parameters: - cidr: 107.243.37.32/24 - end_ip: "107.243.37.62" - gateway_ip: "107.243.37.33" - ip_version: 4 - start_ip: "107.243.37.35" - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_id: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: abc.openecomp.resource.vl.VL -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithInvIdGreaterThanSpecifiedLimit.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithInvIdGreaterThanSpecifiedLimit.yml deleted file mode 100644 index 37bada7396..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithInvIdGreaterThanSpecifiedLimit.yml +++ /dev/null @@ -1,98 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b70 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithInvIdLesserThanSpecifiedLimit.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithInvIdLesserThanSpecifiedLimit.yml deleted file mode 100644 index 15157e9076..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithInvIdLesserThanSpecifiedLimit.yml +++ /dev/null @@ -1,98 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f00 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithL3Network.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithL3Network.yml deleted file mode 100644 index f262ef6e82..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithL3Network.yml +++ /dev/null @@ -1,223 +0,0 @@ ---- -description: "Service Template for deploing MME Service" -imports: - - - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - - - ExtVL: - file: resource-Extvl-template.yml - - - ? "Allotted Resource" - : - file: resource-AllottedResource-template.yml -metadata: - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - category: Mobility - description: vMME_Service - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - name: vMME_Service - serviceEcompNaming: false - serviceHoming: false - type: Service -topology_template: - groups: - external_networks: - members: - - sctp_a_net - - sctp_b_net - - gtp_net - properties: - availability_zone_count: 1 - contrail_service_instance: true - type: org.openecomp.groups.externalNetworks - inputs: - gtp_net_cidr: - default: 107.243.37.64/27 - description: "The GTP network cidr" - type: string - gtp_net_end_ip: - default: "107.243.37.94" - description: "The GTP network end ip" - type: string - gtp_net_gateway_ip: - default: "107.243.37.65" - description: "The GTP network gateway" - type: string - gtp_net_network_name: - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 - description: "The GTP network route targets" - type: string - gtp_net_route_targets: - default: "13979:105715" - description: "The GTP network route targets" - type: string - gtp_net_start_ip: - default: "107.243.37.67" - description: "The GTP network start ip" - type: string - mme_vf_deployment_node: - description: "The target LCP node for deployment of this VF instance" - type: string - mme_vf_instance_name: - description: "VF instance name" - type: string - node_templates: - ? "Allotted Resource 2" - : - metadata: - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - category: "Allotted Resource" - description: "This is a VF - Allotted resource" - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - name: "Allotted Resource" - subcategory: "Allotted Resource" - type: VF - version: 1.0 - type: org.openecomp.resource.vf.AllottedResource - ? "ExtVL 1" - : - metadata: - UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 - category: Generic - description: "OPENECOMP generic virtual link (network) base type for all other service-level and global networks" - invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf - name: ExtVL - subcategory: "Network Elements" - type: VL - version: 2.0 - type: org.openecomp.resource.vl.extVL - gtp_net: - metadata: - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - category: VL - description: "GTP External Network" - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - name: GTPNet - resourceVendor: AT&T - type: VL - version: 1.0 - properties: - contrail_virtual_network: - network_name: - get_input: gtp_net_network_name - route_targets: - get_input: gtp_net_route_targets - flow_pattern: E-LAN - l3_access_parameters: - cidr: - get_input: gtp_net_cidr - end_ip: - get_input: gtp_net_end_ip - gateway_ip: - get_input: gtp_net_gateway_ip - ip_version: 4 - start_ip: - get_input: gtp_net_start_ip - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_id: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: abc.openecomp.resource.vl.VL - mme: - metadata: - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - resourceVendor: Ericsson - subcategory: Firewall - type: VF - version: 1.0 - properties: - vf_deployment_node: - get_input: vf_deployment_node - vf_ecomp_name: false - vf_homing: false - vf_instance_name: - get_input: vf_instance_name - requirements: - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vf.vmme - sctp_a_net: - metadata: - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - category: VL - description: "SCTP A External Network" - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - name: SCTPANet - resourceVendor: AT&T - type: VL - version: 1.0 - properties: - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: "13979:105717" - flow_pattern: E-LAN - l3_access_parameters: - cidr: 107.243.37.0/27 - end_ip: "107.243.37.30" - gateway_ip: "107.243.37.1" - ip_version: 4 - start_ip: "107.243.37.3" - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: abc.openecomp.resource.vl.VL - sctp_b_net: - metadata: - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - category: VL - description: "SCTP B External Network" - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - name: SCTPBNet - resourceVendor: AT&T - type: VL - version: 1.0 - properties: - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: "13979:105719" - flow_pattern: E-LAN - l3_access_parameters: - cidr: 107.243.37.32/24 - end_ip: "107.243.37.62" - gateway_ip: "107.243.37.33" - ip_version: 4 - start_ip: "107.243.37.35" - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_id: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: abc.openecomp.resource.vl.VL -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithL3NetworkInVFMod.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithL3NetworkInVFMod.yml deleted file mode 100644 index 1853802b80..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithL3NetworkInVFMod.yml +++ /dev/null @@ -1,211 +0,0 @@ ---- -description: "Service Template for deploing MME Service" -imports: - - - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - - - ExtVL: - file: resource-Extvl-template.yml - - - ? "Allotted Resource" - : - file: resource-AllottedResource-template.yml -metadata: - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - category: Mobility - description: vMME_Service - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - name: vMME_Service - serviceEcompNaming: false - serviceHoming: false - type: Service -topology_template: - groups: - external_networks: - members: - - sctp_a_net - - sctp_b_net - - gtp_net - properties: - availability_zone_count: 1 - contrail_service_instance: true - type: org.openecomp.groups.externalNetworks - inputs: - gtp_net_cidr: - default: 107.243.37.64/27 - description: "The GTP network cidr" - type: string - gtp_net_end_ip: - default: "107.243.37.94" - description: "The GTP network end ip" - type: string - gtp_net_gateway_ip: - default: "107.243.37.65" - description: "The GTP network gateway" - type: string - gtp_net_network_name: - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 - description: "The GTP network route targets" - type: string - gtp_net_route_targets: - default: "13979:105715" - description: "The GTP network route targets" - type: string - gtp_net_start_ip: - default: "107.243.37.67" - description: "The GTP network start ip" - type: string - mme_vf_deployment_node: - description: "The target LCP node for deployment of this VF instance" - type: string - mme_vf_instance_name: - description: "VF instance name" - type: string - node_templates: - ? "Allotted Resource 2" - : - metadata: - UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d - category: "Allotted Resource" - description: "This is a VF - Allotted resource" - invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 - name: "Allotted Resource" - subcategory: "Allotted Resource" - type: VF - version: 3.0 - type: org.openecomp.resource.vf.AllottedResource - gtp_net: - metadata: - UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3 - category: VL - description: "GTP External Network" - invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896 - name: GTPNet - resourceVendor: AT&T - type: VL - version: 1.0 - properties: - contrail_virtual_network: - network_name: - get_input: gtp_net_network_name - route_targets: - get_input: gtp_net_route_targets - flow_pattern: E-LAN - l3_access_parameters: - cidr: - get_input: gtp_net_cidr - end_ip: - get_input: gtp_net_end_ip - gateway_ip: - get_input: gtp_net_gateway_ip - ip_version: 4 - start_ip: - get_input: gtp_net_start_ip - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_id: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: abc.openecomp.resource.vl.VL - mme: - metadata: - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - resourceVendor: Ericsson - subcategory: Firewall - type: VF - version: 2.0 - properties: - vf_deployment_node: - get_input: vf_deployment_node - vf_ecomp_name: false - vf_homing: false - vf_instance_name: - get_input: vf_instance_name - requirements: - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vf.vmme - sctp_a_net: - metadata: - UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321 - category: VL - description: "SCTP A External Network" - invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999 - name: SCTPANet - resourceVendor: AT&T - type: VL - version: 1.0 - properties: - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1 - route_targets: "13979:105717" - flow_pattern: E-LAN - l3_access_parameters: - cidr: 107.243.37.0/27 - end_ip: "107.243.37.30" - gateway_ip: "107.243.37.1" - ip_version: 4 - start_ip: "107.243.37.3" - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: abc.openecomp.resource.vl.VL - sctp_b_net: - metadata: - UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45 - category: VL - description: "SCTP B External Network" - invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6 - name: SCTPBNet - resourceVendor: AT&T - type: VL - version: 1.0 - properties: - contrail_virtual_network: - network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1 - route_targets: "13979:105719" - flow_pattern: E-LAN - l3_access_parameters: - cidr: 107.243.37.32/24 - end_ip: "107.243.37.62" - gateway_ip: "107.243.37.33" - ip_version: 4 - start_ip: "107.243.37.35" - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_id: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: abc.openecomp.resource.vl.VL -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithUpdatedUUIDInConfig.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithUpdatedUUIDInConfig.yml deleted file mode 100644 index 11ab6e1343..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/service_vmme_template_WithUpdatedUUIDInConfig.yml +++ /dev/null @@ -1,98 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: Service Template for deploing MME Service - -metadata: - invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7 - UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0 - type: Service - name: vMME_Service - description: vMME_Service - category: Mobility - serviceEcompNaming: false - serviceHoming: false - -imports: - vmmeToscaTemplate: - file: vf_vmme_template_1.yml - -topology_template: - - inputs: - mme_vf_instance_name: - type: string - description: VF instance name - mme_vf_deployment_node: - type: string - description: The target LCP node for deployment of this VF instance - gtp_net_network_name: - type: string - description: The GTP network route targets - default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV - gtp_net_route_targets: - type: string - description: The GTP network route targets - default: "13979:105715" # HEAT ENV - gtp_net_cidr: - type: string - description: The GTP network cidr - default: 107.243.37.64/27 # HEAT ENV - gtp_net_gateway_ip: - type: string - description: The GTP network gateway - default: 107.243.37.65 # HEAT ENV - gtp_net_start_ip: - type: string - description: The GTP network start ip - default: 107.243.37.67 # HEAT ENV - gtp_net_end_ip: - type: string - description: The GTP network end ip - default: 107.243.37.94 # HEAT ENV - # more inputs were removed for brevity - - node_templates: - - mme: # vMME VNF - type: org.openecomp.resource.vf.vmme - - metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - version: 1.0 - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - resourceVendor: Ericsson - - properties: - vf_ecomp_name: false - vf_instance_name: { get_input: vf_instance_name } - vf_homing: false - vf_deployment_node: { get_input: vf_deployment_node } - - requirements: - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Bindable - node: sctp_a_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Bindable - node: sctp_b_net - relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Bindable - node: gtp_net - relationship: tosca.relationships.network.BindsTo - - groups: - - external_networks: # vMME_External_Network - type: org.openecomp.groups.externalNetworks - properties: - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - - members: [ sctp_a_net, sctp_b_net, gtp_net ] diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVFModWithSameInvId.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVFModWithSameInvId.yml deleted file mode 100644 index b6076b177d..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVFModWithSameInvId.yml +++ /dev/null @@ -1,1353 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - - vfmoduleVmmeModule-2: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-2" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7fef - vfModuleModelVersion: 2 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVF_1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVF_1.yml deleted file mode 100644 index 6aee48b9d9..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVF_1.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVF_2.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVF_2.yml deleted file mode 100644 index 1e67b68c8c..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DiffVerOfSameVF_2.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF1 - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7fef - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DupVFModUUID.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DupVFModUUID.yml deleted file mode 100644 index b8e80df3eb..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DupVFModUUID.yml +++ /dev/null @@ -1,1242 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: VF Template for pseodo vMME - -# metadata of the VF model -metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - vendor: Ericsson - -# imports include all other tosca definitions that are required for this template -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml - -topology_template: - -# inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks) - inputs: - fsb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - fsb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - fsb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_FSB1_16ACP03.qcow2 - fsb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - fsb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB002 - fsb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - fsb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_FSB2_16ACP03.qcow2 - fsb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - defualt: m4.xlarge4 - ncb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - ncb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - ncb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_NCB1_16ACP03.qcow2 - ncb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - ncb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - ncb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - ncb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_NCB2_16ACP03.qcow2 - ncb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - gpb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - gpb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - gpb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_GPB1_16ACP03.qcow2 - gpb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - gpb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - gpb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - gpb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_GPB2_16ACP03.qcow2 - gpb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - vlc1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - vlc1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - vlc1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_VLC1_16ACP03.qcow2 - vlc1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - vlc2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - vlc2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - vlc2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_VLC2_16ACP03.qcow2 - vlc2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - - fsb1_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - fsb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - fsb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - fsb2_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - fsb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - fsb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - - ncb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - ncb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - ncb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - ncb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - gpb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - gpb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - gpb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - gpb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - vlc1_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_gtp_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_sctp_a_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_sctp_b_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - vlc1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - vlc2_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_gtp_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_sctp_a_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_sctp_b_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - vlc2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - Internal1_net_dhcp: - hidden: false - immutable: false - type: string - default: 'False' - Internal1_net_cidr: - hidden: false - immutable: false - type: string - default: 169.253.0.0/17 - Internal1_net_gateway_ip: - hidden: false - immutable: false - type: string - default: 169.253.0.3 - Internal2_net_dhcp: - hidden: false - immutable: false - type: string - default: 'False' - Internal2_net_cidr: - hidden: false - immutable: false - type: string - default: 169.255.0.0/17 - Internal2_net_gateway_ip: - hidden: false - immutable: false - type: string - default: 169.255.0.3 - network_deployment_node: - type: string - description: The target LCP node for deployment of this Network instance - oam_net_id: - hidden: false - immutable: false - type: string - description: uuid of oam network - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - - node_templates: - - # VFCs / VMs - FSB1: # VFC1 / VM1 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: fsb1_vfc_instance_name} - vfc_type_tag: {get_input: fsb1_vfc_type_tag} - vfc_description: FSB1 - vfc_image_name: {get_input: fsb1_vfc_image_name} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: fsb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capabilty: - properties: - name: high_cpu - - - FSB2: # VFC2 / VM2 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: fsb2_vfc_instance_name} - vfc_type_tag: {get_input: fsb2_vfc_type_tag} - vfc_description: FSB2 - vfc_image_name: {get_input: fsb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: fsb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - NCB1: # VFC3 / MV3 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: ncb1_vfc_instance_name} - vfc_type_tag: {get_input: ncb1_vfc_type_tag} - vfc_description: NCB1 - vfc_image_name: {get_input: ncb1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: ncb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - NCB2: # VFC4 / VM4 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: ncb2_vfc_instance_name} - vfc_type_tag: {get_input: ncb2_vfc_type_tag} - vfc_description: NCB2 - vfc_image_name: {get_input: ncb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: ncb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - GPB1: # VFC5 / VM5 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: gpb1_vfc_instance_name} - vfc_type_tag: {get_input: gpb1_vfc_type_tag} - vfc_description: GPB1 - vfc_image_name: {get_input: gpb1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: gpb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - GPB2: # VFC6 / VM6 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: gpb2_vfc_instance_name} - vfc_type_tag: {get_input: gpb2_vfc_type_tag} - vfc_description: GPB2 - vfc_image_name: {get_input: gpb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: gpb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - VLC1: # VFC7 / VM7 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: vlc1_vfc_instance_name} - vfc_type_tag: {get_input: vlc1_vfc_type_tag} - vfc_description: VLC1 - vfc_image_name: {get_input: vlc1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: vlc1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - VLC2: # VFC8 / VM8 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: vlc2_vfc_instance_name} - vfc_type_tag: {get_input: vlc2_vfc_type_tag} - vfc_description: VLC2 - vfc_image_name: {get_input: vlc2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: vlc2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - - # Connection Points - - fsb1_oam: # VFC1 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: fsb1_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - fsb1_internal1: # VFC1 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - fsb1_internal2: # VFC1 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - fsb2_oam: # VFC2 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: fsb2_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - fsb2_internal1: # VFC2 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - fsb2_internal2: # VFC2 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - ncb1_internal1: # VFC3 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - ncb1_internal2: # VFC3 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - ncb2_internal1: # VFC4 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - ncb2_internal2: # VFC4 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - gpb1_internal1: # VFC5 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - gpb1_internal2: # VFC5 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - gpb2_internal1: # VFC6 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - gpb2_internal2: # VFC6 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc1_oam: # VFC7 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc1_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - vlc1_internal2: # VFC7 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_a: # VFC7 eca_sctp_a CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_a_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_a_net - # relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b: # VFC7 eca_sctp_b CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_b_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_b_net - # relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net: # VFC7 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc1_gtp_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: gtp_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_oam: # VFC8 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - vlc2_internal1: # VFC8 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - vlc2_internal2: # VFC8 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc2_sctp_a: # VFC8 eca_sctp_a CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_a_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_a_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_sctp_b: # VFC8 eca_sctp_b CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_b_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_b_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_gtp_net: # VFC8 gtp CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_gtp_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: gtp_net - # relationship: tosca.relationships.network.BindsTo - - # Virtual Links (Networks) - - Internal1_net: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: Network - description: Internal Network - type: VL - category: Generic - subcategory: Infrastructure - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_role: - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - ip_version: 4 - enable_dhcp: {get_input: Internal1_net_enable_dhcp} - cidr: {get_input: Internal1_net_cidr} - gateway_ip: {get_input: Internal1_net_gateway_ip} - - Internal2_net: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: Network - description: Internal Network - type: VL - category: Generic - subcategory: Infrastructure - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_role: - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - ip_version: 4 - enable_dhcp: {get_input: Internal2_net_enable_dhcp} - cidr: {get_input: Internal2_net_cidr} - gateway_ip: {get_input: Internal2_net_gateway_ip} - - - oam_net: - type: org.openecomp.resource.vl.OAM - - metadata: - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - version: 2.0 - name: Mobility OAM Network - description: Mobility OAM Network - type: VL - category: VL - vendor: AT&T - - properties: - network_type: vIPR_ATM_OAM - network_technology: Contrail - network_id: {get_input: oam_net_id} - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - - - groups: - - # VF Modules - vfmoduleVmmeModule-1: - type: org.openecomp.groups.VfModule - - metadata: - vfModuleModelName: vMME::module-1 - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - - properties: - vf_module_type: Expansion # set by service designer - vf_module_label: vMME Expansion VF Module # set by service designer - vf_module_description: vMME expansion VF Module # set by service designer - contrail_service_instance: true # from HEAT - availability_zone_count: 2 # from HEAT - volume_group: false # from HEAT / service Designer - artifacts: # HEAT Templates - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - - members: - - FSB1 - - FSB2 - - NCB1 - - oam_net - - vlc2_gtp_net - - VLC2 - - # VF Modules - vfmoduleVmmeModule-2: - type: org.openecomp.groups.VfModule - - metadata: - vfModuleModelName: vMME::module-2 - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - - properties: - vf_module_type: Expansion # set by service designer - vf_module_label: vMME Expansion VF Module # set by service designer - vf_module_description: vMME expansion VF Module # set by service designer - contrail_service_instance: true # from HEAT - availability_zone_count: 2 # from HEAT - volume_group: false # from HEAT / service Designer - artifacts: # HEAT Templates - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - - members: - - FSB1 - - FSB2 - - NCB1 - - oam_net - - vlc2_gtp_net - - VLC2 - - - # HEAT Stacks - - vmme_small: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/vmme_small.yml - description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc - - members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, - fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2, - ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1, - gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, - vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ] - - vmme_small_create_fsb: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/vmme_small_create_fsb.yml - description: server template for vMME - - members: [ FSB1_volume, FSB2_volume ] - - policies: - # Autoscaling policy - - mme_autoscale_policy: - type: org.openecomp.policy.Autoscaling - properties: - min_instances: 1 - max_instances: 4 - increment: 1 - factor: cpu_load - threshold: 80% - - target: [ vfmoduleVmmeModule-1] - - - substitution_mapping: - type: org.openecomp.resource.vf.vmme - - requirements: - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DupVFUUID.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DupVFUUID.yml deleted file mode 100644 index ef95a248b4..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_DupVFUUID.yml +++ /dev/null @@ -1,1217 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: VF Template for pseodo vMME - -# metadata of the VF model -metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - vendor: Ericsson - -# imports include all other tosca definitions that are required for this template -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml - -topology_template: - -# inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks) - inputs: - fsb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - fsb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - fsb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_FSB1_16ACP03.qcow2 - fsb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - fsb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB002 - fsb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - fsb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_FSB2_16ACP03.qcow2 - fsb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - defualt: m4.xlarge4 - ncb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - ncb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - ncb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_NCB1_16ACP03.qcow2 - ncb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - ncb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - ncb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - ncb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_NCB2_16ACP03.qcow2 - ncb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - gpb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - gpb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - gpb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_GPB1_16ACP03.qcow2 - gpb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - gpb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - gpb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - gpb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_GPB2_16ACP03.qcow2 - gpb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - vlc1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - vlc1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - vlc1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_VLC1_16ACP03.qcow2 - vlc1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - vlc2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - vlc2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - vlc2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_VLC2_16ACP03.qcow2 - vlc2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - - fsb1_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - fsb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - fsb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - fsb2_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - fsb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - fsb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - - ncb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - ncb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - ncb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - ncb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - gpb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - gpb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - gpb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - gpb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - vlc1_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_gtp_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_sctp_a_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_sctp_b_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - vlc1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - vlc2_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_gtp_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_sctp_a_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_sctp_b_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - vlc2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - Internal1_net_dhcp: - hidden: false - immutable: false - type: string - default: 'False' - Internal1_net_cidr: - hidden: false - immutable: false - type: string - default: 169.253.0.0/17 - Internal1_net_gateway_ip: - hidden: false - immutable: false - type: string - default: 169.253.0.3 - Internal2_net_dhcp: - hidden: false - immutable: false - type: string - default: 'False' - Internal2_net_cidr: - hidden: false - immutable: false - type: string - default: 169.255.0.0/17 - Internal2_net_gateway_ip: - hidden: false - immutable: false - type: string - default: 169.255.0.3 - network_deployment_node: - type: string - description: The target LCP node for deployment of this Network instance - oam_net_id: - hidden: false - immutable: false - type: string - description: uuid of oam network - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - - node_templates: - - # VFCs / VMs - FSB1: # VFC1 / VM1 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: fsb1_vfc_instance_name} - vfc_type_tag: {get_input: fsb1_vfc_type_tag} - vfc_description: FSB1 - vfc_image_name: {get_input: fsb1_vfc_image_name} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: fsb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capabilty: - properties: - name: high_cpu - - - FSB2: # VFC2 / VM2 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: fsb2_vfc_instance_name} - vfc_type_tag: {get_input: fsb2_vfc_type_tag} - vfc_description: FSB2 - vfc_image_name: {get_input: fsb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: fsb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - NCB1: # VFC3 / MV3 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: ncb1_vfc_instance_name} - vfc_type_tag: {get_input: ncb1_vfc_type_tag} - vfc_description: NCB1 - vfc_image_name: {get_input: ncb1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: ncb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - NCB2: # VFC4 / VM4 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: ncb2_vfc_instance_name} - vfc_type_tag: {get_input: ncb2_vfc_type_tag} - vfc_description: NCB2 - vfc_image_name: {get_input: ncb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: ncb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - GPB1: # VFC5 / VM5 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: gpb1_vfc_instance_name} - vfc_type_tag: {get_input: gpb1_vfc_type_tag} - vfc_description: GPB1 - vfc_image_name: {get_input: gpb1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: gpb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - GPB2: # VFC6 / VM6 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: gpb2_vfc_instance_name} - vfc_type_tag: {get_input: gpb2_vfc_type_tag} - vfc_description: GPB2 - vfc_image_name: {get_input: gpb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: gpb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - VLC1: # VFC7 / VM7 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: vlc1_vfc_instance_name} - vfc_type_tag: {get_input: vlc1_vfc_type_tag} - vfc_description: VLC1 - vfc_image_name: {get_input: vlc1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: vlc1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - VLC2: # VFC8 / VM8 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: vlc2_vfc_instance_name} - vfc_type_tag: {get_input: vlc2_vfc_type_tag} - vfc_description: VLC2 - vfc_image_name: {get_input: vlc2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: vlc2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - - # Connection Points - - fsb1_oam: # VFC1 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: fsb1_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - fsb1_internal1: # VFC1 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - fsb1_internal2: # VFC1 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - fsb2_oam: # VFC2 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: fsb2_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - fsb2_internal1: # VFC2 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - fsb2_internal2: # VFC2 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - ncb1_internal1: # VFC3 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - ncb1_internal2: # VFC3 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - ncb2_internal1: # VFC4 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - ncb2_internal2: # VFC4 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - gpb1_internal1: # VFC5 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - gpb1_internal2: # VFC5 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - gpb2_internal1: # VFC6 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - gpb2_internal2: # VFC6 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc1_oam: # VFC7 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc1_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - vlc1_internal2: # VFC7 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_a: # VFC7 eca_sctp_a CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_a_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_a_net - # relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b: # VFC7 eca_sctp_b CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_b_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_b_net - # relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net: # VFC7 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc1_gtp_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: gtp_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_oam: # VFC8 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - vlc2_internal1: # VFC8 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - vlc2_internal2: # VFC8 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc2_sctp_a: # VFC8 eca_sctp_a CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_a_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_a_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_sctp_b: # VFC8 eca_sctp_b CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_b_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_b_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_gtp_net: # VFC8 gtp CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_gtp_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: gtp_net - # relationship: tosca.relationships.network.BindsTo - - # Virtual Links (Networks) - - Internal1_net: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: Network - description: Internal Network - type: VL - category: Generic - subcategory: Infrastructure - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_role: - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - ip_version: 4 - enable_dhcp: {get_input: Internal1_net_enable_dhcp} - cidr: {get_input: Internal1_net_cidr} - gateway_ip: {get_input: Internal1_net_gateway_ip} - - Internal2_net: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: Network - description: Internal Network - type: VL - category: Generic - subcategory: Infrastructure - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_role: - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - ip_version: 4 - enable_dhcp: {get_input: Internal2_net_enable_dhcp} - cidr: {get_input: Internal2_net_cidr} - gateway_ip: {get_input: Internal2_net_gateway_ip} - - - oam_net: - type: org.openecomp.resource.vl.OAM - - metadata: - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - version: 2.0 - name: Mobility OAM Network - description: Mobility OAM Network - type: VL - category: VL - vendor: AT&T - - properties: - network_type: vIPR_ATM_OAM - network_technology: Contrail - network_id: {get_input: oam_net_id} - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - - - groups: - - # VF Modules - vfmoduleVmmeModule-1: - type: org.openecomp.groups.VfModule - - metadata: - vfModuleModelName: vMME::module-1 - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - - properties: - vf_module_type: Expansion # set by service designer - vf_module_label: vMME Expansion VF Module # set by service designer - vf_module_description: vMME expansion VF Module # set by service designer - contrail_service_instance: true # from HEAT - availability_zone_count: 2 # from HEAT - volume_group: false # from HEAT / service Designer - artifacts: # HEAT Templates - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC2 - - oam_net - - vlc2_gtp_net - - Internal1_net - - fsb1_oam - - Internal2_net - - - # HEAT Stacks - - vmme_small: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/vmme_small.yml - description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc - - members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, - fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2, - ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1, - gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, - vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ] - - vmme_small_create_fsb: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/vmme_small_create_fsb.yml - description: server template for vMME - - members: [ FSB1_volume, FSB2_volume ] - - policies: - # Autoscaling policy - - mme_autoscale_policy: - type: org.openecomp.policy.Autoscaling - properties: - min_instances: 1 - max_instances: 4 - increment: 1 - factor: cpu_load - threshold: 80% - - target: [ vfmoduleVmmeModule-1] - - - substitution_mapping: - type: org.openecomp.resource.vf.vmme - - requirements: - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_MulComp.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_MulComp.yml deleted file mode 100644 index 62dee771dd..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_MulComp.yml +++ /dev/null @@ -1,1218 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: VF Template for pseodo vMME - -# metadata of the VF model -metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - vendor: Ericsson - -# imports include all other tosca definitions that are required for this template -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml - -topology_template: - -# inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks) - inputs: - fsb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - fsb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - fsb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_FSB1_16ACP03.qcow2 - fsb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - fsb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB002 - fsb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - fsb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_FSB2_16ACP03.qcow2 - fsb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - defualt: m4.xlarge4 - ncb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - ncb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - ncb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_NCB1_16ACP03.qcow2 - ncb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - ncb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - ncb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - ncb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_NCB2_16ACP03.qcow2 - ncb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - gpb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - gpb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - gpb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_GPB1_16ACP03.qcow2 - gpb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - gpb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - gpb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - gpb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_GPB2_16ACP03.qcow2 - gpb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - vlc1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - vlc1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - vlc1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_VLC1_16ACP03.qcow2 - vlc1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - vlc2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - vlc2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - vlc2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_VLC2_16ACP03.qcow2 - vlc2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - - fsb1_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - fsb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - fsb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - fsb2_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - fsb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - fsb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - - ncb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - ncb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - ncb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - ncb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - gpb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - gpb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - gpb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - gpb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - vlc1_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_gtp_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_sctp_a_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_sctp_b_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - vlc1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - vlc2_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_gtp_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_sctp_a_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_sctp_b_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - vlc2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - Internal1_net_dhcp: - hidden: false - immutable: false - type: string - default: 'False' - Internal1_net_cidr: - hidden: false - immutable: false - type: string - default: 169.253.0.0/17 - Internal1_net_gateway_ip: - hidden: false - immutable: false - type: string - default: 169.253.0.3 - Internal2_net_dhcp: - hidden: false - immutable: false - type: string - default: 'False' - Internal2_net_cidr: - hidden: false - immutable: false - type: string - default: 169.255.0.0/17 - Internal2_net_gateway_ip: - hidden: false - immutable: false - type: string - default: 169.255.0.3 - network_deployment_node: - type: string - description: The target LCP node for deployment of this Network instance - oam_net_id: - hidden: false - immutable: false - type: string - description: uuid of oam network - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - - node_templates: - - # VFCs / VMs - FSB1: # VFC1 / VM1 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - subcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: fsb1_vfc_instance_name} - vfc_type_tag: {get_input: fsb1_vfc_type_tag} - vfc_description: FSB1 - vfc_image_name: {get_input: fsb1_vfc_image_name} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: fsb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capabilty: - properties: - name: high_cpu - - - FSB2: # VFC2 / VM2 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - subcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: fsb2_vfc_instance_name} - vfc_type_tag: {get_input: fsb2_vfc_type_tag} - vfc_description: FSB2 - vfc_image_name: {get_input: fsb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: fsb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - NCB1: # VFC3 / MV3 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - subcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: ncb1_vfc_instance_name} - vfc_type_tag: {get_input: ncb1_vfc_type_tag} - vfc_description: NCB1 - vfc_image_name: {get_input: ncb1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: ncb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - NCB2: # VFC4 / VM4 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - subcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: ncb2_vfc_instance_name} - vfc_type_tag: {get_input: ncb2_vfc_type_tag} - vfc_description: NCB2 - vfc_image_name: {get_input: ncb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: ncb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - GPB1: # VFC5 / VM5 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - subcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: gpb1_vfc_instance_name} - vfc_type_tag: {get_input: gpb1_vfc_type_tag} - vfc_description: GPB1 - vfc_image_name: {get_input: gpb1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: gpb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - GPB2: # VFC6 / VM6 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - subcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: gpb2_vfc_instance_name} - vfc_type_tag: {get_input: gpb2_vfc_type_tag} - vfc_description: GPB2 - vfc_image_name: {get_input: gpb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: gpb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - VLC1: # VFC7 / VM7 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - subcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: vlc1_vfc_instance_name} - vfc_type_tag: {get_input: vlc1_vfc_type_tag} - vfc_description: VLC1 - vfc_image_name: {get_input: vlc1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: vlc1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - VLC2: # VFC8 / VM8 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - subcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: vlc2_vfc_instance_name} - vfc_type_tag: {get_input: vlc2_vfc_type_tag} - vfc_description: VLC2 - vfc_image_name: {get_input: vlc2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: vlc2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - - # Connection Points - - fsb1_oam: # VFC1 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: fsb1_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - fsb1_internal1: # VFC1 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - fsb1_internal2: # VFC1 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - fsb2_oam: # VFC2 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: fsb2_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - fsb2_internal1: # VFC2 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - fsb2_internal2: # VFC2 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - ncb1_internal1: # VFC3 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - ncb1_internal2: # VFC3 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - ncb2_internal1: # VFC4 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - ncb2_internal2: # VFC4 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - gpb1_internal1: # VFC5 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - gpb1_internal2: # VFC5 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - gpb2_internal1: # VFC6 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - gpb2_internal2: # VFC6 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc1_oam: # VFC7 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc1_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - vlc1_internal2: # VFC7 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_a: # VFC7 eca_sctp_a CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_a_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_a_net - # relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b: # VFC7 eca_sctp_b CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_b_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_b_net - # relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net: # VFC7 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc1_gtp_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: gtp_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_oam: # VFC8 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - vlc2_internal1: # VFC8 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - vlc2_internal2: # VFC8 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc2_sctp_a: # VFC8 eca_sctp_a CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_a_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_a_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_sctp_b: # VFC8 eca_sctp_b CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_b_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_b_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_gtp_net: # VFC8 gtp CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_gtp_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: gtp_net - # relationship: tosca.relationships.network.BindsTo - - # Virtual Links (Networks) - - Internal1_net: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: Network - description: Internal Network - type: VL - category: Generic - subcategory: Infrastructure - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_role: - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - ip_version: 4 - enable_dhcp: {get_input: Internal1_net_enable_dhcp} - cidr: {get_input: Internal1_net_cidr} - gateway_ip: {get_input: Internal1_net_gateway_ip} - - Internal2_net: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: Network - description: Internal Network - type: VL - category: Generic - subcategory: Infrastructure - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_role: - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - ip_version: 4 - enable_dhcp: {get_input: Internal2_net_enable_dhcp} - cidr: {get_input: Internal2_net_cidr} - gateway_ip: {get_input: Internal2_net_gateway_ip} - - - oam_net: - type: org.openecomp.resource.vl.OAM - - metadata: - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - version: 2.0 - name: Mobility OAM Network - description: Mobility OAM Network - type: VL - category: VL - vendor: AT&T - - properties: - network_type: vIPR_ATM_OAM - network_technology: Contrail - network_id: {get_input: oam_net_id} - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - - - groups: - - # VF Modules - vfmoduleVmmeModule-1: - type: org.openecomp.groups.VfModule - - metadata: - vfModuleModelName: vMME::module-1 - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - - properties: - vf_module_type: Expansion # set by service designer - vf_module_label: vMME Expansion VF Module # set by service designer - vf_module_description: vMME expansion VF Module # set by service designer - contrail_service_instance: true # from HEAT - availability_zone_count: 2 # from HEAT - volume_group: false # from HEAT / service Designer - artifacts: # HEAT Templates - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC2 - - oam_net - - vlc2_gtp_net - - Internal1_net - - fsb1_oam - - Internal2_net - - - - # HEAT Stacks - - vmme_small: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/vmme_small.yml - description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc - - members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, - fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2, - ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1, - gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, - vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ] - - vmme_small_create_fsb: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/vmme_small_create_fsb.yml - description: server template for vMME - - members: [ FSB1_volume, FSB2_volume ] - - policies: - # Autoscaling policy - - mme_autoscale_policy: - type: org.openecomp.policy.Autoscaling - properties: - min_instances: 1 - max_instances: 4 - increment: 1 - factor: cpu_load - threshold: 80% - - target: [ vfmoduleVmmeModule-1] - - - substitution_mapping: - type: org.openecomp.resource.vf.vmme - - requirements: - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_MulVFVFMod.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_MulVFVFMod.yml deleted file mode 100644 index cef49ec97d..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_MulVFVFMod.yml +++ /dev/null @@ -1,1251 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: VF Template for pseodo vMME - -# metadata of the VF model -metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - vendor: Ericsson - -# imports include all other tosca definitions that are required for this template -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml - -topology_template: - -# inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks) - inputs: - fsb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - fsb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - fsb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_FSB1_16ACP03.qcow2 - fsb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - fsb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB002 - fsb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - fsb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_FSB2_16ACP03.qcow2 - fsb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - defualt: m4.xlarge4 - ncb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - ncb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - ncb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_NCB1_16ACP03.qcow2 - ncb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - ncb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - ncb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - ncb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_NCB2_16ACP03.qcow2 - ncb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - gpb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - gpb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - gpb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_GPB1_16ACP03.qcow2 - gpb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - gpb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - gpb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - gpb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_GPB2_16ACP03.qcow2 - gpb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - vlc1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - vlc1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - vlc1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_VLC1_16ACP03.qcow2 - vlc1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - vlc2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - vlc2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - vlc2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_VLC2_16ACP03.qcow2 - vlc2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - - fsb1_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - fsb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - fsb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - fsb2_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - fsb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - fsb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - - ncb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - ncb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - ncb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - ncb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - gpb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - gpb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - gpb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - gpb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - vlc1_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_gtp_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_sctp_a_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_sctp_b_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - vlc1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - vlc2_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_gtp_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_sctp_a_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_sctp_b_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - vlc2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - Internal1_net_dhcp: - hidden: false - immutable: false - type: string - default: 'False' - Internal1_net_cidr: - hidden: false - immutable: false - type: string - default: 169.253.0.0/17 - Internal1_net_gateway_ip: - hidden: false - immutable: false - type: string - default: 169.253.0.3 - Internal2_net_dhcp: - hidden: false - immutable: false - type: string - default: 'False' - Internal2_net_cidr: - hidden: false - immutable: false - type: string - default: 169.255.0.0/17 - Internal2_net_gateway_ip: - hidden: false - immutable: false - type: string - default: 169.255.0.3 - network_deployment_node: - type: string - description: The target LCP node for deployment of this Network instance - oam_net_id: - hidden: false - immutable: false - type: string - description: uuid of oam network - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - - node_templates: - - # VFCs / VMs - FSB1: # VFC1 / VM1 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - subcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: fsb1_vfc_instance_name} - vfc_type_tag: {get_input: fsb1_vfc_type_tag} - vfc_description: FSB1 - vfc_image_name: {get_input: fsb1_vfc_image_name} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: fsb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capabilty: - properties: - name: high_cpu - - - FSB2: # VFC2 / VM2 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - subcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: fsb2_vfc_instance_name} - vfc_type_tag: {get_input: fsb2_vfc_type_tag} - vfc_description: FSB2 - vfc_image_name: {get_input: fsb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: fsb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - NCB1: # VFC3 / MV3 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - subcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: ncb1_vfc_instance_name} - vfc_type_tag: {get_input: ncb1_vfc_type_tag} - vfc_description: NCB1 - vfc_image_name: {get_input: ncb1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: ncb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - NCB2: # VFC4 / VM4 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - subcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: ncb2_vfc_instance_name} - vfc_type_tag: {get_input: ncb2_vfc_type_tag} - vfc_description: NCB2 - vfc_image_name: {get_input: ncb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: ncb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - GPB1: # VFC5 / VM5 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - subcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: gpb1_vfc_instance_name} - vfc_type_tag: {get_input: gpb1_vfc_type_tag} - vfc_description: GPB1 - vfc_image_name: {get_input: gpb1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: gpb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - GPB2: # VFC6 / VM6 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: gpb2_vfc_instance_name} - vfc_type_tag: {get_input: gpb2_vfc_type_tag} - vfc_description: GPB2 - vfc_image_name: {get_input: gpb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: gpb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - VLC1: # VFC7 / VM7 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: vlc1_vfc_instance_name} - vfc_type_tag: {get_input: vlc1_vfc_type_tag} - vfc_description: VLC1 - vfc_image_name: {get_input: vlc1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: vlc1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - VLC2: # VFC8 / VM8 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: vlc2_vfc_instance_name} - vfc_type_tag: {get_input: vlc2_vfc_type_tag} - vfc_description: VLC2 - vfc_image_name: {get_input: vlc2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: vlc2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - - # Connection Points - - fsb1_oam: # VFC1 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: fsb1_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - fsb1_internal1: # VFC1 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - fsb1_internal2: # VFC1 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - fsb2_oam: # VFC2 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: fsb2_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - fsb2_internal1: # VFC2 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - fsb2_internal2: # VFC2 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - ncb1_internal1: # VFC3 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - ncb1_internal2: # VFC3 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - ncb2_internal1: # VFC4 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - ncb2_internal2: # VFC4 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - gpb1_internal1: # VFC5 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - gpb1_internal2: # VFC5 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - gpb2_internal1: # VFC6 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - gpb2_internal2: # VFC6 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc1_oam: # VFC7 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc1_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - vlc1_internal2: # VFC7 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_a: # VFC7 eca_sctp_a CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_a_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_a_net - # relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b: # VFC7 eca_sctp_b CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_b_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_b_net - # relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net: # VFC7 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc1_gtp_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: gtp_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_oam: # VFC8 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - vlc2_internal1: # VFC8 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - vlc2_internal2: # VFC8 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc2_sctp_a: # VFC8 eca_sctp_a CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_a_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_a_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_sctp_b: # VFC8 eca_sctp_b CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_b_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_b_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_gtp_net: # VFC8 gtp CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_gtp_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: gtp_net - # relationship: tosca.relationships.network.BindsTo - - # Virtual Links (Networks) - - Internal1_net: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: Network - description: Internal Network - type: VL - category: Generic - subcategory: Infrastructure - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_role: - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - ip_version: 4 - enable_dhcp: {get_input: Internal1_net_enable_dhcp} - cidr: {get_input: Internal1_net_cidr} - gateway_ip: {get_input: Internal1_net_gateway_ip} - - Internal2_net: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: Network - description: Internal Network - type: VL - category: Generic - subcategory: Infrastructure - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_role: - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - ip_version: 4 - enable_dhcp: {get_input: Internal2_net_enable_dhcp} - cidr: {get_input: Internal2_net_cidr} - gateway_ip: {get_input: Internal2_net_gateway_ip} - - - oam_net: - type: org.openecomp.resource.vl.OAM - - metadata: - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - version: 2.0 - name: Mobility OAM Network - description: Mobility OAM Network - type: VL - category: VL - vendor: AT&T - - properties: - network_type: vIPR_ATM_OAM - network_technology: Contrail - network_id: {get_input: oam_net_id} - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - - - groups: - - # VF Modules - vfmoduleVmmeModule-1: - type: org.openecomp.groups.VfModule - - metadata: - vfModuleModelName: vMME::module-1 - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - - properties: - vf_module_type: Expansion # set by service designer - vf_module_label: vMME Expansion VF Module # set by service designer - vf_module_description: vMME expansion VF Module # set by service designer - contrail_service_instance: true # from HEAT - availability_zone_count: 2 # from HEAT - volume_group: false # from HEAT / service Designer - artifacts: # HEAT Templates - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC2 - - oam_net - - vlc2_gtp_net - - Internal1_net - - fsb1_oam - - Internal2_net - - # VF Modules - vfmoduleVmmeModule-2: - type: org.openecomp.groups.VfModule - - metadata: - vfModuleModelName: vMME::module-2 - vfModuleModelInvariantUUID: ttf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelUUID: tt20ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - - properties: - vf_module_type: Expansion # set by service designer - vf_module_label: vMME Expansion VF Module # set by service designer - vf_module_description: vMME expansion VF Module # set by service designer - contrail_service_instance: true # from HEAT - availability_zone_count: 2 # from HEAT - volume_group: false # from HEAT / service Designer - artifacts: # HEAT Templates - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC2 - - oam_net - - vlc2_gtp_net - - Internal1_net - - fsb1_oam - - Internal2_net - - - - # HEAT Stacks - - vmme_small: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/vmme_small.yml - description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc - - members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, - fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2, - ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1, - gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, - vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ] - - vmme_small_create_fsb: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/vmme_small_create_fsb.yml - description: server template for vMME - - members: [ FSB1_volume, FSB2_volume ] - - policies: - # Autoscaling policy - - mme_autoscale_policy: - type: org.openecomp.policy.Autoscaling - properties: - min_instances: 1 - max_instances: 4 - increment: 1 - factor: cpu_load - threshold: 80% - - target: [ vfmoduleVmmeModule-1] - - - substitution_mapping: - type: org.openecomp.resource.vf.vmme - - requirements: - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_NoSystemPropConfigured.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_NoSystemPropConfigured.yml deleted file mode 100644 index 6aee48b9d9..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_NoSystemPropConfigured.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_NullFields.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_NullFields.yml deleted file mode 100644 index 25f6310896..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_NullFields.yml +++ /dev/null @@ -1,1218 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: VF Template for pseodo vMME - -# metadata of the VF model -metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - vendor: Ericsson - -# imports include all other tosca definitions that are required for this template -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml - -topology_template: - -# inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks) - inputs: - fsb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - fsb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - fsb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_FSB1_16ACP03.qcow2 - fsb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - fsb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB002 - fsb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - fsb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_FSB2_16ACP03.qcow2 - fsb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - defualt: m4.xlarge4 - ncb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - ncb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - ncb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_NCB1_16ACP03.qcow2 - ncb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - ncb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - ncb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - ncb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_NCB2_16ACP03.qcow2 - ncb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - gpb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - gpb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - gpb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_GPB1_16ACP03.qcow2 - gpb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - gpb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - gpb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - gpb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_GPB2_16ACP03.qcow2 - gpb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - vlc1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - vlc1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - vlc1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_VLC1_16ACP03.qcow2 - vlc1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - vlc2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - vlc2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - vlc2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_VLC2_16ACP03.qcow2 - vlc2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - - fsb1_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - fsb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - fsb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - fsb2_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - fsb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - fsb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - - ncb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - ncb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - ncb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - ncb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - gpb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - gpb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - gpb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - gpb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - vlc1_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_gtp_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_sctp_a_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_sctp_b_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - vlc1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - vlc2_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_gtp_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_sctp_a_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_sctp_b_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - vlc2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - Internal1_net_dhcp: - hidden: false - immutable: false - type: string - default: 'False' - Internal1_net_cidr: - hidden: false - immutable: false - type: string - default: 169.253.0.0/17 - Internal1_net_gateway_ip: - hidden: false - immutable: false - type: string - default: 169.253.0.3 - Internal2_net_dhcp: - hidden: false - immutable: false - type: string - default: 'False' - Internal2_net_cidr: - hidden: false - immutable: false - type: string - default: 169.255.0.0/17 - Internal2_net_gateway_ip: - hidden: false - immutable: false - type: string - default: 169.255.0.3 - network_deployment_node: - type: string - description: The target LCP node for deployment of this Network instance - oam_net_id: - hidden: false - immutable: false - type: string - description: uuid of oam network - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - - node_templates: - - # VFCs / VMs - FSB1: # VFC1 / VM1 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: fsb1_vfc_instance_name} - vfc_type_tag: {get_input: fsb1_vfc_type_tag} - vfc_description: FSB1 - vfc_image_name: {get_input: fsb1_vfc_image_name} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: fsb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capabilty: - properties: - name: high_cpu - - - FSB2: # VFC2 / VM2 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: fsb2_vfc_instance_name} - vfc_type_tag: {get_input: fsb2_vfc_type_tag} - vfc_description: FSB2 - vfc_image_name: {get_input: fsb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: fsb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - NCB1: # VFC3 / MV3 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: ncb1_vfc_instance_name} - vfc_type_tag: {get_input: ncb1_vfc_type_tag} - vfc_description: NCB1 - vfc_image_name: {get_input: ncb1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: ncb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - NCB2: # VFC4 / VM4 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: ncb2_vfc_instance_name} - vfc_type_tag: {get_input: ncb2_vfc_type_tag} - vfc_description: NCB2 - vfc_image_name: {get_input: ncb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: ncb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - GPB1: # VFC5 / VM5 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: gpb1_vfc_instance_name} - vfc_type_tag: {get_input: gpb1_vfc_type_tag} - vfc_description: GPB1 - vfc_image_name: {get_input: gpb1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: gpb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - GPB2: # VFC6 / VM6 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: gpb2_vfc_instance_name} - vfc_type_tag: {get_input: gpb2_vfc_type_tag} - vfc_description: GPB2 - vfc_image_name: {get_input: gpb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: gpb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - VLC1: # VFC7 / VM7 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: vlc1_vfc_instance_name} - vfc_type_tag: {get_input: vlc1_vfc_type_tag} - vfc_description: VLC1 - vfc_image_name: {get_input: vlc1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: vlc1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - VLC2: # VFC8 / VM8 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: vlc2_vfc_instance_name} - vfc_type_tag: {get_input: vlc2_vfc_type_tag} - vfc_description: VLC2 - vfc_image_name: {get_input: vlc2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: vlc2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - - # Connection Points - - fsb1_oam: # VFC1 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: fsb1_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - fsb1_internal1: # VFC1 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - fsb1_internal2: # VFC1 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - fsb2_oam: # VFC2 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: fsb2_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - fsb2_internal1: # VFC2 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - fsb2_internal2: # VFC2 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - ncb1_internal1: # VFC3 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - ncb1_internal2: # VFC3 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - ncb2_internal1: # VFC4 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - ncb2_internal2: # VFC4 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - gpb1_internal1: # VFC5 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - gpb1_internal2: # VFC5 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - gpb2_internal1: # VFC6 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - gpb2_internal2: # VFC6 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc1_oam: # VFC7 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc1_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - vlc1_internal2: # VFC7 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_a: # VFC7 eca_sctp_a CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_a_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_a_net - # relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b: # VFC7 eca_sctp_b CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_b_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_b_net - # relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net: # VFC7 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc1_gtp_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: gtp_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_oam: # VFC8 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - vlc2_internal1: # VFC8 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - vlc2_internal2: # VFC8 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc2_sctp_a: # VFC8 eca_sctp_a CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_a_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_a_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_sctp_b: # VFC8 eca_sctp_b CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_b_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_b_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_gtp_net: # VFC8 gtp CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_gtp_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: gtp_net - # relationship: tosca.relationships.network.BindsTo - - # Virtual Links (Networks) - - Internal1_net: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: Network - description: Internal Network - type: VL - category: Generic - subcategory: Infrastructure - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_role: - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - ip_version: 4 - enable_dhcp: {get_input: Internal1_net_enable_dhcp} - cidr: {get_input: Internal1_net_cidr} - gateway_ip: {get_input: Internal1_net_gateway_ip} - - Internal2_net: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: Network - description: Internal Network - type: VL - category: Generic - subcategory: Infrastructure - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_role: - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - ip_version: 4 - enable_dhcp: {get_input: Internal2_net_enable_dhcp} - cidr: {get_input: Internal2_net_cidr} - gateway_ip: {get_input: Internal2_net_gateway_ip} - - - oam_net: - type: org.openecomp.resource.vl.OAM - - metadata: - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - version: 2.0 - name: Mobility OAM Network - description: Mobility OAM Network - type: VL - category: VL - vendor: AT&T - - properties: - network_type: vIPR_ATM_OAM - network_technology: Contrail - network_id: {get_input: oam_net_id} - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - - - groups: - - # VF Modules - vfmoduleVmmeModule-1: - type: org.openecomp.groups.VfModule - - metadata: - vfModuleModelName: vMME::module-1 - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - - properties: - vf_module_type: Expansion # set by service designer - vf_module_label: vMME Expansion VF Module # set by service designer - vf_module_description: vMME expansion VF Module # set by service designer - contrail_service_instance: true # from HEAT - availability_zone_count: 2 # from HEAT - volume_group: false # from HEAT / service Designer - artifacts: # HEAT Templates - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC2 - - oam_net - - vlc2_gtp_net - - Internal1_net - - fsb1_oam - - Internal2_net - - - - # HEAT Stacks - - vmme_small: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/vmme_small.yml - description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc - - members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, - fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2, - ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1, - gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, - vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ] - - vmme_small_create_fsb: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/vmme_small_create_fsb.yml - description: server template for vMME - - members: [ FSB1_volume, FSB2_volume ] - - policies: - # Autoscaling policy - - mme_autoscale_policy: - type: org.openecomp.policy.Autoscaling - properties: - min_instances: 1 - max_instances: 4 - increment: 1 - factor: cpu_load - threshold: 80% - - target: [ vfmoduleVmmeModule-1] - - - substitution_mapping: - type: org.openecomp.resource.vf.vmme - - requirements: - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_Orphan.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_Orphan.yml deleted file mode 100644 index 652b487f60..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_Orphan.yml +++ /dev/null @@ -1,1236 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: VF Template for pseodo vMME - -# metadata of the VF model -metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - vendor: Ericsson - -# imports include all other tosca definitions that are required for this template -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml - -topology_template: - -# inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks) - inputs: - fsb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - fsb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - fsb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_FSB1_16ACP03.qcow2 - fsb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - fsb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB002 - fsb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - fsb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_FSB2_16ACP03.qcow2 - fsb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - defualt: m4.xlarge4 - ncb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - ncb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - ncb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_NCB1_16ACP03.qcow2 - ncb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - ncb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - ncb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - ncb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_NCB2_16ACP03.qcow2 - ncb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - gpb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - gpb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - gpb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_GPB1_16ACP03.qcow2 - gpb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - gpb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - gpb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - gpb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_GPB2_16ACP03.qcow2 - gpb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - vlc1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - vlc1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - vlc1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_VLC1_16ACP03.qcow2 - vlc1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - vlc2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - vlc2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - vlc2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_VLC2_16ACP03.qcow2 - vlc2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - - fsb1_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - fsb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - fsb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - fsb2_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - fsb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - fsb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - - ncb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - ncb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - ncb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - ncb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - gpb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - gpb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - gpb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - gpb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - vlc1_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_gtp_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_sctp_a_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_sctp_b_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - vlc1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - vlc2_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_gtp_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_sctp_a_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_sctp_b_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - vlc2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - Internal1_net_dhcp: - hidden: false - immutable: false - type: string - default: 'False' - Internal1_net_cidr: - hidden: false - immutable: false - type: string - default: 169.253.0.0/17 - Internal1_net_gateway_ip: - hidden: false - immutable: false - type: string - default: 169.253.0.3 - Internal2_net_dhcp: - hidden: false - immutable: false - type: string - default: 'False' - Internal2_net_cidr: - hidden: false - immutable: false - type: string - default: 169.255.0.0/17 - Internal2_net_gateway_ip: - hidden: false - immutable: false - type: string - default: 169.255.0.3 - network_deployment_node: - type: string - description: The target LCP node for deployment of this Network instance - oam_net_id: - hidden: false - immutable: false - type: string - description: uuid of oam network - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - - node_templates: - - # VFCs / VMs - FSB1: # VFC1 / VM1 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - subcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: fsb1_vfc_instance_name} - vfc_type_tag: {get_input: fsb1_vfc_type_tag} - vfc_description: FSB1 - vfc_image_name: {get_input: fsb1_vfc_image_name} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: fsb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capabilty: - properties: - name: high_cpu - - - FSB2: # VFC2 / VM2 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - subcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: fsb2_vfc_instance_name} - vfc_type_tag: {get_input: fsb2_vfc_type_tag} - vfc_description: FSB2 - vfc_image_name: {get_input: fsb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: fsb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - NCB1: # VFC3 / MV3 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - subcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: ncb1_vfc_instance_name} - vfc_type_tag: {get_input: ncb1_vfc_type_tag} - vfc_description: NCB1 - vfc_image_name: {get_input: ncb1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: ncb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - NCB2: # VFC4 / VM4 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - subcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: ncb2_vfc_instance_name} - vfc_type_tag: {get_input: ncb2_vfc_type_tag} - vfc_description: NCB2 - vfc_image_name: {get_input: ncb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: ncb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - GPB1: # VFC5 / VM5 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - subcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: gpb1_vfc_instance_name} - vfc_type_tag: {get_input: gpb1_vfc_type_tag} - vfc_description: GPB1 - vfc_image_name: {get_input: gpb1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: gpb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - GPB2: # VFC6 / VM6 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - subcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: gpb2_vfc_instance_name} - vfc_type_tag: {get_input: gpb2_vfc_type_tag} - vfc_description: GPB2 - vfc_image_name: {get_input: gpb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: gpb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - VLC1: # VFC7 / VM7 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - subcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: vlc1_vfc_instance_name} - vfc_type_tag: {get_input: vlc1_vfc_type_tag} - vfc_description: VLC1 - vfc_image_name: {get_input: vlc1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: vlc1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - VLC2: # VFC8 / VM8 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - subcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: vlc2_vfc_instance_name} - vfc_type_tag: {get_input: vlc2_vfc_type_tag} - vfc_description: VLC2 - vfc_image_name: {get_input: vlc2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: vlc2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - - # Connection Points - - fsb1_oam: # VFC1 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: fsb1_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - fsb1_internal1: # VFC1 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - fsb1_internal2: # VFC1 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - fsb2_oam: # VFC2 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: fsb2_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - fsb2_internal1: # VFC2 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - fsb2_internal2: # VFC2 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - ncb1_internal1: # VFC3 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - ncb1_internal2: # VFC3 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - ncb2_internal1: # VFC4 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - ncb2_internal2: # VFC4 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - gpb1_internal1: # VFC5 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - gpb1_internal2: # VFC5 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - gpb2_internal1: # VFC6 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - gpb2_internal2: # VFC6 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc1_oam: # VFC7 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc1_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - vlc1_internal2: # VFC7 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_a: # VFC7 eca_sctp_a CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_a_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_a_net - # relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b: # VFC7 eca_sctp_b CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_b_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_b_net - # relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net: # VFC7 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc1_gtp_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: gtp_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_oam: # VFC8 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - vlc2_internal1: # VFC8 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - vlc2_internal2: # VFC8 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc2_sctp_a: # VFC8 eca_sctp_a CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_a_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_a_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_sctp_b: # VFC8 eca_sctp_b CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_b_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_b_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_gtp_net: # VFC8 gtp CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_gtp_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: gtp_net - # relationship: tosca.relationships.network.BindsTo - - # Virtual Links (Networks) - - Internal1_net: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: Network - description: Internal Network - type: VL - category: Generic - subcategory: Infrastructure - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_role: - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - ip_version: 4 - enable_dhcp: {get_input: Internal1_net_enable_dhcp} - cidr: {get_input: Internal1_net_cidr} - gateway_ip: {get_input: Internal1_net_gateway_ip} - - Internal2_net: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: Network - description: Internal Network - type: VL - category: Generic - subcategory: Infrastructure - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_role: - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - ip_version: 4 - enable_dhcp: {get_input: Internal2_net_enable_dhcp} - cidr: {get_input: Internal2_net_cidr} - gateway_ip: {get_input: Internal2_net_gateway_ip} - - - oam_net: - type: org.openecomp.resource.vl.OAM - - metadata: - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - version: 2.0 - name: Mobility OAM Network - description: Mobility OAM Network - type: VL - category: VL - vendor: AT&T - - properties: - network_type: vIPR_ATM_OAM - network_technology: Contrail - network_id: {get_input: oam_net_id} - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - - - groups: - - # VF Modules - vfmoduleVmmeModule-1: - type: org.openecomp.groups.VfModule - - metadata: - vfModuleModelName: vMME::module-1 - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelUUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - - properties: - vf_module_type: Expansion # set by service designer - vf_module_label: vMME Expansion VF Module # set by service designer - vf_module_description: vMME expansion VF Module # set by service designer - contrail_service_instance: true # from HEAT - availability_zone_count: 2 # from HEAT - volume_group: false # from HEAT / service Designer - artifacts: # HEAT Templates - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - - members: [FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2] - - members: - - FSB1 - - FSB2 - - NCB1 - - vfmoduleVmmeModule-1: - type: org.openecomp.groups.VfModule - - metadata: - vfModuleModelName: vMME::module-1 - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelUUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - - properties: - vf_module_type: Expansion # set by service designer - vf_module_label: vMME Expansion VF Module # set by service designer - vf_module_description: vMME expansion VF Module # set by service designer - contrail_service_instance: true # from HEAT - availability_zone_count: 2 # from HEAT - volume_group: false # from HEAT / service Designer - artifacts: # HEAT Templates - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - - members: - - FSB1 - - FSB2 - - NCB1 - - # HEAT Stacks - - vmme_small: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/vmme_small.yml - description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc - - members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, - fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2, - ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1, - gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, - vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ] - - vmme_small_create_fsb: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/vmme_small_create_fsb.yml - description: server template for vMME - - members: [ FSB1_volume, FSB2_volume ] - - policies: - # Autoscaling policy - - mme_autoscale_policy: - type: org.openecomp.policy.Autoscaling - properties: - min_instances: 1 - max_instances: 4 - increment: 1 - factor: cpu_load - threshold: 80% - - target: [ vfmoduleVmmeModule-1] - - - substitution_mapping: - type: org.openecomp.resource.vf.vmme - - requirements: - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SameWidgets1.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SameWidgets1.yml deleted file mode 100644 index 8edeb07ad5..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SameWidgets1.yml +++ /dev/null @@ -1,1218 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: VF Template for pseodo vMME - -# metadata of the VF model -metadata: - invariantUUID: b8753c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b031ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - name: vMME_VF - description: vMME_VF - type: VF - categry: Application L4+ - subcategory: Firewall - vendor: Ericsson - -# imports include all other tosca definitions that are required for this template -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml - -topology_template: - -# inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks) - inputs: - fsb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - fsb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - fsb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_FSB1_16ACP03.qcow2 - fsb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - fsb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB002 - fsb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - fsb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_FSB2_16ACP03.qcow2 - fsb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - defualt: m4.xlarge4 - ncb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - ncb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - ncb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_NCB1_16ACP03.qcow2 - ncb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - ncb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - ncb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - ncb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_NCB2_16ACP03.qcow2 - ncb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - gpb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - gpb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - gpb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_GPB1_16ACP03.qcow2 - gpb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - gpb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - gpb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - gpb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_GPB2_16ACP03.qcow2 - gpb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - vlc1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - vlc1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - vlc1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_VLC1_16ACP03.qcow2 - vlc1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - vlc2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - vlc2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - vlc2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_VLC2_16ACP03.qcow2 - vlc2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - - fsb1_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - fsb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - fsb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - fsb2_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - fsb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - fsb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - - ncb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - ncb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - ncb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - ncb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - gpb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - gpb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - gpb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - gpb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - vlc1_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_gtp_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_sctp_a_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_sctp_b_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - vlc1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - vlc2_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_gtp_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_sctp_a_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_sctp_b_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - vlc2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - Internal1_net_dhcp: - hidden: false - immutable: false - type: string - default: 'False' - Internal1_net_cidr: - hidden: false - immutable: false - type: string - default: 169.253.0.0/17 - Internal1_net_gateway_ip: - hidden: false - immutable: false - type: string - default: 169.253.0.3 - Internal2_net_dhcp: - hidden: false - immutable: false - type: string - default: 'False' - Internal2_net_cidr: - hidden: false - immutable: false - type: string - default: 169.255.0.0/17 - Internal2_net_gateway_ip: - hidden: false - immutable: false - type: string - default: 169.255.0.3 - network_deployment_node: - type: string - description: The target LCP node for deployment of this Network instance - oam_net_id: - hidden: false - immutable: false - type: string - description: uuid of oam network - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - - node_templates: - - # VFCs / VMs - FSB1: # VFC1 / VM1 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - categry: Generic - subcategry: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: fsb1_vfc_instance_name} - vfc_type_tag: {get_input: fsb1_vfc_type_tag} - vfc_description: FSB1 - vfc_image_name: {get_input: fsb1_vfc_image_name} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: fsb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capabilty: - properties: - name: high_cpu - - - FSB2: # VFC2 / VM2 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - categry: Generic - subcategry: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: fsb2_vfc_instance_name} - vfc_type_tag: {get_input: fsb2_vfc_type_tag} - vfc_description: FSB2 - vfc_image_name: {get_input: fsb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: fsb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - NCB1: # VFC3 / MV3 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - categry: Generic - subcategry: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: ncb1_vfc_instance_name} - vfc_type_tag: {get_input: ncb1_vfc_type_tag} - vfc_description: NCB1 - vfc_image_name: {get_input: ncb1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: ncb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - NCB2: # VFC4 / VM4 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - categry: Generic - subcategry: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: ncb2_vfc_instance_name} - vfc_type_tag: {get_input: ncb2_vfc_type_tag} - vfc_description: NCB2 - vfc_image_name: {get_input: ncb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: ncb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - GPB1: # VFC5 / VM5 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - categry: Generic - subcategry: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: gpb1_vfc_instance_name} - vfc_type_tag: {get_input: gpb1_vfc_type_tag} - vfc_description: GPB1 - vfc_image_name: {get_input: gpb1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: gpb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - GPB2: # VFC6 / VM6 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - categry: Generic - subcategry: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: gpb2_vfc_instance_name} - vfc_type_tag: {get_input: gpb2_vfc_type_tag} - vfc_description: GPB2 - vfc_image_name: {get_input: gpb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: gpb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - VLC1: # VFC7 / VM7 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - categry: Generic - subcategry: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: vlc1_vfc_instance_name} - vfc_type_tag: {get_input: vlc1_vfc_type_tag} - vfc_description: VLC1 - vfc_image_name: {get_input: vlc1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: vlc1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - VLC2: # VFC8 / VM8 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - categry: Generic - subcategry: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: vlc2_vfc_instance_name} - vfc_type_tag: {get_input: vlc2_vfc_type_tag} - vfc_description: VLC2 - vfc_image_name: {get_input: vlc2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: vlc2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - - # Connection Points - - fsb1_oam: # VFC1 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: fsb1_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - fsb1_internal1: # VFC1 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - fsb1_internal2: # VFC1 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - fsb2_oam: # VFC2 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: fsb2_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - fsb2_internal1: # VFC2 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - fsb2_internal2: # VFC2 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - ncb1_internal1: # VFC3 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - ncb1_internal2: # VFC3 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - ncb2_internal1: # VFC4 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - ncb2_internal2: # VFC4 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - gpb1_internal1: # VFC5 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - gpb1_internal2: # VFC5 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - gpb2_internal1: # VFC6 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - gpb2_internal2: # VFC6 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc1_oam: # VFC7 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc1_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - vlc1_internal2: # VFC7 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_a: # VFC7 eca_sctp_a CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_a_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_a_net - # relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b: # VFC7 eca_sctp_b CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_b_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_b_net - # relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net: # VFC7 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc1_gtp_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: gtp_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_oam: # VFC8 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - vlc2_internal1: # VFC8 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - vlc2_internal2: # VFC8 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc2_sctp_a: # VFC8 eca_sctp_a CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_a_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_a_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_sctp_b: # VFC8 eca_sctp_b CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_b_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_b_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_gtp_net: # VFC8 gtp CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_gtp_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: gtp_net - # relationship: tosca.relationships.network.BindsTo - - # Virtual Links (Networks) - - Internal1_net: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: Network - description: Internal Network - type: VL - categry: Generic - subcategory: Infrastructure - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_role: - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - ip_version: 4 - enable_dhcp: {get_input: Internal1_net_enable_dhcp} - cidr: {get_input: Internal1_net_cidr} - gateway_ip: {get_input: Internal1_net_gateway_ip} - - Internal2_net: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: Network - description: Internal Network - type: VL - categry: Generic - subcategory: Infrastructure - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_role: - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - ip_version: 4 - enable_dhcp: {get_input: Internal2_net_enable_dhcp} - cidr: {get_input: Internal2_net_cidr} - gateway_ip: {get_input: Internal2_net_gateway_ip} - - - oam_net: - type: org.openecomp.resource.vl.OAM - - metadata: - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - version: 2.0 - name: Mobility OAM Network - description: Mobility OAM Network - type: VL - categry: VL - vendor: AT&T - - properties: - network_type: vIPR_ATM_OAM - network_technology: Contrail - network_id: {get_input: oam_net_id} - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - - - groups: - - # VF Modules - vfmoduleVmmeModule-1: - type: org.openecomp.groups.VfModule - - metadata: - vfModuleModelName: vMME::module-1 - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - - properties: - vf_module_type: Expansion # set by service designer - vf_module_label: vMME Expansion VF Module # set by service designer - vf_module_description: vMME expansion VF Module # set by service designer - contrail_service_instance: true # from HEAT - availability_zone_count: 2 # from HEAT - volume_group: false # from HEAT / service Designer - artifacts: # HEAT Templates - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC2 - - oam_net - - vlc2_gtp_net - - Internal1_net - - fsb1_oam - - Internal2_net - - - - # HEAT Stacks - - vmme_small: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/vmme_small.yml - description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc - - members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, - fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2, - ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1, - gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, - vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ] - - vmme_small_create_fsb: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/vmme_small_create_fsb.yml - description: server template for vMME - - members: [ FSB1_volume, FSB2_volume ] - - policies: - # Autoscaling policy - - mme_autoscale_policy: - type: org.openecomp.policy.Autoscaling - properties: - min_instances: 1 - max_instances: 4 - increment: 1 - factor: cpu_load - threshold: 80% - - target: [ vfmoduleVmmeModule-1] - - - substitution_mapping: - type: org.openecomp.resource.vf.vmme - - requirements: - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SameWidgets2.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SameWidgets2.yml deleted file mode 100644 index cba91b2b3e..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SameWidgets2.yml +++ /dev/null @@ -1,1218 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: VF Template for pseodo vMME - -# metadata of the VF model -metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - name: vMME_VF - description: vMME_VF - type: VF - categry: Application L4+ - subcategory: Firewall - vendor: Ericsson - -# imports include all other tosca definitions that are required for this template -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml - -topology_template: - -# inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks) - inputs: - fsb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - fsb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - fsb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_FSB1_16ACP03.qcow2 - fsb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - fsb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB002 - fsb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - fsb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_FSB2_16ACP03.qcow2 - fsb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - defualt: m4.xlarge4 - ncb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - ncb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - ncb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_NCB1_16ACP03.qcow2 - ncb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - ncb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - ncb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - ncb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_NCB2_16ACP03.qcow2 - ncb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - gpb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - gpb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - gpb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_GPB1_16ACP03.qcow2 - gpb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - gpb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - gpb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - gpb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_GPB2_16ACP03.qcow2 - gpb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - vlc1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - vlc1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - vlc1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_VLC1_16ACP03.qcow2 - vlc1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - vlc2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - vlc2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - vlc2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_VLC2_16ACP03.qcow2 - vlc2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - - fsb1_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - fsb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - fsb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - fsb2_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - fsb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - fsb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - - ncb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - ncb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - ncb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - ncb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - gpb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - gpb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - gpb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - gpb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - vlc1_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_gtp_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_sctp_a_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_sctp_b_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - vlc1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - vlc2_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_gtp_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_sctp_a_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_sctp_b_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - vlc2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - Internal1_net_dhcp: - hidden: false - immutable: false - type: string - default: 'False' - Internal1_net_cidr: - hidden: false - immutable: false - type: string - default: 169.253.0.0/17 - Internal1_net_gateway_ip: - hidden: false - immutable: false - type: string - default: 169.253.0.3 - Internal2_net_dhcp: - hidden: false - immutable: false - type: string - default: 'False' - Internal2_net_cidr: - hidden: false - immutable: false - type: string - default: 169.255.0.0/17 - Internal2_net_gateway_ip: - hidden: false - immutable: false - type: string - default: 169.255.0.3 - network_deployment_node: - type: string - description: The target LCP node for deployment of this Network instance - oam_net_id: - hidden: false - immutable: false - type: string - description: uuid of oam network - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - - node_templates: - - # VFCs / VMs - FSB1: # VFC1 / VM1 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - categry: Generic - subcategry: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: fsb1_vfc_instance_name} - vfc_type_tag: {get_input: fsb1_vfc_type_tag} - vfc_description: FSB1 - vfc_image_name: {get_input: fsb1_vfc_image_name} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: fsb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capabilty: - properties: - name: high_cpu - - - FSB2: # VFC2 / VM2 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - categry: Generic - subcategry: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: fsb2_vfc_instance_name} - vfc_type_tag: {get_input: fsb2_vfc_type_tag} - vfc_description: FSB2 - vfc_image_name: {get_input: fsb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: fsb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - NCB1: # VFC3 / MV3 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - categry: Generic - subcategry: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: ncb1_vfc_instance_name} - vfc_type_tag: {get_input: ncb1_vfc_type_tag} - vfc_description: NCB1 - vfc_image_name: {get_input: ncb1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: ncb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - NCB2: # VFC4 / VM4 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - categry: Generic - subcategry: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: ncb2_vfc_instance_name} - vfc_type_tag: {get_input: ncb2_vfc_type_tag} - vfc_description: NCB2 - vfc_image_name: {get_input: ncb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: ncb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - GPB1: # VFC5 / VM5 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - categry: Generic - subcategry: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: gpb1_vfc_instance_name} - vfc_type_tag: {get_input: gpb1_vfc_type_tag} - vfc_description: GPB1 - vfc_image_name: {get_input: gpb1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: gpb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - GPB2: # VFC6 / VM6 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - categry: Generic - subcategry: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: gpb2_vfc_instance_name} - vfc_type_tag: {get_input: gpb2_vfc_type_tag} - vfc_description: GPB2 - vfc_image_name: {get_input: gpb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: gpb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - VLC1: # VFC7 / VM7 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - categry: Generic - subcategry: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: vlc1_vfc_instance_name} - vfc_type_tag: {get_input: vlc1_vfc_type_tag} - vfc_description: VLC1 - vfc_image_name: {get_input: vlc1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: vlc1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - VLC2: # VFC8 / VM8 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - categry: Generic - subcategry: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: vlc2_vfc_instance_name} - vfc_type_tag: {get_input: vlc2_vfc_type_tag} - vfc_description: VLC2 - vfc_image_name: {get_input: vlc2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: vlc2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - - # Connection Points - - fsb1_oam: # VFC1 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: fsb1_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - fsb1_internal1: # VFC1 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - fsb1_internal2: # VFC1 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - fsb2_oam: # VFC2 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: fsb2_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - fsb2_internal1: # VFC2 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - fsb2_internal2: # VFC2 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - ncb1_internal1: # VFC3 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - ncb1_internal2: # VFC3 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - ncb2_internal1: # VFC4 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - ncb2_internal2: # VFC4 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - gpb1_internal1: # VFC5 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - gpb1_internal2: # VFC5 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - gpb2_internal1: # VFC6 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - gpb2_internal2: # VFC6 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc1_oam: # VFC7 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc1_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - vlc1_internal2: # VFC7 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_a: # VFC7 eca_sctp_a CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_a_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_a_net - # relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b: # VFC7 eca_sctp_b CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_b_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_b_net - # relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net: # VFC7 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc1_gtp_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: gtp_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_oam: # VFC8 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - vlc2_internal1: # VFC8 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - vlc2_internal2: # VFC8 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc2_sctp_a: # VFC8 eca_sctp_a CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_a_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_a_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_sctp_b: # VFC8 eca_sctp_b CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_b_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_b_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_gtp_net: # VFC8 gtp CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_gtp_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: gtp_net - # relationship: tosca.relationships.network.BindsTo - - # Virtual Links (Networks) - - Internal1_net: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: Network - description: Internal Network - type: VL - categry: Generic - subcategory: Infrastructure - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_role: - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - ip_version: 4 - enable_dhcp: {get_input: Internal1_net_enable_dhcp} - cidr: {get_input: Internal1_net_cidr} - gateway_ip: {get_input: Internal1_net_gateway_ip} - - Internal2_net: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: Network - description: Internal Network - type: VL - categry: Generic - subcategory: Infrastructure - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_role: - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - ip_version: 4 - enable_dhcp: {get_input: Internal2_net_enable_dhcp} - cidr: {get_input: Internal2_net_cidr} - gateway_ip: {get_input: Internal2_net_gateway_ip} - - - oam_net: - type: org.openecomp.resource.vl.OAM - - metadata: - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - version: 2.0 - name: Mobility OAM Network - description: Mobility OAM Network - type: VL - categry: VL - vendor: AT&T - - properties: - network_type: vIPR_ATM_OAM - network_technology: Contrail - network_id: {get_input: oam_net_id} - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - - - groups: - - # VF Modules - vfmoduleVmmeModule-1: - type: org.openecomp.groups.VfModule - - metadata: - vfModuleModelName: vMME::module-1 - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - - properties: - vf_module_type: Expansion # set by service designer - vf_module_label: vMME Expansion VF Module # set by service designer - vf_module_description: vMME expansion VF Module # set by service designer - contrail_service_instance: true # from HEAT - availability_zone_count: 2 # from HEAT - volume_group: false # from HEAT / service Designer - artifacts: # HEAT Templates - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC2 - - oam_net - - vlc2_gtp_net - - Internal1_net - - fsb1_oam - - Internal2_net - - - - # HEAT Stacks - - vmme_small: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/vmme_small.yml - description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc - - members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, - fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2, - ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1, - gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, - vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ] - - vmme_small_create_fsb: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/vmme_small_create_fsb.yml - description: server template for vMME - - members: [ FSB1_volume, FSB2_volume ] - - policies: - # Autoscaling policy - - mme_autoscale_policy: - type: org.openecomp.policy.Autoscaling - properties: - min_instances: 1 - max_instances: 4 - increment: 1 - factor: cpu_load - threshold: 80% - - target: [ vfmoduleVmmeModule-1] - - - substitution_mapping: - type: org.openecomp.resource.vf.vmme - - requirements: - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SingleVFVFMod.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SingleVFVFMod.yml deleted file mode 100644 index 6aee48b9d9..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_SingleVFVFMod.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyMandatoryParameterResourceVersion.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyMandatoryParameterResourceVersion.yml deleted file mode 100644 index 63fafc0fc1..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyMandatoryParameterResourceVersion.yml +++ /dev/null @@ -1,975 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: vMMSC VF Topology Template - -metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - name: vMMC VF - description: | - Delivers messages composed of text, images, and other media types (for example audio and video) - in an operator's network. It is responsible for storing and handling incoming and outgoing Multimedia - Messages (MMs); therefore, acting as an MMS Relay and MMS Server at the same time. - type: VF - category: Mobility - subCategory: MMC - vendor: Nokia - vendorVersion: 6.0.2.14 - - - # reference to template definitions -imports: - - tosca_simple_profile_for_ecomp_1_0.yml - -topology_template: - - # This section provides the parameters which OPENECOMP is not providing values to during instantiation. - # It is expected that node template parameters which are not mapped to the Inputs section recieve value from OPENECOMP - # during the orchestration - - inputs: - - node_templates: - - vMMSC: # vMMSC VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc - UUID: 2714db52-2116-a3af-1240-a236221ca004 - version: 1.0 - name: vMMC VFC - description: - type: VFC - category: Generic - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 6.0.2.14 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vMMSC VFC - vfc_image_name: mmsc-6.0.2_v14.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - capabilities: - nfv_compute: - properties: - vfc_flavor: mmsc_flavor # from HEAT ENV - scaling: - properties: - min_instances: 5 - max_instances: 5 - initial_instance: - - vNEMS_FE: # vNEMS VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc - UUID: 2714db52-2116-a3af-1240-a236221ca004 - version: 1.0 - name: vNEMS_FE VFC - description: | - Legacy support that makes it possible for subscribers without MMS-enabled phones to receive - multimedia messages (MMs) through a web or WAP interface. - E-mail smart push that lets subscribers send and receive MMs to and from the Internet (MM3 interface). - type: VFC - category: Generic_VFC - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 2.1.2.44 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vNEMS_FE VFC - vfc_image_name: nems-2.1.2_v44.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - - capabilities: - nfv_compute: - properties: - vfc_flavor: nems_fe_flavor # from HEAT ENV - scaling: - properties: - min_instances: 2 # set by service designer - max_instances: 4 # set by service designer - - vNEMS_BE: # vNEMS VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc - UUID: 2714db52-2116-a3af-1240-a236221ca004 - version: 1.0 - name: vNEMS_BE VFC - description: | - Legacy support that makes it possible for subscribers without MMS-enabled phones to receive - multimedia messages (MMs) through a web or WAP interface. - E-mail smart push that lets subscribers send and receive MMs to and from the Internet (MM3 interface). - type: VFC - category: Generic_VFC - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 2.1.2.44 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vNEMS_FE VFC - vfc_image_name: nems-2.1.2_v44.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - - capabilities: - nfv_compute: - properties: - vfc_flavor: nems_be_flavor # from HEAT ENV - scaling: - properties: - min_instances: 1 # set by service designer - max_instances: 2 # set by service designer - - vECA_TRX: # vNEMS VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc - UUID: 2714db52-2116-a3af-1240-a236221ca004 - version: 1.0 - name: vECA_TRX VFC - description: Traffic handling - type: VFC - category: Generic_VFC - subCategory: Generic_VFC - vendor: Nokia - vendorVersion: 13 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: vECA_TRX VFC - vfc_image_name: eca-v13-release.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - - capabilities: - nfv_compute: - properties: - vfc_flavor: eca_trx_flavor # from HEAT ENV - scaling: - properties: - min_instances: 20 # set by service designer - max_instances: 20 # set by service designer - - vLB: # F5 VFC - type: org.openecomp.resource.vfc.Generic - - metadata: - invariantUUID: 673f8d08-2223-4a97-127c-11ab729d23bc - UUID: 2714db52-2116-a3af-1240-a236221ca004 - version: 1.0 - name: F5 LB VFC - description: Load Balancer - type: VFC - category: Generic - subCategory: Generic_VFC - vendor: F5 Networks - vendorVersion: 11.5.3.163 - - properties: - vfc_ecomp_name: true - vfc_instance_name: # to be set by OPENECOMP during instantiation - vfc_type_tag: # from HEAT ENV - vfc_description: F5 VFC - vfc_image_name: F5-11_5_3-EngHF-34_163.qcow2 # from HEAT / HEAT ENV - vfc_availability_zone: - - - - capabilities: - nfv_compute: - properties: - vfc_flavor: bigip_flavor # from HEAT ENV - scaling: - properties: - min_instances: 2 - max_instances: 2 - - # Internal VF Connection Points (VFCs connection points) - - mmsc_oam: # external OAM CP to mobility OAM network - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - - mmsc_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_fe_oam: # external OAM CP to mobility OAM network - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - - nems_fe_internal: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_fe_imap: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_fe_web: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_fe_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_be_oam: # external OAM CP to mobility OAM network - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - nems_be_internal: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - nems_be_imap: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - eca_trx_oam: # external OAM CP to mobility OAM network - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - - eca_trx_internal: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - eca_trx_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_ha: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_mmsc_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_nems_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_nems_web: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_eca_traffic: - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_oam: # external OAM CP to mobility OAM network - type: org.openecomp.cp.OAM - - metadata: - invariantUUID: 553f8d08-2223-4a97-127c-11ab729d1234 # generated by ASDC - UUID: ab14db52-2116-a3af-1240-a236221ca82a # generated by ASDC - version: 1.0 # set by ASDC - name: OAM CP - description: OAM CP - type: CP - category: CP - vendor: AT&T - - properties: - address_Info: - ip_address: # provided by OPENECOMP (SDNC) - - - - lb_dmz_protected: # external CP to mobility DMZ protected network - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - lb_core_direct: # external CP to mobility core direct network - type: org.openecomp.cp.CP - - metadata: - invariantUUID: 55df8d08-2ab3-4a97-127c-11ab729d100a # generated by ASDC - UUID: 12b4db52-2116-b5af-1240-a236221ca145 # generated by ASDC - version: 1.0 # set by ASDC - name: VFC CP - description: VFC CP - type: CP - category: CP - vendor: AT&T - - properties: - address_info: - mac_address: # provided by OPENECOMP (SDNC) - - - - # Intra-VF Virtual Links (Networks) - - mmsc_traffic_net: - type: org.openecomp.resource.vl.VL - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: MMSC traffic network - description: mmsc traffic network - type: VL - category: VL - vendor: Nokia - properties: - network_type: Tenant_Layer_3 - network_role: Intra-service - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.253.0.0/17 # HEAT ENV - gateway_ip: 169.253.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - nems_imap_net: - type: org.openecomp.resource.vl.VL - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: NEMS IMAP network - description: NEMS internal IMAP network - type: VL - category: VL - vendor: Nokia - - properties: - network_type: Tenant_Layer_3 - network_role: Intra-service - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.253.0.0/17 # HEAT ENV - gateway_ip: 169.253.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - nems_internal_net: - type: org.openecomp.resource.vl.VL - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: NEMS internal traffic network - description: NEMS internal traffic network - type: VL - category: VL - vendor: Nokia - - properties: - network_type: Tenant_Layer_3 - network_role: Intra-service - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.253.0.0/17 # HEAT ENV - gateway_ip: 169.253.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - nems_web_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: NEMS web network - description: nems web nwtwork - type: VL - category: VL - vendor: Nokia - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.255.0.0/17 # HEAT ENV - gateway_ip: 169.255.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - nems_traffic_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: NEMS traffic network - description: NEMS traffic network - type: VL - category: VL - vendor: Nokia - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - network_name: # provided by OPENECOMP (SDNC) - route_targets: 13979:105717 - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.0/27 # HEAT ENV - gateway_ip: 107.243.37.1 # HEAT ENV - start_ip: 107.243.37.3 # HEAT ENV - end_ip: 107.243.37.30 # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - eca_traffic_net: - type: org.openecomp.resource.vl.VL - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: ECA traffic network - description: ECA traffic network - type: VL - category: VL - vendor: Nokia - - properties: - network_type: Tenant_Layer_3 - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - network_name: # provided by OPENECOMP (SDNC) - route_targets: 13979:105719 - network_id: - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 107.243.37.32/24 # HEAT ENV - gateway_ip: 107.243.37.33 # HEAT ENV - start_ip: 107.243.37.35 # HEAT ENV - end_ip: 107.243.37.62 # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - eca_internal_net: - type: org.openecomp.resource.vl.VL - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: ECA internal traffic network - description: ECA internal traffic network - type: VL - category: VL - vendor: Nokia - - properties: - network_type: Tenant_Layer_3 - network_role: Intra-service - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.253.0.0/17 # HEAT ENV - gateway_ip: 169.253.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP # service level network - - lb_ha_net: - type: org.openecomp.resource.vl.VL - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: LB HA network - description: LB sync network - type: VL - category: VL - vendor: Nokia - properties: - network_type: Tenant_Layer_3 - network_role: Intra-service - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input: network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - l3_access_parameters: - ip_version: 4 - cidr: 169.253.0.0/17 # HEAT ENV - gateway_ip: 169.253.0.3 # HEAT ENV - dhcp_enabled: false # HEAT ENV - capabilities: - virtual_linkable: - valid_source_types: org.openecomp.resource.cp.CP - - - groups: - - # Server Groups for applying placement policy - LbGroup: - type: tosca.groups.Root - members: [vLB] - - mmscGroup: - type: tosca.groups.Root - members: [vMMSC] - - nemas_feGroup: - type: tosca.groups.Root - members: [vNEMS_FE] - - eca_trxGroup: - type: tosca.groups.Root - members: [vECA_TRX] - - # VF Modules - VFModuleMMSC_Expansion: - type: org.openecomp.groups.VfModule - - metadata: - vfModuleModelName: vMMSC::module-1 - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelUUID: b020dd1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - - properties: - vf_module_type: Expansion # set by service designer - vf_module_description: vMMSC growth unit # set by service designer - contrail_service_instance: true # from HEAT - availability_zone_count: 1 # from HEAT - volume_group: false # from HEAT / service Designer - artifacts: # HEAT Templates - - 099a6909-290f-4293-a347-736f11b8ff18 - - 0db84f21-d298-4a4b-b11e-37b92a734066 - - members: - - vMMSC - - vNEMS_FE - - vNEMS_BE - - vECA_TRX - - vLB - - mmsc_oam - - mmsc_traffic - - nems_fe_web - - mmsc_traffic_net - - nems_imap_net - - nems_internal_net - - - policies: - # Autoscaling policy - - mmsc_autoscale_policy: - type: org.openecomp.policy.Autoscaling - - properties: - min_instances: 1 - max_instances: 4 - increment: 1 - factor: bandwidth - threshold: 5 Gpbs - - target: [ VFModuleMMSC_Expansion ] - - # Placement policy - - mmsc_anti_affinity_placement_policy: - type: org.openecomp.policy.Placement - - properties: - conatiner_type: compute - policy: anti_affinity - - target: [ LbGroup, mmscGroup, nemas_feGroup, eca_trxGroup, eca_oamGroup, cmauiGroup ] \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyMandatoryParameterServiceVersion.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyMandatoryParameterServiceVersion.yml deleted file mode 100644 index 6aee48b9d9..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyMandatoryParameterServiceVersion.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyResourceVersionFormat.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyResourceVersionFormat.yml deleted file mode 100644 index 6aee48b9d9..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyResourceVersionFormat.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyServiceVersion.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyServiceVersion.yml deleted file mode 100644 index 6aee48b9d9..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyServiceVersion.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyServiceVersionFormat.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyServiceVersionFormat.yml deleted file mode 100644 index 6aee48b9d9..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyServiceVersionFormat.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyVFModWithInvalidNo.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyVFModWithInvalidNo.yml deleted file mode 100644 index 9cb7291603..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyVFModWithInvalidNo.yml +++ /dev/null @@ -1,1208 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: VF Template for pseodo vMME - -# metadata of the VF model -metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - vendor: Ericsson - -# imports include all other tosca definitions that are required for this template -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml - -topology_template: - -# inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks) - inputs: - fsb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - fsb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - fsb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_FSB1_16ACP03.qcow2 - fsb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - fsb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB002 - fsb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - fsb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_FSB2_16ACP03.qcow2 - fsb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - defualt: m4.xlarge4 - ncb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - ncb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - ncb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_NCB1_16ACP03.qcow2 - ncb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - ncb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - ncb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - ncb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_NCB2_16ACP03.qcow2 - ncb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - gpb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - gpb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - gpb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_GPB1_16ACP03.qcow2 - gpb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - gpb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - gpb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - gpb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_GPB2_16ACP03.qcow2 - gpb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - vlc1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - vlc1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - vlc1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_VLC1_16ACP03.qcow2 - vlc1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - vlc2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - vlc2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - vlc2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_VLC2_16ACP03.qcow2 - vlc2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - - fsb1_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - fsb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - fsb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - fsb2_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - fsb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - fsb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - - ncb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - ncb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - ncb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - ncb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - gpb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - gpb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - gpb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - gpb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - vlc1_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_gtp_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_sctp_a_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_sctp_b_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - vlc1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - vlc2_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_gtp_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_sctp_a_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_sctp_b_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - vlc2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - Internal1_net_dhcp: - hidden: false - immutable: false - type: string - default: 'False' - Internal1_net_cidr: - hidden: false - immutable: false - type: string - default: 169.253.0.0/17 - Internal1_net_gateway_ip: - hidden: false - immutable: false - type: string - default: 169.253.0.3 - Internal2_net_dhcp: - hidden: false - immutable: false - type: string - default: 'False' - Internal2_net_cidr: - hidden: false - immutable: false - type: string - default: 169.255.0.0/17 - Internal2_net_gateway_ip: - hidden: false - immutable: false - type: string - default: 169.255.0.3 - network_deployment_node: - type: string - description: The target LCP node for deployment of this Network instance - oam_net_id: - hidden: false - immutable: false - type: string - description: uuid of oam network - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - - node_templates: - - # VFCs / VMs - FSB1: # VFC1 / VM1 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: fsb1_vfc_instance_name} - vfc_type_tag: {get_input: fsb1_vfc_type_tag} - vfc_description: FSB1 - vfc_image_name: {get_input: fsb1_vfc_image_name} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: fsb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capabilty: - properties: - name: high_cpu - - - FSB2: # VFC2 / VM2 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: fsb2_vfc_instance_name} - vfc_type_tag: {get_input: fsb2_vfc_type_tag} - vfc_description: FSB2 - vfc_image_name: {get_input: fsb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: fsb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - NCB1: # VFC3 / MV3 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: ncb1_vfc_instance_name} - vfc_type_tag: {get_input: ncb1_vfc_type_tag} - vfc_description: NCB1 - vfc_image_name: {get_input: ncb1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: ncb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - NCB2: # VFC4 / VM4 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: ncb2_vfc_instance_name} - vfc_type_tag: {get_input: ncb2_vfc_type_tag} - vfc_description: NCB2 - vfc_image_name: {get_input: ncb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: ncb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - GPB1: # VFC5 / VM5 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: gpb1_vfc_instance_name} - vfc_type_tag: {get_input: gpb1_vfc_type_tag} - vfc_description: GPB1 - vfc_image_name: {get_input: gpb1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: gpb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - GPB2: # VFC6 / VM6 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: gpb2_vfc_instance_name} - vfc_type_tag: {get_input: gpb2_vfc_type_tag} - vfc_description: GPB2 - vfc_image_name: {get_input: gpb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: gpb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - VLC1: # VFC7 / VM7 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: vlc1_vfc_instance_name} - vfc_type_tag: {get_input: vlc1_vfc_type_tag} - vfc_description: VLC1 - vfc_image_name: {get_input: vlc1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: vlc1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - VLC2: # VFC8 / VM8 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: vlc2_vfc_instance_name} - vfc_type_tag: {get_input: vlc2_vfc_type_tag} - vfc_description: VLC2 - vfc_image_name: {get_input: vlc2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: vlc2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - - # Connection Points - - fsb1_oam: # VFC1 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: fsb1_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - fsb1_internal1: # VFC1 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - fsb1_internal2: # VFC1 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - fsb2_oam: # VFC2 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: fsb2_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - fsb2_internal1: # VFC2 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - fsb2_internal2: # VFC2 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - ncb1_internal1: # VFC3 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - ncb1_internal2: # VFC3 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - ncb2_internal1: # VFC4 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - ncb2_internal2: # VFC4 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - gpb1_internal1: # VFC5 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - gpb1_internal2: # VFC5 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - gpb2_internal1: # VFC6 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - gpb2_internal2: # VFC6 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc1_oam: # VFC7 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc1_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - vlc1_internal2: # VFC7 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_a: # VFC7 eca_sctp_a CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_a_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_a_net - # relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b: # VFC7 eca_sctp_b CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_b_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_b_net - # relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net: # VFC7 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc1_gtp_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: gtp_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_oam: # VFC8 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - vlc2_internal1: # VFC8 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - vlc2_internal2: # VFC8 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc2_sctp_a: # VFC8 eca_sctp_a CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_a_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_a_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_sctp_b: # VFC8 eca_sctp_b CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_b_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_b_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_gtp_net: # VFC8 gtp CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_gtp_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: gtp_net - # relationship: tosca.relationships.network.BindsTo - - # Virtual Links (Networks) - - Internal1_net: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: Network - description: Internal Network - type: VL - category: Generic - subcategory: Infrastructure - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_role: - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - ip_version: 4 - enable_dhcp: {get_input: Internal1_net_enable_dhcp} - cidr: {get_input: Internal1_net_cidr} - gateway_ip: {get_input: Internal1_net_gateway_ip} - - Internal2_net: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: Network - description: Internal Network - type: VL - category: Generic - subcategory: Infrastructure - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_role: - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - ip_version: 4 - enable_dhcp: {get_input: Internal2_net_enable_dhcp} - cidr: {get_input: Internal2_net_cidr} - gateway_ip: {get_input: Internal2_net_gateway_ip} - - - oam_net: - type: org.openecomp.resource.vl.OAM - - metadata: - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - version: 2.0 - name: Mobility OAM Network - description: Mobility OAM Network - type: VL - category: VL - vendor: AT&T - - properties: - network_type: vIPR_ATM_OAM - network_technology: Contrail - network_id: {get_input: oam_net_id} - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - - - groups: - - # VF Modules - vfmoduleVmmeModule-1: - type: org.openecomp.groups.VfModule - - metadata: - vfModuleModelName: vMME::module-1 - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - - properties: - vf_module_type: Expansion # set by service designer - vf_module_label: vMME Expansion VF Module # set by service designer - vf_module_description: vMME expansion VF Module # set by service designer - contrail_service_instance: true # from HEAT - availability_zone_count: 2 # from HEAT - volume_group: false # from HEAT / service Designer - artifacts: # HEAT Templates - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - - members: - - INVALID_MEMBER - - - # HEAT Stacks - - vmme_small: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/vmme_small.yml - description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc - - members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, - fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2, - ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1, - gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, - vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ] - - vmme_small_create_fsb: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/vmme_small_create_fsb.yml - description: server template for vMME - - members: [ FSB1_volume, FSB2_volume ] - - policies: - # Autoscaling policy - - mme_autoscale_policy: - type: org.openecomp.policy.Autoscaling - properties: - min_instances: 1 - max_instances: 4 - increment: 1 - factor: cpu_load - threshold: 80% - - target: [ vfmoduleVmmeModule-1] - - - substitution_mapping: - type: org.openecomp.resource.vf.vmme - - requirements: - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyVFModWithoutVNFC.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyVFModWithoutVNFC.yml deleted file mode 100644 index b1784cf81f..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_VerifyVFModWithoutVNFC.yml +++ /dev/null @@ -1,1218 +0,0 @@ -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 - -description: VF Template for pseodo vMME - -# metadata of the VF model -metadata: - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - name: vMME_VF - description: vMME_VF - type: VF - category: Application L4+ - subcategory: Firewall - vendor: Ericsson - -# imports include all other tosca definitions that are required for this template -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml - -topology_template: - -# inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks) - inputs: - fsb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - fsb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - fsb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_FSB1_16ACP03.qcow2 - fsb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - fsb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB002 - fsb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - fsb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_FSB2_16ACP03.qcow2 - fsb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - defualt: m4.xlarge4 - ncb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - ncb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - ncb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_NCB1_16ACP03.qcow2 - ncb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - ncb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - ncb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - ncb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_NCB2_16ACP03.qcow2 - ncb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - gpb1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - gpb1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - gpb1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_GPB1_16ACP03.qcow2 - gpb1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - gpb2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - gpb2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - gpb2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_GPB2_16ACP03.qcow2 - gpb2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - vlc1_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - vlc1_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - vlc1_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_VLC1_16ACP03.qcow2 - vlc1_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - vlc2_vfc_instance_name: # from HEAT ENV - type: string - description: VFC instance name - default: ZRDM1MMEX36FSB001 - vlc2_vfc_type_tag: # from HEAT ENV - type: string - description: VFC type tag - vlc2_vfc_image_name: # from HEAT ENV - type: string - description: VFC image name - default: MME_VLC2_16ACP03.qcow2 - vlc2_vfc_flavor: # from HEAT ENV - type: string - description: VFC flavor - default: m4.xlarge4 - - fsb1_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - fsb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - fsb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - fsb2_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - fsb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - fsb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - - ncb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - ncb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - ncb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - ncb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - gpb1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - gpb1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - gpb2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - gpb2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - vlc1_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_gtp_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_sctp_a_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_sctp_b_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc1_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - vlc1_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - vlc2_oam_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_gtp_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_sctp_a_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_sctp_b_ip_address: # from HEAT ENV - type: string - description: OAM ip address - default: 107.250.172.221 - vlc2_internal1_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:80:37:0E:0B:12 - vlc2_internal2_mac_address: # from HEAT_ENV - type: string - description: Internal connection point mac_address - default: 00:81:37:0E:0B:12 - Internal1_net_dhcp: - hidden: false - immutable: false - type: string - default: 'False' - Internal1_net_cidr: - hidden: false - immutable: false - type: string - default: 169.253.0.0/17 - Internal1_net_gateway_ip: - hidden: false - immutable: false - type: string - default: 169.253.0.3 - Internal2_net_dhcp: - hidden: false - immutable: false - type: string - default: 'False' - Internal2_net_cidr: - hidden: false - immutable: false - type: string - default: 169.255.0.0/17 - Internal2_net_gateway_ip: - hidden: false - immutable: false - type: string - default: 169.255.0.3 - network_deployment_node: - type: string - description: The target LCP node for deployment of this Network instance - oam_net_id: - hidden: false - immutable: false - type: string - description: uuid of oam network - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - - node_templates: - - # VFCs / VMs - FSB1: # VFC1 / VM1 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: fsb1_vfc_instance_name} - vfc_type_tag: {get_input: fsb1_vfc_type_tag} - vfc_description: FSB1 - vfc_image_name: {get_input: fsb1_vfc_image_name} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: fsb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capabilty: - properties: - name: high_cpu - - - FSB2: # VFC2 / VM2 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: fsb2_vfc_instance_name} - vfc_type_tag: {get_input: fsb2_vfc_type_tag} - vfc_description: FSB2 - vfc_image_name: {get_input: fsb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: fsb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - NCB1: # VFC3 / MV3 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: ncb1_vfc_instance_name} - vfc_type_tag: {get_input: ncb1_vfc_type_tag} - vfc_description: NCB1 - vfc_image_name: {get_input: ncb1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: ncb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - NCB2: # VFC4 / VM4 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: ncb2_vfc_instance_name} - vfc_type_tag: {get_input: ncb2_vfc_type_tag} - vfc_description: NCB2 - vfc_image_name: {get_input: ncb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: ncb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - GPB1: # VFC5 / VM5 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: gpb1_vfc_instance_name} - vfc_type_tag: {get_input: gpb1_vfc_type_tag} - vfc_description: GPB1 - vfc_image_name: {get_input: gpb1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: gpb1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - GPB2: # VFC6 / VM6 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: gpb2_vfc_instance_name} - vfc_type_tag: {get_input: gpb2_vfc_type_tag} - vfc_description: GPB2 - vfc_image_name: {get_input: gpb2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: gpb2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - VLC1: # VFC7 / VM7 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: vlc1_vfc_instance_name} - vfc_type_tag: {get_input: vlc1_vfc_type_tag} - vfc_description: VLC1 - vfc_image_name: {get_input: vlc1_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: vlc1_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - VLC2: # VFC8 / VM8 - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - - metadata: - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - version: 1.0 - name: Nova Server - description: VFC based on OpenStack Nova Server - type: VFC - category: Generic - resourceSubcategory: Infrastructure - vendor: Ericsson - properties: - vfc_ecomp_name: false - vfc_instance_name: {get_input: vlc2_vfc_instance_name} - vfc_type_tag: {get_input: vlc2_vfc_type_tag} - vfc_description: VLC2 - vfc_image_name: {get_input: vlc2_vfc_image_name} - - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - capabilities: - nfv_compute: - properties: - vfc_flavor: {get_input: vlc2_vfc_flavor} - scaling_capability: - properties: - min_instances: 1 - max_instances: 1 - init_instances: 1 - monitoring_capability: - properties: - name: cpu_load - - - # Connection Points - - fsb1_oam: # VFC1 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: fsb1_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - fsb1_internal1: # VFC1 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - fsb1_internal2: # VFC1 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - fsb2_oam: # VFC2 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: fsb2_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - fsb2_internal1: # VFC2 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - fsb2_internal2: # VFC2 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: fsb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - ncb1_internal1: # VFC3 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - ncb1_internal2: # VFC3 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - ncb2_internal1: # VFC4 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - ncb2_internal2: # VFC4 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: ncb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - gpb1_internal1: # VFC5 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb1_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - gpb1_internal2: # VFC5 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - gpb2_internal1: # VFC6 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - gpb2_internal2: # VFC6 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: gpb2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc1_oam: # VFC7 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc1_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - vlc1_internal2: # VFC7 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc1_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_a: # VFC7 eca_sctp_a CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_a_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_a_net - # relationship: tosca.relationships.network.BindsTo - - vlc1_sctp_b: # VFC7 eca_sctp_b CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_b_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_b_net - # relationship: tosca.relationships.network.BindsTo - - vlc1_gtp_net: # VFC7 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc1_gtp_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: gtp_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_oam: # VFC8 OAM CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_oam_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - - vlc2_internal1: # VFC8 Internal1 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc2_internal1_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - - vlc2_internal2: # VFC8 Internal2 CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_info: - mac_address: {get_input: vlc2_internal2_mac_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - - vlc2_sctp_a: # VFC8 eca_sctp_a CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_a_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_a_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_sctp_b: # VFC8 eca_sctp_b CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_sctp_b_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: sctp_b_net - # relationship: tosca.relationships.network.BindsTo - - vlc2_gtp_net: # VFC8 gtp CP - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - address_Info: - ip_address: {get_input: vlc2_gtp_ip_address} - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - # - link: - # capability: tosca.capabilities.network.Bindable - # node: gtp_net - # relationship: tosca.relationships.network.BindsTo - - # Virtual Links (Networks) - - Internal1_net: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: Network - description: Internal Network - type: VL - category: Generic - subcategory: Infrastructure - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_role: - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - ip_version: 4 - enable_dhcp: {get_input: Internal1_net_enable_dhcp} - cidr: {get_input: Internal1_net_cidr} - gateway_ip: {get_input: Internal1_net_gateway_ip} - - Internal2_net: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - metadata: - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - version: 1.0 - name: Network - description: Internal Network - type: VL - category: Generic - subcategory: Infrastructure - vendor: AT&T - properties: - network_type: Tenant_Layer_3 - network_role: - network_technology: Contrail - network_ecomp_name: false - network_homing: false - network_deployment_node: { get_input : network_deployment_node } - contrail_virtual_network: - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_forwarding_mode: l2 - vn_shared: false - vn_external: false - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - ip_version: 4 - enable_dhcp: {get_input: Internal2_net_enable_dhcp} - cidr: {get_input: Internal2_net_cidr} - gateway_ip: {get_input: Internal2_net_gateway_ip} - - - oam_net: - type: org.openecomp.resource.vl.OAM - - metadata: - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - version: 2.0 - name: Mobility OAM Network - description: Mobility OAM Network - type: VL - category: VL - vendor: AT&T - - properties: - network_type: vIPR_ATM_OAM - network_technology: Contrail - network_id: {get_input: oam_net_id} - layer_protocol: IP - flow_pattern: E-LAN - test_access: none - - - groups: - - # VF Modules - vfmoduleVmmeModule-1: - type: org.openecomp.groups.VfModule - - metadata: - vfModuleModelName: vMME::module-1 - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - - properties: - vf_module_type: Expansion # set by service designer - vf_module_label: vMME Expansion VF Module # set by service designer - vf_module_description: vMME expansion VF Module # set by service designer - contrail_service_instance: true # from HEAT - availability_zone_count: 2 # from HEAT - volume_group: false # from HEAT / service Designer - artifacts: # HEAT Templates - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - - members: - - FSB1_NR - - FSB2_NR - - NCB1_NR - - NCB2_NR - - VLC2_NR - - oam_net - - vlc2_gtp_net - - Internal1_net - - fsb1_oam - - Internal2_net - - - - # HEAT Stacks - - vmme_small: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/vmme_small.yml - description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc - - members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, - fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2, - ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1, - gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, - vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ] - - vmme_small_create_fsb: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/vmme_small_create_fsb.yml - description: server template for vMME - - members: [ FSB1_volume, FSB2_volume ] - - policies: - # Autoscaling policy - - mme_autoscale_policy: - type: org.openecomp.policy.Autoscaling - properties: - min_instances: 1 - max_instances: 4 - increment: 1 - factor: cpu_load - threshold: 80% - - target: [ vfmoduleVmmeModule-1] - - - substitution_mapping: - type: org.openecomp.resource.vf.vmme - - requirements: - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo \ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithDiffVersionOfSameL3Network.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithDiffVersionOfSameL3Network.yml deleted file mode 100644 index 6aee48b9d9..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithDiffVersionOfSameL3Network.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithDupL3Network.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithDupL3Network.yml deleted file mode 100644 index 6aee48b9d9..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithDupL3Network.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithInvIdGreaterThanSpecifiedLimit.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithInvIdGreaterThanSpecifiedLimit.yml deleted file mode 100644 index 6aee48b9d9..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithInvIdGreaterThanSpecifiedLimit.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithInvIdLesserThanSpecifiedLimit.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithInvIdLesserThanSpecifiedLimit.yml deleted file mode 100644 index 6aee48b9d9..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithInvIdLesserThanSpecifiedLimit.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithL3Network.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithL3Network.yml deleted file mode 100644 index 6aee48b9d9..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithL3Network.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithL3NetworkInVFMod.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithL3NetworkInVFMod.yml deleted file mode 100644 index 6aee48b9d9..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithL3NetworkInVFMod.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithUpdatedUUIDInConfig.yml b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithUpdatedUUIDInConfig.yml deleted file mode 100644 index 6aee48b9d9..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-test/src/main/resources/vf_vmme_template_WithUpdatedUUIDInConfig.yml +++ /dev/null @@ -1,1299 +0,0 @@ ---- -description: "VF Template for pseodo vMME" -imports: - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml -metadata: - category: "Application L4+" - description: vMME_VF - invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22 - name: vMME_VF - subcategory: Firewall - type: VF - UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - resourceVendor: Ericsson -topology_template: - groups: - vfmoduleVmmeModule-1: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - metadata: - vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c - vfModuleModelName: "vMME::module-1" - vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc - vfModuleModelVersion: 1 - properties: - artifacts: - - /Artifacts/vmme_small_create_fsb.yml - - /Artifacts/vmme_small.yml - availability_zone_count: 2 - contrail_service_instance: true - vf_module_description: "vMME expansion VF Module" - vf_module_label: "vMME Expansion VF Module" - vf_module_type: Expansion - volume_group: false - type: org.openecomp.groups.VfModule - vmme_small: - members: - - FSB1 - - FSB2 - - NCB1 - - NCB2 - - VLC1 - - VLC2 - - GPB1 - - GPB2 - - Internal1_net - - Internal2_net - - fsb1_oam - - fsb1_internal1 - - fsb1_internal2 - - fsb2_oam - - fsb2_internal2 - - ncb1_internal1 - - ncb1_internal2 - - ncb2_internal1 - - ncb2_internal2 - - gpb1_internal1 - - gpb1_internal2 - - gpb2_internal1 - - gpb2_internal2 - - vlc1_oam - - vlc1_internal1 - - vlc1_internal2 - - vlc1_sctp_a - - vlc1_sctp_b - - vlc1_gtp - - vlc2_oam - - vlc2_internal1 - - vlc2_internal2 - - vlc2_sctp_a - - vlc2_sctp_b - - vlc1_gtp - properties: - description: "HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc" - heat_file: ../Artifacts/vmme_small.yml - type: org.openecomp.groups.heat.HeatStack - vmme_small_create_fsb: - members: - - FSB1_volume - - FSB2_volume - properties: - description: "server template for vMME" - heat_file: ../Artifacts/vmme_small_create_fsb.yml - type: org.openecomp.groups.heat.HeatStack - inputs: - Internal1_net_cidr: - default: 169.253.0.0/17 - hidden: false - immutable: false - type: string - Internal1_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal1_net_gateway_ip: - default: "169.253.0.3" - hidden: false - immutable: false - type: string - Internal2_net_cidr: - default: 169.255.0.0/17 - hidden: false - immutable: false - type: string - Internal2_net_dhcp: - default: "False" - hidden: false - immutable: false - type: string - Internal2_net_gateway_ip: - default: "169.255.0.3" - hidden: false - immutable: false - type: string - fsb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - fsb1_vfc_image_name: - default: MME_FSB1_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - fsb1_vfc_type_tag: - description: "VFC type tag" - type: string - fsb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - fsb2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - fsb2_vfc_flavor: - defualt: m4.xlarge4 - description: "VFC flavor" - type: string - fsb2_vfc_image_name: - default: MME_FSB2_16ACP03.qcow2 - description: "VFC image name" - type: string - fsb2_vfc_instance_name: - default: ZRDM1MMEX36FSB002 - description: "VFC instance name" - type: string - fsb2_vfc_type_tag: - description: "VFC type tag" - type: string - gpb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb1_vfc_image_name: - default: MME_GPB1_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb1_vfc_type_tag: - description: "VFC type tag" - type: string - gpb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - gpb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - gpb2_vfc_image_name: - default: MME_GPB2_16ACP03.qcow2 - description: "VFC image name" - type: string - gpb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - gpb2_vfc_type_tag: - description: "VFC type tag" - type: string - ncb1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb1_vfc_image_name: - default: MME_NCB1_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb1_vfc_type_tag: - description: "VFC type tag" - type: string - ncb2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - ncb2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - ncb2_vfc_image_name: - default: MME_NCB2_16ACP03.qcow2 - description: "VFC image name" - type: string - ncb2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - ncb2_vfc_type_tag: - description: "VFC type tag" - type: string - network_deployment_node: - description: "The target LCP node for deployment of this Network instance" - type: string - oam_net_id: - default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351 - description: "uuid of oam network" - hidden: false - immutable: false - type: string - vlc1_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc1_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc1_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc1_vfc_image_name: - default: MME_VLC1_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc1_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc1_vfc_type_tag: - description: "VFC type tag" - type: string - vlc2_gtp_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_internal1_mac_address: - default: "00:80:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_internal2_mac_address: - default: "00:81:37:0E:0B:12" - description: "Internal connection point mac_address" - type: string - vlc2_oam_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_a_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_sctp_b_ip_address: - default: "107.250.172.221" - description: "OAM ip address" - type: string - vlc2_vfc_flavor: - default: m4.xlarge4 - description: "VFC flavor" - type: string - vlc2_vfc_image_name: - default: MME_VLC2_16ACP03.qcow2 - description: "VFC image name" - type: string - vlc2_vfc_instance_name: - default: ZRDM1MMEX36FSB001 - description: "VFC instance name" - type: string - vlc2_vfc_type_tag: - description: "VFC type tag" - type: string - node_templates: - FSB1: - capabilities: - monitoring_capabilty: - properties: - name: high_cpu - nfv_compute: - properties: - vfc_flavor: - get_input: fsb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb1_vfc_image_name - vfc_instance_name: - get_input: fsb1_vfc_instance_name - vfc_type_tag: - get_input: fsb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - FSB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: fsb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: FSB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: fsb2_vfc_image_name - vfc_instance_name: - get_input: fsb2_vfc_instance_name - vfc_type_tag: - get_input: fsb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: fsb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb1_vfc_image_name - vfc_instance_name: - get_input: gpb1_vfc_instance_name - vfc_type_tag: - get_input: gpb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - GPB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: gpb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: GPB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: gpb2_vfc_image_name - vfc_instance_name: - get_input: gpb2_vfc_instance_name - vfc_type_tag: - get_input: gpb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: gpb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - Internal1_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal1_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1 - vn_shared: false - enable_dhcp: - get_input: Internal1_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal1_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - Internal2_net: - metadata: - category: Generic - description: "Internal Network" - invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c - name: Network - subcategory: Infrastructure - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234 - resourceVendor: AT&T - version: 1.0 - properties: - cidr: - get_input: Internal2_net_cidr - contrail_virtual_network: - vn_external: false - vn_forwarding_mode: l2 - vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2 - vn_shared: false - enable_dhcp: - get_input: Internal2_net_enable_dhcp - flow_pattern: E-LAN - gateway_ip: - get_input: Internal2_net_gateway_ip - ip_version: 4 - layer_protocol: IP - network_deployment_node: - get_input: network_deployment_node - network_ecomp_name: false - network_homing: false - network_role: ~ - network_technology: Contrail - network_type: Tenant_Layer_3 - test_access: none - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - NCB1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB1 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb1_vfc_image_name - vfc_instance_name: - get_input: ncb1_vfc_instance_name - vfc_type_tag: - get_input: ncb1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - NCB2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: ncb2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: NCB2 - vfc_ecomp_name: false - vfc_image_name: - get_input: ncb2_vfc_image_name - vfc_instance_name: - get_input: ncb2_vfc_instance_name - vfc_type_tag: - get_input: ncb2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: ncb2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC1: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc1_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC1 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc1_vfc_image_name - vfc_instance_name: - get_input: vlc1_vfc_instance_name - vfc_type_tag: - get_input: vlc1_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc1_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - VLC2: - capabilities: - monitoring_capability: - properties: - name: cpu_load - nfv_compute: - properties: - vfc_flavor: - get_input: vlc2_vfc_flavor - scaling_capability: - properties: - init_instances: 1 - max_instances: 1 - min_instances: 1 - metadata: - category: Generic - description: "VFC based on OpenStack Nova Server" - invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2 - name: "Nova Server" - subcategory: Infrastructure - type: VFC - UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0 - resourceVendor: Ericsson - version: 1.0 - properties: - vfc_description: VLC2 - vfc_ecomp_name: false - vfc_image_name: - get_input: vlc2_vfc_image_name - vfc_instance_name: - get_input: vlc2_vfc_instance_name - vfc_type_tag: - get_input: vlc2_vfc_type_tag - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_oam - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal1 - relationship: tosca.relationships.network.BindsTo - - - binding: - capability: tosca.capabilities.network.Bindable - node: vlc2_internal2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - fsb1_internal1: - properties: - address_info: - mac_address: - get_input: fsb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_internal2: - properties: - address_info: - mac_address: - get_input: fsb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb1_oam: - properties: - address_Info: - ip_address: - get_input: fsb1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal1: - properties: - address_info: - mac_address: - get_input: fsb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_internal2: - properties: - address_info: - mac_address: - get_input: fsb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - fsb2_oam: - properties: - address_Info: - ip_address: - get_input: fsb2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: FSB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal1: - properties: - address_info: - mac_address: - get_input: gpb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb1_internal2: - properties: - address_info: - mac_address: - get_input: gpb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal1: - properties: - address_info: - mac_address: - get_input: gpb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - gpb2_internal2: - properties: - address_info: - mac_address: - get_input: gpb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: GPB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal1: - properties: - address_info: - mac_address: - get_input: ncb1_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb1_internal2: - properties: - address_info: - mac_address: - get_input: ncb1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal1: - properties: - address_info: - mac_address: - get_input: ncb2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - ncb2_internal2: - properties: - address_info: - mac_address: - get_input: ncb2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: NCB2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - oam_net: - metadata: - category: VL - description: "Mobility OAM Network" - invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a - name: "Mobility OAM Network" - type: VL - UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc - resourceVendor: AT&T - version: 2.0 - properties: - flow_pattern: E-LAN - layer_protocol: IP - network_id: - get_input: oam_net_id - network_technology: Contrail - network_type: vIPR_ATM_OAM - test_access: none - type: org.openecomp.resource.vl.OAM - vlc1_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc1_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_internal2: - properties: - address_info: - mac_address: - get_input: vlc1_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_oam: - properties: - address_Info: - ip_address: - get_input: vlc1_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc1_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC1 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_gtp_net: - properties: - address_Info: - ip_address: - get_input: vlc2_gtp_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal1: - properties: - address_info: - mac_address: - get_input: vlc2_internal1_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal1_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_internal2: - properties: - address_info: - mac_address: - get_input: vlc2_internal2_mac_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: Internal2_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_oam: - properties: - address_Info: - ip_address: - get_input: vlc2_oam_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - - - link: - capability: tosca.capabilities.network.Bindable - node: oam_net - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_a: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_a_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - vlc2_sctp_b: - properties: - address_Info: - ip_address: - get_input: vlc2_sctp_b_ip_address - requirements: - - - binding: - capability: tosca.capabilities.network.Bindable - node: VLC2 - relationship: tosca.relationships.network.BindsTo - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - policies: - - - mme_autoscale_policy: - properties: - factor: cpu_load - increment: 1 - max_instances: 4 - min_instances: 1 - threshold: 80% - target: - - vfmoduleVmmeModule-1 - type: org.openecomp.policy.Autoscaling - substitution_mapping: - requirements: - - - vlc1_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc2_gtp_net.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_a.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - - vlc1_sctp_b.link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - type: org.openecomp.resource.vf.vmme -tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0 diff --git a/common/openecomp-sdc-artifact-generator-lib/pom.xml b/common/openecomp-sdc-artifact-generator-lib/pom.xml deleted file mode 100644 index 7f3b7a95d6..0000000000 --- a/common/openecomp-sdc-artifact-generator-lib/pom.xml +++ /dev/null @@ -1,24 +0,0 @@ - - 4.0.0 - - openecomp-sdc-artifact-generator-lib - org.openecomp.sdc.common - openecomp-sdc-artifact-generator-lib - pom - - - org.openecomp.sdc.common - openecomp-common-lib - 1.2.0-SNAPSHOT - .. - - - - - openecomp-sdc-artifact-generator-api - openecomp-sdc-artifact-generator-core - openecomp-sdc-artifact-generator-test - - - diff --git a/common/openecomp-tosca-datatype/pom.xml b/common/openecomp-tosca-datatype/pom.xml deleted file mode 100644 index 27a13c6a21..0000000000 --- a/common/openecomp-tosca-datatype/pom.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - 4.0.0 - - org.openecomp.sdc.common - openecomp-tosca-datatype - - - openecomp-common-lib - org.openecomp.sdc.common - 1.2.0-SNAPSHOT - .. - - - - - org.yaml - snakeyaml - 1.17 - - - org.apache.commons - commons-collections4 - ${commons.collections.version} - - - diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/ActivityDefinition.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/ActivityDefinition.java deleted file mode 100644 index 47800a4c2a..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/ActivityDefinition.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.openecomp.sdc.tosca.datatypes.model; - -public class ActivityDefinition { - - private String delegate; - private String set_state; - private String call_operation; - private String inline; - - public String getDelegate() { - return delegate; - } - - public void setDelegate(String delegate) { - this.delegate = delegate; - } - - public String getSet_state() { - return set_state; - } - - public void setSet_state(String set_state) { - this.set_state = set_state; - } - - public String getCall_operation() { - return call_operation; - } - - public void setCall_operation(String call_operation) { - this.call_operation = call_operation; - } - - public String getInline() { - return inline; - } - - public void setInline(String inline) { - this.inline = inline; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/ArtifactDefinition.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/ArtifactDefinition.java deleted file mode 100644 index 0eaabc4334..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/ArtifactDefinition.java +++ /dev/null @@ -1,71 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - - - -public class ArtifactDefinition { - private String type; - private String file; - private String repository; - private String description; - private String deploy_path; - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getFile() { - return file; - } - - public void setFile(String file) { - this.file = file; - } - - public String getRepository() { - return repository; - } - - public void setRepository(String repository) { - this.repository = repository; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getDeploy_path() { - return deploy_path; - } - - public void setDeploy_path(String deploy_path) { - this.deploy_path = deploy_path; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/ArtifactType.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/ArtifactType.java deleted file mode 100644 index 64428d3920..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/ArtifactType.java +++ /dev/null @@ -1,94 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.List; -import java.util.Map; - - - -public class ArtifactType { - - private String derived_from; - private String version; - private Map metadata; - private String description; - private String mime_type; - private List file_ext; - private Map properties; - - - public String getDerived_from() { - return derived_from; - } - - public void setDerived_from(String derived_from) { - this.derived_from = derived_from; - } - - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - public Map getMetadata() { - return metadata; - } - - public void setMetadata(Map metadata) { - this.metadata = metadata; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getMime_type() { - return mime_type; - } - - public void setMime_type(String mime_type) { - this.mime_type = mime_type; - } - - public List getFile_ext() { - return file_ext; - } - - public void setFile_ext(List file_ext) { - this.file_ext = file_ext; - } - - public Map getProperties() { - return properties; - } - - public void setProperties(Map properties) { - this.properties = properties; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/AttributeDefinition.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/AttributeDefinition.java deleted file mode 100644 index 97a1add3b0..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/AttributeDefinition.java +++ /dev/null @@ -1,88 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.Objects; - -public class AttributeDefinition { - - private String type; - private String description; - private Object _default; - private Status status; - private EntrySchema entry_schema; - - public AttributeDefinition() { - status = Status.SUPPORTED; - } - - public EntrySchema getEntry_schema() { - return entry_schema; - } - - public void setEntry_schema(EntrySchema entry_schema) { - this.entry_schema = entry_schema; - } - - public Status getStatus() { - return status; - } - - public void setStatus(Status status) { - this.status = status; - } - - public Object get_default() { - return _default; - } - - public void set_default(Object _default) { - this._default = _default; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - @Override - public AttributeDefinition clone() { - AttributeDefinition attributeDefinition = new AttributeDefinition(); - attributeDefinition.setType(this.getType()); - attributeDefinition.setDescription(this.getDescription()); - attributeDefinition.set_default(this.get_default()); - attributeDefinition.setStatus(this.getStatus()); - attributeDefinition.setEntry_schema( - Objects.isNull(this.getEntry_schema()) ? null : this.getEntry_schema().clone()); - return attributeDefinition; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/CapabilityAssignment.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/CapabilityAssignment.java deleted file mode 100644 index 072c532ae6..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/CapabilityAssignment.java +++ /dev/null @@ -1,47 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.Map; - - - -public class CapabilityAssignment { - - private Map properties; - private Map attributes; - - public Map getProperties() { - return properties; - } - - public void setProperties(Map properties) { - this.properties = properties; - } - - public Map getAttributes() { - return attributes; - } - - public void setAttributes(Map attributes) { - this.attributes = attributes; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/CapabilityDefinition.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/CapabilityDefinition.java deleted file mode 100644 index 61abeb09a0..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/CapabilityDefinition.java +++ /dev/null @@ -1,112 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import org.openecomp.sdc.tosca.services.DataModelCloneUtil; - -import java.util.List; -import java.util.Map; - -public class CapabilityDefinition { - - private String type; - private String description; - private Map properties; - private Map attributes; - private List valid_source_types; - private Object[] occurrences; - - - /** - * Constructor. - */ - public CapabilityDefinition() { - occurrences = new Object[2]; - occurrences[0] = 1; - occurrences[1] = "UNBOUNDED"; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Map getProperties() { - return properties; - } - - public void setProperties(Map properties) { - this.properties = properties; - } - - public Map getAttributes() { - return attributes; - } - - public void setAttributes(Map attributes) { - this.attributes = attributes; - } - - public List getValid_source_types() { - return valid_source_types; - } - - public void setValid_source_types(List valid_source_types) { - this.valid_source_types = valid_source_types; - } - - public Object[] getOccurrences() { - return occurrences; - } - - public void setOccurrences(Object[] occurrences) { - this.occurrences = occurrences; - } - - @Override - public CapabilityDefinition clone() { - CapabilityDefinition capabilityDefinition = new CapabilityDefinition(); - capabilityDefinition - .setOccurrences(new Object[]{this.getOccurrences()[0], this.getOccurrences()[1]}); - capabilityDefinition - .setProperties(DataModelCloneUtil.clonePropertyDefinitions(this.getProperties())); - capabilityDefinition.setType(this.getType()); - capabilityDefinition - .setAttributes(DataModelCloneUtil.cloneAttributeDefinitions(this.getAttributes())); - capabilityDefinition.setDescription(this.getDescription()); - capabilityDefinition - .setValid_source_types(DataModelCloneUtil.cloneValidSourceTypes(this.getValid_source_types())); - return capabilityDefinition; - - } - -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/CapabilityFilterDefinition.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/CapabilityFilterDefinition.java deleted file mode 100644 index f600a2fbfa..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/CapabilityFilterDefinition.java +++ /dev/null @@ -1,37 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.List; - - - -public class CapabilityFilterDefinition { - List properties; - - public List getProperties() { - return properties; - } - - public void setProperties(List properties) { - this.properties = properties; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/CapabilityType.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/CapabilityType.java deleted file mode 100644 index 671d84369b..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/CapabilityType.java +++ /dev/null @@ -1,84 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.List; -import java.util.Map; - - - -public class CapabilityType { - - private String derived_from; - private String version; - private String description; - private Map properties; - private Map attributes; - private List valid_source_types; - - public String getDerived_from() { - return derived_from; - } - - public void setDerived_from(String derived_from) { - this.derived_from = derived_from; - } - - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Map getProperties() { - return properties; - } - - public void setProperties(Map properties) { - this.properties = properties; - } - - public Map getAttributes() { - return attributes; - } - - public void setAttributes(Map attributes) { - this.attributes = attributes; - } - - public List getValid_source_types() { - return valid_source_types; - } - - public void setValid_source_types(List valid_source_types) { - this.valid_source_types = valid_source_types; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Constraint.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Constraint.java deleted file mode 100644 index d6653fdae1..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Constraint.java +++ /dev/null @@ -1,179 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.ArrayList; -import java.util.List; - -public class Constraint { - private Object equal; - private Object greater_or_equal; - private Object greater_than; - private Object less_than; - private Object less_or_equal; - private Object[] in_range; - private List valid_values; - private Integer length; - private Integer min_length; - private Integer max_length; - private Object pattern; - - public Constraint() { - } - - public Object getGreater_or_equal() { - return greater_or_equal; - } - - public void setGreater_or_equal(Object greater_or_equal) { - this.greater_or_equal = greater_or_equal; - } - - public Object getEqual() { - return equal; - } - - public void setEqual(Object equal) { - this.equal = equal; - } - - public Object getGreater_than() { - return greater_than; - } - - public void setGreater_than(Object greater_than) { - this.greater_than = greater_than; - } - - public Object getLess_than() { - return less_than; - } - - public void setLess_than(Object less_than) { - this.less_than = less_than; - } - - public Object getLess_or_equal() { - return less_or_equal; - } - - public void setLess_or_equal(Object less_or_equal) { - this.less_or_equal = less_or_equal; - } - - public Object[] getIn_range() { - return in_range; - } - - /** - * Sets in_range attribute. - * @param in_range. - */ - public void setIn_range(Object[] in_range) { - this.in_range = new Object[2]; - this.in_range[0] = in_range[0]; - this.in_range[1] = in_range[1]; - } - - public List getValid_values() { - return valid_values; - } - - public void setValid_values(List valid_values) { - this.valid_values = valid_values; - } - - /** - * Add Valid value - * @param validValue object. - */ - public void addValidValue(Object validValue) { - if (this.valid_values == null) { - this.valid_values = new ArrayList<>(); - } - valid_values.add(validValue); - } - - public Integer getLength() { - return length; - } - - public void setLength(Integer length) { - this.length = length; - } - - public Integer getMin_length() { - return min_length; - } - - public void setMin_length(Integer min_length) { - this.min_length = min_length; - } - - public Integer getMax_length() { - return max_length; - } - - public void setMax_length(Integer max_length) { - this.max_length = max_length; - } - - public Object getPattern() { - return pattern; - } - - public void setPattern(Object pattern) { - this.pattern = pattern; - } - - @Override - public Constraint clone() { - Constraint constraint = new Constraint(); - constraint.setEqual(this.getEqual()); - constraint.setGreater_or_equal(this.getGreater_or_equal()); - constraint.setGreater_than(this.getGreater_than()); - cloneInRange(constraint); - constraint.setLength(this.getLength()); - constraint.setLess_or_equal(this.getLess_or_equal()); - constraint.setLess_than(this.getLess_than()); - constraint.setMax_length(this.getMax_length()); - constraint.setMin_length(this.getMin_length()); - constraint.setPattern(this.getPattern()); - cloneValidValues(constraint); - - return constraint; - } - - private void cloneInRange(Constraint constraint) { - if (this.getIn_range() != null) { - constraint.setIn_range(new Object[]{this.getIn_range()[0], this.getIn_range()[1]}); - } - } - - private void cloneValidValues(Constraint constraint) { - if (this.getValid_values() != null) { - constraint.setValid_values(new ArrayList<>()); - for (Object entry : this.getValid_values()) { - constraint.getValid_values().add(entry); - } - } - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Credential.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Credential.java deleted file mode 100644 index 19138ca69f..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Credential.java +++ /dev/null @@ -1,55 +0,0 @@ -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.Map; - -public class Credential { - private String protocol; - private String token_type; - private String token; - private Map keys; - private String user; - - public Credential(){ - this.token_type = "password"; - } - - public String getProtocol() { - return protocol; - } - - public void setProtocol(String protocol) { - this.protocol = protocol; - } - - public String getToken_type() { - return token_type; - } - - public void setToken_type(String token_type) { - this.token_type = token_type; - } - - public String getToken() { - return token; - } - - public void setToken(String token) { - this.token = token; - } - - public Map getKeys() { - return keys; - } - - public void setKeys(Map keys) { - this.keys = keys; - } - - public String getUser() { - return user; - } - - public void setUser(String user) { - this.user = user; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/DataType.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/DataType.java deleted file mode 100644 index 84ec4cb030..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/DataType.java +++ /dev/null @@ -1,132 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.List; -import java.util.Map; - -public class DataType { - - private String derived_from; - private String version; - Map metadata; - private String description; - private List constraints; - private Map properties; - - /** - * Gets derived from. - * - * @return the derived from - */ - public String getDerived_from() { - return derived_from; - } - - /** - * Sets derived from. - * - * @param derived_from the derived from - */ - public void setDerived_from(String derived_from) { - this.derived_from = derived_from; - } - - /** - * Gets version. - * - * @return the version - */ - public String getVersion() { - return version; - } - - /** - * Sets version. - * - * @param version the version - */ - public void setVersion(String version) { - this.version = version; - } - - public Map getMetadata() { - return metadata; - } - - public void setMetadata(Map metadata) { - this.metadata = metadata; - } - - /** - * Gets description. - * - * @return the description - */ - public String getDescription() { - return description; - } - - /** - * Sets description. - * - * @param description the description - */ - public void setDescription(String description) { - this.description = description; - } - - /** - * Gets constraints. - * - * @return the constraints - */ - public List getConstraints() { - return constraints; - } - - /** - * Sets constraints. - * - * @param constraints the constraints - */ - public void setConstraints(List constraints) { - this.constraints = constraints; - } - - /** - * Gets properties. - * - * @return the properties - */ - public Map getProperties() { - return properties; - } - - /** - * Sets properties. - * - * @param properties the properties - */ - public void setProperties(Map properties) { - this.properties = properties; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/DefinitionOfDataType.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/DefinitionOfDataType.java deleted file mode 100644 index a963598ad9..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/DefinitionOfDataType.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright © 2016-2018 European Support Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.List; - -public class DefinitionOfDataType { - - protected String type; - protected String description; - protected Object value; - protected Boolean required; - protected Object _default; - protected Status status; - protected List constraints; - protected EntrySchema entry_schema; - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Object getValue() { - return value; - } - - public void setValue(Object value) { - this.value = value; - } - - public Boolean getRequired() { - return required; - } - - public void setRequired(Boolean required) { - this.required = required; - } - - public Object get_default() { - return _default; - } - - public void set_default(Object _default) { - this._default = _default; - } - - public Status getStatus() { - return status; - } - - public void setStatus(Status status) { - this.status = status; - } - - public List getConstraints() { - return constraints; - } - - public void setConstraints(List constraints) { - this.constraints = constraints; - } - - public EntrySchema getEntry_schema() { - return entry_schema; - } - - public void setEntry_schema(EntrySchema entry_schema) { - this.entry_schema = entry_schema; - } - -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Directive.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Directive.java deleted file mode 100644 index af9215f54e..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Directive.java +++ /dev/null @@ -1,42 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - - - -public enum Directive { - - - SELECTABLE("selectable"), - SUBSTITUTABLE("substitutable"); - - private String displayName; - - Directive(String displayName) { - this.displayName = displayName; - } - - public String getDisplayName() { - return displayName; - } - - -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/EntrySchema.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/EntrySchema.java deleted file mode 100644 index ec5bb3b3fa..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/EntrySchema.java +++ /dev/null @@ -1,65 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import org.openecomp.sdc.tosca.services.DataModelCloneUtil; - -import java.util.List; - -public class EntrySchema { - - private String description; - private String type; - private List constraints; - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public List getConstraints() { - return constraints; - } - - public void setConstraints(List constraints) { - this.constraints = constraints; - } - - @Override - public EntrySchema clone() { - EntrySchema entrySchema = new EntrySchema(); - entrySchema.setDescription(this.getDescription()); - entrySchema.setType(this.getType()); - entrySchema.setConstraints(DataModelCloneUtil.cloneConstraints(this.getConstraints())); - return entrySchema; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/EventFilter.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/EventFilter.java deleted file mode 100644 index 794997050f..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/EventFilter.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.openecomp.sdc.tosca.datatypes.model; - -public class EventFilter { - - private String node; - private String requirement; - private String capability; - - public String getNode() { - return node; - } - - public void setNode(String node) { - this.node = node; - } - - public String getRequirement() { - return requirement; - } - - public void setRequirement(String requirement) { - this.requirement = requirement; - } - - public String getCapability() { - return capability; - } - - public void setCapability(String capability) { - this.capability = capability; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/GroupDefinition.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/GroupDefinition.java deleted file mode 100644 index 0da5207479..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/GroupDefinition.java +++ /dev/null @@ -1,85 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.List; -import java.util.Map; - - - -public class GroupDefinition { - - private String type; - private String description; - private Map metadata; - private Map properties; - private List members; - private Map interfaces; - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Map getProperties() { - return properties; - } - - public void setProperties(Map properties) { - this.properties = properties; - } - - public List getMembers() { - return members; - } - - public void setMembers(List members) { - this.members = members; - } - - public Map getMetadata() { - return metadata; - } - - public void setMetadata(Map metadata) { - this.metadata = metadata; - } - - public Map getInterfaces() { - return interfaces; - } - - public void setInterfaces( - Map interfaces) { - this.interfaces = interfaces; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/GroupType.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/GroupType.java deleted file mode 100644 index 81badd2af9..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/GroupType.java +++ /dev/null @@ -1,113 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.List; -import java.util.Map; - - - -public class GroupType { - - private String derived_from; - private String version; - private Map metadata; - private String description; - private Map properties; - private List members; - private List> requirements; - private Map capabilities; - private Map interfaces; - - public String getDerived_from() { - return derived_from; - } - - public void setDerived_from(String derived_from) { - this.derived_from = derived_from; - } - - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - public Map getMetadata() { - return metadata; - } - - public void setMetadata(Map metadata) { - this.metadata = metadata; - } - - public List> getRequirements() { - return requirements; - } - - public void setRequirements( - List> requirements) { - this.requirements = requirements; - } - - public Map getCapabilities() { - return capabilities; - } - - public void setCapabilities( - Map capabilities) { - this.capabilities = capabilities; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Map getProperties() { - return properties; - } - - public void setProperties(Map properties) { - this.properties = properties; - } - - public List getMembers() { - return members; - } - - public void setMembers(List members) { - this.members = members; - } - - public Map getInterfaces() { - return interfaces; - } - - public void setInterfaces(Map interfaces) { - this.interfaces = interfaces; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Implementation.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Implementation.java deleted file mode 100644 index b14e49a012..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Implementation.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright © 2016-2018 European Support Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.HashSet; -import java.util.List; -import java.util.Objects; - - -public class Implementation { - - private String primary; - private List dependencies; - - public String getPrimary() { - return primary; - } - - public void setPrimary(String primary) { - this.primary = primary; - } - - public List getDependencies() { - return dependencies; - } - - public void setDependencies(List dependencies) { - this.dependencies = dependencies; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof Implementation)) { - return false; - } - Implementation that = (Implementation) o; - return Objects.equals(primary, that.primary) && - Objects.equals(new HashSet<>(dependencies), new HashSet<>(that.dependencies)); - } - - @Override - public int hashCode() { - return Objects.hash(primary, dependencies); - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Import.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Import.java deleted file mode 100644 index 451d76ee11..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Import.java +++ /dev/null @@ -1,63 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - - - -public class Import { - - private String file; - private String repository; - private String namespace_uri; - private String namespace_prefix; - - public String getFile() { - return file; - } - - public void setFile(String file) { - this.file = file; - } - - public String getRepository() { - return repository; - } - - public void setRepository(String repository) { - this.repository = repository; - } - - public String getNamespace_uri() { - return namespace_uri; - } - - public void setNamespace_uri(String namespace_uri) { - this.namespace_uri = namespace_uri; - } - - public String getNamespace_prefix() { - return namespace_prefix; - } - - public void setNamespace_prefix(String namespace_prefix) { - this.namespace_prefix = namespace_prefix; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/InterfaceDefinition.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/InterfaceDefinition.java deleted file mode 100644 index 3a35b46907..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/InterfaceDefinition.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright © 2016-2018 European Support Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.Map; - -public abstract class InterfaceDefinition { - - protected Map operations; - - public abstract void addOperation(String operationName, OperationDefinition operationDefinition); -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/InterfaceDefinitionTemplate.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/InterfaceDefinitionTemplate.java deleted file mode 100644 index efa86f0ced..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/InterfaceDefinitionTemplate.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright © 2016-2018 European Support Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import org.apache.commons.collections4.MapUtils; - -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -public class InterfaceDefinitionTemplate extends InterfaceDefinition { - - private Map inputs; - private Map operations; - - public Map getInputs() { - return inputs; - } - - public void setInputs( - Map inputs) { - this.inputs = inputs; - } - - public Map getOperations() { - return operations; - } - - public void addOperation(String operationName, OperationDefinitionTemplate operation) { - if(MapUtils.isEmpty(this.operations)) { - this.operations = new HashMap<>(); - } - - this.operations.put(operationName, operation); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof InterfaceDefinitionTemplate)) { - return false; - } - InterfaceDefinitionTemplate that = (InterfaceDefinitionTemplate) o; - return Objects.equals(inputs, that.inputs) && - Objects.equals(operations, that.operations); - } - - @Override - public int hashCode() { - - return Objects.hash(inputs, operations); - } - - @Override - public void addOperation(String operationName, OperationDefinition operationDefinition) { - addOperation(operationName, (OperationDefinitionTemplate)operationDefinition); - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/InterfaceDefinitionType.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/InterfaceDefinitionType.java deleted file mode 100644 index 4860b3a2ac..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/InterfaceDefinitionType.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright © 2016-2018 European Support Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -package org.openecomp.sdc.tosca.datatypes.model; - -import org.apache.commons.collections4.MapUtils; - -import java.util.HashMap; -import java.util.Map; - -public class InterfaceDefinitionType extends InterfaceDefinition { - - private String type; - private Map inputs; - protected Map operations; - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public Map getInputs() { - return inputs; - } - - public void setInputs( - Map inputs) { - this.inputs = inputs; - } - - public Map getOperations() { - return operations; - } - - public void setOperations( - Map operations) { - this.operations = operations; - } - - public void addOperation(String operationName, OperationDefinitionType operation) { - if(MapUtils.isEmpty(this.operations)) { - this.operations = new HashMap<>(); - } - - this.operations.put(operationName, operation); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof InterfaceDefinitionType)) { - return false; - } - - InterfaceDefinitionType that = (InterfaceDefinitionType) o; - - if (getType() != null ? !getType().equals(that.getType()) : that.getType() != null) { - return false; - } - if (getInputs() != null ? !getInputs().equals(that.getInputs()) : that.getInputs() != null) { - return false; - } - return getOperations() != null ? getOperations().equals(that.getOperations()) - : that.getOperations() == null; - } - - @Override - public int hashCode() { - int result = getType() != null ? getType().hashCode() : 0; - result = 31 * result + (getInputs() != null ? getInputs().hashCode() : 0); - result = 31 * result + (getOperations() != null ? getOperations().hashCode() : 0); - return result; - } - - @Override - public void addOperation(String operationName, OperationDefinition operationDefinition) { - addOperation(operationName, (OperationDefinitionType)operationDefinition); - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/InterfaceType.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/InterfaceType.java deleted file mode 100644 index f32ebc39dd..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/InterfaceType.java +++ /dev/null @@ -1,116 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import org.apache.commons.collections4.MapUtils; - -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -public class InterfaceType { - private String derived_from; - private String version; - private Map metadata; - private String description; - private Map inputs; - private Map operations; - - public Map getInputs() { - return inputs; - } - - public void setInputs( - Map inputs) { - this.inputs = inputs; - } - - public String getDerived_from() { - return derived_from; - } - - public void setDerived_from(String derived_from) { - this.derived_from = derived_from; - } - - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - public Map getMetadata() { - return metadata; - } - - public void setMetadata(Map metadata) { - this.metadata = metadata; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Map getOperations() { - return operations; - } - - public void setOperations( - Map operations) { - this.operations = operations; - } - - public void addOperation(String operationName, OperationDefinition operationDefinition) { - if(MapUtils.isEmpty(this.operations)){ - this.operations = new HashMap<>(); - } - this.operations.put(operationName, operationDefinition); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof InterfaceType)) { - return false; - } - InterfaceType that = (InterfaceType) o; - return Objects.equals(derived_from, that.derived_from) && - Objects.equals(version, that.version) && - Objects.equals(metadata, that.metadata) && - Objects.equals(description, that.description) && - Objects.equals(inputs, that.inputs) && - Objects.equals(operations, that.operations); - } - - @Override - public int hashCode() { - - return Objects.hash(derived_from, version, metadata, description, inputs, operations); - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/NodeFilter.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/NodeFilter.java deleted file mode 100644 index 9174262138..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/NodeFilter.java +++ /dev/null @@ -1,49 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.List; -import java.util.Map; - - - -public class NodeFilter { - - Map> properties; - Map capabilities; - - public Map> getProperties() { - - return properties; - } - - public void setProperties(Map> properties) { - this.properties = properties; - } - - public Map getCapabilities() { - return capabilities; - } - - public void setCapabilities(Map capabilities) { - this.capabilities = capabilities; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/NodeTemplate.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/NodeTemplate.java deleted file mode 100644 index 6ce1ce03d8..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/NodeTemplate.java +++ /dev/null @@ -1,177 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import org.openecomp.sdc.tosca.services.YamlUtil; - -import java.util.List; -import java.util.Map; -import java.util.Objects; - - -public class NodeTemplate implements Template { - - private String type; - private String description; - private Map metadata; - private List directives; - private Map properties; - private Map attributes; - private List> requirements; - private Map capabilities; - private Map interfaces; - private Map artifacts; - private NodeFilter node_filter; - private String copy; - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Map getMetadata() { - return metadata; - } - - public void setMetadata(Map metadata) { - this.metadata = metadata; - } - - public List getDirectives() { - return directives; - } - - public void setDirectives(List directives) { - this.directives = directives; - } - - public Map getProperties() { - return properties; - } - - public void setProperties(Map properties) { - this.properties = properties; - } - - public Map getAttributes() { - return attributes; - } - - public void setAttributes(Map attributes) { - this.attributes = attributes; - } - - public List> getRequirements() { - return requirements; - } - - public void setRequirements(List> requirements) { - this.requirements = requirements; - } - - public Map getCapabilities() { - return capabilities; - } - - public void setCapabilities(Map capabilities) { - this.capabilities = capabilities; - } - - public Map getInterfaces() { - return interfaces; - } - - public void setInterfaces(Map interfaces) { - this.interfaces = interfaces; - } - - public Map getArtifacts() { - return artifacts; - } - - public void setArtifacts(Map artifacts) { - this.artifacts = artifacts; - } - - public NodeFilter getNode_filter() { - return node_filter; - } - - public void setNode_filter(NodeFilter node_filter) { - this.node_filter = node_filter; - } - - public String getCopy() { - return copy; - } - - public void setCopy(String copy) { - this.copy = copy; - } - - @Override - public NodeTemplate clone() { - YamlUtil yamlUtil = new YamlUtil(); - return yamlUtil.yamlToObject(yamlUtil.objectToYaml(this), NodeTemplate.class); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof NodeTemplate)) { - return false; - } - NodeTemplate that = (NodeTemplate) o; - return Objects.equals(type, that.type) && - Objects.equals(description, that.description) && - Objects.equals(metadata, that.metadata) && - Objects.equals(directives, that.directives) && - Objects.equals(properties, that.properties) && - Objects.equals(attributes, that.attributes) && - Objects.equals(requirements, that.requirements) && - Objects.equals(capabilities, that.capabilities) && - Objects.equals(interfaces, that.interfaces) && - Objects.equals(artifacts, that.artifacts) && - Objects.equals(node_filter, that.node_filter) && - Objects.equals(copy, that.copy); - } - - @Override - public int hashCode() { - - return Objects - .hash(type, description, metadata, directives, properties, attributes, requirements, - capabilities, interfaces, artifacts, node_filter, copy); - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/NodeType.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/NodeType.java deleted file mode 100644 index f12345e1f4..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/NodeType.java +++ /dev/null @@ -1,134 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.List; -import java.util.Map; - -public class NodeType { - - private String derived_from; - private String version; - private Map metadata; - private String description; - private Map properties; - private Map attributes; - private List> requirements; - private Map capabilities; - private Map interfaces; - private Map artifacts; - - - public String getDerived_from() { - return derived_from; - } - - public void setDerived_from(String derived_from) { - this.derived_from = derived_from; - } - - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - public Map getMetadata() { - return metadata; - } - - public void setMetadata(Map metadata) { - this.metadata = metadata; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Map getProperties() { - return properties; - } - - public void setProperties(Map properties) { - this.properties = properties; - } - - public Map getAttributes() { - return attributes; - } - - public void setAttributes(Map attributes) { - this.attributes = attributes; - } - - public List> getRequirements() { - return requirements; - } - - public void setRequirements(List> requirements) { - this.requirements = requirements; - } - - public Map getCapabilities() { - return capabilities; - } - - public void setCapabilities(Map capabilities) { - this.capabilities = capabilities; - } - - public Map getInterfaces() { - return interfaces; - } - - public void setInterfaces(Map interfaces) { - this.interfaces = interfaces; - } - - public Map getArtifacts() { - return artifacts; - } - - public void setArtifacts(Map artifacts) { - this.artifacts = artifacts; - } - - @Override - public NodeType clone() { - NodeType clone = new NodeType(); - clone.setCapabilities(this.getCapabilities()); - clone.setDerived_from(this.getDerived_from()); - clone.setProperties(this.getProperties()); - clone.setRequirements(this.getRequirements()); - clone.setDescription(this.getDescription()); - clone.setAttributes(this.getAttributes()); - clone.setInterfaces(this.getInterfaces()); - clone.setVersion(this.getVersion()); - clone.setArtifacts(this.getArtifacts()); - return clone; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/OperationDefinition.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/OperationDefinition.java deleted file mode 100644 index bdfe937b1e..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/OperationDefinition.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.Objects; - -public class OperationDefinition { - - protected String description; - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof OperationDefinition)) { - return false; - } - OperationDefinition that = (OperationDefinition) o; - return Objects.equals(description, that.description); - } - - @Override - public int hashCode() { - - return Objects.hash(description); - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/OperationDefinitionTemplate.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/OperationDefinitionTemplate.java deleted file mode 100644 index 6710e271b6..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/OperationDefinitionTemplate.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright © 2016-2018 European Support Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.Map; -import java.util.Objects; - -public class OperationDefinitionTemplate extends OperationDefinition { - - private Implementation implementation; - private Map inputs; - - public Implementation getImplementation() { - return implementation; - } - - public void setImplementation(Implementation implementation) { - this.implementation = implementation; - } - - public Map getInputs() { - return inputs; - } - - public void setInputs(Map inputs) { - this.inputs = inputs; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof OperationDefinitionTemplate)) { - return false; - } - OperationDefinitionTemplate that = (OperationDefinitionTemplate) o; - return Objects.equals(implementation, that.implementation) && - Objects.equals(inputs, that.inputs); - } - - @Override - public int hashCode() { - - return Objects.hash(implementation, inputs); - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/OperationDefinitionType.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/OperationDefinitionType.java deleted file mode 100644 index 7043812fc7..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/OperationDefinitionType.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright © 2016-2018 European Support Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.Map; -import java.util.Objects; - -public class OperationDefinitionType extends OperationDefinition { - - private String implementation; - private Map inputs; - - public String getImplementation() { - return implementation; - } - - public void setImplementation(String implementation) { - this.implementation = implementation; - } - - public Map getInputs() { - return inputs; - } - - public void setInputs( - Map inputs) { - this.inputs = inputs; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof OperationDefinitionType)) { - return false; - } - OperationDefinitionType that = (OperationDefinitionType) o; - return Objects.equals(implementation, that.implementation) && - Objects.equals(inputs, that.inputs); - } - - @Override - public int hashCode() { - - return Objects.hash(implementation, inputs); - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/ParameterDefinition.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/ParameterDefinition.java deleted file mode 100644 index f579c5364f..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/ParameterDefinition.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright © 2016-2018 European Support Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openecomp.sdc.tosca.datatypes.model; - - -public class ParameterDefinition extends DefinitionOfDataType { - -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/PolicyDefinition.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/PolicyDefinition.java deleted file mode 100644 index 6907ea6480..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/PolicyDefinition.java +++ /dev/null @@ -1,72 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.List; -import java.util.Map; - -public class PolicyDefinition implements Template { - private String type; - private String description; - private Map metadata; - private Map properties; - private List targets; - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Map getMetadata() { - return metadata; - } - - public void setMetadata(Map metadata) { - this.metadata = metadata; - } - - public Map getProperties() { - return properties; - } - - public void setProperties(Map properties) { - this.properties = properties; - } - - public List getTargets() { - return targets; - } - - public void setTargets(List targets) { - this.targets = targets; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/PolicyType.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/PolicyType.java deleted file mode 100644 index 55a13d5a6c..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/PolicyType.java +++ /dev/null @@ -1,94 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.List; -import java.util.Map; - - - -public class PolicyType { - - private String derived_from; - private String version; - private Map metadata; - private String description; - private Map properties; - private List targets; - private List triggers; - - public String getDerived_from() { - return derived_from; - } - - public void setDerived_from(String derived_from) { - this.derived_from = derived_from; - } - - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Map getProperties() { - return properties; - } - - public void setProperties(Map properties) { - this.properties = properties; - } - - public List getTargets() { - return targets; - } - - public void setTargets(List targets) { - this.targets = targets; - } - - public Map getMetadata() { - return metadata; - } - - public void setMetadata(Map metadata) { - this.metadata = metadata; - } - - public List getTriggers() { - return triggers; - } - - public void setTriggers( - List triggers) { - this.triggers = triggers; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/PreconditionDefinition.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/PreconditionDefinition.java deleted file mode 100644 index adbb335f6a..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/PreconditionDefinition.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.openecomp.sdc.tosca.datatypes.model; - -public class PreconditionDefinition { - - private String target; - private String target_relationship; - private Constraint condition; - - public String getTarget() { - return target; - } - - public void setTarget(String target) { - this.target = target; - } - - public String getTarget_relationship() { - return target_relationship; - } - - public void setTarget_relationship(String target_relationship) { - this.target_relationship = target_relationship; - } - - public Constraint getCondition() { - return condition; - } - - public void setCondition(Constraint condition) { - this.condition = condition; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/PropertyDefinition.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/PropertyDefinition.java deleted file mode 100644 index 9472b539ab..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/PropertyDefinition.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright © 2016-2018 European Support Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import org.openecomp.sdc.tosca.services.DataModelCloneUtil; - -import java.util.Objects; - -public class PropertyDefinition extends DefinitionOfDataType { - - public PropertyDefinition() { - this.status = Status.SUPPORTED; - this.required = true; - } - - @Override - public PropertyDefinition clone() { - PropertyDefinition propertyDefinition = new PropertyDefinition(); - propertyDefinition.setType(this.getType()); - propertyDefinition.setDescription(this.getDescription()); - propertyDefinition.setRequired(this.getRequired()); - propertyDefinition.set_default(this.get_default()); - propertyDefinition.setStatus(this.getStatus()); - propertyDefinition.setEntry_schema( - Objects.isNull(this.getEntry_schema()) ? null : this.getEntry_schema().clone()); - propertyDefinition.setConstraints(DataModelCloneUtil.cloneConstraints(this.getConstraints())); - return propertyDefinition; - } - - -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/PropertyType.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/PropertyType.java deleted file mode 100644 index 02c4b7fde4..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/PropertyType.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright © 2016-2018 European Support Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.Set; - -public enum PropertyType { - - STRING("string"), - INTEGER("integer"), - FLOAT("float"), - BOOLEAN("boolean"), - TIMESTAMP("timestamp"), - NULL("null"), - MAP("map"), - LIST("list"), - SCALAR_UNIT_SIZE("scalar-unit.size"), - SCALAR_UNIT_FREQUENCY("scalar-unit.frequency"); - - private static final Map mMap = - Collections.unmodifiableMap(initializeMapping()); - private static final Set simplePropertyTypes = - Collections.unmodifiableSet(initializeSimplePropertyTypes()); - private String displayName; - - PropertyType(String displayName) { - - this.displayName = displayName; - } - - /** - * Initilize property type display name mapping. - * @return Map - */ - public static Map initializeMapping() { - Map typeMap = new HashMap<>(); - for (PropertyType v : PropertyType.values()) { - typeMap.put(v.displayName, v); - } - return typeMap; - } - - /** - * Get Property type by display name. - * @param displayName - * @return PropertyType - */ - public static PropertyType getPropertyTypeByDisplayName(String displayName) { - if (mMap == null) { - initializeMapping(); - } - if (mMap.containsKey(displayName)) { - return mMap.get(displayName); - } - return null; - } - - private static Set initializeSimplePropertyTypes() { - Set simplePropertyTypes = new HashSet<>(4); - simplePropertyTypes.add(STRING.getDisplayName().toLowerCase()); - simplePropertyTypes.add(INTEGER.getDisplayName().toLowerCase()); - simplePropertyTypes.add(FLOAT.getDisplayName().toLowerCase()); - simplePropertyTypes.add(BOOLEAN.getDisplayName().toLowerCase()); - return simplePropertyTypes; - } - - public static Set getSimplePropertyTypes() { - return simplePropertyTypes; - } - - public String getDisplayName() { - return displayName; - } - - -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/RelationshipTemplate.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/RelationshipTemplate.java deleted file mode 100644 index d354807c2f..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/RelationshipTemplate.java +++ /dev/null @@ -1,110 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.Map; - - - -public class RelationshipTemplate implements Template { - - private String type; - private String description; - private Map metadata; - private Map properties; - private Map attributes; - private Map requirements; - private Map capabilities; - private Map interfaces; - private String copy; - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Map getMetadata() { - return metadata; - } - - public void setMetadata(Map metadata) { - this.metadata = metadata; - } - - public Map getProperties() { - return properties; - } - - public void setProperties(Map properties) { - this.properties = properties; - } - - public Map getAttributes() { - return attributes; - } - - public void setAttributes(Map attributes) { - this.attributes = attributes; - } - - public Map getRequirements() { - return requirements; - } - - public void setRequirements(Map requirements) { - this.requirements = requirements; - } - - public Map getCapabilities() { - return capabilities; - } - - public void setCapabilities(Map capabilities) { - this.capabilities = capabilities; - } - - public Map getInterfaces() { - return interfaces; - } - - public void setInterfaces(Map interfaces) { - this.interfaces = interfaces; - } - - public String getCopy() { - return copy; - } - - public void setCopy(String copy) { - this.copy = copy; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/RelationshipType.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/RelationshipType.java deleted file mode 100644 index 463d3d2364..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/RelationshipType.java +++ /dev/null @@ -1,102 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.List; -import java.util.Map; - -public class RelationshipType { - - private String derived_from; - private String version; - private Map metadata; - private String description; - private Map properties; - private Map attributes; - private Map interfaces; - private List valid_target_types; - //An optional list of one or more names of Capability Types that are valid targets - // for this relationship - - public String getDerived_from() { - return derived_from; - } - - public void setDerived_from(String derived_from) { - this.derived_from = derived_from; - } - - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - public Map getMetadata() { - return metadata; - } - - public void setMetadata(Map metadata) { - this.metadata = metadata; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Map getProperties() { - return properties; - } - - public void setProperties(Map properties) { - this.properties = properties; - } - - public Map getAttributes() { - return attributes; - } - - public void setAttributes(Map attributes) { - this.attributes = attributes; - } - - public Map getInterfaces() { - return interfaces; - } - - public void setInterfaces(Map interfaces) { - this.interfaces = interfaces; - } - - public List getValid_target_types() { - return valid_target_types; - } - - public void setValid_target_types(List valid_target_types) { - this.valid_target_types = valid_target_types; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Repository.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Repository.java deleted file mode 100644 index 3d3a5924d1..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Repository.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.openecomp.sdc.tosca.datatypes.model; - -public class Repository { - - private String description; - private String url; - private Credential credential; - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - - public Credential getCredential() { - return credential; - } - - public void setCredential(Credential credential) { - this.credential = credential; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/RequirementAssignment.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/RequirementAssignment.java deleted file mode 100644 index b94cc67f13..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/RequirementAssignment.java +++ /dev/null @@ -1,73 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - - -import java.util.Arrays; - -public class RequirementAssignment { - - private String capability; - private String node; - private String relationship; - private NodeFilter node_filter; - private Object[] occurrences; - - public String getCapability() { - return capability; - } - - public void setCapability(String capability) { - this.capability = capability; - } - - public String getNode() { - return node; - } - - public void setNode(String node) { - this.node = node; - } - - public String getRelationship() { - return relationship; - } - - public void setRelationship(String relationship) { - this.relationship = relationship; - } - - public NodeFilter getNode_filter() { - return node_filter; - } - - public void setNode_filter(NodeFilter node_filter) { - this.node_filter = node_filter; - } - - public Object[] getOccurrences() { - return occurrences; - } - - public void setOccurrences(Object[] occurrences) { - this.occurrences = occurrences; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/RequirementDefinition.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/RequirementDefinition.java deleted file mode 100644 index a9b20736dc..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/RequirementDefinition.java +++ /dev/null @@ -1,83 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - - -public class RequirementDefinition { - - private String capability; - private String node; - private String relationship; - private Object[] occurrences; - - /** - * Instantiates a new Requirement definition. - */ - public RequirementDefinition() { - occurrences = new Object[2]; - occurrences[0] = 1; - occurrences[1] = 1; - } - - public String getCapability() { - return capability; - } - - public void setCapability(String capability) { - this.capability = capability; - } - - public String getNode() { - return node; - } - - public void setNode(String node) { - this.node = node; - } - - public String getRelationship() { - return relationship; - } - - public void setRelationship(String relationship) { - this.relationship = relationship; - } - - public Object[] getOccurrences() { - return occurrences; - } - - public void setOccurrences(Object[] occurrences) { - this.occurrences = occurrences; - } - - @Override - public RequirementDefinition clone() { - RequirementDefinition requirementDefinition = new RequirementDefinition(); - requirementDefinition.setNode(this.getNode()); - requirementDefinition.setRelationship(this.getRelationship()); - requirementDefinition.setCapability(this.getCapability()); - requirementDefinition - .setOccurrences(new Object[]{this.getOccurrences()[0], this.getOccurrences()[1]}); - return requirementDefinition; - } - -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Scalar.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Scalar.java deleted file mode 100644 index 9073ff3d7b..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Scalar.java +++ /dev/null @@ -1,36 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - - - -public class Scalar { - - private Float value; - - public Float getValue() { - return value; - } - - public void setValue(Float value) { - this.value = value; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/ServiceTemplate.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/ServiceTemplate.java deleted file mode 100644 index c02679d2af..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/ServiceTemplate.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Copyright © 2016-2018 European Support Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import org.apache.commons.collections4.MapUtils; -import org.openecomp.sdc.tosca.datatypes.model.heatextend.AnnotationType; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - - -public class ServiceTemplate implements Template { - - private String tosca_definitions_version; - private Map metadata; - private Object dsl_definitions; - private Map repositories; - private String description; - private List> imports; - private Map artifact_types; - private Map data_types; - private Map capability_types; - private Map interface_types; - private Map relationship_types; - private Map node_types; - private Map group_types; - private Map policy_types; - private Map annotation_types; - private TopologyTemplate topology_template; - - public String getTosca_definitions_version() { - return tosca_definitions_version; - } - - public void setTosca_definitions_version(String tosca_definitions_version) { - this.tosca_definitions_version = tosca_definitions_version; - } - - public Map getMetadata() { - return metadata; - } - - public void setMetadata(Map metadata) { - this.metadata = metadata; - } - - public Object getDsl_definitions() { - return dsl_definitions; - } - - public void setDsl_definitions(Object dsl_definitions) { - this.dsl_definitions = dsl_definitions; - } - - public Map getRepositories() { - return repositories; - } - - public void setRepositories( - Map repositories) { - this.repositories = repositories; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public List> getImports() { - return imports; - } - - public void setImports( - List> imports) { - this.imports = imports; - } - - public Map getArtifact_types() { - return artifact_types; - } - - public void setArtifact_types(Map artifact_types) { - this.artifact_types = artifact_types; - } - - public Map getData_types() { - return data_types; - } - - public void setData_types(Map data_types) { - this.data_types = data_types; - } - - public Map getCapability_types() { - return capability_types; - } - - public void setCapability_types(Map capability_types) { - this.capability_types = capability_types; - } - - public Map getRelationship_types() { - return relationship_types; - } - - public void setRelationship_types(Map relationship_types) { - this.relationship_types = relationship_types; - } - - public Map getNode_types() { - return node_types; - } - - public void setNode_types(Map node_types) { - this.node_types = node_types; - } - - public Map getGroup_types() { - return group_types; - } - - public void setGroup_types(Map group_types) { - this.group_types = group_types; - } - - public Map getInterface_types() { - return interface_types; - } - - public void setInterface_types(Map interface_types) { - this.interface_types = interface_types; - } - - public void addInterfaceType(String interfaceKey, InterfaceType interfaceType) { - if (MapUtils.isEmpty(this.interface_types)) { - this.interface_types = new HashMap<>(); - } - - this.interface_types.put(interfaceKey, interfaceType); - } - - public Map getPolicy_types() { - return policy_types; - } - - public void setPolicy_types(Map policy_types) { - this.policy_types = policy_types; - } - - public TopologyTemplate getTopology_template() { - return topology_template; - } - - public void setTopology_template(TopologyTemplate topology_template) { - this.topology_template = topology_template; - } - - public Map getAnnotation_types() { - return annotation_types; - } - - public void setAnnotation_types(Map annotation_types) { - this.annotation_types = annotation_types; - } - -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Status.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Status.java deleted file mode 100644 index 79c6df81cd..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Status.java +++ /dev/null @@ -1,42 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - - - -public enum Status { - - SUPPORTED("supported"), - UNSUPPORTED("unsupported"), - EXPERIMENTAL("experimental"), - DEPRECATED("deprecated"),; - private String displayName; - - Status(String displayName) { - this.displayName = displayName; - } - - public String getDisplayName() { - return displayName; - } - - -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/StepDefinition.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/StepDefinition.java deleted file mode 100644 index 7a5c7b7884..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/StepDefinition.java +++ /dev/null @@ -1,71 +0,0 @@ -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.List; - -public class StepDefinition { - - private String target; - private String target_relationship; - private String operation_host; - private List filter; - private List activities; - private String on_success; - private String on_failure; - - - public String getTarget() { - return target; - } - - public void setTarget(String target) { - this.target = target; - } - - public String getTarget_relationship() { - return target_relationship; - } - - public void setTarget_relationship(String target_relationship) { - this.target_relationship = target_relationship; - } - - public String getOperation_host() { - return operation_host; - } - - public void setOperation_host(String operation_host) { - this.operation_host = operation_host; - } - - public List getFilter() { - return filter; - } - - public void setFilter(List filter) { - this.filter = filter; - } - - public List getActivities() { - return activities; - } - - public void setActivities(List activities) { - this.activities = activities; - } - - public String getOn_success() { - return on_success; - } - - public void setOn_success(String on_success) { - this.on_success = on_success; - } - - public String getOn_failure() { - return on_failure; - } - - public void setOn_failure(String on_failure) { - this.on_failure = on_failure; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/SubstitutionMapping.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/SubstitutionMapping.java deleted file mode 100644 index 51373e484e..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/SubstitutionMapping.java +++ /dev/null @@ -1,54 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.List; -import java.util.Map; - -public class SubstitutionMapping { - private String node_type; - private Map> capabilities; - private Map> requirements; - - public String getNode_type() { - return node_type; - } - - public void setNode_type(String node_type) { - this.node_type = node_type; - } - - public Map> getRequirements() { - return requirements; - } - - public void setRequirements(Map> requirements) { - this.requirements = requirements; - } - - public Map> getCapabilities() { - return capabilities; - } - - public void setCapabilities(Map> capabilities) { - this.capabilities = capabilities; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Template.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Template.java deleted file mode 100644 index 128bb3c0a9..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Template.java +++ /dev/null @@ -1,24 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -public interface Template { -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/TimeInterval.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/TimeInterval.java deleted file mode 100644 index efce557fd5..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/TimeInterval.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openecomp.sdc.tosca.datatypes.model; - -import java.sql.Timestamp; - -public class TimeInterval { - private Timestamp start_time; - private Timestamp end_time; - - public Timestamp getStart_time() { - return start_time; - } - - public void setStart_time(Timestamp start_time) { - this.start_time = start_time; - } - - public Timestamp getEnd_time() { - return end_time; - } - - public void setEnd_time(Timestamp end_time) { - this.end_time = end_time; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/TopologyTemplate.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/TopologyTemplate.java deleted file mode 100644 index fe1b2ea313..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/TopologyTemplate.java +++ /dev/null @@ -1,124 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -public class TopologyTemplate { - - private String description; - private Map inputs; - private Map node_templates; - private Map relationship_templates; - private Map groups; - private Map outputs; - private SubstitutionMapping substitution_mappings; - private Map policies; - private List workflows; - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Map getInputs() { - return inputs; - } - - public void setInputs(Map inputs) { - this.inputs = inputs; - } - - public Map getNode_templates() { - return node_templates; - } - - public void setNode_templates(Map node_templates) { - this.node_templates = node_templates; - } - - public Map getRelationship_templates() { - return relationship_templates; - } - - public void setRelationship_templates(Map relationship_templates) { - this.relationship_templates = relationship_templates; - } - - public Map getGroups() { - return groups; - } - - public void setGroups(Map groups) { - this.groups = groups; - } - - /** - * Add group. - * - * @param groupKey the group key - * @param groupDefinition the group definition - */ - public void addGroup(String groupKey, GroupDefinition groupDefinition) { - if (Objects.isNull(this.groups)) { - this.groups = new HashMap<>(); - } - this.groups.put(groupKey, groupDefinition); - } - - public Map getOutputs() { - return outputs; - } - - public void setOutputs(Map outputs) { - this.outputs = outputs; - } - - public SubstitutionMapping getSubstitution_mappings() { - return substitution_mappings; - } - - public void setSubstitution_mappings(SubstitutionMapping substitution_mappings) { - this.substitution_mappings = substitution_mappings; - } - - public Map getPolicies() { - return policies; - } - - public void setPolicies(Map policies) { - this.policies = policies; - } - - public List getWorkflows() { - return workflows; - } - - public void setWorkflows(List workflows) { - this.workflows = workflows; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Trigger.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Trigger.java deleted file mode 100644 index 615630fa88..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/Trigger.java +++ /dev/null @@ -1,99 +0,0 @@ -package org.openecomp.sdc.tosca.datatypes.model; - -import java.sql.Time; - -public class Trigger { - - private String description; - private String event_type; - private TimeInterval schedule; - private EventFilter target_filter; - private Constraint condition; - private Constraint constraint; - private String period; - private int evaluations; - private String method; - //action - String or operation? - private Object action; - - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getEvent_type() { - return event_type; - } - - public void setEvent_type(String event_type) { - this.event_type = event_type; - } - - public TimeInterval getSchedule() { - return schedule; - } - - public void setSchedule(TimeInterval schedule) { - this.schedule = schedule; - } - - public EventFilter getTarget_filter() { - return target_filter; - } - - public void setTarget_filter(EventFilter target_filter) { - this.target_filter = target_filter; - } - - public Constraint getCondition() { - return condition; - } - - public void setCondition(Constraint condition) { - this.condition = condition; - } - - public Constraint getConstraint() { - return constraint; - } - - public void setConstraint(Constraint constraint) { - this.constraint = constraint; - } - - public String getPeriod() { - return period; - } - - public void setPeriod(String period) { - this.period = period; - } - - public int getEvaluations() { - return evaluations; - } - - public void setEvaluations(int evaluations) { - this.evaluations = evaluations; - } - - public String getMethod() { - return method; - } - - public void setMethod(String method) { - this.method = method; - } - - public Object getAction() { - return action; - } - - public void setAction(Object action) { - this.action = action; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/WorkflowDefinition.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/WorkflowDefinition.java deleted file mode 100644 index 20f0863d2e..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/WorkflowDefinition.java +++ /dev/null @@ -1,55 +0,0 @@ -package org.openecomp.sdc.tosca.datatypes.model; - -import java.util.List; -import java.util.Map; - -public class WorkflowDefinition { - private String description; - private Map metadata; - private Map inputs; - private List preconditions; - private Map steps; - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Map getMetadata() { - return metadata; - } - - public void setMetadata(Map metadata) { - this.metadata = metadata; - } - - public Map getInputs() { - return inputs; - } - - public void setInputs( - Map inputs) { - this.inputs = inputs; - } - - public List getPreconditions() { - return preconditions; - } - - public void setPreconditions( - List preconditions) { - this.preconditions = preconditions; - } - - public Map getSteps() { - return steps; - } - - public void setSteps( - Map steps) { - this.steps = steps; - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/heatextend/AnnotationDefinition.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/heatextend/AnnotationDefinition.java deleted file mode 100644 index 24b5dec416..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/heatextend/AnnotationDefinition.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright © 2016-2017 European Support Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openecomp.sdc.tosca.datatypes.model.heatextend; - -import java.util.Map; - -public class AnnotationDefinition { - - private String type; - private Map properties; - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public Map getProperties() { - return properties; - } - - public void setProperties(Map properties) { - this.properties = properties; - } - -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/heatextend/AnnotationType.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/heatextend/AnnotationType.java deleted file mode 100644 index b76966e1f8..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/heatextend/AnnotationType.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright © 2018 European Support Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - package org.openecomp.sdc.tosca.datatypes.model.heatextend; - - import org.openecomp.sdc.tosca.datatypes.model.PropertyDefinition; - - import java.util.Map; - - public class AnnotationType { - - private String version; - private String description; - private Map properties; - - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Map getProperties() { - return properties; - } - - public void setProperties(Map properties) { - this.properties = properties; - } - - } \ No newline at end of file diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/heatextend/ParameterDefinitionExt.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/heatextend/ParameterDefinitionExt.java deleted file mode 100644 index 58ee1cadd0..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/heatextend/ParameterDefinitionExt.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright © 2016-2017 European Support Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openecomp.sdc.tosca.datatypes.model.heatextend; - -import org.openecomp.sdc.tosca.datatypes.model.ParameterDefinition; -import java.util.Map; - -public class ParameterDefinitionExt extends ParameterDefinition { - - private String label; - private Boolean hidden; - private Boolean immutable; - private Map annotations; - - public String getLabel() { - return label; - } - - public void setLabel(String label) { - this.label = label; - } - - public Boolean getHidden() { - return hidden; - } - - public void setHidden(Boolean hidden) { - this.hidden = hidden; - } - - public Boolean getImmutable() { - return immutable; - } - - public void setImmutable(Boolean immutable) { - this.immutable = immutable; - } - - public Map getAnnotations() { - return annotations; - } - - public void setAnnotations(Map annotations) { - this.annotations = annotations; - } - -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/heatextend/PropertyTypeExt.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/heatextend/PropertyTypeExt.java deleted file mode 100644 index f92d674070..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/heatextend/PropertyTypeExt.java +++ /dev/null @@ -1,85 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.datatypes.model.heatextend; - -import java.util.Collections; -import java.util.HashMap; -import java.util.Map; - -/** - * The enum Property type ext. - */ -public enum PropertyTypeExt { - - /** - * Json property type ext. - */ - JSON("json"); - - private static final Map mMap = - Collections.unmodifiableMap(initializeMapping()); - private String displayName; - - PropertyTypeExt(String displayName) { - - this.displayName = displayName; - } - - /** - * Initialize mapping map. - * - * @return the map - */ - public static Map initializeMapping() { - Map typeMap = new HashMap(); - for (PropertyTypeExt v : PropertyTypeExt.values()) { - typeMap.put(v.displayName, v); - } - return typeMap; - } - - /** - * Gets property type by display name. - * - * @param displayName the display name - * @return the property type by display name - */ - public static PropertyTypeExt getPropertyTypeByDisplayName(String displayName) { - if (mMap == null) { - initializeMapping(); - } - if (mMap.containsKey(displayName)) { - return mMap.get(displayName); - } - return null; - } - - /** - * Gets display name. - * - * @return the display name - */ - public String getDisplayName() { - return displayName; - } - - -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/services/DataModelCloneUtil.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/services/DataModelCloneUtil.java deleted file mode 100644 index e6beb7a3cb..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/services/DataModelCloneUtil.java +++ /dev/null @@ -1,103 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.tosca.services; - - -import org.openecomp.sdc.tosca.datatypes.model.AttributeDefinition; -import org.openecomp.sdc.tosca.datatypes.model.Constraint; -import org.openecomp.sdc.tosca.datatypes.model.PropertyDefinition; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.stream.Collectors; - -public class DataModelCloneUtil { - - /** - * Clone constraints list. - * - * @param constraints the constraints - * @return the list - */ - public static List cloneConstraints(List constraints) { - - if (constraints == null) { - return null; - } - return constraints.stream().map(Constraint::clone).collect(Collectors.toList()); - } - - /** - * Clone property definitions map. - * - * @param propertyDefinitions the property definitions - * @return the map - */ - public static Map clonePropertyDefinitions( - Map propertyDefinitions) { - - if (propertyDefinitions == null) { - return null; - } - Map clonedProperties = new HashMap<>(); - for (String propertyKey : propertyDefinitions.keySet()) { - clonedProperties.put(propertyKey, propertyDefinitions.get(propertyKey).clone()); - } - - return clonedProperties; - } - - /** - * Clone attribute definitions map. - * - * @param attributeDefinitions the attribute definitions - * @return the map - */ - public static Map cloneAttributeDefinitions( - Map attributeDefinitions) { - - if (attributeDefinitions == null) { - return null; - } - Map clonedAttributeDefinitions = new HashMap<>(); - for (String attributeKey : attributeDefinitions.keySet()) { - clonedAttributeDefinitions.put(attributeKey, attributeDefinitions.get(attributeKey).clone()); - } - - return clonedAttributeDefinitions; - } - - /** - * Clone valid source types list. - * - * @param validSourceTypes the valid source types - * @return the list - */ - public static List cloneValidSourceTypes(List validSourceTypes) { - - if (validSourceTypes == null) { - return null; - } - - return validSourceTypes.stream().collect(Collectors.toList()); - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/services/ToscaExtensionYamlUtil.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/services/ToscaExtensionYamlUtil.java deleted file mode 100644 index ebdc28fd16..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/services/ToscaExtensionYamlUtil.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright © 2016-2017 European Support Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openecomp.sdc.tosca.services; - -import org.yaml.snakeyaml.constructor.Constructor; -import org.yaml.snakeyaml.introspector.Property; -import org.yaml.snakeyaml.introspector.PropertyUtils; -import org.yaml.snakeyaml.nodes.MappingNode; -import org.yaml.snakeyaml.nodes.NodeId; - -import java.beans.IntrospectionException; - - -public class ToscaExtensionYamlUtil extends YamlUtil { - - @Override - public Constructor getConstructor(Class typClass) { - return new ToscaWithHeatExtensionConstructor(typClass); - } - - @Override - protected PropertyUtils getPropertyUtils() { - return new ToscaPropertyUtilsWithHeatExtension(); - } - - public class ToscaPropertyUtilsWithHeatExtension extends MyPropertyUtils { - @Override - public Property getProperty(Class type, String name) - throws IntrospectionException { - Class classType = type; - try { - if (type - .equals(Class.forName("org.openecomp.sdc.tosca.datatypes.model.ParameterDefinition"))) { - classType = Class - .forName("org.openecomp.sdc.tosca.datatypes.model.heatextend.ParameterDefinitionExt"); - } - } catch (ClassNotFoundException ex) { - throw new RuntimeException(ex); - } - return super.getProperty(classType, name); - } - } - - protected class ToscaWithHeatExtensionConstructor extends StrictMapAppenderConstructor { - public ToscaWithHeatExtensionConstructor(Class theRoot) { - super(theRoot); - yamlClassConstructors.put(NodeId.mapping, new MyPersistentObjectConstruct()); - } - - class MyPersistentObjectConstruct extends Constructor.ConstructMapping { - @Override - protected Object constructJavaBean2ndStep(MappingNode node, Object object) { - Class type = node.getType(); - try { - if (type.equals( - Class.forName("org.openecomp.sdc.tosca.datatypes.model.ParameterDefinition"))) { - Class extendHeatClass = Class.forName( - "org.openecomp.sdc.tosca.datatypes.model.heatextend.ParameterDefinitionExt"); - Object extendHeatObject = extendHeatClass.newInstance(); - // create JavaBean - return super.constructJavaBean2ndStep(node, extendHeatObject); - } else { - // create JavaBean - return super.constructJavaBean2ndStep(node, object); - } - } catch (ClassNotFoundException | InstantiationException | IllegalAccessException ex) { - throw new RuntimeException(ex); - } - } - } - } -} diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/services/YamlUtil.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/services/YamlUtil.java deleted file mode 100644 index 3d7715a8db..0000000000 --- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/services/YamlUtil.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * Copyright © 2016-2017 European Support Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openecomp.sdc.tosca.services; - -import org.yaml.snakeyaml.DumperOptions; -import org.yaml.snakeyaml.TypeDescription; -import org.yaml.snakeyaml.Yaml; -import org.yaml.snakeyaml.constructor.Constructor; -import org.yaml.snakeyaml.introspector.BeanAccess; -import org.yaml.snakeyaml.introspector.Property; -import org.yaml.snakeyaml.introspector.PropertyUtils; -import org.yaml.snakeyaml.nodes.MappingNode; -import org.yaml.snakeyaml.nodes.NodeTuple; -import org.yaml.snakeyaml.nodes.Tag; -import org.yaml.snakeyaml.parser.ParserException; -import org.yaml.snakeyaml.representer.Representer; - -import java.beans.IntrospectionException; -import java.io.IOException; -import java.io.InputStream; -import java.util.AbstractMap; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.Map; -import java.util.Set; - -/** - * The type Yaml util. - */ -@SuppressWarnings("unchecked") -public class YamlUtil { - - private static final String DEFAULT = "default"; - private static final String DEFAULT_STR = "_default"; - - /** - * Yaml to object t. - * - * @param the type parameter - * @param yamlContent the yaml content - * @param typClass the t class - * @return the t - */ - public T yamlToObject(String yamlContent, Class typClass) { - Constructor constructor = getConstructor(typClass); - constructor.setPropertyUtils(getPropertyUtils()); - TypeDescription yamlFileDescription = new TypeDescription(typClass); - constructor.addTypeDescription(yamlFileDescription); - Yaml yaml = new Yaml(constructor); - T yamlObj = (T) yaml.load(yamlContent); - //noinspection ResultOfMethodCallIgnored - yamlObj.toString(); - return yamlObj; - } - - public InputStream loadYamlFileIs(String yamlFullFileName) { - return YamlUtil.class.getResourceAsStream(yamlFullFileName); - } - - /** - * Yaml to object t. - * - * @param the type parameter - * @param yamlContent the yaml content - * @param typClass the t class - * @return the t - */ - public T yamlToObject(InputStream yamlContent, Class typClass) { - try { - Constructor constructor = getConstructor(typClass); - constructor.setPropertyUtils(getPropertyUtils()); - TypeDescription yamlFileDescription = new TypeDescription(typClass); - constructor.addTypeDescription(yamlFileDescription); - Yaml yaml = new Yaml(constructor); - T yamlObj = (T) yaml.load(yamlContent); - if (yamlObj != null) { - //noinspection ResultOfMethodCallIgnored - yamlObj.toString(); - return yamlObj; - } else { - throw new RuntimeException(); - } - } catch (Exception exception) { - throw new RuntimeException(exception); - } finally { - try { - if (yamlContent != null) { - yamlContent.close(); - } - } catch (IOException ignore) { - //do nothing - } - } - } - - - /** - * Gets constructor. - * - * @param the type parameter - * @param typClass the t class - * @return the constructor - */ - public Constructor getConstructor(Class typClass) { - return new StrictMapAppenderConstructor(typClass); - } - - /** - * Gets property utils. - * - * @return the property utils - */ - protected PropertyUtils getPropertyUtils() { - return new MyPropertyUtils(); - } - - - /** - * Yaml to map map. - * - * @param yamlContent the yaml content - * @return the map - */ - public Map> yamlToMap(InputStream yamlContent) { - Yaml yaml = new Yaml(); - return (Map>) yaml.load(yamlContent); - } - - /** - * Object to yaml string. - * @param obj the obj - * @return the string - */ - public String objectToYaml(Object obj) { - DumperOptions options = new DumperOptions(); - options.setPrettyFlow(true); - options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK); - Representer representer = new CustomRepresenter(); - representer.addClassTag(obj.getClass(), Tag.MAP); - representer.setPropertyUtils(new MyPropertyUtils()); - - Yaml yaml = new Yaml(representer, options); - return yaml.dump(obj); - } - - /** - * Is yaml file content valid boolean. - * - * @param yamlFullFileName the yaml full file name - * @return the boolean - */ - public boolean isYamlFileContentValid(String yamlFullFileName) { - Yaml yaml = new Yaml(); - try { - Object loadResult = yaml.load(yamlFullFileName); - return loadResult != null; - } catch (Exception exception) { - return false; - } - } - - - private class CustomRepresenter extends Representer { - @Override - protected MappingNode representJavaBean(Set properties, Object javaBean) { - //remove the bean type from the output yaml (!! ...) - if (!classTags.containsKey(javaBean.getClass())) { - addClassTag(javaBean.getClass(), Tag.MAP); - } - - return super.representJavaBean(properties, javaBean); - } - - @Override - protected NodeTuple representJavaBeanProperty(Object javaBean, Property property, - Object propertyValue, Tag customTag) { - if (propertyValue == null) { - return null; - } else { - NodeTuple defaultNode = - super.representJavaBeanProperty(javaBean, property, propertyValue, customTag); - - return DEFAULT_STR.equals(property.getName()) - ? new NodeTuple(representData(DEFAULT), defaultNode.getValueNode()) - : defaultNode; - } - } - } - - - /** - * The type My property utils. - */ - public class MyPropertyUtils extends PropertyUtils { - //Unsorted properties - @Override - protected Set createPropertySet(Class type, BeanAccess bnAccess) - throws IntrospectionException { - return new LinkedHashSet<>(getPropertiesMap(type, - BeanAccess.FIELD).values()); - } - - @Override - public Property getProperty(Class type, String name) throws IntrospectionException { - String updatedName = name; - if (DEFAULT.equals(updatedName)) { - updatedName = DEFAULT_STR; - } - return super.getProperty(type, updatedName); - } - - } - - /** - * The type Strict map appender constructor. - */ - protected class StrictMapAppenderConstructor extends Constructor { - - /** - * Instantiates a new Strict map appender constructor. - * - * @param theRoot the the root - */ - public StrictMapAppenderConstructor(Class theRoot) { - super(theRoot); - } - - @Override - protected Map createDefaultMap() { - final Map delegate = super.createDefaultMap(); - return new AbstractMap() { - @Override - public Object put(Object key, Object value) { - if (delegate.containsKey(key)) { - throw new IllegalStateException("duplicate key: " + key); - } - return delegate.put(key, value); - } - - @Override - public Set> entrySet() { - return delegate.entrySet(); - } - }; - } - - @Override - protected Map constructMapping(MappingNode node) { - try { - return super.constructMapping(node); - } catch (IllegalStateException exception) { - throw new ParserException("while parsing MappingNode", - node.getStartMark(), exception.getMessage(), - node.getEndMark()); - } - } - } -} diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/onap/_index.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/onap/_index.yml deleted file mode 100644 index 145766b3b0..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/onap/_index.yml +++ /dev/null @@ -1,35 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: onap/_index.yml - version: '1.0' - - -imports: -- tosca_index: - file: ../tosca/_index.yml -- capabilities: - file: capabilities.yml -- nodes: - file: nodes.yml -- relationships: - file: relationships.yml -- groups: - file: groups.yml -- data: - file: data.yml - diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/onap/capabilities.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/onap/capabilities.yml deleted file mode 100644 index 3a7104fd9d..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/onap/capabilities.yml +++ /dev/null @@ -1,74 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: onap/capabilities.yml - version: '1.0' - -imports: -- onap_index: - file: _index.yml - -capability_types: - - tosca.capabilities.nfv.VirtualLinkable: - derived_from: tosca.capabilities.Root - - tosca.capabilities.nfv.Metric: - derived_from: tosca.capabilities.Root - - tosca.capabilities.nfv.VirtualBindable: - derived_from: tosca.capabilities.Root - - tosca.capabilities.nfv.VirtualCompute: - derived_from: tosca.capabilities.Root - properties: - virtual_memory: - type: tosca.datatypes.nfv.VirtualMemory - requested_additional_capabilities: - entry_schema: - type: tosca.datatypes.nfv.RequestedAdditionalCapability - required: false - type: map - virtual_cpu: - type: tosca.datatypes.nfv.VirtualCpu - - tosca.capabilities.nfv.VirtualStorage: - derived_from: tosca.capabilities.Root - - tosca.capabilities.nfv.Forwarder: - derived_from: tosca.capabilities.Root - - tosca.capabilities.nfv.ext.Compute.Container.Architecture: - derived_from: tosca.capabilities.Root - properties: - num_cpus: - required: false - type: string - flavor_extra_specs: - entry_schema: - type: string - required: false - type: map - mem_size: - required: false - type: string - - tosca.capabilities.nfv.ext.ImageFile: - derived_from: tosca.capabilities.Root - - tosca.capabilities.nfv.ext.LocalAttachment: - derived_from: tosca.capabilities.Root \ No newline at end of file diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/onap/data.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/onap/data.yml deleted file mode 100644 index de251c3843..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/onap/data.yml +++ /dev/null @@ -1,215 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: onap/data.yml - version: '1.0' - -imports: -- onap_index: - file: _index.yml - -data_types: - - tosca.datatypes.nfv.RequestedAdditionalCapability: - derived_from: tosca.datatypes.Root - properties: - support_mandatory: - type: boolean - required: true - min_requested_additional_capability_version: - type: string - required: false - preferred_requested_additional_capability_version: - type: string - required: false - requested_additional_capability_name: - type: string - required: true - target_performance_parameters: - type: map - entry_schema: - type: string - required: true - tosca.datatypes.nfv.VirtualMemory: - derived_from: tosca.datatypes.Root - properties: - virtual_mem_size: - type: string - required: true - virtual_mem_oversubscription_policy: - type: string - required: false - numa_enabled: - type: boolean - required: false - tosca.datatypes.nfv.VirtualCpu: - derived_from: tosca.datatypes.Root - properties: - cpu_architecture: - type: string - required: false - num_virtual_cpu: - type: integer - required: true - virtual_cpu_clock: - type: scalar-unit.frequency - required: false - virtual_cpu_oversubscription_policy: - type: string - required: false - virtual_cpu_pinning: - type: tosca.datatypes.nfv.VirtualCpuPinning - required: false - tosca.datatypes.nfv.VirtualCpuPinning: - derived_from: tosca.datatypes.Root - properties: - cpu_pinning_policy: - type: string - constraints: - - valid_values: [ static, dynamic ] - required: false - cpu_pinning_map: - type: map - entry_schema: - type: string - required: false - tosca.datatypes.nfv.VnfcConfigurableProperties: - properties: - additional_vnfc_configurable_properties: - entry_schema: - type: string - required: false - type: map - tosca.datatypes.nfv.L3AddressData: - properties: - number_of_ip_address: - required: false - type: integer - ip_address_assignment: - type: boolean - ip_address_type: - constraints: - - valid_values: - - ipv4 - - ipv6 - required: false - type: string - floating_ip_activated: - type: string - tosca.datatypes.nfv.VirtualNetworkInterfaceRequirements: - properties: - name: - required: false - type: string - support_mandatory: - type: boolean - description: - required: false - type: string - requirement: - entry_schema: - type: string - type: map - tosca.datatype.nfv.AddressData: - properties: - address_type: - constraints: - - valid_values: - - mac_address - - ip_address - type: string - l2_address_data: - required: false - type: tosca.datatypes.nfv.L2AddressData - l3_address_data: - required: false - type: tosca.datatypes.nfv.L3AddressData - tosca.datatypes.nfv.L2AddressData: {} - tosca.datatypes.nfv.ConnectivityType: - properties: - layer_protocol: - constraints: - - valid_values: - - ethernet - - mpls - - odu2 - - ipv4 - - ipv6 - - pseudo_wire - type: string - flow_pattern: - required: false - type: string - tosca.datatypes.nfv.ext.FloatingIP: - properties: - external_network: - required: false - type: string - ip_address: - required: false - type: string - tosca.datatypes.nfv.ext.AddressPairs: - properties: - ip: - required: false - type: string - mac: - required: false - type: string - tosca.datatypes.nfv.ext.InjectData: - properties: - file_name: - required: false - type: string - file_data: - required: false - type: string - tosca.datatypes.nfv.ext.zte.WatchDog: - properties: - enable_delay: - required: false - type: integer - action: - required: false - type: string - tosca.datatypes.nfv.ext.LocalAffinityOrAntiAffinityRule: - properties: - scope: - required: false - type: string - affinity_antiaffinity: - required: false - type: string - tosca.datatypes.nfv.ext.LocationInfo: - properties: - availability_zone: - required: false - type: string - vimid: - required: false - type: integer - tenant: - required: false - type: string - tosca.datatypes.nfv.ext.HostRouteInfo: - properties: - destination: - required: false - type: string - nexthop: - required: false - type: string \ No newline at end of file diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/onap/nodes.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/onap/nodes.yml deleted file mode 100644 index 643f731f09..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/onap/nodes.yml +++ /dev/null @@ -1,583 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: onap/nodes.yml - version: '1.0' - -imports: -- onap_index: - file: _index.yml - -node_types: - - tosca.nodes.nfv.NS.vEPC_NS: - derived_from: tosca.nodes.nfv.NS - properties: - vendor: - default: ChinaMobile - required: false - type: string - csarVersion: - default: v1.0 - required: false - type: string - name: - default: vEPC_NS - required: false - type: string - csarProvider: - default: ChinaMobile - required: false - type: string - id: - default: vEPC_NS - required: false - type: string - version: - default: v1.0 - required: false - type: string - csarType: - default: NSAR - required: false - type: string - requirements: - - virtualLink: - capability: tosca.capabilities.nfv.VirtualLinkable - occurrences: - - 0 - - UNBOUNDED - - tosca.nodes.nfv.NS.vIMS_NS: - derived_from: tosca.nodes.nfv.NS - properties: - vendor: - default: ChinaMobile - required: false - type: string - csarVersion: - default: v1.0 - required: false - type: string - name: - default: vIMS_NS - required: false - type: string - csarProvider: - default: ChinaMobile - required: false - type: string - id: - default: vIMS_NS - required: false - type: string - version: - default: v1.0 - required: false - type: string - csarType: - default: NSAR - required: false - type: string - requirements: - - virtualLink: - capability: tosca.capabilities.nfv.VirtualLinkable - occurrences: - - 0 - - UNBOUNDED - - tosca.nodes.nfv.NS: - derived_from: tosca.nodes.Root - properties: - vendor: - required: false - type: string - name: - required: false - type: string - id: - required: false - type: string - version: - required: false - type: string - requirements: - - virtualLink: - capability: tosca.capabilities.nfv.VirtualLinkable - occurrences: - - 0 - - UNBOUNDED - - tosca.nodes.nfv.VDU.Compute: - attributes: - private_address: - type: string - public_address: - type: string - networks: - type: string - ports: - type: string - capabilities: - scalable: - type: tosca.capabilities.Scalable - virtual_compute: - type: tosca.capabilities.nfv.VirtualCompute - endpoint: - type: tosca.capabilities.Endpoint.Admin - os: - type: tosca.capabilities.OperatingSystem - virtual_binding: - type: tosca.capabilities.nfv.VirtualBindable - host: - type: tosca.capabilities.Container - binding: - type: tosca.capabilities.network.Bindable - monitoring_parameter: - type: tosca.capabilities.nfv.Metric - derived_from: tosca.nodes.Root - properties: - configurable_properties: - entry_schema: - type: tosca.datatypes.nfv.VnfcConfigurableProperties - type: map - name: - type: string - nfvi_constraints: - entry_schema: - type: string - required: false - type: list - descrption: - type: string - boot_order: - entry_schema: - type: string - required: false - type: list - requirements: - - local_storage: - capability: tosca.capabilities.Attachment - occurrences: - - 0 - - UNBOUNDED - - virtual_storage: - capability: tosca.capabilities.nfv.VirtualStorage - occurrences: - - 0 - - UNBOUNDED - - tosca.nodes.nfv.VDU.VirtualStorage: - capabilities: - virtual_storage: - type: tosca.capabilities.nfv.VirtualStorage - derived_from: tosca.nodes.Root - properties: - id: - type: string - size_of_storage: - type: string - rdma_enabled: - required: false - type: boolean - type_of_storage: - type: string - - tosca.nodes.nfv.VduCpd: - derived_from: tosca.nodes.Root - properties: - virtual_network_interface_requirements: - entry_schema: - type: tosca.datatypes.nfv.VirtualNetworkInterfaceRequirements - required: false - type: list - role: - constraints: - - valid_values: - - root - - leaf - required: false - type: string - bitrate_requirement: - required: false - type: integer - description: - required: false - type: string - layer_protocol: - constraints: - - valid_values: - - ethernet - - mpls - - odu2 - - ipv4 - - ipv6 - - pseudo_wire - type: string - address_data: - entry_schema: - type: tosca.datatype.nfv.AddressData - required: false - type: list - requirements: - - virtual_binding: - capability: tosca.capabilities.nfv.VirtualBindable - occurrences: - - 0 - - UNBOUNDED - - virtual_link: - capability: tosca.capabilities.nfv.VirtualBindable - occurrences: - - 0 - - UNBOUNDED - tosca.nodes.nfv.ext.ImageFile: - capabilities: - guest_os: - type: tosca.capabilities.nfv.ext.GuestOs - image_fle: - type: tosca.capabilities.nfv.ext.ImageFile - derived_from: tosca.nodes.Root - properties: - file_url: - required: false - type: string - container_type: - required: false - type: string - name: - required: false - type: string - disk_format: - required: false - type: string - version: - required: false - type: string - tosca.nodes.nfv.ext.LocalStorage: - capabilities: - local_attachment: - type: tosca.capabilities.nfv.ext.LocalAttachment - derived_from: tosca.nodes.Root - properties: - size: - required: false - type: string - disk_type: - required: false - type: string - tosca.nodes.nfv.ext.zte.CP: - capabilities: - forwarder: - type: tosca.capabilities.nfv.Forwarder - derived_from: tosca.nodes.Root - properties: - guest_os_mtu: - required: false - type: integer - bandwidth: - required: false - type: integer - interface_name: - required: false - type: string - allowed_address_pairs: - entry_schema: - type: tosca.datatypes.nfv.ext.AddressPairs - required: false - type: list - ip_address: - required: false - type: string - bond: - required: false - type: string - proxiedVNFs: - entry_schema: - type: string - required: false - type: list - sfc_encapsulation: - required: false - type: string - floating_ip_address: - required: false - type: tosca.datatypes.nfv.ext.FloatingIP - service_ip_address: - required: false - type: string - mac_address: - required: false - type: string - proxiedVNFtype: - required: false - type: string - macbond: - required: false - type: string - vnic_type: - required: false - type: string - direction: - required: false - type: string - order: - required: false - type: integer - requirements: - - forwarder: - capability: tosca.capabilities.nfv.Forwarder - occurrences: - - 0 - - UNBOUNDED - - virtualbinding: - capability: tosca.capabilities.nfv.VirtualBindable - occurrences: - - 0 - - UNBOUNDED - - virtualLink: - capability: tosca.capabilities.nfv.VirtualBindable - occurrences: - - 0 - - UNBOUNDED - tosca.nodes.nfv.ext.zte.VDU: - capabilities: - scalable: - type: tosca.capabilities.Scalable - monitoring_parameter: - type: tosca.capabilities.nfv.Metric - nfv_compute: - type: tosca.capabilities.nfv.ext.Compute.Container.Architecture - virtualbinding: - type: tosca.capabilities.nfv.VirtualBindable - derived_from: tosca.nodes.Root - properties: - manual_scale_select_vim: - required: false - type: boolean - vdu_type: - required: false - type: string - watchdog: - required: false - type: tosca.datatypes.nfv.ext.zte.WatchDog - name: - required: false - type: string - local_affinity_antiaffinity_rule: - required: false - type: tosca.datatypes.nfv.ext.LocalAffinityOrAntiAffinityRule - support_scaling: - required: false - type: boolean - storage_policy: - required: false - type: string - key_vdu: - required: false - type: boolean - location_info: - required: false - type: tosca.datatypes.nfv.ext.LocationInfo - inject_data_list: - entry_schema: - type: tosca.datatypes.nfv.ext.InjectData - required: false - type: list - requirements: - - guest_os: - capability: tosca.capabilities.nfv.ext.GuestOs - occurrences: - - 0 - - UNBOUNDED - - local_storage: - capability: tosca.capabilities.nfv.ext.LocalAttachment - occurrences: - - 0 - - UNBOUNDED - - volume_storage: - capability: tosca.capabilities.Attachment - occurrences: - - 0 - - UNBOUNDED - - dependency: - capability: tosca.capabilities.Node - occurrences: - - 0 - - UNBOUNDED - tosca.nodes.nfv.ext.zte.VL: - capabilities: - virtual_linkable: - type: tosca.capabilities.nfv.VirtualLinkable - derived_from: tosca.nodes.Root - properties: - segmentation_id: - required: false - type: string - network_name: - required: false - type: string - is_predefined: - required: false - type: boolean - mtu: - required: false - type: integer - dns_nameservers: - entry_schema: - type: string - required: false - type: list - physical_network: - required: false - type: string - dhcp_enabled: - required: false - type: boolean - network_id: - required: false - type: string - host_routes: - entry_schema: - type: tosca.datatypes.nfv.ext.HostRouteInfo - required: false - type: list - ip_version: - required: false - type: integer - vendor: - required: false - type: string - name: - required: false - type: string - start_ip: - required: false - type: string - vlan_transparent: - required: false - type: boolean - cidr: - required: false - type: string - gateway_ip: - required: false - type: string - network_type: - required: false - type: string - end_ip: - required: false - type: string - location_info: - required: false - type: tosca.datatypes.nfv.ext.LocationInfo - tosca.nodes.nfv.ext.zte.VNF: - capabilities: - forwarder: - type: tosca.capabilities.nfv.Forwarder - derived_from: tosca.nodes.Root - properties: - request_reclassification: - required: false - type: boolean - domain_type: - required: false - type: string - nsh_aware: - required: false - type: boolean - plugin_info: - required: false - type: string - adjust_vnf_capacity: - required: false - type: boolean - vnfd_version: - required: false - type: string - vmnumber_overquota_alarm: - required: false - type: boolean - custom_properties: - entry_schema: - type: string - required: false - type: map - version: - required: false - type: string - cross_dc: - required: false - type: boolean - script_info: - required: false - type: string - vendor: - required: false - type: string - is_shared: - required: false - type: boolean - name: - required: false - type: string - vnf_extend_type: - required: false - type: string - id: - required: false - type: string - vnf_type: - required: false - type: string - is_sfc_proxy: - required: false - type: boolean - requirements: - - forwarder: - capability: tosca.capabilities.nfv.Forwarder - occurrences: - - 0 - - UNBOUNDED - - virtualLink: - capability: tosca.capabilities.nfv.VirtualLinkable - occurrences: - - 0 - - UNBOUNDED - - tosca.nodes.nfv.VnfVirtualLinkDesc: - capabilities: - monitoring_parameters: - type: tosca.capabilities.nfv.Metric - virtual_linkable: - type: tosca.capabilities.nfv.VirtualLinkable - derived_from: tosca.nodes.Root - properties: - vl_flavours: - entry_schema: - type: string - type: map - description: - required: false - type: string - test_access: - entry_schema: - type: string - required: false - type: list - connectivity_type: - type: tosca.datatypes.nfv.ConnectivityType \ No newline at end of file diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/onap/relationships.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/onap/relationships.yml deleted file mode 100644 index a8230c5b56..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/onap/relationships.yml +++ /dev/null @@ -1,38 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: onap/relationships.yml - version: '1.0' - -imports: -- onap_index: - file: _index.yml - -relationship_types: - - tosca.relationships.nfv.VDU.AttachedTo: - derived_from: tosca.relationships.Root - properties: - location: - required: false - type: string - - tosca.relationships.nfv.VirtualBindsTo: - derived_from: tosca.relationships.Root - - tosca.relationships.nfv.VirtualLinksTo: - derived_from: tosca.relationships.Root \ No newline at end of file diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/_index.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/_index.yml deleted file mode 100644 index fa37f50d8a..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/_index.yml +++ /dev/null @@ -1,30 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: openecomp-heat/_index.yml - version: '1.0' - - -imports: -- openecomp_index: - file: ../openecomp/_index.yml -- nodes: - file: nodes.yml -- groups: - file: groups.yml -- data: - file: data.yml \ No newline at end of file diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/data.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/data.yml deleted file mode 100644 index bc1f5efd68..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/data.yml +++ /dev/null @@ -1,817 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: openecomp-heat/data.yml - version: '1.0' - -imports: -- heat_index: - file: _index.yml - -data_types: - - org.openecomp.datatypes.heat.network.AddressPair: - derived_from: tosca.datatypes.Root - description: MAC/IP address pairs - properties: - mac_address: - description: MAC address - type: string - status: SUPPORTED - required: false - ip_address: - description: IP address - type: string - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.novaServer.network.PortExtraProperties: - derived_from: tosca.datatypes.Root - description: Nova server network expand properties for port - properties: - port_security_enabled: - description: Flag to enable/disable port security on the port - type: boolean - status: SUPPORTED - required: false - mac_address: - description: MAC address to give to this port - type: string - status: SUPPORTED - required: false - admin_state_up: - description: The administrative state of this port - type: boolean - status: SUPPORTED - default: true - required: false - qos_policy: - description: The name or ID of QoS policy to attach to this port - type: string - status: SUPPORTED - required: false - allowed_address_pairs: - description: Additional MAC/IP address pairs allowed to pass through the port - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.AddressPair - required: false - binding:vnic_type: - description: The vnic type to be bound on the neutron port - type: string - status: SUPPORTED - required: false - constraints: - - valid_values: - - macvtap - - direct - - normal - value_specs: - description: Extra parameters to include in the request - type: map - status: SUPPORTED - entry_schema: - type: string - default: {} - required: false - - org.openecomp.datatypes.heat.contrailV2.network.rule.SrcPortPairs: - derived_from: tosca.datatypes.Root - description: source port pairs - properties: - network_policy_entries_policy_rule_src_ports_start_port: - description: Start port - type: string - status: SUPPORTED - required: false - network_policy_entries_policy_rule_src_ports_end_port: - description: End port - type: string - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPair: - derived_from: tosca.datatypes.Root - description: Virtual Machine Sub Interface Address Pair. - properties: - address_mode: - description: Address Mode. - type: string - status: SUPPORTED - required: false - ip: - description: IP. - type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPairIp - status: SUPPORTED - required: false - mac: - description: Mac. - type: string - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.contrailV2.network.rule.DstVirtualNetwork: - derived_from: tosca.datatypes.Root - description: destination addresses - properties: - network_policy_entries_policy_rule_dst_addresses_virtual_network: - description: Destination addresses Virtual network - type: string - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.contrailV2.network.rule.Rule: - derived_from: tosca.datatypes.Root - description: policy rule - properties: - network_policy_entries_policy_rule_dst_addresses: - description: Destination addresses - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.contrailV2.network.rule.DstVirtualNetwork - required: false - network_policy_entries_policy_rule_dst_ports: - description: Destination ports - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.contrailV2.network.rule.DstPortPairs - required: false - network_policy_entries_policy_rule_protocol: - description: Protocol - type: string - status: SUPPORTED - required: false - network_policy_entries_policy_rule_src_addresses: - description: Source addresses - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.contrailV2.network.rule.SrcVirtualNetwork - required: false - network_policy_entries_policy_rule_direction: - description: Direction - type: string - status: SUPPORTED - required: false - network_policy_entries_policy_rule_src_ports: - description: Source ports - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.contrailV2.network.rule.SrcPortPairs - required: false - network_policy_entries_policy_rule_action_list: - description: Action list - type: org.openecomp.datatypes.heat.contrailV2.network.rule.ActionList - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.network.neutron.SecurityRules.Rule: - derived_from: tosca.datatypes.Root - description: Rules Pairs - properties: - remote_group_id: - description: The remote group ID to be associated with this security group rule - type: string - status: SUPPORTED - required: false - protocol: - description: The protocol that is matched by the security group rule - type: string - status: SUPPORTED - required: false - constraints: - - valid_values: - - tcp - - udp - - icmp - ethertype: - description: Ethertype of the traffic - type: string - status: SUPPORTED - default: IPv4 - required: false - constraints: - - valid_values: - - IPv4 - - IPv6 - port_range_max: - description: 'The maximum port number in the range that is matched by the - security group rule. ' - type: integer - status: SUPPORTED - required: false - constraints: - - in_range: - - 0 - - 65535 - remote_ip_prefix: - description: The remote IP prefix (CIDR) to be associated with this security group rule - type: string - status: SUPPORTED - required: false - remote_mode: - description: Whether to specify a remote group or a remote IP prefix - type: string - status: SUPPORTED - default: remote_ip_prefix - required: false - constraints: - - valid_values: - - remote_ip_prefix - - remote_group_id - direction: - description: The direction in which the security group rule is applied - type: string - status: SUPPORTED - default: ingress - required: false - constraints: - - valid_values: - - egress - - ingress - port_range_min: - description: The minimum port number in the range that is matched by the security group rule. - type: integer - status: SUPPORTED - required: false - constraints: - - in_range: - - 0 - - 65535 - - org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.ref.data.IpamSubnet: - derived_from: tosca.datatypes.Root - description: Network Ipam Ref Data Subnet - properties: - network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len: - description: Network ipam refs data ipam subnets ip prefix len - type: string - status: SUPPORTED - required: false - network_ipam_refs_data_ipam_subnets_subnet_ip_prefix: - description: Network ipam refs data ipam subnets ip prefix - type: string - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.Properties: - derived_from: tosca.datatypes.Root - description: Virtual Machine Sub Interface VLAN Properties. - properties: - sub_interface_vlan_tag: - description: Sub Interface VLAN Tag. - type: string - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPairIp: - derived_from: tosca.datatypes.Root - description: Virtual Machine Sub Interface Address Pair IP. - properties: - ip_prefix: - description: IP Prefix. - type: string - status: SUPPORTED - required: false - ip_prefix_len: - description: IP Prefix Len. - type: integer - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.contrailV2.network.rule.SrcVirtualNetwork: - derived_from: tosca.datatypes.Root - description: source addresses - properties: - network_policy_entries_policy_rule_src_addresses_virtual_network: - description: Source addresses Virtual network - type: string - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.contrailV2.network.rule.ActionList: - derived_from: tosca.datatypes.Root - description: Action List - properties: - network_policy_entries_policy_rule_action_list_simple_action: - description: Simple Action - type: string - status: SUPPORTED - required: false - network_policy_entries_policy_rule_action_list_apply_service: - description: Apply Service - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - - org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.IpamRefData: - derived_from: tosca.datatypes.Root - description: Network Ipam Ref Data - properties: - network_ipam_refs_data_ipam_subnets: - description: Network ipam refs data ipam subnets - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.ref.data.IpamSubnetList - required: false - - org.openecomp.datatypes.heat.FileInfo: - derived_from: tosca.datatypes.Root - description: Heat File Info - properties: - file: - description: The required URI string (relative or absolute) which can be used to locate the file - type: string - status: SUPPORTED - required: true - file_type: - description: The type of the file - type: string - status: SUPPORTED - required: true - constraints: - - valid_values: - - base - - env - - volume - - network - - org.openecomp.datatypes.heat.network.contrail.InterfaceData: - derived_from: tosca.datatypes.Root - description: Interface Data - properties: - static_routes: - description: An ordered list of static routes to be added to this interface - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.contrail.port.StaticRoute - required: false - virtual_network: - description: Virtual Network for this interface - type: string - status: SUPPORTED - required: true - allowed_address_pairs: - description: List of allowed address pair for this interface - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.contrail.AddressPair - required: false - ip_address: - description: IP for this interface - type: string - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.RefData: - derived_from: tosca.datatypes.Root - description: network policy refs data - properties: - network_policy_refs_data_sequence: - description: Network Policy ref data sequence - type: org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.RefDataSequence - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.contrailV2.network.rule.DstPortPairs: - derived_from: tosca.datatypes.Root - description: destination port pairs - properties: - network_policy_entries_policy_rule_dst_ports_start_port: - description: Start port - type: string - status: SUPPORTED - required: false - network_policy_entries_policy_rule_dst_ports_end_port: - description: End port - type: string - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.network.AllocationPool: - derived_from: tosca.datatypes.Root - description: The start and end addresses for the allocation pool - properties: - start: - description: Start address for the allocation pool - type: string - status: SUPPORTED - required: false - end: - description: End address for the allocation pool - type: string - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.contrail.network.rule.PortPairs: - derived_from: tosca.datatypes.Root - description: source and destination port pairs - properties: - start_port: - description: Start port - type: string - status: SUPPORTED - required: false - end_port: - description: End port - type: string - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.contrail.network.rule.VirtualNetwork: - derived_from: tosca.datatypes.Root - description: source and destination addresses - properties: - virtual_network: - description: Virtual network - type: string - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.contrail.network.rule.RuleList: - derived_from: tosca.datatypes.Root - description: list of policy rules - properties: - policy_rule: - description: Contrail network rule - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.contrail.network.rule.Rule - required: false - - org.openecomp.datatypes.heat.network.contrail.AddressPair: - derived_from: tosca.datatypes.Root - description: Address Pair - properties: - address_mode: - description: Address mode active-active or active-standy - type: string - status: SUPPORTED - required: false - constraints: - - valid_values: - - active-active - - active-standby - prefix: - description: IP address prefix - type: string - status: SUPPORTED - required: false - mac_address: - description: Mac address - type: string - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.MacAddress: - derived_from: tosca.datatypes.Root - description: Virtual Machine Sub Interface Mac Address. - properties: - mac_address: - description: Mac Addresses List. - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - - org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.ref.data.IpamSubnetList: - derived_from: tosca.datatypes.Root - description: Network Ipam Ref Data Subnet List - properties: - network_ipam_refs_data_ipam_subnets_subnet: - description: Network ipam refs data ipam subnets - type: org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.ref.data.IpamSubnet - status: SUPPORTED - required: false - network_ipam_refs_data_ipam_subnets_addr_from_start: - description: Network ipam refs data ipam subnets addr from start - type: string - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.contrailV2.network.rule.RuleList: - derived_from: tosca.datatypes.Root - description: list of policy rules - properties: - network_policy_entries_policy_rule: - description: Contrail network rule - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.contrailV2.network.rule.Rule - required: false - - org.openecomp.datatypes.heat.novaServer.network.AddressInfo: - derived_from: tosca.datatypes.network.NetworkInfo - description: Network addresses with corresponding port id - properties: - port_id: - description: Port id - type: string - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPairs: - derived_from: tosca.datatypes.Root - description: Virtual Machine Sub Interface Address Pairs. - properties: - allowed_address_pair: - description: Addresses pair List. - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPair - required: false - - org.openecomp.datatypes.heat.neutron.port.FixedIps: - derived_from: tosca.datatypes.Root - description: subnet/ip_address - properties: - subnet: - description: Subnet in which to allocate the IP address for this port - type: string - status: SUPPORTED - required: false - ip_address: - description: IP address desired in the subnet for this port - type: string - status: SUPPORTED - required: false - subnet_id: - type: string - description: Subnet in which to allocate the IP address for this port - required: false - status: SUPPORTED - - - org.openecomp.datatypes.heat.contrailV2.virtual.machine.interface.Properties: - derived_from: tosca.datatypes.Root - description: Virtual Machine Interface Properties. - properties: - service_interface_type: - description: Service Interface Type. - type: string - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.network.subnet.HostRoute: - derived_from: tosca.datatypes.Root - description: Host route info for the subnet - properties: - destination: - description: The destination for static route - type: string - status: SUPPORTED - required: false - nexthop: - description: The next hop for the destination - type: string - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.network.contrail.port.StaticRoute: - derived_from: tosca.datatypes.Root - description: static route - properties: - prefix: - description: Route prefix - type: string - status: SUPPORTED - required: false - next_hop: - description: Next hop - type: string - status: SUPPORTED - required: false - next_hop_type: - description: Next hop type - type: string - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.substitution.SubstitutionFiltering: - derived_from: tosca.datatypes.Root - description: Substitution Filter - properties: - substitute_service_template: - description: Substitute Service Template - type: string - status: SUPPORTED - required: true - index_value: - description: Index value of the substitution service template runtime instance - type: integer - status: SUPPORTED - default: 0 - required: false - constraints: - - greater_or_equal: 0 - count: - description: Count - type: integer - status: SUPPORTED - default: 1 - required: false - scaling_enabled: - description: Indicates whether service scaling is enabled - type: boolean - status: SUPPORTED - default: true - required: false - mandatory: - description: Mandatory - type: boolean - status: SUPPORTED - default: true - required: false - - org.openecomp.datatypes.heat.network.neutron.Subnet: - derived_from: tosca.datatypes.Root - description: A subnet represents an IP address block that can be used for assigning IP addresses to virtual instances - properties: - tenant_id: - description: The ID of the tenant who owns the network - type: string - status: SUPPORTED - required: false - enable_dhcp: - description: Set to true if DHCP is enabled and false if DHCP is disabled - type: boolean - status: SUPPORTED - default: true - required: false - ipv6_address_mode: - description: IPv6 address mode - type: string - status: SUPPORTED - required: false - constraints: - - valid_values: - - dhcpv6-stateful - - dhcpv6-stateless - - slaac - ipv6_ra_mode: - description: IPv6 RA (Router Advertisement) mode - type: string - status: SUPPORTED - required: false - constraints: - - valid_values: - - dhcpv6-stateful - - dhcpv6-stateless - - slaac - value_specs: - description: Extra parameters to include in the request - type: map - status: SUPPORTED - entry_schema: - type: string - default: {} - required: false - allocation_pools: - description: The start and end addresses for the allocation pools - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.AllocationPool - required: false - subnetpool: - description: The name or ID of the subnet pool - type: string - status: SUPPORTED - required: false - dns_nameservers: - description: A specified set of DNS name servers to be used - type: list - status: SUPPORTED - entry_schema: - type: string - default: [] - required: false - host_routes: - description: The gateway IP address - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.subnet.HostRoute - required: false - ip_version: - description: The gateway IP address - type: integer - status: SUPPORTED - default: 4 - required: false - constraints: - - valid_values: - - 4 - - 6 - name: - description: The name of the subnet - type: string - status: SUPPORTED - required: false - prefixlen: - description: Prefix length for subnet allocation from subnet pool - type: integer - status: SUPPORTED - required: false - constraints: - - greater_or_equal: 0 - cidr: - description: The CIDR - type: string - status: SUPPORTED - required: false - gateway_ip: - description: The gateway IP address - type: string - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.contrail.network.rule.Rule: - derived_from: tosca.datatypes.Root - description: policy rule - properties: - src_ports: - description: Source ports - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.contrail.network.rule.PortPairs - required: false - protocol: - description: Protocol - type: string - status: SUPPORTED - required: false - dst_addresses: - description: Destination addresses - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.contrail.network.rule.VirtualNetwork - required: false - apply_service: - description: Service to apply - type: string - status: SUPPORTED - required: false - dst_ports: - description: Destination ports - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.contrail.network.rule.PortPairs - required: false - src_addresses: - description: Source addresses - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.contrail.network.rule.VirtualNetwork - required: false - direction: - description: Direction - type: string - status: SUPPORTED - required: false - - org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.RefDataSequence: - derived_from: tosca.datatypes.Root - description: network policy refs data sequence - properties: - network_policy_refs_data_sequence_major: - description: Network Policy ref data sequence Major - type: integer - status: SUPPORTED - required: false - network_policy_refs_data_sequence_minor: - description: Network Policy ref data sequence Minor - type: integer - status: SUPPORTED - required: false diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/groups.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/groups.yml deleted file mode 100644 index ded2373e50..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/groups.yml +++ /dev/null @@ -1,40 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: openecomp-heat/groups.yml - version: '1.0' - -imports: -- heat_index: - file: _index.yml - -group_types: - - org.openecomp.groups.heat.HeatStack: - derived_from: org.openecomp.groups.VfModule - description: Grouped all heat resources which are in the same heat stack - properties: - heat_file: - description: Heat file which associate to this group/heat stack - type: string - status: SUPPORTED - required: true - description: - description: group description - type: string - status: SUPPORTED - required: true diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/nodes.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/nodes.yml deleted file mode 100644 index 9abb964661..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-heat/nodes.yml +++ /dev/null @@ -1,1292 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: openecomp-heat/nodes.yml - version: '1.0' - -imports: -- heat_index: - file: _index.yml - -node_types: - - org.openecomp.resource.abstract.nodes.contrail.AbstractSubstitute: - derived_from: org.openecomp.resource.abstract.nodes.AbstractSubstitute - properties: - availability_zone: - description: Availability zone to create servers in - type: string - status: SUPPORTED - required: false - static_routes_list: - description: Static routes enabled - type: list - status: SUPPORTED - entry_schema: - type: boolean - required: false - availability_zone_enable: - description: Indicates availability zone is enabled - type: boolean - status: SUPPORTED - default: false - required: false - service_template_name: - description: Service template name - type: string - status: SUPPORTED - required: false - ordered_interfaces: - description: Indicates if service interface are ordered - type: boolean - status: SUPPORTED - default: false - required: false - flavor: - description: flavor - type: string - status: SUPPORTED - required: false - image_name: - description: Image name - type: string - status: SUPPORTED - required: true - service_type: - description: Service type - type: string - status: SUPPORTED - required: true - constraints: - - valid_values: - - firewall - - analyzer - - source-nat - - loadbalancer - service_interface_type_list: - description: List of interface types - type: list - status: SUPPORTED - entry_schema: - type: string - constraints: - - valid_values: - - management - - left - - right - - other - required: true - service_instance_name: - description: Service instance name - type: string - status: SUPPORTED - required: true - interface_list: - description: List of interfaces - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.contrail.InterfaceData - required: false - service_mode: - description: Service mode - type: string - status: SUPPORTED - required: true - constraints: - - valid_values: - - transparent - - in-network - - in-network-nat - shared_ip_list: - description: Shared ips enabled - type: list - status: SUPPORTED - entry_schema: - type: boolean - required: false - attributes: - tenant_id: - description: Tenant id of the Service Instance - type: string - status: SUPPORTED - fq_name: - description: The FQ name of the service instance - type: string - status: SUPPORTED - service_template_name: - description: Service Template of the Service Instance - type: string - status: SUPPORTED - show: - description: All attributes - type: string - status: SUPPORTED - active_vms: - description: Number of service VMs active for this Service Instance - type: string - status: SUPPORTED - service_instance_name: - description: The name of the service instance - type: string - status: SUPPORTED - virtual_machines: - description: Service VMs for the Service Instance - type: string - status: SUPPORTED - status: - description: Status of the service instance - type: string - status: SUPPORTED - - - org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface: - derived_from: org.openecomp.resource.cp.nodes.network.Port - properties: - name: - description: Virtual Machine Interface name - type: string - status: SUPPORTED - required: false - security_group_refs: - description: List of security groups. - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - virtual_network_refs: - description: List of virtual networks. - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - virtual_machine_interface_properties: - description: virtual machine interface properties. - type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.interface.Properties - status: SUPPORTED - required: false - port_tuple_refs: - description: List of port tuples. - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - virtual_machine_interface_mac_addresses: - description: List of mac addresses. - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - virtual_machine_interface_allowed_address_pairs: - description: Virtual Machine Interface allowed address pairs. - type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPairs - status: SUPPORTED - required: false - - attributes: - fq_name: - description: The FQ name of the Virtual Network. - type: string - status: SUPPORTED - show: - description: All attributes. - type: string - status: SUPPORTED - capabilities: - binding: - type: tosca.capabilities.network.Bindable - occurrences: - - 0 - - UNBOUNDED - valid_source_types: - - org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface - - org.openecomp.resource.cp.nodes.heat.network.v2.contrailV2.VLANSubInterface - - - org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules: - derived_from: tosca.nodes.Root - properties: - entries: - description: A symbolic name for this contrail network rule - type: org.openecomp.datatypes.heat.contrail.network.rule.RuleList - status: SUPPORTED - required: false - name: - description: A symbolic name for this contrail network rule - type: string - status: SUPPORTED - required: false - attributes: - tenant_id: - description: tenant_id - type: string - status: SUPPORTED - fq_name: - description: fq_name - type: string - status: SUPPORTED - show: - description: All attributes. - type: string - status: SUPPORTED - rules: - description: List of rules - type: list - status: SUPPORTED - entry_schema: - type: string - requirements: - - network: - capability: tosca.capabilities.Attachment - node: tosca.nodes.network.Network - relationship: org.openecomp.relationships.AttachesTo - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules: - derived_from: tosca.nodes.Root - properties: - description: - description: Description of the security group - type: string - status: SUPPORTED - required: false - name: - description: A symbolic name for this security group, which is not required to be unique. - type: string - status: SUPPORTED - required: false - rules: - description: List of security group rules - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.neutron.SecurityRules.Rule - required: false - attributes: - show: - description: Detailed information about resource - type: string - status: SUPPORTED - requirements: - - port: - capability: tosca.capabilities.Attachment - node: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - relationship: org.openecomp.relationships.AttachesTo - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork: - derived_from: org.openecomp.resource.vl.nodes.network.Network - properties: - shared: - description: Is virtual network shared - type: string - status: SUPPORTED - required: false - forwarding_mode: - description: forwarding mode of the virtual network - type: string - status: SUPPORTED - required: false - external: - description: Is virtual network external - type: string - status: SUPPORTED - required: false - allow_transit: - description: Whether this network should be transitive. - type: string - status: SUPPORTED - required: false - flood_unknown_unicast: - description: flood L2 packets on network - type: string - status: SUPPORTED - required: false - route_targets: - description: route targets associated with the virtual network - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - subnets: - description: Network related subnets - type: map - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.neutron.Subnet - required: false - attributes: - fq_name: - description: fq_name - type: string - status: SUPPORTED - show: - description: All attributes. - type: string - status: SUPPORTED - subnets_name: - description: Subnets name of this network - type: list - status: SUPPORTED - entry_schema: - type: string - subnets_show: - description: Detailed information about each subnet - type: map - status: SUPPORTED - entry_schema: - type: string - subnets: - description: Network related subnets - type: map - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.neutron.Subnet - capabilities: - attachment: - type: tosca.capabilities.Attachment - occurrences: - - 1 - - UNBOUNDED - - org.openecomp.resource.vfc.nodes.heat.nova.Server: - derived_from: org.openecomp.resource.vfc.nodes.Compute - properties: - admin_pass: - description: The administrator password for the server - type: string - status: SUPPORTED - required: false - availability_zone: - description: Availability zone to create servers in - type: string - status: SUPPORTED - required: false - image: - description: The ID or name of the image to boot with - type: string - status: SUPPORTED - required: false - image_update_policy: - description: Policy on how to apply an image-id update - type: string - status: SUPPORTED - default: REBUILD - required: false - constraints: - - valid_values: - - REBUILD_PRESERVE_EPHEMERAL - - REPLACE - - REBUILD - metadata: - description: Arbitrary JSON metadata to store for this server - type: json - status: SUPPORTED - required: false - contrail_service_instance_ind: - description: Nova server related to service instance indicator - type: boolean - status: SUPPORTED - default: false - required: false - user_data_update_policy: - description: Policy on how to apply a user_data update - type: string - status: SUPPORTED - default: REPLACE - required: false - constraints: - - valid_values: - - REPLACE - - IGNORE - flavor_update_policy: - description: Policy on how to apply a flavor update - type: string - status: SUPPORTED - default: RESIZE - required: false - constraints: - - valid_values: - - RESIZE - - REPLACE - user_data: - description: User data script to be executed by cloud-init - type: string - status: SUPPORTED - default: '' - required: false - flavor: - description: The ID or name of the flavor to boot onto - type: string - status: SUPPORTED - required: true - key_name: - description: Name of keypair to inject into the server - type: string - status: SUPPORTED - required: false - reservation_id: - description: A UUID for the set of servers being requested - type: string - status: SUPPORTED - required: false - security_groups: - description: List of security group names or IDs - type: list - status: SUPPORTED - entry_schema: - type: string - default: [] - required: false - config_drive: - description: enable config drive on the server - type: boolean - status: SUPPORTED - required: false - personality: - description: A map of files to create/overwrite on the server upon boot - type: map - status: SUPPORTED - entry_schema: - type: string - default: {} - required: false - software_config_transport: - description: How the server should receive the metadata required for software configuration - type: string - status: SUPPORTED - default: POLL_SERVER_CFN - required: false - constraints: - - valid_values: - - POLL_SERVER_CFN - - POLL_SERVER_HEAT - - POLL_TEMP_URL - - ZAQAR_MESSAGE - user_data_format: - description: How the user_data should be formatted for the server - type: string - status: SUPPORTED - default: HEAT_CFNTOOLS - required: false - constraints: - - valid_values: - - SOFTWARE_CONFIG - - RAW - - HEAT_CFNTOOLS - diskConfig: - description: Control how the disk is partitioned when the server is created - type: string - status: SUPPORTED - required: false - constraints: - - valid_values: - - AUTO - - MANUAL - name: - description: Server name - type: string - status: SUPPORTED - required: false - scheduler_hints: - description: Arbitrary key-value pairs specified by the client to help boot a server - type: map - status: SUPPORTED - entry_schema: - type: string - required: false - attributes: - accessIPv4: - description: The manually assigned alternative public IPv4 address of the server - type: string - status: SUPPORTED - addresses: - description: A dict of all network addresses with corresponding port_id - type: map - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.novaServer.network.AddressInfo - accessIPv6: - description: The manually assigned alternative public IPv6 address of the server - type: string - status: SUPPORTED - instance_name: - description: AWS compatible instance name - type: string - status: SUPPORTED - name: - description: Name of the server - type: string - status: SUPPORTED - show: - description: Detailed information about resource - type: string - status: SUPPORTED - console_urls: - description: URLs of servers consoles - type: string - status: SUPPORTED - - org.openecomp.resource.vfc.rules.nodes.heat.network.contrailV2.NetworkRules: - derived_from: tosca.nodes.Root - properties: - name: - description: A symbolic name for this contrail v2 network rule - type: string - status: SUPPORTED - required: false - network_policy_entries: - description: A symbolic name for this contrail v2 network rule - type: org.openecomp.datatypes.heat.contrailV2.network.rule.RuleList - status: SUPPORTED - required: false - attributes: - fq_name: - description: fq_name - type: string - status: SUPPORTED - requirements: - - network: - capability: tosca.capabilities.Attachment - node: tosca.nodes.network.Network - relationship: org.openecomp.relationships.AttachesTo - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.resource.cp.nodes.heat.network.neutron.Port: - derived_from: org.openecomp.resource.cp.nodes.network.Port - properties: - port_security_enabled: - description: Flag to enable/disable port security on the network - type: boolean - status: SUPPORTED - required: false - device_id: - description: Device ID of this port - type: string - status: SUPPORTED - required: false - qos_policy: - description: The name or ID of QoS policy to attach to this network - type: string - status: SUPPORTED - required: false - allowed_address_pairs: - description: Additional MAC/IP address pairs allowed to pass through the port - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.AddressPair - required: false - binding:vnic_type: - description: The vnic type to be bound on the neutron port - type: string - status: SUPPORTED - required: false - constraints: - - valid_values: - - macvtap - - direct - - normal - value_specs: - description: Extra parameters to include in the request - type: map - status: SUPPORTED - entry_schema: - type: string - default: {} - required: false - device_owner: - description: Name of the network owning the port - type: string - status: SUPPORTED - required: false - network: - description: Network this port belongs to - type: string - status: SUPPORTED - required: false - replacement_policy: - description: Policy on how to respond to a stack-update for this resource - type: string - status: SUPPORTED - default: AUTO - required: false - constraints: - - valid_values: - - REPLACE_ALWAYS - - AUTO - security_groups: - description: List of security group names or IDs - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - fixed_ips: - description: Desired IPs for this port - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.neutron.port.FixedIps - required: false - mac_address: - description: MAC address to give to this port - type: string - status: SUPPORTED - required: false - admin_state_up: - description: A boolean value specifying the administrative status of the network - type: boolean - status: SUPPORTED - default: true - required: false - name: - description: A symbolic name for this port - type: string - status: SUPPORTED - required: false - attributes: - tenant_id: - description: Tenant owning the port - type: string - status: SUPPORTED - network_id: - description: Unique identifier for the network owning the port - type: string - status: SUPPORTED - qos_policy_id: - description: The QoS policy ID attached to this network - type: string - status: SUPPORTED - show: - description: Detailed information about resource - type: string - status: SUPPORTED - subnets: - description: Subnets of this network - type: list - status: SUPPORTED - entry_schema: - type: string - status: - description: The status of the network - type: string - status: SUPPORTED - capabilities: - attachment: - type: tosca.capabilities.Attachment - occurrences: - - 1 - - UNBOUNDED - binding: - type: tosca.capabilities.network.Bindable - occurrences: - - 0 - - UNBOUNDED - valid_source_types: - - org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface - - org.openecomp.resource.cp.nodes.heat.network.v2.contrailV2.VLANSubInterface - - org.openecomp.resource.vl.nodes.heat.network.neutron.Net: - derived_from: org.openecomp.resource.vl.nodes.network.Network - properties: - dhcp_agent_ids: - description: The IDs of the DHCP agent to schedule the network - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - tenant_id: - description: The ID of the tenant which will own the network - type: string - status: SUPPORTED - required: false - port_security_enabled: - description: Flag to enable/disable port security on the network - type: boolean - status: SUPPORTED - required: false - shared: - description: Whether this network should be shared across all tenants - type: boolean - status: SUPPORTED - default: false - required: false - admin_state_up: - description: A boolean value specifying the administrative status of the network - type: boolean - status: SUPPORTED - default: true - required: false - qos_policy: - description: The name or ID of QoS policy to attach to this network - type: string - status: SUPPORTED - required: false - subnets: - description: Network related subnets - type: map - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.neutron.Subnet - required: false - value_specs: - description: Extra parameters to include in the request - type: map - status: SUPPORTED - entry_schema: - type: string - default: {} - required: false - attributes: - qos_policy_id: - description: The QoS policy ID attached to this network - type: string - status: SUPPORTED - show: - description: Detailed information about resource - type: string - status: SUPPORTED - subnets_name: - description: Subnets name of this network - type: list - status: SUPPORTED - entry_schema: - type: string - subnets: - description: Network related subnets - type: map - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.neutron.Subnet - mtu: - description: The maximum transmission unit size(in bytes) for the network - type: scalar-unit.size - status: SUPPORTED - status: - description: The status of the network - type: string - status: SUPPORTED - capabilities: - attachment: - type: tosca.capabilities.Attachment - occurrences: - - 1 - - UNBOUNDED - - org.openecomp.resource.cp.nodes.heat.network.contrail.Port: - derived_from: org.openecomp.resource.cp.nodes.network.Port - properties: - static_routes: - description: An ordered list of static routes to be added to this interface - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.contrail.port.StaticRoute - required: false - virtual_network: - description: Virtual Network for this interface - type: string - status: SUPPORTED - required: true - static_route: - description: Static route enabled - type: boolean - status: SUPPORTED - default: false - required: false - allowed_address_pairs: - description: List of allowed address pair for this interface - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.contrail.AddressPair - required: false - shared_ip: - description: Shared ip enabled - type: boolean - status: SUPPORTED - default: false - required: false - ip_address: - description: IP for this interface - type: string - status: SUPPORTED - required: false - interface_type: - description: Interface type - type: string - status: SUPPORTED - required: true - constraints: - - valid_values: - - management - - left - - right - - other - attributes: - fq_name: - description: fq_name - type: string - status: SUPPORTED - - org.openecomp.resource.vfc.nodes.heat.contrail.Compute: - derived_from: org.openecomp.resource.vfc.nodes.Compute - properties: - flavor: - description: flavor - type: string - status: SUPPORTED - required: false - image_name: - description: Image name - type: string - status: SUPPORTED - required: true - availability_zone: - description: Availability zone to create servers in - type: string - status: SUPPORTED - required: false - service_type: - description: Service type - type: string - status: SUPPORTED - required: true - constraints: - - valid_values: - - firewall - - analyzer - - source-nat - - loadbalancer - availability_zone_enable: - description: Indicates availability zone is enabled - type: boolean - status: SUPPORTED - default: false - required: false - service_template_name: - description: Service template name - type: string - status: SUPPORTED - required: false - service_instance_name: - description: Service instance name - type: string - status: SUPPORTED - required: true - service_mode: - description: Service mode - type: string - status: SUPPORTED - required: true - constraints: - - valid_values: - - transparent - - in-network - - in-network-nat - attributes: - tenant_id: - description: Tenant id of the VM - type: string - status: SUPPORTED - fq_name: - description: fq_name - type: string - status: SUPPORTED - show: - description: All attributes - type: string - status: SUPPORTED - active_vms: - description: Number of active VMs - type: string - status: SUPPORTED - virtual_machines: - description: VMs of this compute - type: string - status: SUPPORTED - status: - description: status of the compute - type: string - status: SUPPORTED - - org.openecomp.resource.cp.nodes.heat.network.v2.contrailV2.VLANSubInterface: - derived_from: org.openecomp.resource.cp.nodes.network.v2.SubInterface - properties: - virtual_machine_interface_refs: - description: List of virtual machine interface. - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - name: - description: Virtual Machine Sub Interface VLAN name - type: string - status: SUPPORTED - required: false - virtual_network_refs: - description: List of virtual networks. - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - virtual_machine_interface_properties: - description: virtual machine interface properties. - type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.Properties - status: SUPPORTED - required: false - virtual_machine_interface_allowed_address_pairs: - description: Virtual Machine Sub Interface allowed address pairs. - type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPairs - status: SUPPORTED - required: false - virtual_machine_interface_mac_addresses: - description: List of mac addresses. - type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.MacAddress - status: SUPPORTED - required: false - security_group_refs: - description: List of security groups. - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - port_tuple_refs: - description: List of port tuples. - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - attributes: - fq_name: - description: The FQ name of the Virtual Network. - type: string - status: SUPPORTED - show: - description: All attributes. - type: string - status: SUPPORTED - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: org.openecomp.resource.cp.nodes.network.Port - relationship: tosca.relationships.network.BindsTo - occurrences: - - 1 - - 1 - - org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface: - derived_from: org.openecomp.resource.cp.nodes.network.SubInterface - properties: - virtual_machine_interface_refs: - description: List of virtual machine interface. - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - name: - description: Virtual Machine Sub Interface VLAN name - type: string - status: SUPPORTED - required: false - virtual_network_refs: - description: List of virtual networks. - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - virtual_machine_interface_properties: - description: virtual machine interface properties. - type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.Properties - status: SUPPORTED - required: false - virtual_machine_interface_allowed_address_pairs: - description: Virtual Machine Sub Interface allowed address pairs. - type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPairs - status: SUPPORTED - required: false - virtual_machine_interface_mac_addresses: - description: List of mac addresses. - type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.MacAddress - status: SUPPORTED - required: false - security_group_refs: - description: List of security groups. - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - port_tuple_refs: - description: List of port tuples. - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - attributes: - fq_name: - description: The FQ name of the Virtual Network. - type: string - status: SUPPORTED - show: - description: All attributes. - type: string - status: SUPPORTED - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: org.openecomp.resource.cp.nodes.network.Port - relationship: tosca.relationships.network.BindsTo - occurrences: - - 1 - - 1 - - org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork: - derived_from: org.openecomp.resource.vl.nodes.network.Network - properties: - network_ipam_refs_data: - description: IPAM references Data - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.IpamRefData - required: false - network_policy_refs_data: - description: Policy references data - type: list - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.RefData - required: false - network_ipam_refs: - description: IPAM references - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - network_policy_refs: - description: Policy references - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - subnets: - description: Network related subnets - type: map - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.neutron.Subnet - required: false - attributes: - fq_name: - description: fq_name - type: string - status: SUPPORTED - subnets_name: - description: Subnets name of this network - type: list - status: SUPPORTED - entry_schema: - type: string - subnets_show: - description: Detailed information about each subnet - type: map - status: SUPPORTED - entry_schema: - type: string - subnets: - description: Network related subnets - type: map - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.neutron.Subnet - capabilities: - attachment: - type: tosca.capabilities.Attachment - occurrences: - - 1 - - UNBOUNDED - - org.openecomp.resource.vfc.nodes.heat.cinder.Volume: - derived_from: org.openecomp.resource.vfc.nodes.volume - properties: - availability_zone: - description: The availability zone in which the volume will be created - type: string - status: SUPPORTED - required: false - image: - description: If specified, the name or ID of the image to create the volume from - type: string - status: SUPPORTED - required: false - metadata: - description: Key/value pairs to associate with the volume - type: map - status: SUPPORTED - entry_schema: - type: string - required: false - volume_type: - description: If specified, the type of volume to use, mapping to a specific backend - type: string - status: SUPPORTED - required: false - description: - description: A description of the volume - type: string - status: SUPPORTED - required: false - device_type: - description: Device type - type: string - status: SUPPORTED - required: false - constraints: - - valid_values: - - cdrom - - disk - disk_bus: - description: 'Bus of the device: hypervisor driver chooses a suitable default - if omitted' - type: string - status: SUPPORTED - required: false - constraints: - - valid_values: - - ide - - lame_bus - - scsi - - usb - - virtio - backup_id: - description: If specified, the backup to create the volume from - type: string - status: SUPPORTED - required: false - source_volid: - description: If specified, the volume to use as source - type: string - status: SUPPORTED - required: false - boot_index: - description: Integer used for ordering the boot disks - type: integer - status: SUPPORTED - required: false - size: - description: The requested storage size (default unit is MB) - type: scalar-unit.size - status: SUPPORTED - required: false - constraints: - - greater_or_equal: 1 GB - read_only: - description: Enables or disables read-only access mode of volume - type: boolean - status: SUPPORTED - required: false - name: - description: A name used to distinguish the volume - type: string - status: SUPPORTED - required: false - scheduler_hints: - description: Arbitrary key-value pairs specified by the client to help the Cinder scheduler creating a volume - type: map - status: SUPPORTED - entry_schema: - type: string - required: false - swap_size: - description: The size of the swap, in MB - type: scalar-unit.size - status: SUPPORTED - required: false - delete_on_termination: - description: Indicate whether the volume should be deleted when the server is terminated - type: boolean - status: SUPPORTED - required: false - multiattach: - description: Whether allow the volume to be attached more than once - type: boolean - status: SUPPORTED - required: false - attributes: - display_description: - description: Description of the volume - type: string - status: SUPPORTED - attachments: - description: The list of attachments of the volume - type: string - status: SUPPORTED - entry_schema: - type: string - encrypted: - description: Boolean indicating if the volume is encrypted or not - type: boolean - status: SUPPORTED - show: - description: Detailed information about resource - type: string - status: SUPPORTED - created_at: - description: The timestamp indicating volume creation - type: timestamp - status: SUPPORTED - display_name: - description: Name of the volume - type: string - status: SUPPORTED - metadata_values: - description: Key/value pairs associated with the volume in raw dict form - type: map - status: SUPPORTED - entry_schema: - type: string - bootable: - description: Boolean indicating if the volume can be booted or not - type: boolean - status: SUPPORTED - status: - description: The current status of the volume - type: string - status: SUPPORTED diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/_index.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/_index.yml deleted file mode 100644 index 244a048653..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/_index.yml +++ /dev/null @@ -1,31 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: openecomp-inventory/_index.yml - version: '1.0' - -imports: -- openecomp_index: - file: ../openecomp/_index.yml -- nodes: - file: nodes.yml -- capabilities: - file: capabilities.yml -- data: - file: data.yml -- relationships: - file: relationships.yml \ No newline at end of file diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/capabilities.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/capabilities.yml deleted file mode 100644 index 823e131761..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/capabilities.yml +++ /dev/null @@ -1,85 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: openecomp-inventory/capabilities.yml - version: '1.0' - -imports: -- inventory_index: - file: _index.yml - -capability_types: - - org.openecomp.capabilities.inventory.Multiuse: - derived_from: tosca.capabilities.Node - description: Auto-generated from OXM. - - org.openecomp.capabilities.inventory.Bindable: - derived_from: tosca.capabilities.Node - description: Auto-generated from OXM. - - org.openecomp.capabilities.inventory.Composite: - derived_from: tosca.capabilities.Node - description: Auto-generated from OXM. - - org.openecomp.capabilities.inventory.Belonging: - derived_from: tosca.capabilities.Node - description: Auto-generated from OXM. - - org.openecomp.capabilities.inventory.Attachment: - derived_from: tosca.capabilities.Node - description: Auto-generated from OXM. - - org.openecomp.capabilities.inventory.Applicable: - derived_from: tosca.capabilities.Node - description: Auto-generated from OXM. - - org.openecomp.capabilities.inventory.Existable: - derived_from: tosca.capabilities.Node - description: Auto-generated from OXM. - - org.openecomp.capabilities.inventory.Locates: - derived_from: tosca.capabilities.Node - description: Auto-generated from OXM. - - org.openecomp.capabilities.inventory.Linkable: - derived_from: tosca.capabilities.Node - description: Auto-generated from OXM. - - org.openecomp.capabilities.inventory.Node: - derived_from: tosca.capabilities.Node - description: Auto-generated from OXM. - - org.openecomp.capabilities.inventory.Container: - derived_from: tosca.capabilities.Node - description: Auto-generated from OXM. - - org.openecomp.capabilities.inventory.Composeable: - derived_from: tosca.capabilities.Node - description: Auto-generated from OXM. - - org.openecomp.capabilities.inventory.Allot: - derived_from: tosca.capabilities.Node - description: Auto-generated from OXM. - - org.openecomp.capabilities.inventory.Origin: - derived_from: tosca.capabilities.Node - description: Auto-generated from OXM. - - org.openecomp.capabilities.inventory.Bridgeable: - derived_from: tosca.capabilities.Node - description: Auto-generated from OXM. diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/data.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/data.yml deleted file mode 100644 index 4bbd1335af..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/data.yml +++ /dev/null @@ -1,209 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: openecomp-inventory/data.yml - version: '1.0' - -imports: -- inventory_index: - file: _index.yml - - -data_types: - - org.openecomp.datatypes.inventory.CloudInfrastructure: - description: Namespace for cloud infrastructure. - attributes: - complexes: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.cloud.infrastructure.Complex - annotations: - max_query_depth: 0 - cloud_regions: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion - annotations: - max_query_depth: 0 - network_profiles: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.cloud.infrastructure.NetworkProfile - pservers: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.cloud.infrastructure.Pserver - annotations: - max_query_depth: 0 - virtual_data_centers: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.cloud.infrastructure.VirtualDataCenter - - org.openecomp.datatypes.inventory.RelatedToProperty: - attributes: - property_key: - description: Key part of a key/value pair - type: string - property_value: - description: Value part of a key/value pair - type: string - - org.openecomp.datatypes.inventory.Network: - description: Namespace for network inventory resources. - attributes: - logical_links: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.network.LogicalLink - site_pair_sets: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.network.SitePairSet - vpn_bindings: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.network.VpnBinding - vpls_pes: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.network.VplsPe - multicast_configurations: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.network.MulticastConfiguration - vces: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.network.Vce - vpes: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.network.Vpe - vnfcs: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.network.Vnfc - l3_networks: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.network.L3Network - network_policies: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.network.NetworkPolicy - generic_vnfs: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.network.GenericVnf - annotations: - max_query_depth: 0 - lag_links: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.network.LagLink - newvces: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.network.Newvce - pnfs: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.network.Pnf - annotations: - max_query_depth: 0 - physical_links: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.network.PhysicalLink - annotations: - max_query_depth: 0 - ipsec_configurations: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.network.IpsecConfiguration - route_table_references: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.network.RouteTableReference - instance_groups: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.network.InstanceGroup - zones: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.network.Zone - - org.openecomp.datatypes.inventory.Relationship: - attributes: - related_to: - description: A keyword provided by A&AI to indicate type of node. - type: string - related_link: - description: URL to the object in A&AI. - type: string - relationship_data: - type: org.openecomp.datatypes.inventory.RelationshipData - occurrences: - - 0 - - UNBOUNDED - related_to_property: - type: org.openecomp.datatypes.inventory.RelatedToProperty - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.datatypes.inventory.Business: - description: Namespace for business related constructs - attributes: - connectors: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.business.Connector - customers: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.business.Customer - annotations: - max_query_depth: 0 - - org.openecomp.datatypes.inventory.AzAndDvsSwitches: - attributes: - dvs_switches: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.DvsSwitch - availability_zone: - type: org.openecomp.nodes.inventory.AvailabilityZone - - org.openecomp.datatypes.inventory.RelationshipData: - attributes: - relationship_key: - description: A keyword provided by A&AI to indicate an attribute. - type: string - relationship_value: - description: Value of the attribute. - type: string - - org.openecomp.datatypes.inventory.LicenseManagement: - attributes: - license_key_resources: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.license.management.LicenseKeyResource diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/nodes.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/nodes.yml deleted file mode 100644 index 19db291648..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/nodes.yml +++ /dev/null @@ -1,5148 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: openecomp-inventory/nodes.yml - version: '1.0' - -imports: -- inventory_index: - file: _index.yml - -node_types: - - org.openecomp.nodes.inventory.LagInterface: - description: Link aggregate interface - attributes: - interface_name: - description: Name that identifies the link aggregate interface - type: string - annotations: - primary_id: true - index: - - inventory - interface_description: - description: Human friendly text regarding this interface. - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - speed_value: - description: Captures the numeric part of the speed - type: string - speed_units: - description: Captures the units corresponding to the speed - type: string - interface_id: - description: ID of interface - type: string - annotations: - index: - - inventory - interface_role: - description: Role assigned to this Interface, should use values as defined in OPENECOMP Yang models. - type: string - annotations: - index: - - inventory - prov_status: - description: Trigger for operational monitoring of this resource by Service Assurance systems. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - l_interfaces: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.LInterface - capabilities: - l_interface: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.LInterface - requirements: - - generic_vnf: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.network.GenericVnf - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - lag_link: - capability: tosca.capabilities.network.Linkable - node: org.openecomp.nodes.inventory.network.LagLink - relationship: tosca.relationships.network.LinksTo - occurrences: - - 0 - - UNBOUNDED - - p_interface: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.PInterface - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - pnf: - capability: tosca.capabilities.network.Bindable - node: org.openecomp.nodes.inventory.network.Pnf - relationship: tosca.relationships.network.BindsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - pserver: - capability: tosca.capabilities.network.Bindable - node: org.openecomp.nodes.inventory.cloud.infrastructure.Pserver - relationship: tosca.relationships.network.BindsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - vpe: - capability: tosca.capabilities.network.Bindable - node: org.openecomp.nodes.inventory.network.Vpe - relationship: tosca.relationships.network.BindsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - vpls_pe: - capability: tosca.capabilities.network.Bindable - node: org.openecomp.nodes.inventory.network.VplsPe - relationship: tosca.relationships.network.BindsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.cloud.infrastructure.VirtualDataCenter: - description: Virtual organization of cloud infrastructure elements in a data center context - attributes: - vdc_id: - description: Unique ID of the vdc - type: string - annotations: - primary_id: true - index: - - inventory - vdc_name: - description: Name of the virtual data center - type: string - annotations: - index: - - inventory - summary_property: true - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - connector: - type: org.openecomp.capabilities.inventory.Existable - valid_source_types: - - org.openecomp.nodes.inventory.business.Connector - generic_vnf: - type: org.openecomp.capabilities.inventory.Existable - valid_source_types: - - org.openecomp.nodes.inventory.network.GenericVnf - logical_link: - type: org.openecomp.capabilities.inventory.Existable - valid_source_types: - - org.openecomp.nodes.inventory.network.LogicalLink - - org.openecomp.nodes.inventory.network.Pnf: - description: PNF represents a physical network function. typically equipment used in the D1 world. in 1607, this will be populated by SDN-C to represent a premises router that a uCPE connects to. But this can be used to represent any physical device that is not an OPENECOMP node or uCPE. - attributes: - pnf_name: - description: unique name of Physical Network Function. - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - search: - - inventory - pnf_name2: - description: name of Physical Network Function. - type: string - pnf_name2_source: - description: source of name2 - type: string - pnf_id: - description: id of pnf - type: string - equip_type: - description: Equipment type. Source of truth should define valid values. - type: string - equip_vendor: - description: Equipment vendor. Source of truth should define valid values. - type: string - equip_model: - description: Equipment model. Source of truth should define valid values. - type: string - management_option: - description: identifier of managed by OPENECOMP or customer - type: string - ipaddress_v4_oam: - description: ipv4-oam-address with new naming convention for IP addresses - type: string - sw_version: - description: sw-version is the version of SW for the hosted application on the PNF. - type: string - in_maint: - description: Used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs. - type: boolean - frame_id: - description: ID of the physical frame (relay rack) where pnf is installed. - type: string - serial_number: - description: Serial number of the device - type: string - ipaddress_v4_loopback_0: - description: IPV4 Loopback 0 address - type: string - ipaddress_v6_loopback_0: - description: IPV6 Loopback 0 address - type: string - ipaddress_v4_aim: - description: IPV4 AIM address - type: string - ipaddress_v6_aim: - description: IPV6 AIM address - type: string - ipaddress_v6_oam: - description: IPV6 OAM address - type: string - inv_status: - description: CANOPI's inventory status. Only set with values exactly as defined by CANOPI. - type: string - annotations: - index: - - inventory - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - prov_status: - description: Prov Status of this device (not under canopi control) Valid values [PREPROV/NVTPROV/PROV] - type: string - nf_role: - description: Nf Role is the role performed by this instance in the network. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - p_interfaces: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.PInterface - lag_interfaces: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.LagInterface - capabilities: - logical_link: - type: org.openecomp.capabilities.inventory.Bridgeable - valid_source_types: - - org.openecomp.nodes.inventory.network.LogicalLink - lag_interface: - type: org.openecomp.capabilities.inventory.Bindable - valid_source_types: - - org.openecomp.nodes.inventory.LagInterface - p_interface: - type: org.openecomp.capabilities.inventory.Bindable - valid_source_types: - - org.openecomp.nodes.inventory.PInterface - service_instance: - type: org.openecomp.capabilities.inventory.Composeable - valid_source_types: - - org.openecomp.nodes.inventory.ServiceInstance - requirements: - - complex: - capability: org.openecomp.capabilities.inventory.Locates - node: org.openecomp.nodes.inventory.cloud.infrastructure.Complex - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - - instance_group: - capability: org.openecomp.capabilities.inventory.Composite - node: org.openecomp.nodes.inventory.network.InstanceGroup - relationship: org.openecomp.relationships.inventory.MemberOf - occurrences: - - 0 - - UNBOUNDED - - zone: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.network.Zone - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - - org.openecomp.nodes.inventory.network.InstanceGroup: - description: General mechanism for grouping instances - attributes: - id: - description: Instance Group ID, UUID assigned to this instance. - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - description: - description: Descriptive text to help identify the usage of this instance-group - type: string - annotations: - index: - - inventory - summary_property: true - type: - description: Only valid value today is lower case ha for high availability - type: string - annotations: - index: - - inventory - sub_type: - description: Valid values for ha type are [geo-activeactive, geo-activestandby, local-activeactive, local-activestandby] - type: string - annotations: - index: - - inventory - resource_version: - description: Concurrency value - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - allotted_resource: - type: org.openecomp.capabilities.inventory.Composite - valid_source_types: - - org.openecomp.nodes.inventory.AllottedResource - generic_vnf: - type: org.openecomp.capabilities.inventory.Composite - valid_source_types: - - org.openecomp.nodes.inventory.network.GenericVnf - pnf: - type: org.openecomp.capabilities.inventory.Composite - valid_source_types: - - org.openecomp.nodes.inventory.network.Pnf - service_instance: - type: org.openecomp.capabilities.inventory.Composite - valid_source_types: - - org.openecomp.nodes.inventory.ServiceInstance - - org.openecomp.nodes.inventory.LInterface: - description: Logical interfaces, e.g., a vnic. - attributes: - interface_name: - description: Name given to the interface - type: string - annotations: - primary_id: true - index: - - inventory - interface_role: - description: E.g., CUSTOMER, UPLINK, etc. - type: string - v6_wan_link_ip: - description: Questionably placed - v6 ip addr of this interface (is in vr-lan-interface from Mary B. - type: string - selflink: - description: URL to endpoint where AAI can get more details - type: string - interface_id: - description: ID of interface - type: string - annotations: - index: - - inventory - macaddr: - description: MAC address for the interface - type: string - annotations: - index: - - inventory - network_name: - description: Name of the network - type: string - annotations: - index: - - inventory - management_option: - description: Whether A&AI should be managing this interface of not. Could have value like CUSTOMER - type: string - interface_description: - description: Human friendly text regarding this interface. - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - vlans: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.Vlan - sriov_vfs: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.SriovVf - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - l3_interface_ipv4_address_list: - type: org.openecomp.nodes.inventory.L3InterfaceIpv4AddressList - occurrences: - - 0 - - UNBOUNDED - l3_interface_ipv6_address_list: - type: org.openecomp.nodes.inventory.L3InterfaceIpv6AddressList - occurrences: - - 0 - - UNBOUNDED - capabilities: - l3_interface_ipv4_address_list: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.L3InterfaceIpv4AddressList - l3_interface_ipv6_address_list: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.L3InterfaceIpv6AddressList - sriov_vf: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.SriovVf - requirements: - - generic_vnf: - capability: tosca.capabilities.network.Bindable - node: org.openecomp.nodes.inventory.network.GenericVnf - relationship: tosca.relationships.network.BindsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - lag_interface: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.LagInterface - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - linking: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - occurrences: - - 0 - - UNBOUNDED - - newvce: - capability: tosca.capabilities.network.Bindable - node: org.openecomp.nodes.inventory.network.Newvce - relationship: tosca.relationships.network.BindsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - p_interface: - capability: tosca.capabilities.network.Bindable - node: org.openecomp.nodes.inventory.PInterface - relationship: tosca.relationships.network.BindsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - vpe: - capability: tosca.capabilities.network.Bindable - node: org.openecomp.nodes.inventory.network.Vpe - relationship: tosca.relationships.network.BindsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - vserver: - capability: tosca.capabilities.network.Bindable - node: org.openecomp.nodes.inventory.Vserver - relationship: tosca.relationships.network.BindsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.Vlan: - description: Definition of vlan - attributes: - vlan_interface: - description: String that identifies the interface - type: string - annotations: - primary_id: true - index: - - inventory - vlan_id_inner: - description: Inner VLAN tag - type: long - annotations: - index: - - inventory - vlan_id_outer: - description: Outer VLAN tag - type: long - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - speed_value: - description: Captures the numeric part of the speed - type: string - speed_units: - description: Captures the units corresponding to the speed - type: string - vlan_description: - description: Used to describe (the service associated with) the vlan - type: string - backdoor_connection: - description: Whether customer is going to use this VLAN for backdoor connection to another customer premise device. - type: string - vpn_id: - description: This indicates the customers VPN ID associated with this vlan - type: string - annotations: - unique: - - inventory - index: - - inventory - orchestration_status: - description: Status of a vnf's vlan interface, on which the customer circuit resides, mastered by SDN-C. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - l3_interface_ipv4_address_list: - type: org.openecomp.nodes.inventory.L3InterfaceIpv4AddressList - occurrences: - - 0 - - UNBOUNDED - l3_interface_ipv6_address_list: - type: org.openecomp.nodes.inventory.L3InterfaceIpv6AddressList - occurrences: - - 0 - - UNBOUNDED - capabilities: - allotted_resource: - type: org.openecomp.capabilities.inventory.Allot - valid_source_types: - - org.openecomp.nodes.inventory.AllottedResource - l_interface: - type: org.openecomp.capabilities.inventory.Linkable - valid_source_types: - - org.openecomp.nodes.inventory.LInterface - service_instance: - type: org.openecomp.capabilities.inventory.Composeable - valid_source_types: - - org.openecomp.nodes.inventory.ServiceInstance - l3_interface_ipv4_address_list: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.L3InterfaceIpv4AddressList - l3_interface_ipv6_address_list: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.L3InterfaceIpv6AddressList - requirements: - - logical_link: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.network.LogicalLink - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - multicast_configuration: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.network.MulticastConfiguration - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.nodes.inventory.Vserver: - description: Virtual Servers, aka virtual machine or VM. - attributes: - vserver_id: - description: Unique identifier for this vserver relative to its tenant - type: string - annotations: - primary_id: true - index: - - inventory - search: - - inventory - vserver_name: - description: Name of vserver - type: string - annotations: - index: - - inventory - search: - - inventory - summary_property: true - vserver_name2: - description: Alternative name of vserver - type: string - annotations: - index: - - inventory - search: - - inventory - prov_status: - description: Trigger for operational monitoring of this resource by Service Assurance systems. - type: string - annotations: - index: - - inventory - vserver_selflink: - description: URL to endpoint where AAI can get more details - type: string - in_maint: - description: Used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs. - type: boolean - annotations: - index: - - inventory - is_closed_loop_disabled: - description: Used to indicate whether closed loop function is enabled on this node - type: boolean - annotations: - index: - - inventory - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - volumes: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.Volume - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - l_interfaces: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.LInterface - capabilities: - generic_vnf: - type: org.openecomp.capabilities.inventory.Container - valid_source_types: - - org.openecomp.nodes.inventory.network.GenericVnf - vce: - type: org.openecomp.capabilities.inventory.Container - valid_source_types: - - org.openecomp.nodes.inventory.network.Vce - vf_module: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.VfModule - vnfc: - type: org.openecomp.capabilities.inventory.Container - valid_source_types: - - org.openecomp.nodes.inventory.network.Vnfc - vpe: - type: org.openecomp.capabilities.inventory.Container - valid_source_types: - - org.openecomp.nodes.inventory.network.Vpe - l_interface: - type: org.openecomp.capabilities.inventory.Bindable - valid_source_types: - - org.openecomp.nodes.inventory.LInterface - requirements: - - tenant: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.Tenant - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - flavor: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.Flavor - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - 1 - - image: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.Image - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - 1 - - pserver: - capability: tosca.capabilities.Container - node: org.openecomp.nodes.inventory.cloud.infrastructure.Pserver - relationship: tosca.relationships.HostedOn - occurrences: - - 0 - - 1 - - snapshot: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.Snapshot - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - 1 - - volume: - capability: org.openecomp.capabilities.inventory.Attachment - node: org.openecomp.nodes.inventory.Volume - relationship: tosca.relationships.AttachesTo - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.nodes.inventory.VolumeGroup: - description: Persistent block-level storage. - attributes: - volume_group_id: - description: Unique ID of volume-group. - type: string - annotations: - primary_id: true - index: - - inventory - search: - - inventory - volume_group_name: - description: Name of the volume group. - type: string - annotations: - index: - - inventory - search: - - inventory - heat_stack_id: - description: Heat stack id corresponding to this volume-group - type: string - annotations: - index: - - inventory - vnf_type: - description: String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded in service-specific ways and clients should expect changes to occur in the future to this field as OPENECOMP matures. - type: string - annotations: - index: - - inventory - orchestration_status: - description: Orchestration status of this volume-group - type: string - persona_model_customization_id: - description: captures the id of all the configuration used to customize the resource for the service. - type: string - vf_module_persona_model_customization_id: - description: helps relate the volume group to the vf-module whose components will require the volume group - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - generic_vnf: - type: org.openecomp.capabilities.inventory.Node - valid_source_types: - - org.openecomp.nodes.inventory.network.GenericVnf - tenant: - type: org.openecomp.capabilities.inventory.Node - valid_source_types: - - org.openecomp.nodes.inventory.Tenant - vf_module: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.VfModule - requirements: - - cloud_region: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - complex: - capability: org.openecomp.capabilities.inventory.Existable - node: org.openecomp.nodes.inventory.cloud.infrastructure.Complex - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.nodes.inventory.network.IpsecConfiguration: - description: IPSec configuration node will contain various configuration data for the NMTE VNF. This node will have an edge to the generic-vnf (vnf type = TE). Starting 1607, this data will be populated by SDN-C - attributes: - ipsec_configuration_id: - description: UUID of this configuration - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - requested_vig_address_type: - description: Indicate the type of VIG server like AVPN, INTERNET, BOTH - type: string - requested_encryption_strength: - description: Encryption values like 3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc - type: string - requested_dmz_type: - description: OPENECOMP can offer a shared DMZ or a DMZ specific to a customer - type: string - shared_dmz_network_address: - description: Network address of shared DMZ - type: string - requested_customer_name: - description: If the DMZ is a custom DMZ, this field will indicate the customer information - type: string - ike_version: - description: can be 1 or 2 - type: string - ikev1_authentication: - description: Contains values like md5, sha1, sha256, sha384 - type: string - ikev1_encryption: - description: Encyption values like 3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc - type: string - ikev1_dh_group: - description: Diffie-Hellman group like DH-GROUP2, DH-GROUP5, DH-GROUP14 - type: string - ikev1_am_group_id: - description: Group name defined in VIG for clients using aggressive mode - type: string - ikev1_am_password: - description: 'pre-shared key for the above group name ' - type: string - ikev1_sa_lifetime: - description: Lifetime for IKEv1 SA - type: string - ipsec_authentication: - description: md5, sha1, sha256, sha384 - type: string - ipsec_encryption: - description: 3des-cbc, des-cbc, aes-128-cbc, aes-192-cbc, aes-265-cbc - type: string - ipsec_sa_lifetime: - description: Life time for IPSec SA - type: string - ipsec_pfs: - description: enable PFS or not - type: string - xauth_userid: - description: user ID for xAuth, sm-user,ucpeHostName,nmteHostName - type: string - xauth_user_password: - description: Encrypted using the Juniper $9$ algorithm - type: string - dpd_interval: - description: The time between DPD probe - type: string - dpd_frequency: - description: Maximum number of DPD before claiming the tunnel is down - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - vig_servers: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.VigServer - capabilities: - generic_vnf: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.network.GenericVnf - vig_server: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.VigServer - - org.openecomp.nodes.inventory.cloud.infrastructure.Pserver: - description: Compute host whose hostname must be unique and must exactly match what is sent as a relationship to a vserver. - attributes: - hostname: - description: Value from executing hostname on the compute node. - type: string - annotations: - primary_id: true - index: - - inventory - search: - - inventory - ptnii_equip_name: - description: PTNII name - type: string - number_of_cpus: - description: Number of cpus - type: integer - disk_in_gigabytes: - description: Disk size, in GBs - type: integer - ram_in_megabytes: - description: RAM size, in MBs - type: integer - equip_type: - description: Equipment type. Source of truth should define valid values. - type: string - equip_vendor: - description: Equipment vendor. Source of truth should define valid values. - type: string - equip_model: - description: Equipment model. Source of truth should define valid values. - type: string - fqdn: - description: Fully-qualified domain name - type: string - pserver_selflink: - description: URL to endpoint where AAI can get more details - type: string - ipv4_oam_address: - description: Used to configure device, also used for troubleshooting and is IP used for traps generated by device. - type: string - annotations: - search: - - inventory - serial_number: - description: Serial number, may be queried - type: string - ipaddress_v4_loopback_0: - description: IPV4 Loopback 0 address - type: string - ipaddress_v6_loopback_0: - description: IPV6 Loopback 0 address - type: string - ipaddress_v4_aim: - description: IPV4 AIM address - type: string - ipaddress_v6_aim: - description: IPV6 AIM address - type: string - ipaddress_v6_oam: - description: IPV6 OAM address - type: string - inv_status: - description: CANOPI's inventory status. Only set with values exactly as defined by CANOPI. - type: string - annotations: - index: - - inventory - pserver_id: - description: ID of Pserver - type: string - annotations: - index: - - inventory - search: - - inventory - internet_topology: - description: internet topology of Pserver - type: string - in_maint: - description: used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs. - type: boolean - annotations: - index: - - inventory - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - pserver_name2: - description: alternative pserver name - type: string - annotations: - index: - - inventory - search: - - inventory - summary_property: true - purpose: - description: purpose of pserver - type: string - prov_status: - description: Prov Status of this device (not under canopi control) Valid values [PREPROV/NVTPROV/PROV] - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - p_interfaces: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.PInterface - lag_interfaces: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.LagInterface - capabilities: - generic_vnf: - type: org.openecomp.capabilities.inventory.Container - valid_source_types: - - org.openecomp.nodes.inventory.network.GenericVnf - logical_link: - type: org.openecomp.capabilities.inventory.Bridgeable - valid_source_types: - - org.openecomp.nodes.inventory.network.LogicalLink - lag_interface: - type: org.openecomp.capabilities.inventory.Bindable - valid_source_types: - - org.openecomp.nodes.inventory.LagInterface - p_interface: - type: org.openecomp.capabilities.inventory.Bindable - valid_source_types: - - org.openecomp.nodes.inventory.PInterface - vserver: - type: org.openecomp.capabilities.inventory.Container - valid_source_types: - - org.openecomp.nodes.inventory.Vserver - requirements: - - availability_zone: - capability: org.openecomp.capabilities.inventory.Composite - node: org.openecomp.nodes.inventory.AvailabilityZone - relationship: org.openecomp.relationships.inventory.MemberOf - occurrences: - - 0 - - 1 - - cloud_region: - capability: org.openecomp.capabilities.inventory.Existable - node: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - - complex: - capability: org.openecomp.capabilities.inventory.Locates - node: org.openecomp.nodes.inventory.cloud.infrastructure.Complex - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - - group_assignment: - capability: org.openecomp.capabilities.inventory.Composite - node: org.openecomp.nodes.inventory.GroupAssignment - relationship: org.openecomp.relationships.inventory.MemberOf - occurrences: - - 0 - - 1 - - zone: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.network.Zone - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - - org.openecomp.nodes.inventory.SriovVf: - description: SR-IOV Virtual Function (not to be confused with virtual network function) - attributes: - pci_id: - description: PCI ID used to identify the sriov-vf - type: string - annotations: - primary_id: true - index: - - inventory - vf_vlan_filter: - description: This metadata provides option to specify list of VLAN filters applied on VF to pass the traffic to VM. - type: string - annotations: - index: - - inventory - vf_mac_filter: - description: When MAC filters are specified, VF-agent service configures VFs to do MAC level filtering before the traffic is passed to VM. - type: string - annotations: - index: - - inventory - vf_vlan_strip: - description: When this field is set to true, VF will configured to strip the outer TAG before the traffic is passed to VM. - type: boolean - annotations: - index: - - inventory - vf_vlan_anti_spoof_check: - description: This option ensures anti VLAN spoof checks are done at the VF level to comply with security. The disable check will also be honored per the VNF needs for trusted VMs. - type: boolean - vf_mac_anti_spoof_check: - description: This option ensures anti MAC spoof checks are done at the VF level to comply with security. The disable check will also be honored per the VNF needs for trusted VMs. - type: boolean - vf_mirrors: - description: This option defines the set of Mirror objects which essentially mirrors the traffic from source to set of collector VNF Ports. - type: string - vf_broadcast_allow: - description: This option, if set to true, sets the VF in promiscuous mode and allows all broadcast traffic to reach the VM - type: boolean - vf_unknown_multicast_allow: - description: This option, if set to true, sets the VF in promiscuous mode and allows unknown multicast traffic to reach the VM - type: boolean - vf_unknown_unicast_allow: - description: This option, if set to true, sets the VF in promiscuous mode and allows unknown unicast traffic to reach the VM - type: boolean - vf_insert_stag: - description: This option, if set to true, instructs to insert outer tag after traffic comes out of VM. - type: boolean - vf_link_status: - description: This option is used to set the link status. Valid values as of 1607 are on, off, and auto. - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - neutron_network_id: - description: Neutron network id of the interface - type: string - annotations: - index: - - inventory - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - requirements: - - l_interface: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.LInterface - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.AvailabilityZone: - description: Availability zone, a collection of compute hosts/pservers - attributes: - availability_zone_name: - description: Name of the availability zone. Unique across a cloud region - type: string - annotations: - primary_id: true - index: - - inventory - hypervisor_type: - description: Type of hypervisor. Source of truth should define valid values. - type: string - operational_state: - description: State that indicates whether the availability zone should be used, etc. Source of truth should define valid values. - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - ctag_pool: - type: org.openecomp.capabilities.inventory.Applicable - valid_source_types: - - org.openecomp.nodes.inventory.CtagPool - dvs_switch: - type: org.openecomp.capabilities.inventory.Applicable - valid_source_types: - - org.openecomp.nodes.inventory.DvsSwitch - generic_vnf: - type: org.openecomp.capabilities.inventory.Origin - valid_source_types: - - org.openecomp.nodes.inventory.network.GenericVnf - pserver: - type: org.openecomp.capabilities.inventory.Composite - valid_source_types: - - org.openecomp.nodes.inventory.cloud.infrastructure.Pserver - vce: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.network.Vce - requirements: - - complex: - capability: org.openecomp.capabilities.inventory.Existable - node: org.openecomp.nodes.inventory.cloud.infrastructure.Complex - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - UNBOUNDED - - cloud_region: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.ServiceInstance: - description: Instance of a service - attributes: - service_instance_id: - description: Uniquely identifies this instance of a service - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - search: - - inventory - service_instance_name: - description: This field will store a name assigned to the service-instance. - type: string - annotations: - index: - - inventory - search: - - inventory - summary_property: true - persona_model_id: - description: the ASDC model id for this resource or service model. - type: string - annotations: - index: - - inventory - persona_model_version: - description: the ASDC model version for this resource or service model. - type: string - annotations: - index: - - inventory - widget_model_id: - description: the ASDC data dictionary widget model. This maps directly to the A&AI widget. - type: string - annotations: - index: - - inventory - widget_model_version: - description: the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget. - type: string - annotations: - index: - - inventory - bandwidth_total: - description: Indicates the total bandwidth to be used for this service. - type: string - bandwidth_up_wan1: - description: indicates the upstream bandwidth this service will use on the WAN1 port of the physical device. - type: string - bandwidth_down_wan1: - description: indicates the downstream bandwidth this service will use on the WAN1 port of the physical device. - type: string - bandwidth_up_wan2: - description: indicates the upstream bandwidth this service will use on the WAN2 port of the physical device. - type: string - bandwidth_down_wan2: - description: indicates the downstream bandwidth this service will use on the WAN2 port of the physical device. - type: string - vhn_portal_url: - description: URL customers will use to access the vHN Portal. - type: string - operational_status: - description: Operational status of the service-instance. - type: string - service_instance_location_id: - description: An identifier that customers assign to the location where this service is being used. - type: string - annotations: - index: - - inventory - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - selflink: - description: Path to the controller object. - type: string - orchestration_status: - description: Orchestration status of this service. - type: string - annotations: - index: - - inventory - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - metadata: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.Metadatum - allotted_resources: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.AllottedResource - capabilities: - allotted_resource: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.AllottedResource - metadatum: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.Metadatum - service_instance: - type: org.openecomp.capabilities.inventory.Composeable - valid_source_types: - - org.openecomp.nodes.inventory.ServiceInstance - requirements: - - connector: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.business.Connector - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - ctag_assignment: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.CtagAssignment - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - cvlan_tag: - capability: org.openecomp.capabilities.inventory.Composeable - node: org.openecomp.nodes.inventory.CvlanTagEntry - relationship: org.openecomp.relationships.inventory.ComposedOf - occurrences: - - 0 - - UNBOUNDED - - generic_vnf: - capability: org.openecomp.capabilities.inventory.Composeable - node: org.openecomp.nodes.inventory.network.GenericVnf - relationship: org.openecomp.relationships.inventory.ComposedOf - occurrences: - - 0 - - UNBOUNDED - - instance_group: - capability: org.openecomp.capabilities.inventory.Composite - node: org.openecomp.nodes.inventory.network.InstanceGroup - relationship: org.openecomp.relationships.inventory.MemberOf - occurrences: - - 0 - - UNBOUNDED - - l3_network: - capability: org.openecomp.capabilities.inventory.Composeable - node: org.openecomp.nodes.inventory.network.L3Network - relationship: org.openecomp.relationships.inventory.ComposedOf - occurrences: - - 0 - - UNBOUNDED - - logical_link: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.network.LogicalLink - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - pnf: - capability: org.openecomp.capabilities.inventory.Composeable - node: org.openecomp.nodes.inventory.network.Pnf - relationship: org.openecomp.relationships.inventory.ComposedOf - occurrences: - - 0 - - UNBOUNDED - - service_instance: - capability: org.openecomp.capabilities.inventory.Composeable - node: org.openecomp.nodes.inventory.ServiceInstance - relationship: org.openecomp.relationships.inventory.ComposedOf - occurrences: - - 0 - - UNBOUNDED - - vce: - capability: org.openecomp.capabilities.inventory.Composeable - node: org.openecomp.nodes.inventory.network.Vce - relationship: org.openecomp.relationships.inventory.ComposedOf - occurrences: - - 0 - - UNBOUNDED - - vlan: - capability: org.openecomp.capabilities.inventory.Composeable - node: org.openecomp.nodes.inventory.Vlan - relationship: org.openecomp.relationships.inventory.ComposedOf - occurrences: - - 0 - - UNBOUNDED - - service_subscription: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.ServiceSubscription - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.network.Newvce: - description: This object fills in the gaps from vce that were incorporated into generic-vnf. This object will be retired with vce. - attributes: - vnf_id2: - description: Unique id of VNF, can't use same attribute name right now until we promote this new object - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - search: - - inventory - vnf_name: - description: Name of VNF. - type: string - annotations: - index: - - inventory - search: - - inventory - summary_property: true - vnf_name2: - description: Alternate name of VNF. - type: string - annotations: - index: - - inventory - search: - - inventory - vnf_type: - description: String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded in service-specific ways and clients should expect changes to occur in the future to this field as OPENECOMP matures. - type: string - annotations: - index: - - inventory - prov_status: - description: Trigger for operational monitoring of this VNF by BAU Service Assurance systems. - type: string - annotations: - index: - - inventory - operational_state: - description: Indicator for whether the resource is considered operational - type: string - license_key: - description: OBSOLETE - do not use - type: string - ipv4_oam_address: - description: Address tail-f uses to configure vpe, also used for troubleshooting and is IP used for traps generated by VPE (v4-loopback0-ip-address). - type: string - equipment_role: - description: Client should send valid enumerated value, e.g., VPE. - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - ipv4_loopback0_address: - description: v4 Loopback0 address - type: string - orchestration_status: - description: Orchestration status of this VNF, mastered by MSO. - type: string - heat_stack_id: - description: Heat stack id corresponding to this instance, managed by MSO - type: string - annotations: - index: - - inventory - mso_catalog_key: - description: Corresponds to the SDN-C catalog id used to configure this VCE - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - l_interfaces: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.LInterface - capabilities: - l_interface: - type: org.openecomp.capabilities.inventory.Bindable - valid_source_types: - - org.openecomp.nodes.inventory.LInterface - - org.openecomp.nodes.inventory.Flavor: - description: Openstack flavor. - attributes: - flavor_id: - description: Flavor id, expected to be unique across cloud-region. - type: string - annotations: - primary_id: true - index: - - inventory - flavor_name: - description: Flavor name - type: string - annotations: - index: - - inventory - summary_property: true - flavor_vcpus: - description: Number of CPUs - type: integer - flavor_ram: - description: Amount of memory - type: integer - flavor_disk: - description: Disk space - type: integer - flavor_ephemeral: - description: Amount of ephemeral disk space - type: integer - flavor_swap: - description: amount of swap space allocation - type: string - flavor_is_public: - description: whether flavor is available to all users or private to the tenant it was created in. - type: boolean - flavor_selflink: - description: URL to endpoint where AAI can get more details - type: string - flavor_disabled: - description: Boolean as to whether this flavor is no longer enabled - type: boolean - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - vserver: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.Vserver - requirements: - - cloud_region: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.DvsSwitch: - description: 'Digital virtual switch metadata, used by SDN-C to configure VCEs. A&AI - needs to receive this data from the PO deployment team and administer it using - the provisioningTool.sh into A&AI. ' - attributes: - switch_name: - description: DVS switch name - type: string - annotations: - primary_id: true - index: - - inventory - vcenter_url: - description: URL used to reach the vcenter - type: string - annotations: - index: - - inventory - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - requirements: - - cloud_region: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - availability_zone: - capability: org.openecomp.capabilities.inventory.Applicable - node: org.openecomp.nodes.inventory.AvailabilityZone - relationship: org.openecomp.relationships.inventory.AppliesTo - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.nodes.inventory.Entitlement: - description: Metadata for entitlement group. - attributes: - group_uuid: - description: Unique ID for the entitlement group the resource comes from, should be uuid. - type: string - annotations: - primary_id: true - index: - - inventory - resource_uuid: - description: 'Unique ID of an entitlement resource. ' - type: string - annotations: - primary_id: true - index: - - inventory - resource_version: - description: Concurrency value - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - requirements: - - generic_vnf: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.network.GenericVnf - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - vce: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.network.Vce - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - vpe: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.network.Vpe - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.PInterface: - description: Physical interface (e.g., nic) - attributes: - interface_name: - description: Name that identifies the physical interface - type: string - annotations: - primary_id: true - index: - - inventory - speed_value: - description: Captures the numeric part of the speed - type: string - speed_units: - description: Captures the units corresponding to the speed - type: string - port_description: - description: Nature of the services and connectivity on this port. - type: string - equipment_identifier: - description: CLEI or other specification for p-interface hardware. - type: string - interface_role: - description: Role specification for p-interface hardware. - type: string - interface_type: - description: Indicates the physical properties of the interface. - type: string - prov_status: - description: Trigger for operational monitoring of this resource by Service Assurance systems. - type: string - annotations: - index: - - inventory - summary_property: true - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - l_interfaces: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.LInterface - capabilities: - lag_interface: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.LagInterface - l_interface: - type: org.openecomp.capabilities.inventory.Bindable - valid_source_types: - - org.openecomp.nodes.inventory.LInterface - requirements: - - logical_link: - capability: tosca.capabilities.network.Linkable - node: org.openecomp.nodes.inventory.network.LogicalLink - relationship: tosca.relationships.network.LinksTo - occurrences: - - 0 - - 1 - - physical_link: - capability: tosca.capabilities.network.Linkable - node: org.openecomp.nodes.inventory.network.PhysicalLink - relationship: tosca.relationships.network.LinksTo - occurrences: - - 0 - - UNBOUNDED - - pnf: - capability: tosca.capabilities.network.Bindable - node: org.openecomp.nodes.inventory.network.Pnf - relationship: tosca.relationships.network.BindsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - pserver: - capability: tosca.capabilities.network.Bindable - node: org.openecomp.nodes.inventory.cloud.infrastructure.Pserver - relationship: tosca.relationships.network.BindsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - vpls_pe: - capability: tosca.capabilities.network.Bindable - node: org.openecomp.nodes.inventory.network.VplsPe - relationship: tosca.relationships.network.BindsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.network.LagLink: - description: LAG links can connect lag-interfaces - attributes: - link_name: - description: Alphabetical concatenation of lag-interface names - type: string - annotations: - primary_id: true - index: - - inventory - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - lag_interface: - type: org.openecomp.capabilities.inventory.Linkable - valid_source_types: - - org.openecomp.nodes.inventory.LagInterface - logical_link: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.network.LogicalLink - - org.openecomp.nodes.inventory.Volume: - description: Ephemeral Block storage volume. - attributes: - volume_id: - description: Unique ID of block storage volume relative to the vserver. - type: string - annotations: - primary_id: true - index: - - inventory - volume_selflink: - description: URL to endpoint where AAI can get more details - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - vserver: - type: org.openecomp.capabilities.inventory.Attachment - valid_source_types: - - org.openecomp.nodes.inventory.Vserver - - org.openecomp.nodes.inventory.network.Zone: - description: A zone is a grouping of assets in a location homing to the same connections into the CBB - attributes: - zone_id: - description: Code assigned by OPENECOMP to the zone - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - zone_name: - description: English name associated with the zone - type: string - annotations: - summary_property: true - design_type: - description: Design of zone [Medium/Large�] - type: string - annotations: - index: - - inventory - zone_context: - description: Context of zone [production/test] - type: string - annotations: - index: - - inventory - status: - description: Status of a zone. - type: string - resource_version: - description: Concurrency value - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - cloud_region: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion - pnf: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.network.Pnf - pserver: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.cloud.infrastructure.Pserver - requirements: - - complex: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.cloud.infrastructure.Complex - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - - org.openecomp.nodes.inventory.SegmentationAssignment: - description: Openstack segmentation assignment. - attributes: - segmentation_id: - description: Route Table Reference id, UUID assigned to this instance. - type: string - annotations: - primary_id: true - index: - - inventory - resource_version: - description: Concurrency value - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - requirements: - - l3_network: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.network.L3Network - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.SitePair: - attributes: - site_pair_id: - description: unique identifier of probe - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - source_ip: - description: Prefix address - type: string - destination_ip: - description: Prefix address - type: string - ip_version: - description: ip version, v4, v6 - type: string - destination_hostname: - description: Hostname of the destination equipment to which SLAs are measured against. - type: string - destination_equip_type: - description: The type of destinatination equipment. Could be Router, UCPE, etc. - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - classes_of_service: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.ClassOfService - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - class_of_service: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.ClassOfService - requirements: - - routing_instance: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.RoutingInstance - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.network.VplsPe: - description: VPLS Provider Edge routers. - attributes: - equipment_name: - type: string - annotations: - primary_id: true - index: - - inventory - prov_status: - description: Trigger for operational monitoring of this VNF by BAU Service Assurance systems. - type: string - annotations: - index: - - inventory - ipv4_oam_address: - description: Address tail-f uses to configure vpe, also used for troubleshooting and is IP used for traps generated by VPE (v4-loopback0-ip-address). - type: string - equipment_role: - description: Client should send valid enumerated value, e.g., VPLS-PE. - type: string - vlan_id_outer: - description: Temporary location for stag to get to VCE - type: long - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - p_interfaces: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.PInterface - lag_interfaces: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.LagInterface - capabilities: - lag_interface: - type: org.openecomp.capabilities.inventory.Bindable - valid_source_types: - - org.openecomp.nodes.inventory.LagInterface - p_interface: - type: org.openecomp.capabilities.inventory.Bindable - valid_source_types: - - org.openecomp.nodes.inventory.PInterface - requirements: - - complex: - capability: org.openecomp.capabilities.inventory.Locates - node: org.openecomp.nodes.inventory.cloud.infrastructure.Complex - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - UNBOUNDED - - ctag_pool: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.CtagPool - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.nodes.inventory.Subnet: - attributes: - subnet_id: - description: Subnet ID, should be UUID. - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - subnet_name: - description: Name associated with the subnet. - type: string - annotations: - index: - - inventory - summary_property: true - neutron_subnet_id: - description: Neutron id of this subnet - type: string - gateway_address: - description: gateway ip address - type: string - network_start_address: - description: network start address - type: string - cidr_mask: - description: cidr mask - type: string - ip_version: - description: ip version - type: string - orchestration_status: - description: Orchestration status of this VNF, mastered by MSO - type: string - dhcp_enabled: - description: dhcp enabled - type: boolean - dhcp_start: - description: the start address reserved for use by dhcp - type: string - dhcp_end: - description: the last address reserved for use by dhcp - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - l3_interface_ipv4_address_list: - type: org.openecomp.capabilities.inventory.Composite - valid_source_types: - - org.openecomp.nodes.inventory.L3InterfaceIpv4AddressList - l3_interface_ipv6_address_list: - type: org.openecomp.capabilities.inventory.Composite - valid_source_types: - - org.openecomp.nodes.inventory.L3InterfaceIpv6AddressList - requirements: - - l3_network: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.network.L3Network - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.service.design.and.creation.VnfImage: - description: Image object that pertain to a VNF that doesn't have associated vservers. This is a kludge. - attributes: - att_uuid: - description: Unique ID of this asset - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - application: - description: The application that the image instantiates. - type: string - annotations: - index: - - inventory - application_vendor: - description: The vendor of the application. - type: string - annotations: - index: - - inventory - application_version: - description: The version of the application. - type: string - annotations: - index: - - inventory - selflink: - description: URL to endpoint where AAI can get more details - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - generic_vnf: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.network.GenericVnf - - org.openecomp.nodes.inventory.network.RouteTableReference: - description: Openstack route table reference. - attributes: - route_table_reference_id: - description: Route Table Reference id, UUID assigned to this instance. - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - route_table_reference_fqdn: - description: FQDN entry in the route table. - type: string - annotations: - index: - - inventory - summary_property: true - resource_version: - description: Concurrency value - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - l3_network: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.network.L3Network - - org.openecomp.nodes.inventory.License: - description: Metadata for license group. - attributes: - group_uuid: - description: Unique ID for the license group the resource belongs to, should be uuid. - type: string - annotations: - primary_id: true - index: - - inventory - resource_uuid: - description: 'Unique ID of a license resource. ' - type: string - annotations: - primary_id: true - index: - - inventory - resource_version: - description: Concurrency value - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - requirements: - - generic_vnf: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.network.GenericVnf - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - vce: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.network.Vce - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - vpe: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.network.Vpe - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.GroupAssignment: - description: Openstack group-assignment used to store exclusivity groups (EG). - attributes: - group_id: - description: Group id, expected to be unique across cloud-region. - type: string - annotations: - primary_id: true - index: - - inventory - group_type: - description: Group type - the type of group this instance refers to - type: string - annotations: - index: - - inventory - group_name: - description: Group name - name assigned to the group - type: string - annotations: - index: - - inventory - summary_property: true - group_description: - description: Group description - description of the group - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - pserver: - type: org.openecomp.capabilities.inventory.Composite - valid_source_types: - - org.openecomp.nodes.inventory.cloud.infrastructure.Pserver - tenant: - type: org.openecomp.capabilities.inventory.Composite - valid_source_types: - - org.openecomp.nodes.inventory.Tenant - requirements: - - cloud_region: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.VfModule: - description: a deployment unit of VNFCs - attributes: - vf_module_id: - description: Unique ID of vf-module. - type: string - annotations: - primary_id: true - index: - - inventory - search: - - inventory - vf_module_name: - description: Name of vf-module - type: string - annotations: - index: - - inventory - search: - - inventory - heat_stack_id: - description: Heat stack id corresponding to this instance. - type: string - annotations: - index: - - inventory - orchestration_status: - description: orchestration status of this vf-module, mastered by MSO - type: string - is_base_vf_module: - description: used to indicate whether or not this object is base vf module - type: boolean - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - persona_model_id: - description: the ASDC model id for this resource or service model. - type: string - annotations: - index: - - inventory - persona_model_version: - description: the ASDC model version for this resource or service model. - type: string - annotations: - index: - - inventory - persona_model_customization_id: - description: captures the id of all the configuration used to customize the resource for the service. - type: string - widget_model_id: - description: the ASDC data dictionary widget model. This maps directly to the A&AI widget. - type: string - annotations: - index: - - inventory - widget_model_version: - description: the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget. - type: string - annotations: - index: - - inventory - contrail_service_instance_fqdn: - description: the Contrail unique ID for a service-instance - type: string - annotations: - index: - - inventory - module_index: - description: the index will track the number of modules of a given type that have been deployed in a VNF, starting with 0, and always choosing the lowest available digit - type: integer - selflink: - description: Path to the controller object. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - requirements: - - generic_vnf: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.network.GenericVnf - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - l3_network: - capability: tosca.capabilities.Node - node: org.openecomp.nodes.inventory.network.L3Network - relationship: tosca.relationships.DependsOn - occurrences: - - 0 - - UNBOUNDED - - vnfc: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.network.Vnfc - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - volume_group: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.VolumeGroup - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - 1 - - vserver: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.Vserver - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.nodes.inventory.Metadatum: - description: Key/value pairs - attributes: - metaname: - type: string - annotations: - primary_id: true - index: - - inventory - metaval: - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - requirements: - - connector: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.business.Connector - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - image: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.Image - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - service_instance: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.ServiceInstance - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.VigServer: - description: vig-server contains information about a vig server used for IPSec-configuration. Populated by SDN-C from 1607 - attributes: - vig_address_type: - description: indicates whether the VIG is for AVPN or INTERNET - type: string - annotations: - primary_id: true - index: - - inventory - ipaddress_v4_vig: - description: v4 IP of the vig server - type: string - occurrences: - - 0 - - UNBOUNDED - ipaddress_v6_vig: - description: v6 IP of the vig server - type: string - occurrences: - - 0 - - UNBOUNDED - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - requirements: - - ipsec_configuration: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.network.IpsecConfiguration - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion: - description: cloud-region designates an installation of a cloud cluster or region or instantiation. In AT&Ts OPENECOMP cloud, this could be an LCP or DCP. Cloud regions are uniquely identified by a composite key, cloud-owner + cloud-region-id. The format of the cloud-owner is vendor-cloudname and we will use OPENECOMP. - attributes: - cloud_owner: - description: Identifies the vendor and cloud name, e.g., OPENECOMP. First part of composite key should be formatted as vendor-cloudname - type: string - annotations: - primary_id: true - index: - - inventory - cloud_region_id: - description: Identifier used by the vendor for the region. Second part of composite key - type: string - annotations: - primary_id: true - index: - - inventory - cloud_type: - description: Type of the cloud (e.g., openstack) - type: string - annotations: - index: - - inventory - owner_defined_type: - description: Cloud-owner defined type indicator (e.g., dcp, lcp) - type: string - annotations: - index: - - inventory - summary_property: true - cloud_region_version: - description: Software version employed at the site. NOTE - THIS FIELD IS NOT KEPT UP TO DATE. - type: string - identity_url: - description: URL of the keystone identity service - type: string - cloud_zone: - description: Zone where the cloud is homed. NOTE - THIS FIELD IS NOT CORRECTLY POPULATED. - type: string - complex_name: - description: complex name for cloud-region instance. NOTE - THIS FIELD IS NOT CORRECTLY POPULATED. - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - volume_groups: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.VolumeGroup - tenants: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.Tenant - annotations: - max_query_depth: 0 - flavors: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.Flavor - group_assignments: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.GroupAssignment - snapshots: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.Snapshot - images: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.Image - dvs_switches: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.DvsSwitch - oam_networks: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.OamNetwork - availability_zones: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.AvailabilityZone - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - availability_zone: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.AvailabilityZone - dvs_switch: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.DvsSwitch - flavor: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.Flavor - group_assignment: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.GroupAssignment - image: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.Image - oam_network: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.OamNetwork - snapshot: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.Snapshot - tenant: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.Tenant - volume_group: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.VolumeGroup - logical_link: - type: org.openecomp.capabilities.inventory.Existable - valid_source_types: - - org.openecomp.nodes.inventory.network.LogicalLink - pserver: - type: org.openecomp.capabilities.inventory.Existable - valid_source_types: - - org.openecomp.nodes.inventory.cloud.infrastructure.Pserver - requirements: - - complex: - capability: org.openecomp.capabilities.inventory.Existable - node: org.openecomp.nodes.inventory.cloud.infrastructure.Complex - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - - l3_network: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.network.L3Network - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - zone: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.network.Zone - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - - org.openecomp.nodes.inventory.network.Vpe: - derived_from: org.openecomp.nodes.inventory.Vnf - description: Relationship-list must include related to info for complex. - attributes: - vnf_id: - description: Unique id of VNF. This is unique across the graph. - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - search: - - inventory - vnf_name: - description: Name of VNF. - type: string - annotations: - index: - - inventory - search: - - inventory - summary_property: true - vnf_name2: - description: Alternate name of VNF. - type: string - annotations: - index: - - inventory - search: - - inventory - vnf_type: - description: String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded in service-specific ways and clients should expect changes to occur in the future to this field as OPENECOMP matures. - type: string - annotations: - index: - - inventory - service_id: - description: Unique identifier of service. Does not map strictly to ASDC services. SOON TO BE DEPRECATED - type: string - annotations: - index: - - inventory - regional_resource_zone: - description: Regional way of organizing pservers, source of truth should define values - type: string - annotations: - index: - - inventory - prov_status: - description: Trigger for operational monitoring of this resource by Service Assurance systems. - type: string - annotations: - index: - - inventory - operational_state: - description: Indicator for whether the resource is considered operational - type: string - license_key: - description: OBSOLETE - do not use. See child relationships. - type: string - equipment_role: - description: Client should send valid enumerated value - type: string - orchestration_status: - description: Orchestration status of this VNF, mastered by MSO - type: string - heat_stack_id: - description: Heat stack id corresponding to this instance, managed by MSO - type: string - annotations: - index: - - inventory - mso_catalog_key: - description: Corresponds to the SDN-C catalog id used to configure this VCE - type: string - ipv4_oam_address: - description: Address tail-f uses to configure vpe, also used for troubleshooting and is IP used for traps generated by VPE (v4-loopback0-ip-address). - type: string - ipv4_oam_gateway_address_prefix_length: - description: Prefix length for oam-address - type: integer - ipv4_oam_gateway_address: - description: Gateway address - type: string - v4_loopback0_ip_address: - description: Loopback0 address - type: string - vlan_id_outer: - description: Temporary location for stag to get to VCE - type: long - as_number: - description: as-number of the VPE - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - summary_status: - description: details regarding the vpe operation, PLEASE DISCONTINUE USE OF THIS FIELD. - type: string - encrypted_access_flag: - description: indicates whether vpe access uses SSH - type: boolean - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - l_interfaces: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.LInterface - lag_interfaces: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.LagInterface - licenses: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.License - entitlements: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.Entitlement - capabilities: - entitlement: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.Entitlement - lag_interface: - type: org.openecomp.capabilities.inventory.Bindable - valid_source_types: - - org.openecomp.nodes.inventory.LagInterface - license: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.License - l_interface: - type: org.openecomp.capabilities.inventory.Bindable - valid_source_types: - - org.openecomp.nodes.inventory.LInterface - requirements: - - ctag_pool: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.CtagPool - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - vserver: - capability: tosca.capabilities.Container - node: org.openecomp.nodes.inventory.Vserver - relationship: tosca.relationships.HostedOn - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.nodes.inventory.Image: - description: Openstack image. - attributes: - image_id: - description: Image id, expected to be unique across cloud region - type: string - annotations: - primary_id: true - index: - - inventory - image_name: - description: Image name - type: string - annotations: - index: - - inventory - summary_property: true - image_architecture: - description: Operating system architecture. - type: string - image_os_distro: - description: The common name of the operating system distribution in lowercase - type: string - image_os_version: - description: The operating system version as specified by the distributor. - type: string - application: - description: The application that the image instantiates. - type: string - annotations: - index: - - inventory - application_vendor: - description: The vendor of the application. - type: string - annotations: - index: - - inventory - application_version: - description: The version of the application. - type: string - annotations: - index: - - inventory - image_selflink: - description: URL to endpoint where AAI can get more details - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - metadata: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.Metadatum - capabilities: - metadatum: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.Metadatum - vserver: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.Vserver - requirements: - - cloud_region: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.network.GenericVnf: - derived_from: org.openecomp.nodes.inventory.Vnf - description: General purpose VNF - attributes: - vnf_id: - description: Unique id of VNF. This is unique across the graph. - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - search: - - inventory - vnf_name: - description: Name of VNF. - type: string - annotations: - index: - - inventory - search: - - inventory - summary_property: true - vnf_name2: - description: Alternate name of VNF. - type: string - annotations: - index: - - inventory - search: - - inventory - vnf_type: - description: String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded in service-specific ways and clients should expect changes to occur in the future to this field as OPENECOMP matures. - type: string - annotations: - index: - - inventory - service_id: - description: Unique identifier of service, does not necessarily map to ASDC service models. SOON TO BE DEPRECATED - type: string - annotations: - index: - - inventory - regional_resource_zone: - description: Regional way of organizing pservers, source of truth should define values - type: string - annotations: - index: - - inventory - prov_status: - description: Trigger for operational monitoring of this resource by Service Assurance systems. - type: string - annotations: - index: - - inventory - operational_state: - description: Indicator for whether the resource is considered operational. Valid values are in-service-path and out-of-service-path. - type: string - license_key: - description: OBSOLETE - do not use - type: string - equipment_role: - description: Client should send valid enumerated value - type: string - orchestration_status: - description: Orchestration status of this VNF, used by MSO. - type: string - heat_stack_id: - description: Heat stack id corresponding to this instance, managed by MSO - type: string - annotations: - index: - - inventory - mso_catalog_key: - description: Corresponds to the SDN-C catalog id used to configure this VCE - type: string - management_option: - description: identifier of managed by OPENECOMP or customer - type: string - ipv4_oam_address: - description: Address tail-f uses to configure generic-vnf, also used for troubleshooting and is IP used for traps generated by generic-vnf. - type: string - ipv4_loopback0_address: - description: v4 Loopback0 address - type: string - nm_lan_v6_address: - description: v6 Loopback address - type: string - management_v6_address: - description: v6 management address - type: string - vcpu: - description: number of vcpus ordered for this instance of VNF, used for VNFs with no vservers/flavors, to be used only by uCPE - type: long - vcpu_units: - description: units associated with vcpu, used for VNFs with no vservers/flavors, to be used only by uCPE - type: string - vmemory: - description: number of GB of memory ordered for this instance of VNF, used for VNFs with no vservers/flavors, to be used only by uCPE - type: long - vmemory_units: - description: units associated with vmemory, used for VNFs with no vservers/flavors, to be used only by uCPE - type: string - vdisk: - description: number of vdisks ordered for this instance of VNF, used for VNFs with no vservers/flavors, to be used only uCPE - type: long - vdisk_units: - description: units associated with vdisk, used for VNFs with no vservers/flavors, to be used only by uCPE - type: string - in_maint: - description: used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs. - type: boolean - annotations: - index: - - inventory - is_closed_loop_disabled: - description: used to indicate whether closed loop function is enabled on this node - type: boolean - annotations: - index: - - inventory - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - summary_status: - description: details regarding the generic-vnf operation, PLEASE DISCONTINUE USE OF THIS FIELD. - type: string - encrypted_access_flag: - description: indicates whether generic-vnf access uses SSH - type: boolean - entitlement_assignment_group_uuid: - description: UUID of the Entitlement group used for licensing VNFs, OBSOLETE - See child relationships. - type: string - entitlement_resource_uuid: - description: UUID of the specific entitlement resource. OBSOLETE - See child relationships. - type: string - license_assignment_group_uuid: - description: UUID of the license assignment group. OBSOLETE - See child relationships. - type: string - license_key_uuid: - description: UUID of the actual license resource. OBSOLETE - See child relationships. - type: string - persona_model_id: - description: the ASDC model id for this resource or service model. - type: string - annotations: - index: - - inventory - persona_model_version: - description: the ASDC model version for this resource or service model. - type: string - annotations: - index: - - inventory - persona_model_customization_id: - description: captures the id of all the configuration used to customize the resource for the service. - type: string - widget_model_id: - description: the ASDC data dictionary widget model. This maps directly to the A&AI widget. - type: string - annotations: - index: - - inventory - widget_model_version: - description: the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget. - type: string - annotations: - index: - - inventory - as_number: - description: as-number of the VNF - type: string - regional_resource_subzone: - description: represents sub zone of the rr plane - type: string - selflink: - description: Path to the controller object. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - l_interfaces: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.LInterface - lag_interfaces: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.LagInterface - vf_modules: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.VfModule - licenses: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.License - entitlements: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.Entitlement - capabilities: - allotted_resource: - type: org.openecomp.capabilities.inventory.Allot - valid_source_types: - - org.openecomp.nodes.inventory.AllottedResource - entitlement: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.Entitlement - lag_interface: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.LagInterface - license: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.License - l_interface: - type: org.openecomp.capabilities.inventory.Bindable - valid_source_types: - - org.openecomp.nodes.inventory.LInterface - vf_module: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.VfModule - logical_link: - type: org.openecomp.capabilities.inventory.Bridgeable - valid_source_types: - - org.openecomp.nodes.inventory.network.LogicalLink - network_profile: - type: org.openecomp.capabilities.inventory.Applicable - valid_source_types: - - org.openecomp.nodes.inventory.cloud.infrastructure.NetworkProfile - service_instance: - type: org.openecomp.capabilities.inventory.Composeable - valid_source_types: - - org.openecomp.nodes.inventory.ServiceInstance - site_pair_set: - type: org.openecomp.capabilities.inventory.Applicable - valid_source_types: - - org.openecomp.nodes.inventory.network.SitePairSet - requirements: - - availability_zone: - capability: org.openecomp.capabilities.inventory.Origin - node: org.openecomp.nodes.inventory.AvailabilityZone - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - instance_group: - capability: org.openecomp.capabilities.inventory.Composite - node: org.openecomp.nodes.inventory.network.InstanceGroup - relationship: org.openecomp.relationships.inventory.MemberOf - occurrences: - - 0 - - UNBOUNDED - - ipsec_configuration: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.network.IpsecConfiguration - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - 1 - - l3_network: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.network.L3Network - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - license_key_resource: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.license.management.LicenseKeyResource - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - pserver: - capability: tosca.capabilities.Container - node: org.openecomp.nodes.inventory.cloud.infrastructure.Pserver - relationship: tosca.relationships.HostedOn - occurrences: - - 0 - - UNBOUNDED - - virtual_data_center: - capability: org.openecomp.capabilities.inventory.Existable - node: org.openecomp.nodes.inventory.cloud.infrastructure.VirtualDataCenter - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - UNBOUNDED - - vnfc: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.network.Vnfc - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - vnf_image: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.service.design.and.creation.VnfImage - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - volume_group: - capability: tosca.capabilities.Node - node: org.openecomp.nodes.inventory.VolumeGroup - relationship: tosca.relationships.DependsOn - occurrences: - - 0 - - UNBOUNDED - - vserver: - capability: tosca.capabilities.Container - node: org.openecomp.nodes.inventory.Vserver - relationship: tosca.relationships.HostedOn - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.nodes.inventory.Snapshot: - description: Openstack snapshot - attributes: - snapshot_id: - description: Snapshot id, this is the key UUID assoc associated in glance with the snapshots. - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - snapshot_name: - description: Snapshot name - type: string - annotations: - index: - - inventory - summary_property: true - snapshot_architecture: - description: Operating system architecture - type: string - snapshot_os_distro: - description: The common name of the operating system distribution in lowercase - type: string - snapshot_os_version: - description: The operating system version as specified by the distributor. - type: string - application: - description: The application that the image instantiates. - type: string - annotations: - index: - - inventory - application_vendor: - description: The vendor of the application. - type: string - annotations: - index: - - inventory - application_version: - description: The version of the application. - type: string - annotations: - index: - - inventory - snapshot_selflink: - description: URL to endpoint where AAI can get more details - type: string - prev_snapshot_id: - description: This field contains the UUID of the previous snapshot (if any). - type: string - annotations: - index: - - inventory - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - vserver: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.Vserver - requirements: - - cloud_region: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.network.LogicalLink: - description: Logical links generally connect l-interfaces but are used to express logical connectivity between two points - attributes: - link_name: - description: e.g., evc-name, or vnf-nameA_interface-nameA_vnf-nameZ_interface-nameZ - type: string - annotations: - primary_id: true - index: - - inventory - search: - - inventory - link_type: - description: Type of logical link, e.g., evc - type: string - speed_value: - description: Captures the numeric part of the speed - type: string - speed_units: - description: Captures the units corresponding to the speed - type: string - ip_version: - description: v4, v6, or ds for dual stack (should be openecomp-ip-version) - type: string - routing_protocol: - description: For example, static or BGP - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - persona_model_id: - description: the ASDC model id for this resource or service model. - type: string - annotations: - index: - - inventory - persona_model_version: - description: the ASDC model version for this resource or service model. - type: string - annotations: - index: - - inventory - widget_model_id: - description: the ASDC data dictionary widget model. This maps directly to the A&AI widget. - type: string - annotations: - index: - - inventory - widget_model_version: - description: the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget. - type: string - annotations: - index: - - inventory - operational_status: - description: Indication of operational status of the logical link. - type: string - prov_status: - description: Trigger for operational monitoring of this VNF by BAU Service Assurance systems. - type: string - annotations: - index: - - inventory - link_role: - description: Indication of the network use of the logical link. - type: string - link_name2: - description: Alias or alternate name (CLCI or D1 name). - type: string - link_id: - description: UUID of the logical-link, SDNC generates this. - type: string - annotations: - unique: - - inventory - index: - - inventory - circuit_id: - description: Circuit id - type: string - annotations: - index: - - inventory - purpose: - description: Reason for this entity, role it is playing - type: string - annotations: - index: - - inventory - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - l_interface: - type: org.openecomp.capabilities.inventory.Linkable - valid_source_types: - - org.openecomp.nodes.inventory.LInterface - logical_link: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.network.LogicalLink - p_interface: - type: org.openecomp.capabilities.inventory.Linkable - valid_source_types: - - org.openecomp.nodes.inventory.PInterface - service_instance: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.ServiceInstance - vlan: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.Vlan - requirements: - - cloud_region: - capability: org.openecomp.capabilities.inventory.Existable - node: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - UNBOUNDED - - generic_vnf: - capability: org.openecomp.capabilities.inventory.Bridgeable - node: org.openecomp.nodes.inventory.network.GenericVnf - relationship: org.openecomp.relationships.inventory.BridgedTo - occurrences: - - 0 - - UNBOUNDED - - lag_link: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.network.LagLink - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - logical_link: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.network.LogicalLink - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - pnf: - capability: org.openecomp.capabilities.inventory.Bridgeable - node: org.openecomp.nodes.inventory.network.Pnf - relationship: org.openecomp.relationships.inventory.BridgedTo - occurrences: - - 0 - - UNBOUNDED - - pserver: - capability: org.openecomp.capabilities.inventory.Bridgeable - node: org.openecomp.nodes.inventory.cloud.infrastructure.Pserver - relationship: org.openecomp.relationships.inventory.BridgedTo - occurrences: - - 0 - - UNBOUNDED - - virtual_data_center: - capability: org.openecomp.capabilities.inventory.Existable - node: org.openecomp.nodes.inventory.cloud.infrastructure.VirtualDataCenter - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - UNBOUNDED - - vpn_binding: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.network.VpnBinding - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.nodes.inventory.network.NetworkPolicy: - attributes: - network_policy_id: - description: UUID representing unique key to this instance - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - search: - - inventory - network_policy_fqdn: - description: Contrail FQDN for the policy - type: string - annotations: - index: - - inventory - search: - - inventory - summary_property: true - heat_stack_id: - description: ID for the openStack Heat instance - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - l3_network: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.network.L3Network - - org.openecomp.nodes.inventory.TunnelXconnect: - description: Represents the specifics of a tunnel cross connect piece of a resource that gets separately allotted - attributes: - id: - description: Allotted Resource id UUID assigned to this instance. - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - bandwidth_up_wan1: - description: The WAN uplink bandwidth for WAN1 - type: string - bandwidth_down_wan1: - description: The WAN downlink bandwidth for WAN1 - type: string - bandwidth_up_wan2: - description: The WAN uplink bandwidth for WAN2 - type: string - bandwidth_down_wan2: - description: The WAN downlink bandwidth for WAN2 - type: string - resource_version: - description: Concurrency value - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - requirements: - - allotted_resource: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.AllottedResource - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.OamNetwork: - description: 'OAM network, to be deprecated shortly. Do not use for new purposes. ' - attributes: - network_uuid: - description: UUID of the network. Unique across a cloud-region - type: string - annotations: - primary_id: true - index: - - inventory - network_name: - description: Name of the network. - type: string - annotations: - index: - - inventory - summary_property: true - cvlan_tag: - description: cvlan-id - type: long - annotations: - index: - - inventory - ipv4_oam_gateway_address: - description: Used for VNF firewall rule so customer cannot send customer traffic over this oam network - type: string - ipv4_oam_gateway_address_prefix_length: - description: Used for VNF firewall rule so customer cannot send customer traffic over this oam network - type: integer - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - requirements: - - cloud_region: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - complex: - capability: org.openecomp.capabilities.inventory.Applicable - node: org.openecomp.nodes.inventory.cloud.infrastructure.Complex - relationship: org.openecomp.relationships.inventory.AppliesTo - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.nodes.inventory.network.SitePairSet: - description: Set of instances for probes used to measure service level agreements - attributes: - site_pair_set_id: - description: Unique id of site pair set. - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - routing_instances: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.RoutingInstance - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - routing_instance: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.RoutingInstance - requirements: - - generic_vnf: - capability: org.openecomp.capabilities.inventory.Applicable - node: org.openecomp.nodes.inventory.network.GenericVnf - relationship: org.openecomp.relationships.inventory.AppliesTo - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.nodes.inventory.CvlanTagEntry: - attributes: - cvlan_tag: - description: See mis-na-virtualization-platform.yang - type: long - annotations: - primary_id: true - index: - - inventory - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - service_instance: - type: org.openecomp.capabilities.inventory.Composeable - valid_source_types: - - org.openecomp.nodes.inventory.ServiceInstance - requirements: - - port_group: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.PortGroup - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.ClassOfService: - attributes: - cos: - description: unique identifier of probe - type: string - annotations: - primary_id: true - index: - - inventory - probe_id: - description: identifier of probe - type: string - probe_type: - description: type of probe - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - requirements: - - site_pair: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.SitePair - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.CtagPool: - description: A collection of C tags (vlan tags) grouped for a specific purpose. - attributes: - target_pe: - description: The Target provider edge router - type: string - annotations: - primary_id: true - availability_zone_name: - description: Name of the availability zone - type: string - annotations: - primary_id: true - index: - - inventory - ctag_pool_purpose: - description: Describes what the intended purpose of this pool is. - type: string - ctag_values: - description: Comma separated list of ctags - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - vpe: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.network.Vpe - vpls_pe: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.network.VplsPe - requirements: - - complex: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.cloud.infrastructure.Complex - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - availability_zone: - capability: org.openecomp.capabilities.inventory.Applicable - node: org.openecomp.nodes.inventory.AvailabilityZone - relationship: org.openecomp.relationships.inventory.AppliesTo - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.nodes.inventory.network.MulticastConfiguration: - attributes: - multicast_configuration_id: - description: Unique id of multicast configuration. - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - multicast_protocol: - description: protocol of multicast configuration - type: string - rp_type: - description: rp type of multicast configuration - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - vlan: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.Vlan - - org.openecomp.nodes.inventory.L3InterfaceIpv4AddressList: - description: IPv4 Address Range - attributes: - l3_interface_ipv4_address: - description: IP address - type: string - annotations: - primary_id: true - index: - - inventory - l3_interface_ipv4_prefix_length: - description: Prefix length, 32 for single address - type: long - vlan_id_inner: - description: Inner VLAN tag - type: long - annotations: - index: - - inventory - vlan_id_outer: - description: Outer VLAN tag - type: long - is_floating: - description: Indicator of fixed or floating address - type: boolean - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - neutron_network_id: - description: Neutron network id of the interface that address belongs to - type: string - annotations: - index: - - inventory - neutron_subnet_id: - description: Neutron id of subnet that address belongs to - type: string - annotations: - index: - - inventory - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - requirements: - - l3_network: - capability: org.openecomp.capabilities.inventory.Composite - node: org.openecomp.nodes.inventory.network.L3Network - relationship: org.openecomp.relationships.inventory.MemberOf.network - occurrences: - - 0 - - UNBOUNDED - - subnet: - capability: org.openecomp.capabilities.inventory.Composite - node: org.openecomp.nodes.inventory.Subnet - relationship: org.openecomp.relationships.inventory.MemberOf.network - occurrences: - - 0 - - UNBOUNDED - - l_interface: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.LInterface - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - vlan: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.Vlan - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.network.VpnBinding: - description: VPN binding - attributes: - vpn_id: - description: VPN ID, globally unique within A&AI - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - search: - - inventory - vpn_name: - description: VPN Name - type: string - annotations: - index: - - inventory - search: - - inventory - summary_property: true - global_route_target: - description: Number used to identify a VPN, globally unique in the network - type: string - annotations: - index: - - inventory - vpn_platform: - description: the platform associated with the VPN example AVPN, Mobility - type: string - vpn_type: - description: Type of the vpn, should be taken from enumerated/valid values - type: string - annotations: - index: - - inventory - summary_property: true - route_distinguisher: - description: Used to distinguish the distinct VPN routes of separate customers who connect to the provider in an MPLS network. - type: string - route_target_role: - description: Role assigned to this route target - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - description: l3-networks relate to vpn-bindings - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - l3_network: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.network.L3Network - logical_link: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.network.LogicalLink - - org.openecomp.nodes.inventory.Vnf: - description: Abstract vnf class - attributes: - vnf_id: - description: Unique id of VNF. This is unique across the graph. - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - - org.openecomp.nodes.inventory.Tenant: - description: Openstack tenant - attributes: - tenant_id: - description: Unique id relative to the cloud-region. - type: string - annotations: - primary_id: true - index: - - inventory - search: - - inventory - tenant_name: - description: Readable name of tenant - type: string - annotations: - index: - - inventory - search: - - inventory - summary_property: true - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - vservers: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.Vserver - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - service_subscription: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.ServiceSubscription - vserver: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.Vserver - requirements: - - cloud_region: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - group_assignment: - capability: org.openecomp.capabilities.inventory.Composite - node: org.openecomp.nodes.inventory.GroupAssignment - relationship: org.openecomp.relationships.inventory.MemberOf - occurrences: - - 0 - - UNBOUNDED - - l3_network: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.network.L3Network - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - volume_group: - capability: tosca.capabilities.Node - node: org.openecomp.nodes.inventory.VolumeGroup - relationship: tosca.relationships.DependsOn - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.nodes.inventory.business.Customer: - description: customer identifiers to provide linkage back to BSS information. - attributes: - global_customer_id: - description: Global customer id used across OPENECOMP to uniquely identify customer. - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - search: - - inventory - subscriber_name: - description: Subscriber name, an alternate way to retrieve a customer. - type: string - annotations: - index: - - inventory - search: - - inventory - summary_property: true - subscriber_type: - description: Subscriber type, a way to provide VID with only the INFRA customers. - type: string - annotations: - index: - - inventory - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - service_subscriptions: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.ServiceSubscription - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - service_subscription: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.ServiceSubscription - - org.openecomp.nodes.inventory.AllottedResource: - description: Represents a slice or partial piece of a resource that gets separately allotted - attributes: - id: - description: Allotted Resource id UUID assigned to this instance. - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - description: - description: The descriptive information assigned to this allotted resource instance - type: string - annotations: - summary_property: true - selflink: - description: Link back to more information in the controller - type: string - persona_model_id: - description: the ASDC model id for this resource or service model. - type: string - annotations: - index: - - inventory - persona_model_version: - description: the ASDC model version for this resource or service model. - type: string - annotations: - index: - - inventory - resource_version: - description: Concurrency value - type: string - tunnel_xconnects: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.TunnelXconnect - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - tunnel_xconnect: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.TunnelXconnect - requirements: - - generic_vnf: - capability: org.openecomp.capabilities.inventory.Allot - node: org.openecomp.nodes.inventory.network.GenericVnf - relationship: org.openecomp.relationships.inventory.PartOf - occurrences: - - 0 - - UNBOUNDED - - instance_group: - capability: org.openecomp.capabilities.inventory.Composite - node: org.openecomp.nodes.inventory.network.InstanceGroup - relationship: org.openecomp.relationships.inventory.MemberOf - occurrences: - - 0 - - UNBOUNDED - - l3_network: - capability: org.openecomp.capabilities.inventory.Allot - node: org.openecomp.nodes.inventory.network.L3Network - relationship: org.openecomp.relationships.inventory.PartOf - occurrences: - - 0 - - UNBOUNDED - - vlan: - capability: org.openecomp.capabilities.inventory.Allot - node: org.openecomp.nodes.inventory.Vlan - relationship: org.openecomp.relationships.inventory.PartOf - occurrences: - - 0 - - UNBOUNDED - - service_instance: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.ServiceInstance - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.cloud.infrastructure.Complex: - description: Collection of physical locations that can house cloud-regions. - attributes: - physical_location_id: - description: Unique identifier for physical location, e.g., CLLI - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - search: - - inventory - data_center_code: - description: Data center code which can be an alternate way to identify a complex - type: string - annotations: - index: - - inventory - search: - - inventory - complex_name: - description: Gamma complex name for LCP instance. - type: string - annotations: - index: - - inventory - search: - - inventory - identity_url: - description: URL of the keystone identity service - type: string - annotations: - index: - - inventory - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - physical_location_type: - description: Type, e.g., central office, data center. - type: string - street1: - type: string - annotations: - search: - - inventory - street2: - type: string - annotations: - search: - - inventory - city: - type: string - state: - type: string - postal_code: - type: string - annotations: - search: - - inventory - country: - type: string - region: - type: string - latitude: - type: string - longitude: - type: string - elevation: - type: string - lata: - type: string - ctag_pools: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.CtagPool - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - availability_zone: - type: org.openecomp.capabilities.inventory.Existable - valid_source_types: - - org.openecomp.nodes.inventory.AvailabilityZone - cloud_region: - type: org.openecomp.capabilities.inventory.Existable - valid_source_types: - - org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion - ctag_pool: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.CtagPool - oam_network: - type: org.openecomp.capabilities.inventory.Applicable - valid_source_types: - - org.openecomp.nodes.inventory.OamNetwork - pnf: - type: org.openecomp.capabilities.inventory.Locates - valid_source_types: - - org.openecomp.nodes.inventory.network.Pnf - pserver: - type: org.openecomp.capabilities.inventory.Locates - valid_source_types: - - org.openecomp.nodes.inventory.cloud.infrastructure.Pserver - volume_group: - type: org.openecomp.capabilities.inventory.Existable - valid_source_types: - - org.openecomp.nodes.inventory.VolumeGroup - vpls_pe: - type: org.openecomp.capabilities.inventory.Locates - valid_source_types: - - org.openecomp.nodes.inventory.network.VplsPe - zone: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.network.Zone - requirements: - - l3_network: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.network.L3Network - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.nodes.inventory.CtagAssignment: - attributes: - vlan_id_inner: - description: id. - type: long - annotations: - primary_id: true - index: - - inventory - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - service_instance: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.ServiceInstance - requirements: - - l3_network: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.network.L3Network - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.RoutingInstance: - attributes: - routing_instance_id: - description: Unique id of routing instance - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - rpm_owner: - description: rpm owner - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - site_pairs: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.SitePair - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - site_pair: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.SitePair - requirements: - - site_pair_set: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.network.SitePairSet - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.cloud.infrastructure.NetworkProfile: - description: Network profile populated by SDN-GP for SNMP - attributes: - nm_profile_name: - description: Unique name of network profile. - type: string - annotations: - primary_id: true - index: - - inventory - community_string: - description: Encrypted SNMP community string - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - requirements: - - generic_vnf: - capability: org.openecomp.capabilities.inventory.Applicable - node: org.openecomp.nodes.inventory.network.GenericVnf - relationship: org.openecomp.relationships.inventory.AppliesTo - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.nodes.inventory.network.Vnfc: - attributes: - vnfc_name: - description: Unique ID of vnfc. - type: string - annotations: - primary_id: true - index: - - inventory - search: - - inventory - vnfc_function_code: - description: function code - type: string - annotations: - index: - - inventory - vnfc_type: - description: type - type: string - annotations: - index: - - inventory - prov_status: - description: prov status of this vnfc - type: string - annotations: - index: - - inventory - orchestration_status: - description: Orchestration status of this VNF, mastered by APP-C - type: string - ipaddress_v4_oam_vip: - description: Oam V4 vip address of this vnfc - type: string - annotations: - index: - - inventory - in_maint: - description: used to indicate whether or not this object is in maintenance mode (maintenance mode = true) - type: boolean - annotations: - index: - - inventory - is_closed_loop_disabled: - description: used to indicate whether closed loop function is enabled on this node - type: boolean - annotations: - index: - - inventory - group_notation: - description: Group notation of VNFC - type: string - annotations: - index: - - inventory - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - generic_vnf: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.network.GenericVnf - vf_module: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.VfModule - requirements: - - vserver: - capability: tosca.capabilities.Container - node: org.openecomp.nodes.inventory.Vserver - relationship: tosca.relationships.HostedOn - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.nodes.inventory.network.Vce: - derived_from: org.openecomp.nodes.inventory.Vnf - description: Virtual Customer Edge Router, used specifically for Gamma. This object is deprecated. - attributes: - vnf_id: - description: Unique id of VNF. This is unique across the graph. - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - search: - - inventory - vnf_name: - description: Name of VNF. - type: string - annotations: - index: - - inventory - search: - - inventory - summary_property: true - vnf_name2: - description: Alternate name of VNF. - type: string - annotations: - index: - - inventory - search: - - inventory - vnf_type: - description: String capturing type of vnf, that was intended to identify the ASDC resource. This field has been overloaded in service-specific ways and clients should expect changes to occur in the future to this field as OPENECOMP matures. - type: string - annotations: - index: - - inventory - service_id: - description: Unique identifier of service, does not strictly map to ASDC services, SOON TO BE DEPRECATED. - type: string - annotations: - index: - - inventory - regional_resource_zone: - description: Regional way of organizing pservers, source of truth should define values - type: string - annotations: - index: - - inventory - prov_status: - description: Trigger for operational monitoring of this resource by Service Assurance systems. - type: string - annotations: - index: - - inventory - operational_state: - description: Indicator for whether the resource is considered operational - type: string - license_key: - description: OBSOLETE - do not use - type: string - equipment_role: - description: Network role being played by this VNF - type: string - orchestration_status: - description: Orchestration status of this VNF, mastered by MSO - type: string - heat_stack_id: - description: Heat stack id corresponding to this instance, managed by MSO - type: string - annotations: - index: - - inventory - mso_catalog_key: - description: Corresponds to the SDN-C catalog id used to configure this VCE - type: string - vpe_id: - description: Unique ID of VPE connected to this VCE. - type: string - annotations: - index: - - inventory - v6_vce_wan_address: - description: Valid v6 IP address for the WAN Link on this router. Implied length of /64. - type: string - ipv4_oam_address: - description: Address tail-f uses to configure vce, also used for troubleshooting and is IP used for traps generated by VCE. - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - ipv4_loopback0_address: - description: Loopback0 address - type: string - entitlement_resource_uuid: - description: OBSOLETE - see child relationships - type: string - port_groups: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.PortGroup - licenses: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.License - entitlements: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.Entitlement - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - service_instance: - type: org.openecomp.capabilities.inventory.Composeable - valid_source_types: - - org.openecomp.nodes.inventory.ServiceInstance - entitlement: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.Entitlement - license: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.License - port_group: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.PortGroup - requirements: - - availability_zone: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.AvailabilityZone - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - vserver: - capability: tosca.capabilities.Container - node: org.openecomp.nodes.inventory.Vserver - relationship: tosca.relationships.HostedOn - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.nodes.inventory.ServiceSubscription: - description: Object that group service instances. - attributes: - service_type: - description: Value defined by orchestration to identify this service across OPENECOMP. - type: string - annotations: - primary_id: true - index: - - inventory - temp_ub_sub_account_id: - description: This property will be deleted from A&AI in the near future. Only stop gap solution. - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - service_instances: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.ServiceInstance - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - service_instance: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.ServiceInstance - requirements: - - customer: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.business.Customer - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - tenant: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.Tenant - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.nodes.inventory.PortGroup: - description: Used to capture the network interfaces of this VCE - attributes: - interface_id: - description: Unique ID of the interface - type: string - annotations: - primary_id: true - index: - - inventory - neutron_network_id: - description: Neutron network id of this Interface - type: string - neutron_network_name: - description: Neutron network name of this Interface - type: string - interface_role: - description: Role assigned to this Interface, should use values as defined in OPENECOMP Yang models. - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - port_group_id: - description: Unique ID for port group in vmware - type: string - annotations: - index: - - inventory - port_group_name: - description: Likely to duplicate value of neutron network name - type: string - annotations: - summary_property: true - switch_name: - description: DVS or standard switch name (should be non-null for port groups associated with DVS) - type: string - annotations: - index: - - inventory - orchestration_status: - description: Orchestration status of this VNF, mastered by MSO - type: string - heat_stack_id: - description: Heat stack id corresponding to this instance, managed by MSO - type: string - annotations: - index: - - inventory - mso_catalog_key: - description: Corresponds to the SDN-C catalog id used to configure this VCE - type: string - cvlan_tags: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.CvlanTagEntry - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - cvlan_tag: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.CvlanTagEntry - requirements: - - vce: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.network.Vce - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.business.Connector: - description: Collection of resource instances used to connect a variety of disparate inventory widgets - attributes: - resource_instance_id: - description: Unique id of resource instance. - type: string - annotations: - primary_id: true - index: - - inventory - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - persona_model_id: - description: the ASDC model id for this resource or service model. - type: string - annotations: - index: - - inventory - persona_model_version: - description: the ASDC model version for this resource or service model. - type: string - annotations: - index: - - inventory - widget_model_id: - description: the ASDC data dictionary widget model. This maps directly to the A&AI widget. - type: string - annotations: - index: - - inventory - widget_model_version: - description: the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget. - type: string - annotations: - index: - - inventory - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - metadata: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.Metadatum - capabilities: - metadatum: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.Metadatum - service_instance: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.ServiceInstance - requirements: - - virtual_data_center: - capability: org.openecomp.capabilities.inventory.Existable - node: org.openecomp.nodes.inventory.cloud.infrastructure.VirtualDataCenter - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.nodes.inventory.network.PhysicalLink: - description: Collection of physical connections, typically between p-interfaces - attributes: - link_name: - description: e.g., hostnameA_p-connection_nameA_hostnameZ+p_connection-nameZ - type: string - annotations: - primary_id: true - index: - - inventory - search: - - inventory - speed_value: - description: Captures the numeric part of the speed - type: string - speed_units: - description: Captures the units corresponding to the speed - type: string - circuit_id: - description: Circuit it - type: string - annotations: - index: - - inventory - search: - - inventory - dual_mode: - description: Dual access mode (e.g., primary, secondary - type: string - management_option: - description: To provide information on who manages this circuit. A&AI or 3rd party transport provider - type: string - service_provider_name: - description: Name of the service Provider on this link. - type: string - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - p_interface: - type: org.openecomp.capabilities.inventory.Linkable - valid_source_types: - - org.openecomp.nodes.inventory.PInterface - - org.openecomp.nodes.inventory.license.management.LicenseKeyResource: - description: 'OBSOLETE OBJECT: do not use' - attributes: - att_uuid: - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - assignment_type: - type: string - assignment_status: - type: string - assignment_group_uuid: - type: string - annotations: - index: - - inventory - assignment_date: - type: string - name: - type: string - annotations: - index: - - inventory - summary_property: true - model_uuid: - type: string - model_version: - type: string - license_key: - type: string - license_key_file_url: - type: string - supplier_release_list: - type: string - occurrences: - - 0 - - UNBOUNDED - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - generic_vnf: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.network.GenericVnf - - org.openecomp.nodes.inventory.L3InterfaceIpv6AddressList: - description: IPv6 Address Range - attributes: - l3_interface_ipv6_address: - description: IP address - type: string - annotations: - primary_id: true - index: - - inventory - l3_interface_ipv6_prefix_length: - description: Prefix length, 128 for single address - type: long - vlan_id_inner: - description: Inner VLAN tag - type: long - annotations: - index: - - inventory - vlan_id_outer: - description: Outer VLAN tag - type: long - is_floating: - description: Indicator of fixed or floating address - type: boolean - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - neutron_network_id: - description: Neutron network id of the interface that address belongs to - type: string - annotations: - index: - - inventory - neutron_subnet_id: - description: Neutron id of subnet that address belongs to - type: string - annotations: - index: - - inventory - relationship_list: - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - requirements: - - l3_network: - capability: org.openecomp.capabilities.inventory.Composite - node: org.openecomp.nodes.inventory.network.L3Network - relationship: org.openecomp.relationships.inventory.MemberOf.network - occurrences: - - 0 - - UNBOUNDED - - subnet: - capability: org.openecomp.capabilities.inventory.Composite - node: org.openecomp.nodes.inventory.Subnet - relationship: org.openecomp.relationships.inventory.MemberOf.network - occurrences: - - 0 - - UNBOUNDED - - l_interface: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.LInterface - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - vlan: - capability: org.openecomp.capabilities.inventory.Belonging - node: org.openecomp.nodes.inventory.Vlan - relationship: org.openecomp.relationships.inventory.BelongsTo - occurrences: - - 0 - - 1 - annotations: - is_child: true - - org.openecomp.nodes.inventory.network.L3Network: - description: Generic network definition - attributes: - network_id: - description: Network ID, should be uuid. Unique across A&AI. - type: string - annotations: - primary_id: true - unique: - - inventory - index: - - inventory - search: - - inventory - network_name: - description: Name of the network, governed by some naming convention.. - type: string - annotations: - index: - - inventory - search: - - inventory - summary_property: true - network_type: - description: Type of the network - who defines these values? - type: string - network_role: - description: Role the network plans - who defines these values? - type: string - annotations: - index: - - inventory - network_technology: - description: Network technology - who defines these values? - type: string - neutron_network_id: - description: Neutron network id of this Interface - type: string - is_bound_to_vpn: - description: Set to true if bound to VPN - type: boolean - service_id: - description: Unique identifier of service from ASDC. Does not strictly map to ASDC services. SOON TO BE DEPRECATED - type: string - annotations: - index: - - inventory - network_role_instance: - description: network role instance - type: long - resource_version: - description: Used for optimistic concurrency. Must be empty on create, valid on update and delete. - type: string - orchestration_status: - description: Orchestration status of this VNF, mastered by MSO - type: string - heat_stack_id: - description: Heat stack id corresponding to this instance, managed by MSO - type: string - annotations: - index: - - inventory - mso_catalog_key: - description: Corresponds to the SDN-C catalog id used to configure this VCE - type: string - contrail_network_fqdn: - description: Contrail FQDN for the network - type: string - annotations: - index: - - inventory - persona_model_id: - description: the ASDC model id for this resource or service model. - type: string - annotations: - index: - - inventory - persona_model_version: - description: the ASDC model version for this resource or service model. - type: string - annotations: - index: - - inventory - persona_model_customization_id: - description: captures the id of all the configuration used to customize the resource for the service. - type: string - widget_model_id: - description: the ASDC data dictionary widget model. This maps directly to the A&AI widget. - type: string - annotations: - index: - - inventory - widget_model_version: - description: the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget. - type: string - annotations: - index: - - inventory - physical_network_name: - description: Name associated with the physical network. - type: string - is_provider_network: - description: boolean indicatating whether or not network is a provider network. - type: boolean - is_shared_network: - description: boolean indicatating whether or not network is a shared network. - type: boolean - is_external_network: - description: boolean indicatating whether or not network is an external network. - type: boolean - selflink: - description: Path to the controller object. - type: string - subnets: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.Subnet - ctag_assignments: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.CtagAssignment - segmentation_assignments: - type: list - entry_schema: - type: org.openecomp.nodes.inventory.SegmentationAssignment - relationship_list: - description: Relates to tenant (or is it a child of tenant), complex, service, vpn-binding - type: list - entry_schema: - type: org.openecomp.datatypes.inventory.Relationship - capabilities: - allotted_resource: - type: org.openecomp.capabilities.inventory.Allot - valid_source_types: - - org.openecomp.nodes.inventory.AllottedResource - cloud_region: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.cloud.infrastructure.CloudRegion - complex: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.cloud.infrastructure.Complex - generic_vnf: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.network.GenericVnf - l3_interface_ipv4_address_list: - type: org.openecomp.capabilities.inventory.Composite - valid_source_types: - - org.openecomp.nodes.inventory.L3InterfaceIpv4AddressList - l3_interface_ipv6_address_list: - type: org.openecomp.capabilities.inventory.Composite - valid_source_types: - - org.openecomp.nodes.inventory.L3InterfaceIpv6AddressList - ctag_assignment: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.CtagAssignment - segmentation_assignment: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.SegmentationAssignment - subnet: - type: org.openecomp.capabilities.inventory.Belonging - valid_source_types: - - org.openecomp.nodes.inventory.Subnet - service_instance: - type: org.openecomp.capabilities.inventory.Composeable - valid_source_types: - - org.openecomp.nodes.inventory.ServiceInstance - tenant: - type: org.openecomp.capabilities.inventory.Multiuse - valid_source_types: - - org.openecomp.nodes.inventory.Tenant - vf_module: - type: org.openecomp.capabilities.inventory.Node - valid_source_types: - - org.openecomp.nodes.inventory.VfModule - requirements: - - network_policy: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.network.NetworkPolicy - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - route_table_reference: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.network.RouteTableReference - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED - - vpn_binding: - capability: org.openecomp.capabilities.inventory.Multiuse - node: org.openecomp.nodes.inventory.network.VpnBinding - relationship: org.openecomp.relationships.inventory.Uses - occurrences: - - 0 - - UNBOUNDED diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/relationships.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/relationships.yml deleted file mode 100644 index cf86be62a6..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp-inventory/relationships.yml +++ /dev/null @@ -1,57 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: openecomp-inventory/relationships.yml - version: '1.0' - -imports: -- inventory_index: - file: _index.yml - -relationship_types: - - org.openecomp.relationships.inventory.Uses: - derived_from: tosca.relationships.Root - description: Auto-generated from OXM. - - org.openecomp.relationships.inventory.MemberOf.network: - derived_from: tosca.relationships.Root - description: Auto-generated from OXM. - - org.openecomp.relationships.inventory.PartOf: - derived_from: tosca.relationships.Root - description: Auto-generated from OXM. - - org.openecomp.relationships.inventory.AppliesTo: - derived_from: tosca.relationships.Root - description: Auto-generated from OXM. - - org.openecomp.relationships.inventory.BridgedTo: - derived_from: tosca.relationships.Root - description: Auto-generated from OXM. - - org.openecomp.relationships.inventory.ComposedOf: - derived_from: tosca.relationships.Root - description: Auto-generated from OXM. - - org.openecomp.relationships.inventory.MemberOf: - derived_from: tosca.relationships.Root - description: Auto-generated from OXM. - - org.openecomp.relationships.inventory.BelongsTo: - derived_from: tosca.relationships.Root - description: Auto-generated from OXM. diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/_index.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/_index.yml deleted file mode 100644 index 02c4f76f62..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/_index.yml +++ /dev/null @@ -1,37 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: openecomp/_index.yml - version: '1.0' - - -imports: -- tosca_index: - file: ../tosca/_index.yml -- capabilities: - file: capabilities.yml -- nodes: - file: nodes.yml -- relationships: - file: relationships.yml -- groups: - file: groups.yml -- data: - file: data.yml -- annotations: - file: annotations.yml - diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/annotations.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/annotations.yml deleted file mode 100644 index 962522ca90..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/annotations.yml +++ /dev/null @@ -1,42 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: openecomp/annotations.yml - version: '1.0' - -imports: -- openecomp_index: - file: _index.yml - -annotation_types: - - org.openecomp.annotations.Source: - description: Indicates the origin source of an input - properties: - source_type: - type: string - required: true - vf_module_label: - description: List of HEAT file name this input was originated from - type: list - required: true - entry_schema: - type: string - param_name: - type: string - required: true - description: Source parameter name \ No newline at end of file diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/capabilities.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/capabilities.yml deleted file mode 100644 index 12cecb94b0..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/capabilities.yml +++ /dev/null @@ -1,119 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: openecomp/capabilities.yml - version: '1.0' - -imports: -- openecomp_index: - file: _index.yml - -capability_types: - - org.openecomp.capabilities.attachment.DeploymentFlavor: - derived_from: tosca.capabilities.Attachment - description: The Node capability indicates the base capabilities of a TOSCA Node Type. - properties: - DeploymentFlavor: - type: map - description: Deployment flavors instance - required: true - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.DeploymentFlavor - - org.openecomp.capabilities.metric.SnmpTrap: - derived_from: org.openecomp.capabilities.Metric - description: A node type that includes the Metric capability indicates that it can be monitored using snmp trap. - properties: - oid: - description: Object Id of the metric - type: string - status: SUPPORTED - required: true - - org.openecomp.capabilities.AllottedResource: - derived_from: tosca.capabilities.Root - - org.openecomp.capabilities.metric.SnmpPolling: - derived_from: org.openecomp.capabilities.Metric - description: A node type that includes the Metric capability indicates that it can be monitored using snmp polling. - properties: - oid: - description: Object Id of the metric - type: string - status: SUPPORTED - required: true - - org.openecomp.capabilities.metric.Ceilometer: - derived_from: org.openecomp.capabilities.Metric - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - properties: - name: - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - type: string - status: SUPPORTED - required: true - - org.openecomp.capabilities.Metric: - derived_from: tosca.capabilities.Endpoint - description: A node type that includes the Metric capability indicates that it can be monitored. - properties: - unit: - description: Unit of the metric value - type: string - status: SUPPORTED - required: true - description: - description: Description of the metric - type: string - status: SUPPORTED - required: false - type: - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - type: string - status: SUPPORTED - required: true - category: - description: Category of the metric, for an example, compute, disk, network, storage and etc. - type: string - status: SUPPORTED - required: false - attributes: - value: - description: Runtime monitored value - type: string - status: SUPPORTED - - org.openecomp.capabilities.Forwarder: - derived_from: tosca.capabilities.Root - # New capability types for Port Mirroring - org.openecomp.capabilities.PortMirroring: - derived_from: tosca.capabilities.Root - properties: - connection_point: - type: org.openecomp.datatypes.PortMirroringConnectionPointDescription - required: true - - org.openecomp.capabilities.VLANAssignment: - derived_from: tosca.capabilities.Root - description: ability to expose routing information of the internal network - properties: - vfc_instance_group_reference: - type: string - description: ability to recognize capability per vfc instance group on vnf instance - required: true \ No newline at end of file diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/data.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/data.yml deleted file mode 100644 index 47d424f407..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/data.yml +++ /dev/null @@ -1,601 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: openecomp/data.yml - version: '1.0' - -imports: -- openecomp_index: - file: _index.yml - -data_types: - - org.openecomp.datatypes.network.ProviderNetwork: - derived_from: org.openecomp.datatypes.Root - properties: - is_provider_network: - description: \"true\" indicates that this a Neutron provider type of network - type: boolean - required: true - physical_network_name: - description: | - Identifies the NUMA processor cluster to which this physical network interface belongs. NUMA instance correlates to the first digit of the Physical Network Name suffix (e.g. \"01\" = NUMA 0, \"11\" = NUMA 1) - type: string - required: false - constraints: - - valid_values: - - Physnet41 - - Physnet42 - - Physnet43 - - Physnet44 - - Physnet21 - - Physnet22 - numa: - description: | - PNIC instance within the NUMA processor cluster PNIC Instance correlates to the second digit of the Physical Network Name suffix (e.g. "01" = PNIC 1, "02" = "PNIC 2) - type: string - required: false - constraints: - - valid_values: - - NUMA 0 - - NUMA 1 - pnic_instance: - description: PNIC instance within the NUMA processor cluster - type: integer - required: false - - org.openecomp.datatypes.DeploymentFlavor: - derived_from: tosca.datatypes.Root - description: Deployment Flavor - properties: - name: - description: Deployment Flavor Name - type: string - status: SUPPORTED - required: true - license_feature_group: - description: license feature group associated with Deployment Flavor - type: org.openecomp.datatypes.FeatureGroup - status: SUPPORTED - required: true - compute_size: - description: Size of VM - type: org.openecomp.datatypes.ComputeFlavor - status: SUPPORTED - required: true - - org.openecomp.datatypes.FeatureGroup: - derived_from: tosca.datatypes.Root - description: License Feature Group - properties: - license_feature_group_ref: - description: Deployment Flavor Name - type: string - status: SUPPORTED - required: true - part_number: - description: refrence part number related to feature group - type: string - status: SUPPORTED - required: true - - org.openecomp.datatypes.EcompHoming: - derived_from: org.openecomp.datatypes.Root - properties: - ecomp_selected_instance_node_target: - description: | - "true" indicates that the target deployment node for this instance will be auto-selected by OPENECOMP "false" indicates operator-supplied instance target deployment node required (e.g. VID will present a prompt to operator and collect the operator-selected target node for the deployment of this Network instance). - type: boolean - default: false - required: true - homing_policy: - description: Referenc to a service level homing policy that OPENECOMP will use for instance deployment target node - type: string - required: false - instance_node_target: - description: Instance target deployment node - type: string - required: false - - org.openecomp.datatypes.AssignmentRequirements: - derived_from: org.openecomp.datatypes.Root - properties: - is_required: - description: | - "true" indicates that assignment is required - type: boolean - default: false - required: true - count: - description: number of assignments required - type: integer - required: false - - org.openecomp.resource.abstract.nodes.PNF: - derived_from: tosca.nodes.Root - properties: - nf_function: - type: string - nf_role: - type: string - nf_type: - type: string - - - org.openecomp.datatypes.network.IpRequirements: - derived_from: org.openecomp.datatypes.Root - properties: - ip_version: - type: integer - required: true - constraints: - - valid_values: - - 4 - - 6 - ip_count: - description: identifies the number of ip address to assign to the CP from the plan - type: integer - required: false - floating_ip_count: - type: integer - required: false - subnet_role: - type: string - required: false - assingment_method: - type: string - required: true - constraints: - - valid_values: - - fixed - - dhcp - dhcp_enabled: - type: boolean - required: false - ip_count_required: - description: identifies the number of ip address to assign to the CP from the plan - type: org.openecomp.datatypes.AssignmentRequirements - required: false - floating_ip_count_required: - type: org.openecomp.datatypes.AssignmentRequirements - required: false - ip_address_plan_name: - type: string - required: false - vrf_name: - type: string - required: false - - org.openecomp.datatypes.network.PhysicalNetwork: - derived_from: org.openecomp.datatypes.Root - properties: - provider_network: - description: true indicates that this a Neutron provider type of network - type: boolean - required: true - physical_network_name: - description: | - Identifies the NUMA processor cluster to which this physical network interface belongs. NUMA instance correlates to the first digit of the Physical Network Name suffix (e.g. "01" = NUMA 0, "11" = NUMA 1) - type: string - required: false - constraints: - - valid_values: - - Physnet-SRIOV-1 - - Physnet-SRIOV-2 - - Physnet-SRIOV-11 - - Physnet-SRIOV-12 - numa: - description: | - PNIC instance within the NUMA processor cluster PNIC Instance correlates to the second digit of the Physical Network Name suffix (e.g. "01" = PNIC 1, "02" = "PNIC 2) - type: string - required: false - constraints: - - valid_values: - - NUMA 0 - - NUMA 1 - pnic_instance: - description: PNIC instance within the NUMA processor cluster - type: integer - required: false - - org.openecomp.datatypes.network.VlanRequirements: - derived_from: org.openecomp.datatypes.Root - properties: - vlan_range_plan: - description: reference to a vlan range plan - type: string - required: true - vlan_type: - description: identifies the vlan type (e.g., c-tag) - type: string - required: true - constraints: - - valid_values: - - c-tag - - s-tag - vlan_count: - description: identifies the number of vlan tags to assign to the CP from the plan - type: integer - required: true - - org.openecomp.datatypes.ComputeFlavor: - derived_from: tosca.datatypes.Root - description: Compute Flavor (Size) - properties: - name: - description: Compute Flavor Name - type: string - status: SUPPORTED - required: true - num_cpus: - description: Number of cpu - type: integer - status: SUPPORTED - required: true - disk_size: - description: Disk size - type: scalar-unit.size - status: SUPPORTED - required: true - mem_size: - description: Memory size - type: scalar-unit.size - status: SUPPORTED - required: true - - org.openecomp.datatypes.network.MacAssignments: - derived_from: org.openecomp.datatypes.Root - properties: - mac_range_plan: - description: reference to a MAC address range plan - type: string - required: true - mac_count: - description: identifies the number of MAC addresses to assign to the CP from the plan - type: integer - required: false - mac_count_required: - description: identifies the number of MAC addresses to assign to the CP from the plan - type: org.openecomp.datatypes.AssignmentRequirements - required: false - - org.openecomp.datatypes.network.MacRequirements: - derived_from: org.openecomp.datatypes.Root - properties: - mac_range_plan: - description: reference to a MAC address range plan - type: string - required: true - mac_count: - description: identifies the number of MAC addresses to assign to the CP from the plan - type: integer - required: false - mac_count_required: - description: identifies the number of MAC addresses to assign to the CP from the plan - type: org.openecomp.datatypes.AssignmentRequirements - required: false - - org.openecomp.datatypes.network.SubnetAssignments: - derived_from: org.openecomp.datatypes.Root - properties: - ip_network_address_plan: - description: Reference to EIPAM, VLAN or other address plan ID used to assign subnets to this network - type: string - required: false - dhcp_enabled: - description: \"true\" indicates the network has 1 or more policies - type: boolean - required: false - ip_version: - description: The IP version of the subnet - type: integer - required: true - constraints: - - valid_values: - - 4 - - 6 - cidr_mask: - description: The default subnet CIDR mask - type: integer - required: true - min_subnets_count: - description: Quantity of subnets that must be initially assigned - type: integer - default: 1 - required: true - - org.openecomp.datatypes.Artifact: - derived_from: org.openecomp.datatypes.Root - properties: - artifact_name: - description: Artifcat name - type: string - required: true - artifact_type: - description: Artifcat type - type: string - required: true - artifact_uuid: - description: Artifcat UUID - type: string - required: true - artifact_checksum: - description: Artifact checksum - type: string - required: true - artifact_url: - description: Artifcay URL. Can also include only the file name - type: string - required: true - - org.openecomp.datatypes.network.IPv4SubnetAssignments: - derived_from: org.openecomp.datatypes.network.SubnetAssignments - properties: - use_ipv4: - description: Indicates IPv4 subnet assignments - type: boolean - required: true - - org.openecomp.datatypes.Root: - derived_from: tosca.datatypes.Root - description: | - The AT&T root Data Type all other Data Types derive from - properties: - supplemental_data: - type: map - entry_schema: - type: string - description: | - A placeholder for missing properties that would be included in future OPENecomp model - versions. fromat : - - - org.openecomp.datatypes.substitution.SubstitutionFiltering: - derived_from: tosca.datatypes.Root - description: Substitution Filter - properties: - substitute_service_template: - description: Substitute Service Template - type: string - status: SUPPORTED - required: true - index_value: - description: Index value of the substitution service template runtime instance - type: integer - status: SUPPORTED - default: 0 - required: false - constraints: - - greater_or_equal: 0 - count: - description: Count - type: integer - status: SUPPORTED - default: 1 - required: false - scaling_enabled: - description: Indicates whether service scaling is enabled - type: boolean - status: SUPPORTED - default: true - required: false - mandatory: - description: Mandatory - type: boolean - status: SUPPORTED - required: false - - org.openecomp.datatypes.network.NetworkFlows: - derived_from: org.openecomp.datatypes.Root - properties: - is_network_policy: - description: true indicates the network has 1 or more policies - type: boolean - default: false - required: false - network_policy: - description: Identifies the specific OPENECOMP Contrail network policy that must be applied to this network (source - from Policy Manager) - type: string - required: false - vpn_binding: - description: Identifies the specific VPN Binding entry in A&AI that must be applied when creating this network (source - A&AI) - type: string - required: false - - org.openecomp.datatypes.network.NetworkAssignments: - derived_from: org.openecomp.datatypes.Root - properties: - ecomp_generated_network_assignment: - description: | - "true" indicates that the network assignments will be auto-generated by OPENECOMP "false" indicates operator-supplied Network assignments file upload is required (e.g. VID will present prompt to operator to upload operator-supplied Network assignments file). - type: boolean - default: false - required: true - network_assignments_file: - description: Filename of the template that specifies all of the configurable name/value pairs of Network assignments in this Network model - type: string - required: false - multi_tenant: - description: true means this network is shared by multiple Openstack tenants - type: boolean - default: true - required: true - min_subnets_count: - description: Quantity of subnets that must be initially assigned - type: integer - required: true - ip_network_address_plan: - description: Reference to EIPAM, VLAN or other address plan ID used to assign subnets to this network - type: string - required: true - vlan_network_address_plan: - description: Reference to VLAN or other address plan ID used to assign subnets to this network - type: string - required: true - - org.openecomp.datatypes.network.IPv6SubnetAssignments: - derived_from: org.openecomp.datatypes.network.SubnetAssignments - properties: - use_ipv6: - description: Indicates IPv6 subnet assignments - type: boolean - required: true - - org.openecomp.datatypes.EcompNaming: - derived_from: org.openecomp.datatypes.Root - properties: - ecomp_generated_naming: - description: | - "true" indicates that the name for the instance will be auto-generated by OPENECOMP. "false" indicates operator-supplied name required (e.g. VID will present prompt to operator and collect the operator-supplied instance name). - type: boolean - default: true - required: true - naming_policy: - description: Referenc to naming policy that OPENECOMP will use when the name is auto-generated - type: string - required: false - - org.openecomp.datatypes.Naming: - derived_from: org.openecomp.datatypes.Root - properties: - ecomp_generated_naming: - description: | - "true" indicates that the name for the instance will be auto-generated by OPENECOMP. "false" indicates operator-supplied name required (e.g. VID will present prompt to operator and collect the operator-supplied instance name). - type: boolean - default: true - required: true - - org.openecomp.datatypes.EcompGeneratedNaming: - derived_from: org.openecomp.datatypes.Naming - properties: - naming_policy: - description: Referenc to naming policy that OPENECOMP will use when the name is auto-generated - type: string - required: false - - org.openecomp.datatypes.UserDefinedNaming: - derived_from: org.openecomp.datatypes.Naming - properties: - instance_name: - description: Reference to naming policy that OPENECOMP will use when the name is auto-generated - type: string - required: false - - org.openecomp.datatypes.flavors.DeploymentFlavor: - properties: - sp_part_number: - type: string - description: Part number of the feature group associated with the deployment flavor - vendor_info: - type: org.openecomp.datatypes.flavors.VendorInfo - description: Vendor information for the deployment flavor - compute_flavor: - type: org.openecomp.datatypes.flavors.ComputeFlavor - description: Compute information for the deployment flavor - license_flavor: - type: org.openecomp.datatypes.flavors.LicenseFlavor - description: License information for the deployment flavor - required: false - - org.openecomp.datatypes.flavors.ComputeFlavor: - properties: - num_cpus: - type: integer - description: Number of CPUs for the VM - disk_size: - type: scalar-unit.size - description: Disk size of the VM - mem_size: - type: scalar-unit.size - description: Memory size of the VM - - org.openecomp.datatypes.flavors.LicenseFlavor: - properties: - feature_group_uuid: - type: string - description: Feature Group Id - - org.openecomp.datatypes.flavors.VendorInfo: - properties: - manufacturer_reference_number: - type: string - description: Manufacturer reference number - vendor_model: - type: string - description: Vendor License Model Id - - org.openecomp.datatypes.ImageInfo: - properties: - software_version: - type: string - description: Image version - file_name: - type: string - description: Image file name - file_hash: - type: string - description: checksum/signature - file_hash_type: - type: string - description: Hash type - required: false - default: md5 - - # New data types for Port Mirroring - org.openecomp.datatypes.PortMirroringConnectionPointDescription: - properties: - nf_type: - type: string - nfc_type: - type: string - network_role: - type: string - pps_capacity: - type: string - - tosca.datatypes.network.NetworkInfo: - properties: - network_id: - required: false - type: string - addresses: - entry_schema: - type: string - required: false - type: list - network_name: - required: false - type: string - tosca.datatypes.network.PortInfo: - properties: - port_name: - required: false - type: string - network_id: - required: false - type: string - addresses: - entry_schema: - type: string - required: false - type: list - mac_address: - required: false - type: string - port_id: - required: false - type: string diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/groups.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/groups.yml deleted file mode 100644 index 10d2121c18..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/groups.yml +++ /dev/null @@ -1,93 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: openecomp/groups.yml - version: '1.0' - -imports: -- openecomp_index: - file: _index.yml - -group_types: - - org.openecomp.groups.VfModule: - derived_from: tosca.groups.Root - description: Grouped all heat resources which are in the same VF Module - properties: - isBase: - description: Whether this module should be deployed before other modules - type: boolean - status: SUPPORTED - default: false - required: true - vf_module_label: - description: | - Alternate textual key used to reference this VF-Module model. Must be unique within the VNF model - type: string - required: true - vf_module_description: - description: | - Description of the VF-modules contents and purpose (e.g. "Front-End" or "Database Cluster") - type: string - required: true - min_vf_module_instances: - description: The minimum instances of this VF-Module - type: integer - required: true - max_vf_module_instances: - description: The maximum instances of this VF-Module - type: integer - required: false - initial_count: - description: | - The initial count of instances of the VF-Module. The value must be in the range between min_vfmodule_instances and max_vfmodule_instances. If no value provided the initial count is the min_vfmodule_instances. - type: integer - required: false - vf_module_type: - type: string - required: true - constraints: - - valid_values: - - Base - - Expansion - volume_group: - description: | - "true" indicates that this VF Module model requires attachment to a Volume Group. VID operator must select the Volume Group instance to attach to a VF-Module at deployment time. - type: boolean - default: false - required: true - - org.openecomp.groups.VfcInstanceGroup: - derived_from: tosca.groups.Root - description: groups VFCs with same parent port role - properties: - vfc_instance_group_function: - type: string - required: true - description: role of this VFC group - vfc_parent_port_role: - type: string - required: true - description: common role of parent ports of VFCs in this group - network_collection_function: - type: string - required: true - description: network collection role assigned to this group - subinterface_role: - type: string - required: true - description: common role of subinterfaces of VFCs in this group, criteria the group is created \ No newline at end of file diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/nodes.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/nodes.yml deleted file mode 100644 index 457770845f..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/nodes.yml +++ /dev/null @@ -1,920 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: openecomp/nodes.yml - version: '1.0' - -imports: -- openecomp_index: - file: _index.yml - -node_types: - - org.openecomp.resource.vl.nodes.network.Network: - derived_from: tosca.nodes.network.Network - properties: - vendor: - type: string - required: false - vl_name: - type: string - required: false - capabilities: - end_point: - type: tosca.capabilities.Endpoint - - org.openecomp.resource.abstract.nodes.AbstractSubstitute: - derived_from: tosca.nodes.Root - properties: - service_template_filter: - description: Substitution Filter - type: org.openecomp.datatypes.substitution.SubstitutionFiltering - status: SUPPORTED - required: true - - org.openecomp.resource.vl.extVL: - derived_from: org.openecomp.resource.vl.nodes.network.Network - description: VF Tenant oam protected network - properties: - network_type: - description: OPENECOMP supported network types. - type: string - required: true - network_role: - description: | - Unique label that defines the role that this network performs. example: vce oam network, vnat sr-iov1 network - type: string - required: true - network_scope: - description: | - Uniquely identifies the network scope. Valid values for the network scope includes: VF - VF-level network. Intra-VF network which connects the VFCs (VMs) inside the VF. SERVICE - Service-level network. Intra-Service network which connects the VFs within the service GLOBAL - Global network which can be shared by multiple services - type: string - constraints: - - valid_values: - - VF - - SERVICE - - GLOBAL - network_technology: - description: OPENECOMP supported network technology - type: string - required: true - network_ecomp_naming: - type: org.openecomp.datatypes.EcompNaming - required: true - network_homing: - type: org.openecomp.datatypes.EcompHoming - required: true - network_assignments: - type: org.openecomp.datatypes.network.NetworkAssignments - required: true - provider_network: - type: org.openecomp.datatypes.network.ProviderNetwork - required: true - network_flows: - type: org.openecomp.datatypes.network.NetworkFlows - required: false - - - org.openecomp.resource.vfc.nodes.Compute: - derived_from: tosca.nodes.Compute - capabilities: - disk.ephemeral.size: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - instance: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - memory: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.iops: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.device.read.requests: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - cpu.delta: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.capacity: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.device.read.bytes: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.write.bytes: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.latency: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.device.read.bytes.rate: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.usage: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - cpu_util: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.device.allocation: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.write.requests.rate: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.write.bytes.rate: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.device.latency: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - cpu: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.device.write.requests: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.device.write.bytes: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.read.requests: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.root.size: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.device.write.bytes.rate: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - vcpus: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.device.iops: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.device.usage: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.device.read.requests.rate: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.device.write.requests.rate: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.allocation: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.read.bytes.rate: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.read.bytes: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - memory.usage: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.device.capacity: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - memory.resident: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - disk.write.requests: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - - org.openecomp.resource.abstract.nodes.DFAbstractSubstitute: - derived_from: org.openecomp.resource.abstract.nodes.AbstractSubstitute - properties: - license_feature_group_ref: - description: refrence to license feature group - type: string - status: SUPPORTED - required: true - requirements: - - deployment_flavor: - capability: org.openecomp.capabilities.attachment.DeploymentFlavor - node: org.openecomp.resource.nodes.DeploymentFlavor - relationship: org.openecomp.relationships.AttachesTo - occurrences: - - 1 - - UNBOUNDED - - org.openecomp.resource.abstract.nodes.ComplexVFC: - derived_from: org.openecomp.resource.abstract.nodes.AbstractSubstitute - - org.openecomp.resource.abstract.nodes.VFC: - derived_from: org.openecomp.resource.abstract.nodes.AbstractSubstitute - properties: - high_availablity: - description: high_availablity - type: string - status: SUPPORTED - required: false - vm_image_name: - description: Master image_name volume id - type: string - status: SUPPORTED - required: true - vm_flavor_name: - description: Master image_name volume id - type: string - status: SUPPORTED - required: true - nfc_naming_code: - description: nfc code for instance naming - type: string - status: SUPPORTED - required: false - nfc_code: - type: string - description: nfc code - status: SUPPORTED - required: false - nfc_function: - type: string - description: nfc function - status: SUPPORTED - required: false - vm_type_tag: - description: vm type based on naming Convention - type: string - status: SUPPORTED - required: false - vfc_naming: - description: vfc naming - type: org.openecomp.datatypes.Naming - status: SUPPORTED - required: false - min_instances: - description: Minimum number of VFC Instances - type: integer - status: SUPPORTED - default: 0 - required: false - constraints: - - greater_or_equal: 0 - max_instances: - description: Maximum number of VFC Instances - type: integer - status: SUPPORTED - required: false - constraints: - - greater_or_equal: 1 - - org.openecomp.resource.vl.ELine: - derived_from: org.openecomp.resource.vl.nodes.network.Network - capabilities: - linkable: - type: tosca.capabilities.network.Linkable - occurrences: - - 0 - - 2 - - org.openecomp.resource.cp.nodes.network.v2.SubInterface: - derived_from: tosca.nodes.Root - properties: - ip_address: - description: Allow the user to set a fixed IP address. Note that this address is a request to the provider which they will attempt to fulfill but may not be able to dependent on the network the port is associated with. - type: string - required: false - order: - description: 'The order of the NIC on the compute instance (e.g. eth2). Note: - when binding more than one port to a single compute (aka multi vNICs) and - ordering is desired, it is *mandatory* that all ports will be set with an - order value and. The order values must represent a positive, arithmetic - progression that starts with 0 (e.g. 0, 1, 2, ..., n).' - type: integer - default: 0 - required: false - constraints: - - greater_or_equal: 0 - is_default: - description: Set is_default=true to apply a default gateway route on the running compute instance to the associated network gateway. Only one port that is associated to single compute node can set as default=true. - type: boolean - default: false - required: false - ip_range_start: - description: Defines the starting IP of a range to be allocated for the compute instances that are associated by this Port. Without setting this property the IP allocation is done from the entire CIDR block of the network. - type: string - required: false - ip_range_end: - description: Defines the ending IP of a range to be allocated for the compute instances that are associated by this Port. Without setting this property the IP allocation is done from the entire CIDR block of the network. - type: string - required: false - attributes: - ip_address: - description: The IP address would be assigned to the associated compute instance. - type: string - requirements: - - subinterface_link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - binding: - capability: tosca.capabilities.network.Bindable - relationship: tosca.relationships.network.BindsTo - - org.openecomp.resource.cp.nodes.network.SubInterface: - derived_from: tosca.nodes.network.Port - - org.openecomp.resource.vl.internalVL: - derived_from: org.openecomp.resource.vl.nodes.network.Network - description: The AT&T internal (VF-level) Virtual Link - - org.openecomp.resource.cp.nodes.network.Port: - derived_from: tosca.nodes.network.Port - properties: - subinterface_indicator: - description: identifies if Port is having Sub Interface - type: boolean - required: false - default: false - network_role_tag: - description: Must correlate to the set of defined “network-role�? tag identifiers from the associated HEAT template - type: string - required: true - mac_requirements: - description: identifies MAC address assignments to the CP - type: org.openecomp.datatypes.network.MacRequirements - required: false - vlan_requirements: - description: identifies vlan address assignments to the CP - type: list - entry_schema: - type: org.openecomp.datatypes.network.VlanRequirements - required: false - ip_requirements: - description: identifies IP requirements to the CP - type: list - entry_schema: - type: org.openecomp.datatypes.network.IpRequirements - required: true - network_role: - description: identical to VL network_role - type: string - required: false - order: - description: The order of the CP on the compute instance (e.g. eth2). - type: integer - required: false - exCP_naming: - description: CP Name - type: org.openecomp.datatypes.Naming - required: false - subnetpoolid: - description: subnet pool id - type: string - required: false - capabilities: - network.incoming.packets.rate: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - network.outgoing.bytes: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - network.outgoing.packets.rate: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - network.outpoing.packets: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - network.incoming.bytes.rate: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - network.incoming.bytes: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - network.outgoing.bytes.rate: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - network.incoming.packets: - description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. - type: org.openecomp.capabilities.metric.Ceilometer - occurrences: - - 1 - - UNBOUNDED - forwarder: - type: org.openecomp.capabilities.Forwarder - - org.openecomp.resource.nodes.DeploymentFlavor: - derived_from: tosca.nodes.Root - capabilities: - deployment_flavor: - description: Allowed deployment flavors of an abstract node - type: org.openecomp.capabilities.attachment.DeploymentFlavor - occurrences: - - 1 - - UNBOUNDED - - org.openecomp.resource.cp.extCP: - derived_from: tosca.nodes.Root - description: The AT&T Connection Point base type all other CP derive from - properties: - network_role: - description: identical to VL network_role - type: string - required: true - order: - description: The order of the CP on the compute instance (e.g. eth2). - type: integer - required: true - network_role_tag: - description: Must correlate to the set of defined “network-role�? tag identifiers from the associated HEAT template - type: string - required: true - mac_requirements: - description: identifies MAC address assignments to the CP - type: org.openecomp.datatypes.network.MacRequirements - required: false - vlan_requirements: - description: identifies vlan address assignments to the CP - type: list - entry_schema: - type: org.openecomp.datatypes.network.VlanRequirements - required: false - ip_requirements: - description: identifies IP requirements to the CP - type: list - entry_schema: - type: org.openecomp.datatypes.network.IpRequirements - required: true - capabilities: - internal_connectionPoint: - type: tosca.capabilities.Node - valid_source_types: - - tosca.nodes.network.Port - requirements: - - virtualLink: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - virtualBinding: - capability: tosca.capabilities.network.Bindable - relationship: tosca.relationships.network.BindsTo - - external_virtualLink: - capability: tosca.capabilities.network.Linkable - node: org.openecomp.resource.vl.nodes.network.Network - relationship: tosca.relationships.network.LinksTo - - org.openecomp.resource.vfc.nodes.volume: - derived_from: tosca.nodes.BlockStorage - - ### Node types related to Deployment Flavors - org.openecomp.resource.abstract.nodes.VnfConfiguration: - derived_from: tosca.nodes.Root - description: a container for the available flavors - properties: - allowed_flavors: - description: a collection of all available flavor valuesets - type: map - entry_schema: - type: org.openecomp.datatypes.flavors.DeploymentFlavor - - org.openecomp.resource.abstract.nodes.MultiFlavorVFC: - derived_from: org.openecomp.resource.abstract.nodes.VFC - description: Multi flavored VFC node - properties: - images: - type: map - entry_schema: - type: org.openecomp.datatypes.ImageInfo - required: false - - ## New node types for Port Mirroring - org.openecomp.nodes.ServiceProxy: - derived_from: tosca.nodes.Root - - org.openecomp.nodes.PortMirroringConfiguration: - derived_from: tosca.nodes.Root - requirements: - - source: - capability: org.openecomp.capabilities.PortMirroring - occurrences: - - 1 - - UNBOUNDED - - collector: - capability: org.openecomp.capabilities.PortMirroring - occurrences: - - 1 - - 1 - - org.openecomp.resource.cp.v2.extCP: - derived_from: org.openecomp.resource.cp.nodes.network.Port - description: The SDC External Connection Point base type - capabilities: - port_mirroring: - type: org.openecomp.capabilities.PortMirroring - - org.openecomp.resource.cp.v2.extNeutronCP: - derived_from: org.openecomp.resource.cp.v2.extCP - properties: - port_security_enabled: - type: boolean - description: Flag to enable/disable port security on the network - required: false - status: SUPPORTED - device_id: - type: string - description: Device ID of this port - required: false - status: SUPPORTED - qos_policy: - type: string - description: The name or ID of QoS policy to attach to this network - required: false - status: SUPPORTED - allowed_address_pairs: - type: list - description: Additional MAC/IP address pairs allowed to pass through the port - required: false - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.AddressPair - binding:vnic_type: - type: string - description: The vnic type to be bound on the neutron port - required: false - status: SUPPORTED - constraints: - - valid_values: - - macvtap - - direct - - normal - value_specs: - type: map - description: Extra parameters to include in the request - required: false - default: { - } - status: SUPPORTED - entry_schema: - type: string - device_owner: - type: string - description: Name of the network owning the port - required: false - status: SUPPORTED - network: - type: string - description: Network this port belongs to - required: false - status: SUPPORTED - replacement_policy: - type: string - description: Policy on how to respond to a stack-update for this resource - required: false - default: AUTO - status: SUPPORTED - constraints: - - valid_values: - - REPLACE_ALWAYS - - AUTO - security_groups: - type: list - description: List of security group names or IDs - required: false - status: SUPPORTED - entry_schema: - type: string - fixed_ips: - type: list - description: Desired IPs for this port - required: false - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.neutron.port.FixedIps - mac_address: - type: string - description: MAC address to give to this port - required: false - status: SUPPORTED - admin_state_up: - type: boolean - description: A boolean value specifying the administrative status of the network - required: false - default: true - status: SUPPORTED - name: - type: string - description: A symbolic name for this port - required: false - status: SUPPORTED - attributes: - tenant_id: - type: string - description: Tenant owning the port - status: SUPPORTED - network_id: - type: string - description: Unique identifier for the network owning the port - status: SUPPORTED - qos_policy_id: - type: string - description: The QoS policy ID attached to this network - status: SUPPORTED - show: - type: string - description: Detailed information about resource - status: SUPPORTED - subnets: - type: list - description: Subnets of this network - status: SUPPORTED - entry_schema: - type: string - status: - type: string - description: The status of the network - status: SUPPORTED - capabilities: - attachment: - type: tosca.capabilities.Attachment - occurrences: - - 1 - - UNBOUNDED - binding: - type: tosca.capabilities.network.Bindable - valid_source_types: - - org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface - - org.openecomp.resource.cp.nodes.heat.network.v2.contrailV2.VLANSubInterface - occurrences: - - 0 - - UNBOUNDED - - org.openecomp.resource.cp.v2.extContrailCP: - derived_from: org.openecomp.resource.cp.v2.extCP - properties: - static_routes: - type: list - description: An ordered list of static routes to be added to this interface - required: false - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.contrail.port.StaticRoute - virtual_network: - type: string - description: Virtual Network for this interface - required: true - status: SUPPORTED - static_route: - type: boolean - description: Static route enabled - required: false - default: false - status: SUPPORTED - allowed_address_pairs: - type: list - description: List of allowed address pair for this interface - required: false - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.contrail.AddressPair - shared_ip: - type: boolean - description: Shared ip enabled - required: false - default: false - status: SUPPORTED - ip_address: - type: string - description: IP for this interface - required: false - status: SUPPORTED - interface_type: - type: string - description: Interface type - required: true - status: SUPPORTED - constraints: - - valid_values: - - management - - left - - right - - other - attributes: - fq_name: - type: string - description: fq_name - status: SUPPORTED - - org.openecomp.resource.cp.v2.extVirtualMachineInterfaceCP: - derived_from: org.openecomp.resource.cp.v2.extCP - properties: - name: - description: Virtual Machine Interface name - type: string - status: SUPPORTED - required: false - security_group_refs: - description: List of security groups. - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - virtual_network_refs: - description: List of virtual networks. - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - virtual_machine_interface_properties: - description: virtual machine interface properties. - type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.interface.Properties - status: SUPPORTED - required: false - port_tuple_refs: - description: List of port tuples. - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - virtual_machine_interface_mac_addresses: - description: List of mac addresses. - type: list - status: SUPPORTED - entry_schema: - type: string - required: false - virtual_machine_interface_allowed_address_pairs: - description: Virtual Machine Interface allowed address pairs. - type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPairs - status: SUPPORTED - required: false - attributes: - fq_name: - description: The FQ name of the Virtual Network. - type: string - status: SUPPORTED - show: - description: All attributes. - type: string - status: SUPPORTED - capabilities: - binding: - type: tosca.capabilities.network.Bindable - occurrences: - - 0 - - UNBOUNDED - valid_source_types: - - org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface - - org.openecomp.resource.cp.nodes.heat.network.v2.contrailV2.VLANSubInterface - - org.openecomp.nodes.ForwardingPath: - derived_from: tosca.nodes.Root - properties: - target_range: - type: list - entry_schema: - description: Identifier of the reciever port of the VNF or the service - type: integer - protocol: - type: string - description: protocol type that runs on the link - requirements: - - forwarder: - capability: org.openecomp.capabilities.Forwarder - relationship: org.openecomp.relationships.ForwardsTo - occurrences: [ 0, UNBOUNDED ] \ No newline at end of file diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/relationships.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/relationships.yml deleted file mode 100644 index d15c56e079..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/openecomp/relationships.yml +++ /dev/null @@ -1,59 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: openecomp/relationships.yml - version: '1.0' - -imports: -- openecomp_index: - file: _index.yml - -relationship_types: - - org.openecomp.relationships.VolumeAttachesTo: - derived_from: org.openecomp.relationships.AttachesTo - description: This type represents an attachment relationship for associating volume - properties: - volume_id: - description: The ID of the volume to be attached - type: string - status: SUPPORTED - required: true - instance_uuid: - description: The ID of the server to which the volume attaches - type: string - status: SUPPORTED - required: true - attributes: - show: - description: Detailed information about resource - type: string - status: SUPPORTED - - org.openecomp.relationships.AttachesTo: - derived_from: tosca.relationships.AttachesTo - description: This type represents an attachment relationship - properties: - location: - description: The relative location (e.g., path on the file system), which provides the root location to address an attached node. - type: string - status: SUPPORTED - required: false - - org.openecomp.relationships.ForwardsTo: - derived_from: tosca.relationships.Root - valid_target_types: [org.openecomp.capabilities.Forwarder] \ No newline at end of file diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/_index.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/_index.yml deleted file mode 100644 index 418744cdcd..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/_index.yml +++ /dev/null @@ -1,37 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: tosca/_index.yml - version: '1.0' - -imports: -- capabilities: - file: capabilities.yml -- nodes: - file: nodes.yml -- relationships: - file: relationships.yml -- groups: - file: groups.yml -- data: - file: data.yml -- interfaces: - file: interfaces.yml -- artifacts: - file: artifacts.yml -- policies: - file: policies.yml \ No newline at end of file diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/artifacts.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/artifacts.yml deleted file mode 100644 index a98c176265..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/artifacts.yml +++ /dev/null @@ -1,55 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: tosca/artifacts.yml - version: '1.0' - -imports: -- tosca_index: - file: _index.yml - -artifact_types: - tosca.artifacts.Root: - description: This is the default (root) TOSCA Artifact Type definition that all other TOSCA base Artifact Types derive from. - - tosca.artifacts.Deployment.Image: - derived_from: tosca.artifacts.Deployment - description: This artifact type represents a parent type for any "image" which is an opaque packaging of a TOSCA Node's deployment (whether real or virtual) whose contents are typically already installed and pre-configured (i.e., "stateful") and prepared to be run on a known target container. - - tosca.artifacts.Implementation.Bash: - derived_from: tosca.artifacts.Implementation - description: This artifact type represents a Bash script type that contains Bash commands that can be executed on the Unix Bash shell. - - tosca.artifacts.Deployment.Image.VM: - derived_from: tosca.artifacts.Deployment - description: This artifact represents the parent type for all Virtual Machine (VM) image and container formatted deployment artifacts. These images contain a stateful capture of a machine (e.g., server) including operating system and installed software along with any configurations and can be run on another machine using a hypervisor which virtualizes typical server (i.e., hardware) resources. - - tosca.artifacts.Implementation.Python: - derived_from: tosca.artifacts.Implementation - description: This artifact type represents a Python file that contains Python language constructs that can be executed within a Python interpreter. - - tosca.artifacts.Deployment: - derived_from: tosca.artifacts.Root - description: This artifact type represents the parent type for all deployment artifacts in TOSCA. This class of artifacts typically represents a binary packaging of an application or service that is used to install/create or deploy it as part of a node's lifecycle. - - tosca.artifacts.File: - derived_from: tosca.artifacts.Root - description: This artifact type is used when an artifact definition needs to have its associated file simply treated as a file and no special handling/handlers are invoked (i.e., it is not treated as either an implementation or deployment artifact type). - - tosca.artifacts.Implementation: - derived_from: tosca.artifacts.Root - description: This artifact type represents the parent type for all implementation artifacts in TOSCA. These artifacts are used to implement operations of TOSCA interfaces either directly (e.g., scripts) or indirectly (e.g., config. files). diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/capabilities.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/capabilities.yml deleted file mode 100644 index 1b642cdcb1..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/capabilities.yml +++ /dev/null @@ -1,230 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: tosca/capabilities.yml - version: '1.0' - -imports: -- tosca_index: - file: _index.yml - -capability_types: - tosca.capabilities.Root: - description: This is the default (root) TOSCA Capability Type definition that all other TOSCA Capability Types derive from. - - tosca.capabilities.Node: - derived_from: tosca.capabilities.Root - description: The Node capability indicates the base capabilities of a TOSCA Node Type. - - tosca.capabilities.Container: - derived_from: tosca.capabilities.Root - description: The Container capability, when included on a Node Type or Template definition, indicates that the node can act as a container for (or a host for) one or more other declared Node Types. - properties: - num_cpus: - description: Number of (actual or virtual) CPUs associated with the Compute node. - type: integer - required: false - constraints: - - greater_or_equal: 1 - cpu_frequency: - description: Specifies the operating frequency of CPU's core. This property expresses the expected frequency of one (1) CPU as provided by the property "num_cpus". - type: scalar-unit.frequency - required: false - constraints: - - greater_or_equal: 0.1 GHz - disk_size: - description: Size of the local disk available to applications running on the Compute node (default unit is MB). - type: scalar-unit.size - required: false - constraints: - - greater_or_equal: 0 MB - mem_size: - description: Size of memory available to applications running on the Compute node (default unit is MB). - type: scalar-unit.size - required: false - constraints: - - greater_or_equal: 0 MB - - tosca.capabilities.Endpoint: - derived_from: tosca.capabilities.Root - description: This is the default TOSCA type that should be used or extended to define a network endpoint capability. This includes the information to express a basic endpoint with a single port or a complex endpoint with multiple ports. By default the Endpoint is assumed to represent an address on a private network unless otherwise specified. - properties: - protocol: - description: 'The name of the protocol (i.e., the protocol prefix) that the - endpoint accepts (any OSI Layer 4-7 protocols). Examples: http, https, ftp, - tcp, udp, etc.' - type: string - default: tcp - required: true - port: - description: The optional port of the endpoint. - type: tosca.datatypes.network.PortDef - required: false - secure: - description: Requests for the endpoint to be secure and use credentials supplied on the ConnectsTo relationship. - type: boolean - default: false - required: false - url_path: - description: The optional URL path of the endpoint's address if applicable for the protocol. - type: string - required: false - port_name: - description: The optional name (or ID) of the network port this endpoint should be bound to. - type: string - required: false - network_name: - description: 'The optional name (or ID) of the network this endpoint should - be bound to. network_name: PRIVATE | PUBLIC | | .' - type: string - default: PRIVATE - required: false - initiator: - description: The optional indicator of the direction of the connection. - type: string - default: source - required: false - constraints: - - valid_values: - - source - - target - - peer - ports: - description: The optional map of ports the Endpoint supports (if more than one). - type: map - entry_schema: - type: tosca.datatypes.network.PortSpec - required: false - constraints: - - min_length: 1 - attributes: - ip_address: - description: 'Note: This is the IP address as propagated up by the associated - node''s host (Compute) container.' - type: string - - tosca.capabilities.Endpoint.Public: - derived_from: tosca.capabilities.Endpoint - description: |- - This capability represents a public endpoint which is accessible to the general internet (and its public IP address ranges). - This public endpoint capability also can be used to create a floating (IP) address that the underlying network assigns from a pool allocated from the application's underlying public network. This floating address is managed by the underlying network such that can be routed an application's private address and remains reliable to internet clients. - properties: - network_name: - type: string - default: PUBLIC - constraints: - - equal: PUBLIC - - tosca.capabilities.Endpoint.Admin: - derived_from: tosca.capabilities.Endpoint - description: This is the default TOSCA type that should be used or extended to define a specialized administrator endpoint capability. - properties: - secure: - description: Requests for the endpoint to be secure and use credentials supplied on the ConnectsTo relationship. - type: boolean - default: true - constraints: - - equal: true - - tosca.capabilities.Endpoint.Database: - derived_from: tosca.capabilities.Endpoint - description: This is the default TOSCA type that should be used or extended to define a specialized database endpoint capability. - - tosca.capabilities.Attachment: - derived_from: tosca.capabilities.Root - description: This is the default TOSCA type that should be used or extended to define an attachment capability of a (logical) infrastructure device node (e.g., BlockStorage node). - - tosca.capabilities.OperatingSystem: - derived_from: tosca.capabilities.Root - description: This is the default TOSCA type that should be used to express an Operating System capability for a node. - properties: - architecture: - description: 'The Operating System (OS) architecture. Examples of valid values - include: x86_32, x86_64, etc.' - type: string - required: false - type: - description: 'The Operating System (OS) type. Examples of valid values include: - linux, aix, mac, windows, etc.' - type: string - required: false - distribution: - description: 'The Operating System (OS) distribution. Examples of valid values - for a "type" of "Linux" would include: debian, fedora, rhel and ubuntu.' - type: string - required: false - version: - description: The Operating System version. - type: version - required: false - - tosca.capabilities.Scalable: - derived_from: tosca.capabilities.Root - description: This is the default TOSCA type that should be used to express a scalability capability for a node. - properties: - min_instances: - description: This property is used to indicate the minimum number of instances that should be created for the associated TOSCA Node Template by a TOSCA orchestrator. - type: integer - default: 1 - max_instances: - description: This property is used to indicate the maximum number of instances that should be created for the associated TOSCA Node Template by a TOSCA orchestrator. - type: integer - default: 1 - default_instances: - description: 'An optional property that indicates the requested default number - of instances that should be the starting number of instances a TOSCA orchestrator - should attempt to allocate. Note: The value for this property MUST be in - the range between the values set for "min_instances" and "max_instances" - properties.' - type: integer - required: false - - tosca.capabilities.network.Bindable: - derived_from: tosca.capabilities.Node - description: A node type that includes the Bindable capability indicates that it can be bound to a logical network association via a network port. - - tosca.capabilities.network.Linkable: - derived_from: tosca.capabilities.Node - description: A node type that includes the Linkable capability indicates that it can be pointed by tosca.relationships.network.LinksTo relationship type. - - tosca.capabilities.Container.Docker: - derived_from: tosca.capabilities.Container - properties: - version: - type: list - entry_schema: - type: version - required: false - publish_all: - type: boolean - default: false - required: false - publish_ports: - type: list - entry_schema: - type: PortSpec - required: false - expose_ports: - type: list - entry_schema: - type: PortSpec - required: false - volumes: - type: list - entry_schema: - type: string - required: false diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/data.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/data.yml deleted file mode 100644 index a799d0d25b..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/data.yml +++ /dev/null @@ -1,191 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: tosca/data.yml - version: '1.0' - -imports: -- tosca_index: - file: _index.yml - -data_types: - tosca.datatypes.Root: - description: The TOSCA root Data Type all other TOSCA base Data Types derive from - - string: - derived_from: tosca.datatypes.Root - - integer: - derived_from: tosca.datatypes.Root - - boolean: - derived_from: tosca.datatypes.Root - - float: - derived_from: tosca.datatypes.Root - - range: - derived_from: tosca.datatypes.Root - - list: - derived_from: tosca.datatypes.Root - - map: - derived_from: tosca.datatypes.Root - - timestamp: - derived_from: tosca.datatypes.Root - - version: - derived_from: tosca.datatypes.Root - - scalar-unit.size: - derived_from: tosca.datatypes.Root - - scalar-unit.frequency: - derived_from: tosca.datatypes.Root - - scalar-unit.time: - derived_from: tosca.datatypes.Root - - tosca.datatypes.network.NetworkInfo: - derived_from: tosca.datatypes.Root - description: The Network type is a complex TOSCA data type used to describe logical network information. - properties: - network_name: - description: The name of the logical network. e.g., "public", "private", "admin". etc. - type: string - required: false - network_id: - description: The unique ID of for the network generated by the network provider. - type: string - required: false - addresses: - description: The list of IP addresses assigned from the underlying network. - type: list - entry_schema: - type: string - required: false - - tosca.datatypes.TimeInterval: - derived_from: tosca.datatypes.Root - properties: - start_time: - type: timestamp - required: true - end_time: - type: timestamp - required: true - - tosca.datatypes.network.PortSpec: - derived_from: tosca.datatypes.Root - description: The PortSpec type is a complex TOSCA data Type used when describing port specifications for a network connection. - properties: - protocol: - description: The required protocol used on the port. - type: string - default: tcp - constraints: - - valid_values: - - udp - - tcp - - igmp - source: - description: The optional source port. - type: tosca.datatypes.network.PortDef - required: false - source_range: - description: The optional range for source port. - type: range - required: false - constraints: - - in_range: - - 1 - - 65535 - target: - description: The optional target port. - type: tosca.datatypes.network.PortDef - required: false - target_range: - description: The optional range for target port. - type: range - required: false - constraints: - - in_range: - - 1 - - 65535 - - tosca.datatypes.network.PortDef: - derived_from: integer - description: The PortDef type is a TOSCA data Type used to define a network port. - constraints: - - in_range: - - 1 - - 65535 - - tosca.datatypes.network.PortInfo: - derived_from: tosca.datatypes.Root - description: The PortInfo type is a complex TOSCA data type used to describe network port information. - properties: - port_name: - description: The logical network port name. - type: string - required: false - port_id: - description: The unique ID for the network port generated by the network provider. - type: string - required: false - network_id: - description: The unique ID for the network. - type: string - required: false - mac_address: - description: The unique media access control address (MAC address) assigned to the port. - type: string - required: false - addresses: - description: The list of IP address(es) assigned to the port. - type: list - entry_schema: - type: string - required: false - - tosca.datatypes.Credential: - derived_from: tosca.datatypes.Root - description: The Credential type is a complex TOSCA data Type used when describing authorization credentials used to access network accessible resources. - properties: - protocol: - description: The optional protocol name. - type: string - required: false - token_type: - description: The required token type. - type: string - default: password - token: - description: The required token used as a credential for authorization or access to a networked resource. - type: string - keys: - description: The optional list of protocol-specific keys or assertions. - type: map - entry_schema: - type: string - required: false - user: - description: The optional user (name or ID) used for non-token based credentials. - type: string - required: false diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/groups.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/groups.yml deleted file mode 100644 index 0ddc15175c..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/groups.yml +++ /dev/null @@ -1,30 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: tosca/groups.yml - version: '1.0' - -imports: -- tosca_index: - file: _index.yml - -group_types: - tosca.groups.Root: - description: This is the default (root) TOSCA Group Type definition that all other TOSCA base Group Types derive from. - interfaces: - standard: - type: tosca.interfaces.node.lifecycle.Standard diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/interfaces.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/interfaces.yml deleted file mode 100644 index 32a6d43381..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/interfaces.yml +++ /dev/null @@ -1,61 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: tosca/interfaces.yml - version: '1.0' - -imports: -- tosca_index: - file: _index.yml - -interface_types: - tosca.interfaces.Root: - description: This is the default (root) TOSCA Interface Type definition that all other TOSCA Interface Types derive from. - - tosca.interfaces.node.lifecycle.Standard: - derived_from: tosca.interfaces.Root - description: This lifecycle interface defines the essential, normative operations that TOSCA nodes may support. - stop: - description: Standard lifecycle stop operation. - start: - description: Standard lifecycle start operation. - create: - description: Standard lifecycle create operation. - configure: - description: Standard lifecycle configure operation. - delete: - description: Standard lifecycle delete operation. - - tosca.interfaces.relationship.Configure: - derived_from: tosca.interfaces.Root - description: The lifecycle interfaces define the essential, normative operations that each TOSCA Relationship Types may support. - pre_configure_source: - description: Operation to pre-configure the source endpoint. - pre_configure_target: - description: Operation to pre-configure the target endpoint. - post_configure_source: - description: Operation to post-configure the source endpoint. - post_configure_target: - description: Operation to post-configure the target endpoint. - add_target: - description: Operation to notify the source node of a target node being added via a relationship. - add_source: - description: Operation to notify the target node of a source node which is now available via a relationship. - target_changed: - description: Operation to notify source some property or attribute of the target changed - remove_target: - description: Operation to remove a target node. \ No newline at end of file diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/nodes.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/nodes.yml deleted file mode 100644 index af68802eaf..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/nodes.yml +++ /dev/null @@ -1,371 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: tosca/nodes.yml - version: '1.0' - -imports: -- tosca_index: - file: _index.yml - -node_types: - tosca.nodes.Root: - description: The TOSCA Root Node Type is the default type that all other TOSCA base Node Types derive from. This allows for all TOSCA nodes to have a consistent set of features for modeling and management (e.g., consistent definitions for requirements, capabilities and lifecycle interfaces). - attributes: - tosca_id: - description: A unique identifier of the realized instance of a Node Template that derives from any TOSCA normative type. - type: string - tosca_name: - description: This attribute reflects the name of the Node Template as defined in the TOSCA service template. This name is not unique to the realized instance model of corresponding deployed application as each template in the model can result in one or more instances (e.g., scaled) when orchestrated to a provider environment. - type: string - state: - description: The state of the node instance. - type: string - default: initial - capabilities: - feature: - type: tosca.capabilities.Node - requirements: - - dependency: - capability: tosca.capabilities.Node - node: tosca.nodes.Root - relationship: tosca.relationships.DependsOn - occurrences: - - 0 - - UNBOUNDED - interfaces: - standard: - type: tosca.interfaces.node.lifecycle.Standard - - tosca.nodes.ObjectStorage: - derived_from: tosca.nodes.Root - description: The TOSCA ObjectStorage node represents storage that provides the ability to store data as objects (or BLOBs of data) without consideration for the underlying filesystem or devices. - properties: - name: - description: The logical name of the object store (or container). - type: string - size: - description: The requested initial storage size (default unit is in Gigabytes). - type: scalar-unit.size - required: false - constraints: - - greater_or_equal: 0 GB - maxsize: - description: The requested maximum storage size (default unit is in Gigabytes). - type: scalar-unit.size - required: false - constraints: - - greater_or_equal: 0 GB - capabilities: - storage_endpoint: - type: tosca.capabilities.Endpoint - - tosca.nodes.DBMS: - derived_from: tosca.nodes.SoftwareComponent - description: The TOSCA DBMS node represents a typical relational, SQL Database Management System software component or service. - properties: - root_password: - description: The optional root password for the DBMS server. - type: string - required: false - port: - description: The DBMS server's port. - type: integer - required: false - capabilities: - host: - type: tosca.capabilities.Container - valid_source_types: - - tosca.nodes.Database - - tosca.nodes.WebApplication: - derived_from: tosca.nodes.Root - description: The TOSCA WebApplication node represents a software application that can be managed and run by a TOSCA WebServer node. Specific types of web applications such as Java, etc. could be derived from this type. - properties: - context_root: - description: The web application's context root which designates the application's URL path within the web server it is hosted on. - type: string - required: false - capabilities: - app_endpoint: - type: tosca.capabilities.Endpoint - requirements: - - host: - capability: tosca.capabilities.Container - node: tosca.nodes.WebServer - relationship: tosca.relationships.HostedOn - - tosca.nodes.Compute: - derived_from: tosca.nodes.Root - description: The TOSCA Compute node represents one or more real or virtual processors of software applications or services along with other essential local resources. Collectively, the resources the compute node represents can logically be viewed as a (real or virtual) "server". - attributes: - private_address: - description: The primary private IP address assigned by the cloud provider that applications may use to access the Compute node. - type: string - public_address: - description: The primary public IP address assigned by the cloud provider that applications may use to access the Compute node. - type: string - networks: - description: The list of logical networks assigned to the compute host instance and information about them. - type: map - entry_schema: - type: tosca.datatypes.network.NetworkInfo - ports: - description: The list of logical ports assigned to the compute host instance and information about them. - type: map - entry_schema: - type: tosca.datatypes.network.PortInfo - capabilities: - host: - type: tosca.capabilities.Container - valid_source_types: - - tosca.nodes.SoftwareComponent - binding: - type: tosca.capabilities.network.Bindable - os: - type: tosca.capabilities.OperatingSystem - scalable: - type: tosca.capabilities.Scalable - endpoint: - type: tosca.capabilities.Endpoint.Admin - requirements: - - local_storage: - capability: tosca.capabilities.Attachment - node: tosca.nodes.BlockStorage - relationship: tosca.relationships.AttachesTo - occurrences: - - 0 - - UNBOUNDED - - tosca.nodes.network.Network: - derived_from: tosca.nodes.Root - description: The TOSCA Network node represents a simple, logical network service. - properties: - ip_version: - description: The IP version of the requested network. - type: integer - default: 4 - required: false - constraints: - - valid_values: - - 4 - - 6 - cidr: - description: The cidr block of the requested network. - type: string - required: false - start_ip: - description: The IP address to be used as the 1st one in a pool of addresses derived from the cidr block full IP range. - type: string - required: false - end_ip: - description: The IP address to be used as the last one in a pool of addresses derived from the cidr block full IP range. - type: string - required: false - gateway_ip: - description: The gateway IP address. - type: string - required: false - network_name: - description: An Identifier that represents an existing Network instance in the underlying cloud infrastructure - OR - be used as the name of the new created network. - type: string - required: false - network_id: - description: An Identifier that represents an existing Network instance in the underlying cloud infrastructure. This property is mutually exclusive with all other properties except network_name. - type: string - required: false - segmentation_id: - description: A segmentation identifier in the underlying cloud infrastructure (e.g., VLAN id, GRE tunnel id). If the segmentation_id is specified, the network_type or physical_network properties should be provided as well. - type: string - required: false - network_type: - description: Optionally, specifies the nature of the physical network in the underlying cloud infrastructure. Examples are flat, vlan, gre or vxlan. For flat and vlan types, physical_network should be provided too. - type: string - required: false - physical_network: - description: Optionally, identifies the physical network on top of which the network is implemented, e.g. physnet1. This property is required if network_type is flat or vlan. - type: string - required: false - dhcp_enabled: - description: Indicates the TOSCA container to create a virtual network instance with or without a DHCP service. - type: boolean - default: true - required: false - capabilities: - link: - type: tosca.capabilities.network.Linkable - - tosca.nodes.WebServer: - derived_from: tosca.nodes.SoftwareComponent - description: This TOSCA WebServer Node Type represents an abstract software component or service that is capable of hosting and providing management operations for one or more WebApplication nodes. - capabilities: - data_endpoint: - type: tosca.capabilities.Endpoint - admin_endpoint: - type: tosca.capabilities.Endpoint.Admin - host: - type: tosca.capabilities.Container - valid_source_types: - - tosca.nodes.WebApplication - - tosca.nodes.Container.Application: - derived_from: tosca.nodes.Root - description: The TOSCA Container Application node represents an application that requires Container-level virtualization technology. - requirements: - - host: - capability: tosca.capabilities.Container - relationship: tosca.relationships.HostedOn - - tosca.nodes.Container.Runtime: - derived_from: tosca.nodes.SoftwareComponent - description: The TOSCA Container Runtime node represents operating system-level virtualization technology used to run multiple application services on a single Compute host. - capabilities: - host: - type: tosca.capabilities.Container - scalable: - type: tosca.capabilities.Scalable - - tosca.nodes.SoftwareComponent: - derived_from: tosca.nodes.Root - description: The TOSCA SoftwareComponent node represents a generic software component that can be managed and run by a TOSCA Compute Node Type. - properties: - component_version: - description: The optional software component's version. - type: version - required: false - admin_credential: - description: The optional credential that can be used to authenticate to the software component. - type: tosca.datatypes.Credential - required: false - requirements: - - host: - capability: tosca.capabilities.Container - node: tosca.nodes.Compute - relationship: tosca.relationships.HostedOn - - tosca.nodes.BlockStorage: - derived_from: tosca.nodes.Root - description: '' - properties: - size: - description: The requested storage size (default unit is MB). - type: scalar-unit.size - constraints: - - greater_or_equal: 1 MB - volume_id: - description: ID of an existing volume (that is in the accessible scope of the requesting application). - type: string - required: false - snapshot_id: - description: Some identifier that represents an existing snapshot that should be used when creating the block storage (volume). - type: string - required: false - capabilities: - attachment: - type: tosca.capabilities.Attachment - - tosca.nodes.network.Port: - derived_from: tosca.nodes.Root - description: |- - The TOSCA Port node represents a logical entity that associates between Compute and Network normative types. - The Port node type effectively represents a single virtual NIC on the Compute node instance. - properties: - ip_address: - description: Allow the user to set a fixed IP address. Note that this address is a request to the provider which they will attempt to fulfill but may not be able to dependent on the network the port is associated with. - type: string - required: false - order: - description: 'The order of the NIC on the compute instance (e.g. eth2). Note: - when binding more than one port to a single compute (aka multi vNICs) and - ordering is desired, it is *mandatory* that all ports will be set with an - order value and. The order values must represent a positive, arithmetic - progression that starts with 0 (e.g. 0, 1, 2, ..., n).' - type: integer - default: 0 - required: false - constraints: - - greater_or_equal: 0 - is_default: - description: Set is_default=true to apply a default gateway route on the running compute instance to the associated network gateway. Only one port that is associated to single compute node can set as default=true. - type: boolean - default: false - required: false - ip_range_start: - description: Defines the starting IP of a range to be allocated for the compute instances that are associated by this Port. Without setting this property the IP allocation is done from the entire CIDR block of the network. - type: string - required: false - ip_range_end: - description: Defines the ending IP of a range to be allocated for the compute instances that are associated by this Port. Without setting this property the IP allocation is done from the entire CIDR block of the network. - type: string - required: false - attributes: - ip_address: - description: The IP address would be assigned to the associated compute instance. - type: string - requirements: - - link: - capability: tosca.capabilities.network.Linkable - relationship: tosca.relationships.network.LinksTo - - binding: - capability: tosca.capabilities.network.Bindable - relationship: tosca.relationships.network.BindsTo - - tosca.nodes.LoadBalancer: - derived_from: tosca.nodes.Root - description: The TOSCA Load Balancer node represents logical function that be used in conjunction with a Floating Address to distribute an application's traffic (load) across a number of instances of the application (e.g., for a clustered or scaled application). - capabilities: - client: - description: The Floating (IP) client's on the public network can connect to. - type: tosca.capabilities.Endpoint.Public - occurrences: - - 0 - - UNBOUNDED - requirements: - - application: - capability: tosca.capabilities.Endpoint - relationship: tosca.relationships.RoutesTo - occurrences: - - 0 - - UNBOUNDED - - tosca.nodes.Database: - derived_from: tosca.nodes.Root - description: The TOSCA Database node represents a logical database that can be managed and hosted by a TOSCA DBMS node. - properties: - name: - description: The logical database Name. - type: string - port: - description: The port the database service will use to listen for incoming data and requests. - type: integer - required: false - user: - description: The special user account used for database administration. - type: string - required: false - password: - description: The password associated with the user account provided in the 'user' property. - type: string - required: false - capabilities: - database_endpoint: - type: tosca.capabilities.Endpoint.Database - requirements: - - host: - capability: tosca.capabilities.Container - node: tosca.nodes.DBMS - relationship: tosca.relationships.HostedOn diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/policies.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/policies.yml deleted file mode 100644 index da9c14a230..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/policies.yml +++ /dev/null @@ -1,43 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: tosca/policies.yml - version: '1.0' - -imports: -- tosca_index: - file: _index.yml - -policy_types: - tosca.policies.Root: - description: This is the default (root) TOSCA Policy Type definition that all other TOSCA base Policy Types derive from. - - tosca.policies.Update: - derived_from: tosca.policies.Root - description: This is the default (root) TOSCA Policy Type definition that is used to govern update of TOSCA nodes or groups of nodes. - - tosca.policies.Placement: - derived_from: tosca.policies.Root - description: This is the default (root) TOSCA Policy Type definition that is used to govern placement of TOSCA nodes or groups of nodes. - - tosca.policies.Performance: - derived_from: tosca.policies.Root - description: This is the default (root) TOSCA Policy Type definition that is used to declare performance requirements for TOSCA nodes or groups of nodes. - - tosca.policies.Scaling: - derived_from: tosca.policies.Root - description: This is the default (root) TOSCA Policy Type definition that is used to govern scaling of TOSCA nodes or groups of nodes. diff --git a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/relationships.yml b/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/relationships.yml deleted file mode 100644 index 233b59be44..0000000000 --- a/common/openecomp-tosca-datatype/src/main/resources/globalTypes/tosca/relationships.yml +++ /dev/null @@ -1,106 +0,0 @@ -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -tosca_definitions_version: tosca_simple_yaml_1_1 - -metadata: - filename: tosca/relationships.yml - version: '1.0' - -imports: -- tosca_index: - file: _index.yml - -relationship_types: - tosca.relationships.Root: - description: This is the default (root) TOSCA Relationship Type definition that all other TOSCA Relationship Types derive from. - attributes: - tosca_id: - description: A unique identifier of the realized instance of a Relationship Template that derives from any TOSCA normative type. - type: string - tosca_name: - description: This attribute reflects the name of the Relationship Template as defined in the TOSCA service template. This name is not unique to the realized instance model of corresponding deployed application as each template in the model can result in one or more instances (e.g., scaled) when orchestrated to a provider environment. - type: string - state: - description: The state of the relationship instance. - type: string - default: initial - interfaces: - Configure: - type: tosca.interfaces.relationship.Configure - - tosca.relationships.RoutesTo: - derived_from: tosca.relationships.ConnectsTo - description: This type represents an intentional network routing between two Endpoints in different networks. - valid_target_types: - - tosca.capabilities.Endpoint - - tosca.relationships.network.LinksTo: - derived_from: tosca.relationships.DependsOn - description: This relationship type represents an association relationship between Port and Network node types. - valid_target_types: - - tosca.capabilities.network.Linkable - - tosca.relationships.AttachesTo: - derived_from: tosca.relationships.Root - description: This type represents an attachment relationship between two nodes. For example, an AttachesTo relationship type would be used for attaching a storage node to a Compute node. - valid_target_types: - - tosca.capabilities.Attachment - properties: - location: - description: 'The relative location (e.g., path on the file system), which - provides the root location to address an attached node. e.g., a mount point - / path such as ''/usr/data''. Note: The user must provide it and it cannot - be "root".' - type: string - constraints: - - min_length: 1 - device: - description: The logical device name which for the attached device (which is represented by the target node in the model). e.g., '/dev/hda1'. - type: string - required: false - attributes: - device: - description: 'The logical name of the device as exposed to the instance. Note: - A runtime property that gets set when the model gets instantiated by the - orchestrator.' - type: string - - tosca.relationships.network.BindsTo: - derived_from: tosca.relationships.DependsOn - description: This type represents a network association relationship between Port and Compute node types. - valid_target_types: - - tosca.capabilities.network.Bindable - - tosca.relationships.HostedOn: - derived_from: tosca.relationships.Root - description: This type represents a hosting relationship between two nodes. - valid_target_types: - - tosca.capabilities.Container - - tosca.relationships.DependsOn: - derived_from: tosca.relationships.Root - description: This type represents a general dependency relationship between two nodes. - valid_target_types: - - tosca.capabilities.Node - - tosca.relationships.ConnectsTo: - derived_from: tosca.relationships.Root - description: This type represents a network connection relationship between two nodes. - valid_target_types: - - tosca.capabilities.Endpoint - properties: - credential: - type: tosca.datatypes.Credential - required: false diff --git a/common/pom.xml b/common/pom.xml index 54d3a1b3c3..ad2638ae3a 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -2,9 +2,9 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.openecomp.sdc.common - openecomp-common-lib - openecomp-common-lib + org.onap.sdc.common + onap-common-lib + onap-common-lib pom @@ -20,9 +20,9 @@ - openecomp-sdc-artifact-generator-lib - openecomp-common-configuration-management - openecomp-tosca-datatype + onap-sdc-artifact-generator-lib + onap-common-configuration-management + onap-tosca-datatype -- cgit 1.2.3-korg